changes.txt revision 245582
1---------------------------------------- 217 January 2013. Summary of changes for version 20130117: 3 4 51) ACPICA Kernel-resident Subsystem: 6 7Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 8return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 9objects to return a package containing one integer, most BIOS code returns 10two integers and the previous code reflects that. However, we also need to 11support BIOS code that actually implements to the ACPI spec, and this 12change reflects this. 13 14Fixed two issues with the ACPI_DEBUG_PRINT macros: 151) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 16C compilers that require this support. 172) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 18ACPI_DEBUG is already used by many of the various hosts. 19 20Updated all ACPICA copyrights and signons to 2013. Added the 2013 21copyright to all module headers and signons, including the standard Linux 22header. This affects virtually every file in the ACPICA core subsystem, 23iASL compiler, all ACPICA utilities, and the test suites. 24 25Example Code and Data Size: These are the sizes for the OS-independent 26acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 27debug version of the code includes the debug output trace mechanism and 28has a much larger code and data size. 29 30 Previous Release: 31 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 32 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 33 Current Release: 34 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 35 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 36 37 382) iASL Compiler/Disassembler and Tools: 39 40Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 41prevent a possible fault on some hosts. Some C libraries modify the arg 42pointer parameter to vfprintf making it difficult to call it twice in the 43AcpiOsVprintf function. Use a local buffer to workaround this issue. This 44does not affect the Windows OSL since the Win C library does not modify 45the arg pointer. Chao Guan, Bob Moore. 46 47iASL: Fixed a possible infinite loop when the maximum error count is 48reached. If an output file other than the .AML file is specified (such as 49a listing file), and the maximum number of errors is reached, do not 50attempt to flush data to the output file(s) as the compiler is aborting. 51This can cause an infinite loop as the max error count code essentially 52keeps calling itself. 53 54iASL/Disassembler: Added an option (-in) to ignore NOOP opcodes/operators. 55Implemented for both the compiler and the disassembler. Often, the NOOP 56opcode is used as padding for packages that are changed dynamically by the 57BIOS. When disassembled and recompiled, these NOOPs will cause syntax 58errors. This option causes the disassembler to ignore all NOOP opcodes 59(0xA3), and it also causes the compiler to ignore all ASL source code NOOP 60statements as well. 61 62Debugger: Enhanced the Sleep command to execute all sleep states. This 63change allows Sleep to be invoked with no arguments and causes the 64debugger to execute all of the sleep states, 0-5, automatically. 65 66---------------------------------------- 6720 December 2012. Summary of changes for version 20121220: 68 691) ACPICA Kernel-resident Subsystem: 70 71Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 72alternate entry point for AcpiWalkResources and improves the usability of 73the resource manager by accepting as input a buffer containing the output 74of either a _CRS, _PRS, or _AEI method. The key functionality is that the 75input buffer is not deleted by this interface so that it can be used by 76the host later. See the ACPICA reference for details. 77 78Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 79(DSDT version < 2). The constant will be truncated and this warning 80reflects that behavior. 81 82Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 83ExtendedInterrupt, and GpioInt descriptors. This change adds support to 84both get and set the new wake bit in these descriptors, separately from 85the existing share bit. Reported by Aaron Lu. 86 87Interpreter: Fix Store() when an implicit conversion is not possible. For 88example, in the cases such as a store of a string to an existing package 89object, implement the store as a CopyObject(). This is a small departure 90from the ACPI specification which states that the control method should be 91aborted in this case. However, the ASLTS suite depends on this behavior. 92 93Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 94macros: check if debug output is currently enabled as soon as possible to 95minimize performance impact if debug is in fact not enabled. 96 97Source code restructuring: Cleanup to improve modularity. The following 98new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 99psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 100Associated makefiles and project files have been updated. 101 102Changed an exception code for LoadTable operator. For the case where one 103of the input strings is too long, change the returned exception code from 104AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 105 106Fixed a possible memory leak in dispatcher error path. On error, delete 107the mutex object created during method mutex creation. Reported by 108tim.gardner@canonical.com. 109 110Example Code and Data Size: These are the sizes for the OS-independent 111acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 112debug version of the code includes the debug output trace mechanism and 113has a much larger code and data size. 114 115 Previous Release: 116 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 117 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 118 Current Release: 119 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 120 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 121 122 1232) iASL Compiler/Disassembler and Tools: 124 125iASL: Disallow a method call as argument to the ObjectType ASL operator. 126This change tracks an errata to the ACPI 5.0 document. The AML grammar 127will not allow the interpreter to differentiate between a method and a 128method invocation when these are used as an argument to the ObjectType 129operator. The ACPI specification change is to disallow a method invocation 130(UserTerm) for the ObjectType operator. 131 132Finish support for the TPM2 and CSRT tables in the headers, table 133compiler, and disassembler. 134 135Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 136always expires immediately if the semaphore is not available. The original 137code was using a relative-time timeout, but sem_timedwait requires the use 138of an absolute time. 139 140iASL: Added a remark if the Timer() operator is used within a 32-bit 141table. This operator returns a 64-bit time value that will be truncated 142within a 32-bit table. 143 144iASL Source code restructuring: Cleanup to improve modularity. The 145following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 146aslmethod.c, and aslfileio.c. Associated makefiles and project files have 147been updated. 148 149 150---------------------------------------- 15114 November 2012. Summary of changes for version 20121114: 152 1531) ACPICA Kernel-resident Subsystem: 154 155Implemented a performance enhancement for ACPI/AML Package objects. This 156change greatly increases the performance of Package objects within the 157interpreter. It changes the processing of reference counts for packages by 158optimizing for the most common case where the package sub-objects are 159either Integers, Strings, or Buffers. Increases the overall performance of 160the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 2X.) 161Chao Guan. ACPICA BZ 943. 162 163Implemented and deployed common macros to extract flag bits from resource 164descriptors. Improves readability and maintainability of the code. Fixes a 165problem with the UART serial bus descriptor for the number of data bits 166flags (was incorrectly 2 bits, should be 3). 167 168Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 169of the macros and changed the SETx macros to the style of (destination, 170source). Also added ACPI_CASTx companion macros. Lv Zheng. 171 172Example Code and Data Size: These are the sizes for the OS-independent 173acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 174debug version of the code includes the debug output trace mechanism and 175has a much larger code and data size. 176 177 Previous Release: 178 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 179 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 180 Current Release: 181 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 182 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 183 184 1852) iASL Compiler/Disassembler and Tools: 186 187Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 188adds the ShareAndWake and ExclusiveAndWake flags which were added to the 189Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 190 191Disassembler: Fixed a problem with external declaration generation. Fixes 192a problem where an incorrect pathname could be generated for an external 193declaration if the original reference to the object includes leading 194carats (^). ACPICA BZ 984. 195 196Debugger: Completed a major update for the Disassemble<method> command. 197This command was out-of-date and did not properly disassemble control 198methods that had any reasonable complexity. This fix brings the command up 199to the same level as the rest of the disassembler. Adds one new file, 200dmdeferred.c, which is existing code that is now common with the main 201disassembler and the debugger disassemble command. ACPICA MZ 978. 202 203iASL: Moved the parser entry prototype to avoid a duplicate declaration. 204Newer versions of Bison emit this prototype, so moved the prototype out of 205the iASL header to where it is actually used in order to avoid a duplicate 206declaration. 207 208iASL/Tools: Standardized use of the stream I/O functions: 209 1) Ensure check for I/O error after every fopen/fread/fwrite 210 2) Ensure proper order of size/count arguments for fread/fwrite 211 3) Use test of (Actual != Requested) after all fwrite, and most fread 212 4) Standardize I/O error messages 213Improves reliability and maintainability of the code. Bob Moore, Lv Zheng. 214ACPICA BZ 981. 215 216Disassembler: Prevent duplicate External() statements. During generation 217of external statements, detect similar pathnames that are actually 218duplicates such as these: 219 External (\ABCD) 220 External (ABCD) 221Remove all leading '\' characters from pathnames during the external 222statement generation so that duplicates will be detected and tossed. 223ACPICA BZ 985. 224 225Tools: Replace low-level I/O with stream I/O functions. Replace 226open/read/write/close with the stream I/O equivalents 227fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 228Moore. 229 230AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 231name header so that AcpiXtract recognizes the output file/table. 232 233iASL: Remove obsolete -2 option flag. Originally intended to force the 234compiler/disassembler into an ACPI 2.0 mode, this was never implemented 235and the entire concept is now obsolete. 236 237---------------------------------------- 23818 October 2012. Summary of changes for version 20121018: 239 240 2411) ACPICA Kernel-resident Subsystem: 242 243Updated support for the ACPI 5.0 MPST table. Fixes some problems 244introduced by late changes to the table as it was added to the ACPI 5.0 245specification. Includes header, disassembler, and data table compiler 246support as well as a new version of the MPST template. 247 248AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 2495.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 250methods: _HID, _CID, and _UID. 251 252Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 253ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 254name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 255names for their various drivers. Affects the AcpiGetObjectInfo external 256interface, and other internal interfaces as well. 257 258Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 259This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 260on machines that support non-aligned transfers. Optimizes for this case 261rather than using a strncpy. With assistance from Zheng Lv. 262 263Resource Manager: Small fix for buffer size calculation. Fixed a one byte 264error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 265 266Added a new debug print message for AML mutex objects that are force- 267released. At control method termination, any currently acquired mutex 268objects are force-released. Adds a new debug-only message for each one 269that is released. 270 271Audited/updated all ACPICA return macros and the function debug depth 272counter: 1) Ensure that all functions that use the various TRACE macros 273also use the appropriate ACPICA return macros. 2) Ensure that all normal 274return statements surround the return expression (value) with parens to 275ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 276Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 277 278Global source code changes/maintenance: All extra lines at the start and 279end of each source file have been removed for consistency. Also, within 280comments, all new sentences start with a single space instead of a double 281space, again for consistency across the code base. 282 283Example Code and Data Size: These are the sizes for the OS-independent 284acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 285debug version of the code includes the debug output trace mechanism and 286has a much larger code and data size. 287 288 Previous Release: 289 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 290 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 291 Current Release: 292 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 293 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 294 295 2962) iASL Compiler/Disassembler and Tools: 297 298AcpiExec: Improved the algorithm used for memory leak/corruption 299detection. Added some intelligence to the code that maintains the global 300list of allocated memory. The list is now ordered by allocated memory 301address, significantly improving performance. When running AcpiExec on 302the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 303on the platform and/or the environment. Note, this performance 304enhancement affects the AcpiExec utility only, not the kernel-resident 305ACPICA code. 306 307Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 308the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 309incorrect table offset reported for invalid opcodes. Report the original 31032-bit value for bad ACPI_NAMEs (as well as the repaired name.) 311 312Disassembler: Enhanced the -vt option to emit the binary table data in 313hex format to assist with debugging. 314 315Fixed a potential filename buffer overflow in osunixdir.c. Increased the 316size of file structure. Colin Ian King. 317 318---------------------------------------- 31913 September 2012. Summary of changes for version 20120913: 320 321 3221) ACPICA Kernel-resident Subsystem: 323 324ACPI 5.0: Added two new notify types for the Hardware Error Notification 325Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 326and 327MCE(6). 328 329Table Manager: Merged/removed duplicate code in the root table resize 330functions. One function is external, the other is internal. Lv Zheng, 331ACPICA 332BZ 846. 333 334Makefiles: Completely removed the obsolete "Linux" makefiles under 335acpica/generate/linux. These makefiles are obsolete and have been replaced 336by 337the generic unix makefiles under acpica/generate/unix. 338 339Makefiles: Ensure that binary files always copied properly. Minor rule 340change 341to ensure that the final binary output files are always copied up to the 342appropriate binary directory (bin32 or bin64.) 343 344Example Code and Data Size: These are the sizes for the OS-independent 345acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 346debug 347version of the code includes the debug output trace mechanism and has a 348much 349larger code and data size. 350 351 Previous Release: 352 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 353 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 354 Current Release: 355 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 356 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 357 358 3592) iASL Compiler/Disassembler and Tools: 360 361Disassembler: Fixed a possible fault during the disassembly of resource 362descriptors when a second parse is required because of the invocation of 363external control methods within the table. With assistance from 364adq@lidskialf.net. ACPICA BZ 976. 365 366iASL: Fixed a namepath optimization problem. An error can occur if the 367parse 368node that contains the namepath to be optimized does not have a parent 369node 370that is a named object. This change fixes the problem. 371 372iASL: Fixed a regression where the AML file is not deleted on errors. The 373AML 374output file should be deleted if there are any errors during the compiler. 375The 376only exception is if the -f (force output) option is used. ACPICA BZ 974. 377 378iASL: Added a feature to automatically increase internal line buffer 379sizes. 380Via realloc(), automatically increase the internal line buffer sizes as 381necessary to support very long source code lines. The current version of 382the 383preprocessor requires a buffer long enough to contain full source code 384lines. 385This change increases the line buffer(s) if the input lines go beyond the 386current buffer size. This eliminates errors that occurred when a source 387code 388line was longer than the buffer. 389 390iASL: Fixed a problem with constant folding in method declarations. The 391SyncLevel term is a ByteConstExpr, and incorrect code would be generated 392if a 393Type3 opcode was used. 394 395Debugger: Improved command help support. For incorrect argument count, 396display 397full help for the command. For help command itself, allow an argument to 398specify a command. 399 400Test Suites: Several bug fixes for the ASLTS suite reduces the number of 401errors during execution of the suite. Guan Chao. 402 403---------------------------------------- 40416 August 2012. Summary of changes for version 20120816: 405 406 4071) ACPICA Kernel-resident Subsystem: 408 409Removed all use of the deprecated _GTS and _BFS predefined methods. The 410_GTS 411(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 412deprecated and will probably be removed from the ACPI specification. 413Windows 414does not invoke them, and reportedly never will. The final nail in the 415coffin 416is that the ACPI specification states that these methods must be run with 417interrupts off, which is not going to happen in a kernel interpreter. 418Note: 419Linux has removed all use of the methods also. It was discovered that 420invoking these functions caused failures on some machines, probably 421because 422they were never tested since Windows does not call them. Affects two 423external 424interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 425ACPICA BZ 969. 426 427Implemented support for complex bit-packed buffers returned from the _PLD 428(Physical Location of Device) predefined method. Adds a new external 429interface, AcpiDecodePldBuffer that parses the buffer into a more usable C 430structure. Note: C Bitfields cannot be used for this type of predefined 431structure since the memory layout of individual bitfields is not defined 432by 433the C language. In addition, there are endian concerns where a compiler 434will 435change the bitfield ordering based on the machine type. The new ACPICA 436interface eliminates these issues, and should be called after _PLD is 437executed. ACPICA BZ 954. 438 439Implemented a change to allow a scope change to root (via "Scope (\)") 440during 441execution of module-level ASL code (code that is executed at table load 442time.) Lin Ming. 443 444Added the Windows8/Server2012 string for the _OSI method. This change adds 445a 446new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 4472012. 448 449Added header support for the new ACPI tables DBG2 (Debug Port Table Type 4502) 451and CSRT (Core System Resource Table). 452 453Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 454names. This simplifies access to the buffers returned by these predefined 455names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 456 457GPE support: Removed an extraneous parameter from the various low-level 458internal GPE functions. Tang Feng. 459 460Removed the linux makefiles from the unix packages. The generate/linux 461makefiles are obsolete and have been removed from the unix tarball release 462packages. The replacement makefiles are under generate/unix, and there is 463a 464top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 465 466Updates for Unix makefiles: 4671) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 4682) Update linker flags (move to end of command line) for AcpiExec utility. 469Guan Chao. 470 471Split ACPICA initialization functions to new file, utxfinit.c. Split from 472utxface.c to improve modularity and reduce file size. 473 474Example Code and Data Size: These are the sizes for the OS-independent 475acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 476debug version of the code includes the debug output trace mechanism and 477has a 478much larger code and data size. 479 480 Previous Release: 481 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 482 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 483 Current Release: 484 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 485 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 486 487 4882) iASL Compiler/Disassembler and Tools: 489 490iASL: Fixed a problem with constant folding for fixed-length constant 491expressions. The constant-folding code was not being invoked for constant 492expressions that allow the use of type 3/4/5 opcodes to generate constants 493for expressions such as ByteConstExpr, WordConstExpr, etc. This could 494result 495in the generation of invalid AML bytecode. ACPICA BZ 970. 496 497iASL: Fixed a generation issue on newer versions of Bison. Newer versions 498apparently automatically emit some of the necessary externals. This change 499handles these versions in order to eliminate generation warnings. 500 501Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 502 503Disassembler: Add support to decode _PLD buffers. The decoded buffer 504appears 505within comments in the output file. 506 507Debugger: Fixed a regression with the "Threads" command where 508AE_BAD_PARAMETER was always returned. 509 510---------------------------------------- 51111 July 2012. Summary of changes for version 20120711: 512 5131) ACPICA Kernel-resident Subsystem: 514 515Fixed a possible fault in the return package object repair code. Fixes a 516problem that can occur when a lone package object is wrapped with an outer 517package object in order to force conformance to the ACPI specification. 518Can 519affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 520_DLM, 521_CSD, _PSD, _TSD. 522 523Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 524PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 525ARB_DIS bit must be implemented in the host-dependent C3 processor power 526state 527support. Note, ARB_DIS is obsolete and only applies to older chipsets, 528both 529Intel and other vendors. (for Intel: ICH4-M and earlier) 530 531This change removes the code to disable/enable bus master arbitration 532during 533suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 534causes 535resume problems on some machines. The change has been in use for over 536seven 537years within Linux. 538 539Implemented two new external interfaces to support host-directed dynamic 540ACPI 541table load and unload. They are intended to simplify the host 542implementation 543of hot-plug support: 544 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 545 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 546table. 547See the ACPICA reference for additional details. Adds one new file, 548components/tables/tbxfload.c 549 550Implemented and deployed two new interfaces for errors and warnings that 551are 552known to be caused by BIOS/firmware issues: 553 AcpiBiosError: Prints "ACPI Firmware Error" message. 554 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 555Deployed these new interfaces in the ACPICA Table Manager code for ACPI 556table 557and FADT errors. Additional deployment to be completed as appropriate in 558the 559future. The associated conditional macros are ACPI_BIOS_ERROR and 560ACPI_BIOS_WARNING. See the ACPICA reference for additional details. ACPICA 561BZ 562843. 563 564Implicit notify support: ensure that no memory allocation occurs within a 565critical region. This fix moves a memory allocation outside of the time 566that a 567spinlock is held. Fixes issues on systems that do not allow this behavior. 568Jung-uk Kim. 569 570Split exception code utilities and tables into a new file, 571utilities/utexcep.c 572 573Example Code and Data Size: These are the sizes for the OS-independent 574acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 575debug 576version of the code includes the debug output trace mechanism and has a 577much 578larger code and data size. 579 580 Previous Release: 581 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 582 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 583 Current Release: 584 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 585 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 586 587 5882) iASL Compiler/Disassembler and Tools: 589 590iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 591of 5920. Jung-uk Kim. 593 594Debugger: Enhanced the "tables" command to emit additional information 595about 596the current set of ACPI tables, including the owner ID and flags decode. 597 598Debugger: Reimplemented the "unload" command to use the new 599AcpiUnloadParentTable external interface. This command was disable 600previously 601due to need for an unload interface. 602 603AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 604option 605will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 606 607---------------------------------------- 60820 June 2012. Summary of changes for version 20120620: 609 610 6111) ACPICA Kernel-resident Subsystem: 612 613Implemented support to expand the "implicit notify" feature to allow 614multiple 615devices to be notified by a single GPE. This feature automatically 616generates a 617runtime device notification in the absence of a BIOS-provided GPE control 618method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 619notify is 620provided by ACPICA for Windows compatibility, and is a workaround for BIOS 621AML 622code errors. See the description of the AcpiSetupGpeForWake interface in 623the 624APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 625 626Changed some comments and internal function names to simplify and ensure 627correctness of the Linux code translation. No functional changes. 628 629Example Code and Data Size: These are the sizes for the OS-independent 630acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 631debug 632version of the code includes the debug output trace mechanism and has a 633much 634larger code and data size. 635 636 Previous Release: 637 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 638 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 639 Current Release: 640 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 641 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 642 643 6442) iASL Compiler/Disassembler and Tools: 645 646Disassembler: Added support to emit short, commented descriptions for the 647ACPI 648predefined names in order to improve the readability of the disassembled 649output. ACPICA BZ 959. Changes include: 650 1) Emit descriptions for all standard predefined names (_INI, _STA, 651_PRW, 652etc.) 653 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 654 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 655etc.) 656 657AcpiSrc: Fixed several long-standing Linux code translation issues. 658Argument 659descriptions in function headers are now translated properly to lower case 660and 661underscores. ACPICA BZ 961. Also fixes translation problems such as these: 662(old -> new) 663 i_aSL -> iASL 664 00-7_f -> 00-7F 665 16_k -> 16K 666 local_fADT -> local_FADT 667 execute_oSI -> execute_OSI 668 669iASL: Fixed a problem where null bytes were inadvertently emitted into 670some 671listing files. 672 673iASL: Added the existing debug options to the standard help screen. There 674are 675no longer two different help screens. ACPICA BZ 957. 676 677AcpiHelp: Fixed some typos in the various predefined name descriptions. 678Also 679expand some of the descriptions where appropriate. 680 681iASL: Fixed the -ot option (display compile times/statistics). Was not 682working 683properly for standard output; only worked for the debug file case. 684 685---------------------------------------- 68618 May 2012. Summary of changes for version 20120518: 687 688 6891) ACPICA Core Subsystem: 690 691Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 692defined 693to block until asynchronous events such as notifies and GPEs have 694completed. 695Within ACPICA, it is only called before a notify or GPE handler is 696removed/uninstalled. It also may be useful for the host OS within related 697drivers such as the Embedded Controller driver. See the ACPICA reference 698for 699additional information. ACPICA BZ 868. 700 701ACPI Tables: Added a new error message for a possible overflow failure 702during 703the conversion of FADT 32-bit legacy register addresses to internal common 70464- 705bit GAS structure representation. The GAS has a one-byte "bit length" 706field, 707thus limiting the register length to 255 bits. ACPICA BZ 953. 708 709Example Code and Data Size: These are the sizes for the OS-independent 710acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 711debug 712version of the code includes the debug output trace mechanism and has a 713much 714larger code and data size. 715 716 Previous Release: 717 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 718 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 719 Current Release: 720 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 721 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 722 723 7242) iASL Compiler/Disassembler and Tools: 725 726iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 727macro. 728This keyword was added late in the ACPI 5.0 release cycle and was not 729implemented until now. 730 731Disassembler: Added support for Operation Region externals. Adds missing 732support for operation regions that are defined in another table, and 733referenced locally via a Field or BankField ASL operator. Now generates 734the 735correct External statement. 736 737Disassembler: Several additional fixes for the External() statement 738generation 739related to some ASL operators. Also, order the External() statements 740alphabetically in the disassembler output. Fixes the External() generation 741for 742the Create* field, Alias, and Scope operators: 743 1) Create* buffer field operators - fix type mismatch warning on 744disassembly 745 2) Alias - implement missing External support 746 3) Scope - fix to make sure all necessary externals are emitted. 747 748iASL: Improved pathname support. For include files, merge the prefix 749pathname 750with the file pathname and eliminate unnecessary components. Convert 751backslashes in all pathnames to forward slashes, for readability. Include 752file 753pathname changes affect both #include and Include() type operators. 754 755iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 756end 757of a valid line by inserting a newline and then returning the EOF during 758the 759next call to GetNextLine. Prevents the line from being ignored due to EOF 760condition. 761 762iASL: Implemented some changes to enhance the IDE support (-vi option.) 763Error 764and Warning messages are now correctly recognized for both the source code 765browser and the global error and warning counts. 766 767---------------------------------------- 76820 April 2012. Summary of changes for version 20120420: 769 770 7711) ACPICA Core Subsystem: 772 773Implemented support for multiple notify handlers. This change adds support 774to 775allow multiple system and device notify handlers on Device, Thermal Zone, 776and 777Processor objects. This can simplify the host OS notification 778implementation. 779Also re-worked and restructured the entire notify support code to simplify 780handler installation, handler removal, notify event queuing, and notify 781dispatch to handler(s). Note: there can still only be two global notify 782handlers - one for system notifies and one for device notifies. There are 783no 784changes to the existing handler install/remove interfaces. Lin Ming, Bob 785Moore, Rafael Wysocki. 786 787Fixed a regression in the package repair code where the object reference 788count was calculated incorrectly. Regression was introduced in the commit 789"Support to add Package wrappers". 790 791Fixed a couple possible memory leaks in the AML parser, in the error 792recovery 793path. Jesper Juhl, Lin Ming. 794 795Example Code and Data Size: These are the sizes for the OS-independent 796acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 797debug version of the code includes the debug output trace mechanism and 798has a 799much larger code and data size. 800 801 Previous Release: 802 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 803 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 804 Current Release: 805 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 806 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 807 808 8092) iASL Compiler/Disassembler and Tools: 810 811iASL: Fixed a problem with the resource descriptor support where the 812length 813of the StartDependentFn and StartDependentFnNoPrio descriptors were not 814included in cumulative descriptor offset, resulting in incorrect values 815for 816resource tags within resource descriptors appearing after a 817StartDependent* 818descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 819 820iASL and Preprocessor: Implemented full support for the #line directive to 821correctly track original source file line numbers through the .i 822preprocessor 823output file - for error and warning messages. 824 825iASL: Expand the allowable byte constants for address space IDs. 826Previously, 827the allowable range was 0x80-0xFF (user-defined spaces), now the range is 8280x0A-0xFF to allow for custom and new IDs without changing the compiler. 829 830iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 831 832iASL: Add option to completely disable the preprocessor (-Pn). 833 834iASL: Now emit all error/warning messages to standard error (stderr) by 835default (instead of the previous stdout). 836 837ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 838Update 839for resource descriptor offset fix above. Update/cleanup error output 840routines. Enable and send iASL errors/warnings to an error logfile 841(error.txt). Send all other iASL output to a logfile (compiler.txt). Fixed 842several extraneous "unrecognized operator" messages. 843 844---------------------------------------- 84520 March 2012. Summary of changes for version 20120320: 846 847 8481) ACPICA Core Subsystem: 849 850Enhanced the sleep/wake interfaces to optionally execute the _GTS method 851(Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently 852does not execute these methods, and therefore these methods are often 853untested. It has been seen on some systems where the execution of these 854methods causes errors and also prevents the machine from entering S5. It 855is 856therefore suggested that host operating systems do not execute these 857methods 858by default. In the future, perhaps these methods can be optionally 859executed 860based on the age of the system and/or what is the newest version of 861Windows 862that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 863and 864AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 865Ming. 866 867Fixed a problem where the length of the local/common FADT was set too 868early. 869The local FADT table length cannot be set to the common length until the 870original length has been examined. There is code that checks the table 871length 872and sets various fields appropriately. This can affect older machines with 873early FADT versions. For example, this can cause inadvertent writes to the 874CST_CNT register. Julian Anastasov. 875 876Fixed a mapping issue related to a physical table override. Use the 877deferred 878mapping mechanism for tables loaded via the physical override OSL 879interface. 880This allows for early mapping before the virtual memory manager is 881available. 882Thomas Renninger, Bob Moore. 883 884Enhanced the automatic return-object repair code: Repair a common problem 885with 886predefined methods that are defined to return a variable-length Package of 887sub-objects. If there is only one sub-object, some BIOS ASL code 888mistakenly 889simply returns the single object instead of a Package with one sub-object. 890This new support will repair this error by wrapping a Package object 891around 892the original object, creating the correct and expected Package with one 893sub- 894object. Names that can be repaired in this manner include: _ALR, _CSD, 895_HPX, 896_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 897939. 898 899Changed the exception code returned for invalid ACPI paths passed as 900parameters to external interfaces such as AcpiEvaluateObject. Was 901AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 902 903Example Code and Data Size: These are the sizes for the OS-independent 904acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 905debug 906version of the code includes the debug output trace mechanism and has a 907much 908larger code and data size. 909 910 Previous Release: 911 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 912 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 913 Current Release: 914 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 915 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 916 917 9182) iASL Compiler/Disassembler and Tools: 919 920iASL: Added the infrastructure and initial implementation of a integrated 921C- 922like preprocessor. This will simplify BIOS development process by 923eliminating 924the need for a separate preprocessing step during builds. On Windows, it 925also 926eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 927features including full #define() macro support are still under 928development. 929These preprocessor directives are supported: 930 #define 931 #elif 932 #else 933 #endif 934 #error 935 #if 936 #ifdef 937 #ifndef 938 #include 939 #pragma message 940 #undef 941 #warning 942In addition, these new command line options are supported: 943 -D <symbol> Define symbol for preprocessor use 944 -li Create preprocessed output file (*.i) 945 -P Preprocess only and create preprocessor output file (*.i) 946 947Table Compiler: Fixed a problem where the equals operator within an 948expression 949did not work properly. 950 951Updated iASL to use the current versions of Bison/Flex. Updated the 952Windows 953project file to invoke these tools from the standard location. ACPICA BZ 954904. 955Versions supported: 956 Flex for Windows: V2.5.4 957 Bison for Windows: V2.4.1 958 959---------------------------------------- 96015 February 2012. Summary of changes for version 20120215: 961 962 9631) ACPICA Core Subsystem: 964 965There have been some major changes to the sleep/wake support code, as 966described below (a - e). 967 968a) The AcpiLeaveSleepState has been split into two interfaces, similar to 969AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 970AcpiLeaveSleepStatePrep. This allows the host to perform actions between 971the 972time the _BFS method is called and the _WAK method is called. NOTE: all 973hosts 974must update their wake/resume code or else sleep/wake will not work 975properly. 976Rafael Wysocki. 977 978b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 979_WAK 980method. Some machines require that the GPEs are enabled before the _WAK 981method 982is executed. Thomas Renninger. 983 984c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. 985Some BIOS code assumes that WAK_STS will be cleared on resume and use it 986to 987determine whether the system is rebooting or resuming. Matthew Garrett. 988 989d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 990Sleep) to 991match the ACPI specification requirement. Rafael Wysocki. 992 993e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 994registers within the V5 FADT. This support adds two new files: 995hardware/hwesleep.c implements the support for the new registers. Moved 996all 997sleep/wake external interfaces to hardware/hwxfsleep.c. 998 999 1000Added a new OSL interface for ACPI table overrides, 1001AcpiOsPhysicalTableOverride. This interface allows the host to override a 1002table via a physical address, instead of the logical address required by 1003AcpiOsTableOverride. This simplifies the host implementation. Initial 1004implementation by Thomas Renninger. The ACPICA implementation creates a 1005single 1006shared function for table overrides that attempts both a logical and a 1007physical override. 1008 1009Expanded the OSL memory read/write interfaces to 64-bit data 1010(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 1011transfer support for GAS register structures passed to AcpiRead and 1012AcpiWrite. 1013 1014Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 1015custom 1016build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 1017model. 1018See the ACPICA reference for details. ACPICA BZ 942. This option removes 1019about 102010% of the code and 5% of the static data, and the following hardware ACPI 1021features become unavailable: 1022 PM Event and Control registers 1023 SCI interrupt (and handler) 1024 Fixed Events 1025 General Purpose Events (GPEs) 1026 Global Lock 1027 ACPI PM timer 1028 FACS table (Waking vectors and Global Lock) 1029 1030Updated the unix tarball directory structure to match the ACPICA git 1031source 1032tree. This ensures that the generic unix makefiles work properly (in 1033generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. 1034 1035Updated the return value of the _REV predefined method to integer value 5 1036to 1037reflect ACPI 5.0 support. 1038 1039Moved the external ACPI PM timer interface prototypes to the public 1040acpixf.h 1041file where they belong. 1042 1043Example Code and Data Size: These are the sizes for the OS-independent 1044acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1045debug 1046version of the code includes the debug output trace mechanism and has a 1047much 1048larger code and data size. 1049 1050 Previous Release: 1051 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 1052 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 1053 Current Release: 1054 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1055 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1056 1057 10582) iASL Compiler/Disassembler and Tools: 1059 1060Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 1061descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 1062incorrectly displayed. 1063 1064AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 1065specification. 1066 1067---------------------------------------- 106811 January 2012. Summary of changes for version 20120111: 1069 1070 10711) ACPICA Core Subsystem: 1072 1073Implemented a new mechanism to allow host device drivers to check for 1074address 1075range conflicts with ACPI Operation Regions. Both SystemMemory and 1076SystemIO 1077address spaces are supported. A new external interface, 1078AcpiCheckAddressRange, 1079allows drivers to check an address range against the ACPI namespace. See 1080the 1081ACPICA reference for additional details. Adds one new file, 1082utilities/utaddress.c. Lin Ming, Bob Moore. 1083 1084Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control 1085and 1086Status registers, update the ACPI 5.0 flags, and update internal data 1087structures to handle an FADT larger than 256 bytes. The size of the ACPI 10885.0 1089FADT is 268 bytes. 1090 1091Updated all ACPICA copyrights and signons to 2012. Added the 2012 1092copyright to 1093all module headers and signons, including the standard Linux header. This 1094affects virtually every file in the ACPICA core subsystem, iASL compiler, 1095and 1096all ACPICA utilities. 1097 1098Example Code and Data Size: These are the sizes for the OS-independent 1099acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1100debug 1101version of the code includes the debug output trace mechanism and has a 1102much 1103larger code and data size. 1104 1105 Previous Release: 1106 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 1107 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 1108 Current Release: 1109 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 1110 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 1111 1112 11132) iASL Compiler/Disassembler and Tools: 1114 1115Disassembler: fixed a problem with the automatic resource tag generation 1116support. Fixes a problem where the resource tags are inadvertently not 1117constructed if the table being disassembled contains external references 1118to 1119control methods. Moved the actual construction of the tags to after the 1120final 1121namespace is constructed (after 2nd parse is invoked due to external 1122control 1123method references.) ACPICA BZ 941. 1124 1125Table Compiler: Make all "generic" operators caseless. These are the 1126operators 1127like UINT8, String, etc. Making these caseless improves ease-of-use. 1128ACPICA BZ 1129934. 1130 1131---------------------------------------- 113223 November 2011. Summary of changes for version 20111123: 1133 11340) ACPI 5.0 Support: 1135 1136This release contains full support for the ACPI 5.0 specification, as 1137summarized below. 1138 1139Reduced Hardware Support: 1140------------------------- 1141 1142This support allows for ACPI systems without the usual ACPI hardware. This 1143support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 1144will 1145not attempt to initialize or use any of the usual ACPI hardware. Note, 1146when 1147this flag is set, all of the following ACPI hardware is assumed to be not 1148present and is not initialized or accessed: 1149 1150 General Purpose Events (GPEs) 1151 Fixed Events (PM1a/PM1b and PM Control) 1152 Power Management Timer and Console Buttons (power/sleep) 1153 Real-time Clock Alarm 1154 Global Lock 1155 System Control Interrupt (SCI) 1156 The FACS is assumed to be non-existent 1157 1158ACPI Tables: 1159------------ 1160 1161All new tables and updates to existing tables are fully supported in the 1162ACPICA headers (for use by device drivers), the disassembler, and the iASL 1163Data Table Compiler. ACPI 5.0 defines these new tables: 1164 1165 BGRT /* Boot Graphics Resource Table */ 1166 DRTM /* Dynamic Root of Trust for Measurement table */ 1167 FPDT /* Firmware Performance Data Table */ 1168 GTDT /* Generic Timer Description Table */ 1169 MPST /* Memory Power State Table */ 1170 PCCT /* Platform Communications Channel Table */ 1171 PMTT /* Platform Memory Topology Table */ 1172 RASF /* RAS Feature table */ 1173 1174Operation Regions/SpaceIDs: 1175--------------------------- 1176 1177All new operation regions are fully supported by the iASL compiler, the 1178disassembler, and the ACPICA runtime code (for dispatch to region 1179handlers.) 1180The new operation region Space IDs are: 1181 1182 GeneralPurposeIo 1183 GenericSerialBus 1184 1185Resource Descriptors: 1186--------------------- 1187 1188All new ASL resource descriptors are fully supported by the iASL compiler, 1189the 1190ASL/AML disassembler, and the ACPICA runtime Resource Manager code 1191(including 1192all new predefined resource tags). New descriptors are: 1193 1194 FixedDma 1195 GpioIo 1196 GpioInt 1197 I2cSerialBus 1198 SpiSerialBus 1199 UartSerialBus 1200 1201ASL/AML Operators, New and Modified: 1202------------------------------------ 1203 1204One new operator is added, the Connection operator, which is used to 1205associate 1206a GeneralPurposeIo or GenericSerialBus resource descriptor with individual 1207field objects within an operation region. Several new protocols are 1208associated 1209with the AccessAs operator. All are fully supported by the iASL compiler, 1210disassembler, and runtime ACPICA AML interpreter: 1211 1212 Connection // Declare Field Connection attributes 1213 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 1214 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 1215 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 1216 RawDataBuffer // Data type for Vendor Data 1217fields 1218 1219Predefined ASL/AML Objects: 1220--------------------------- 1221 1222All new predefined objects/control-methods are supported by the iASL 1223compiler 1224and the ACPICA runtime validation/repair (arguments and return values.) 1225New 1226predefined names include the following: 1227 1228Standard Predefined Names (Objects or Control Methods): 1229 _AEI, _CLS, _CPC, _CWS, _DEP, 1230 _DLM, _EVT, _GCP, _CRT, _GWS, 1231 _HRV, _PRE, _PSE, _SRT, _SUB. 1232 1233Resource Tags (Names used to access individual fields within resource 1234descriptors): 1235 _DBT, _DPL, _DRS, _END, _FLC, 1236 _IOR, _LIN, _MOD, _PAR, _PHA, 1237 _PIN, _PPI, _POL, _RXL, _SLV, 1238 _SPE, _STB, _TXL, _VEN. 1239 1240ACPICA External Interfaces: 1241--------------------------- 1242 1243Several new interfaces have been defined for use by ACPI-related device 1244drivers and other host OS services: 1245 1246AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 1247to 1248acquire and release AML mutexes that are defined in the DSDT/SSDT tables 1249provided by the BIOS. They are intended to be used in conjunction with the 1250ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 1251mutual exclusion with the AML code/interpreter. 1252 1253AcpiGetEventResources: Returns the (formatted) resource descriptors as 1254defined 1255by the ACPI 5.0 _AEI object (ACPI Event Information). This object 1256provides 1257resource descriptors associated with hardware-reduced platform events, 1258similar 1259to the AcpiGetCurrentResources interface. 1260 1261Operation Region Handlers: For General Purpose IO and Generic Serial Bus 1262operation regions, information about the Connection() object and any 1263optional 1264length information is passed to the region handler within the Context 1265parameter. 1266 1267AcpiBufferToResource: This interface converts a raw AML buffer containing 1268a 1269resource template or resource descriptor to the ACPI_RESOURCE internal 1270format 1271suitable for use by device drivers. Can be used by an operation region 1272handler 1273to convert the Connection() buffer object into a ACPI_RESOURCE. 1274 1275Miscellaneous/Tools/TestSuites: 1276------------------------------- 1277 1278Support for extended _HID names (Four alpha characters instead of three). 1279Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 1280Support for ACPI 5.0 features in the ASLTS test suite. 1281Fully updated documentation (ACPICA and iASL reference documents.) 1282 1283ACPI Table Definition Language: 1284------------------------------- 1285 1286Support for this language was implemented and released as a subsystem of 1287the 1288iASL compiler in 2010. (See the iASL compiler User Guide.) 1289 1290 1291Non-ACPI 5.0 changes for this release: 1292-------------------------------------- 1293 12941) ACPICA Core Subsystem: 1295 1296Fix a problem with operation region declarations where a failure can occur 1297if 1298the region name and an argument that evaluates to an object (such as the 1299region address) are in different namespace scopes. Lin Ming, ACPICA BZ 1300937. 1301 1302Do not abort an ACPI table load if an invalid space ID is found within. 1303This 1304will be caught later if the offending method is executed. ACPICA BZ 925. 1305 1306Fixed an issue with the FFixedHW space ID where the ID was not always 1307recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 1308 1309Fixed a problem with the 32-bit generation of the unix-specific OSL 1310(osunixxf.c). Lin Ming, ACPICA BZ 936. 1311 1312Several changes made to enable generation with the GCC 4.6 compiler. 1313ACPICA BZ 1314935. 1315 1316New error messages: Unsupported I/O requests (not 8/16/32 bit), and 1317Index/Bank 1318field registers out-of-range. 1319 13202) iASL Compiler/Disassembler and Tools: 1321 1322iASL: Implemented the __PATH__ operator, which returns the full pathname 1323of 1324the current source file. 1325 1326AcpiHelp: Automatically display expanded keyword information for all ASL 1327operators. 1328 1329Debugger: Add "Template" command to disassemble/dump resource template 1330buffers. 1331 1332Added a new master script to generate and execute the ASLTS test suite. 1333Automatically handles 32- and 64-bit generation. See tests/aslts.sh 1334 1335iASL: Fix problem with listing generation during processing of the 1336Switch() 1337operator where AML listing was disabled until the entire Switch block was 1338completed. 1339 1340iASL: Improve support for semicolon statement terminators. Fix "invalid 1341character" message for some cases when the semicolon is used. Semicolons 1342are 1343now allowed after every <Term> grammar element. ACPICA BZ 927. 1344 1345iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 1346923. 1347 1348Disassembler: Fix problem with disassembly of the DataTableRegion operator 1349where an inadvertent "Unhandled deferred opcode" message could be 1350generated. 1351 13523) Example Code and Data Size 1353 1354These are the sizes for the OS-independent acpica.lib produced by the 1355Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 1356includes the debug output trace mechanism and has a much larger code and 1357data 1358size. 1359 1360 Previous Release: 1361 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1362 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1363 Current Release: 1364 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 1365 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 1366 1367---------------------------------------- 136822 September 2011. Summary of changes for version 20110922: 1369 13700) ACPI 5.0 News: 1371 1372Support for ACPI 5.0 in ACPICA has been underway for several months and 1373will 1374be released at the same time that ACPI 5.0 is officially released. 1375 1376The ACPI 5.0 specification is on track for release in the next few months. 1377 13781) ACPICA Core Subsystem: 1379 1380Fixed a problem where the maximum sleep time for the Sleep() operator was 1381intended to be limited to two seconds, but was inadvertently limited to 20 1382seconds instead. 1383 1384Linux and Unix makefiles: Added header file dependencies to ensure correct 1385generation of ACPICA core code and utilities. Also simplified the 1386makefiles 1387considerably through the use of the vpath variable to specify search 1388paths. 1389ACPICA BZ 924. 1390 13912) iASL Compiler/Disassembler and Tools: 1392 1393iASL: Implemented support to check the access length for all fields 1394created to 1395access named Resource Descriptor fields. For example, if a resource field 1396is 1397defined to be two bits, a warning is issued if a CreateXxxxField() is used 1398with an incorrect bit length. This is implemented for all current resource 1399descriptor names. ACPICA BZ 930. 1400 1401Disassembler: Fixed a byte ordering problem with the output of 24-bit and 140256- 1403bit integers. 1404 1405iASL: Fixed a couple of issues associated with variable-length package 1406objects. 1) properly handle constants like One, Ones, Zero -- do not make 1407a 1408VAR_PACKAGE when these are used as a package length. 2) Allow the 1409VAR_PACKAGE 1410opcode (in addition to PACKAGE) when validating object types for 1411predefined 1412names. 1413 1414iASL: Emit statistics for all output files (instead of just the ASL input 1415and 1416AML output). Includes listings, hex files, etc. 1417 1418iASL: Added -G option to the table compiler to allow the compilation of 1419custom 1420ACPI tables. The only part of a table that is required is the standard 36- 1421byte 1422ACPI header. 1423 1424AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 1425headers), 1426which also adds correct 64-bit support. Also, now all output filenames are 1427completely lower case. 1428 1429AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 1430loading table files. A warning is issued for any such tables. The only 1431exception is an FADT. This also fixes a possible fault when attempting to 1432load 1433non-AML tables. ACPICA BZ 932. 1434 1435AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 1436missing table terminator could cause a fault when using the -p option. 1437 1438AcpiSrc: Fixed a possible divide-by-zero fault when generating file 1439statistics. 1440 14413) Example Code and Data Size 1442 1443These are the sizes for the OS-independent acpica.lib produced by the 1444Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 1445includes the debug output trace mechanism and has a much larger code and 1446data 1447size. 1448 1449 Previous Release (VC 9.0): 1450 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1451 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1452 Current Release (VC 9.0): 1453 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1454 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1455 1456 1457---------------------------------------- 145823 June 2011. Summary of changes for version 20110623: 1459 14601) ACPI CA Core Subsystem: 1461 1462Updated the predefined name repair mechanism to not attempt repair of a 1463_TSS 1464return object if a _PSS object is present. We can only sort the _TSS 1465return 1466package if there is no _PSS within the same scope. This is because if _PSS 1467is 1468present, the ACPI specification dictates that the _TSS Power Dissipation 1469field 1470is to be ignored, and therefore some BIOSs leave garbage values in the 1471_TSS 1472Power field(s). In this case, it is best to just return the _TSS package 1473as- 1474is. Reported by, and fixed with assistance from Fenghua Yu. 1475 1476Added an option to globally disable the control method return value 1477validation 1478and repair. This runtime option can be used to disable return value repair 1479if 1480this is causing a problem on a particular machine. Also added an option to 1481AcpiExec (-dr) to set this disable flag. 1482 1483All makefiles and project files: Major changes to improve generation of 1484ACPICA 1485tools. ACPICA BZ 912: 1486 Reduce default optimization levels to improve compatibility 1487 For Linux, add strict-aliasing=0 for gcc 4 1488 Cleanup and simplify use of command line defines 1489 Cleanup multithread library support 1490 Improve usage messages 1491 1492Linux-specific header: update handling of THREAD_ID and pthread. For the 149332- 1494bit case, improve casting to eliminate possible warnings, especially with 1495the 1496acpica tools. 1497 1498Example Code and Data Size: These are the sizes for the OS-independent 1499acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1500debug 1501version of the code includes the debug output trace mechanism and has a 1502much 1503larger code and data size. 1504 1505 Previous Release (VC 9.0): 1506 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 1507 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1508 Current Release (VC 9.0): 1509 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1510 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1511 15122) iASL Compiler/Disassembler and Tools: 1513 1514With this release, a new utility named "acpihelp" has been added to the 1515ACPICA 1516package. This utility summarizes the ACPI specification chapters for the 1517ASL 1518and AML languages. It generates under Linux/Unix as well as Windows, and 1519provides the following functionality: 1520 Find/display ASL operator(s) -- with description and syntax. 1521 Find/display ASL keyword(s) -- with exact spelling and descriptions. 1522 Find/display ACPI predefined name(s) -- with description, number 1523 of arguments, and the return value data type. 1524 Find/display AML opcode name(s) -- with opcode, arguments, and 1525grammar. 1526 Decode/display AML opcode -- with opcode name, arguments, and grammar. 1527 1528Service Layers: Make multi-thread support configurable. Conditionally 1529compile 1530the multi-thread support so that threading libraries will not be linked if 1531not 1532necessary. The only tool that requires multi-thread support is AcpiExec. 1533 1534iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 1535of 1536Bison appear to want the interface to yyerror to be a const char * (or at 1537least this is a problem when generating iASL on some systems.) ACPICA BZ 1538923 1539Pierre Lejeune. 1540 1541Tools: Fix for systems where O_BINARY is not defined. Only used for 1542Windows 1543versions of the tools. 1544 1545---------------------------------------- 154627 May 2011. Summary of changes for version 20110527: 1547 15481) ACPI CA Core Subsystem: 1549 1550ASL Load() operator: Reinstate most restrictions on the incoming ACPI 1551table 1552signature. Now, only allow SSDT, OEMx, and a null signature. History: 1553 1) Originally, we checked the table signature for "SSDT" or "PSDT". 1554 (PSDT is now obsolete.) 1555 2) We added support for OEMx tables, signature "OEM" plus a fourth 1556 "don't care" character. 1557 3) Valid tables were encountered with a null signature, so we just 1558 gave up on validating the signature, (05/2008). 1559 4) We encountered non-AML tables such as the MADT, which caused 1560 interpreter errors and kernel faults. So now, we once again allow 1561 only SSDT, OEMx, and now, also a null signature. (05/2011). 1562 1563Added the missing _TDL predefined name to the global name list in order to 1564enable validation. Affects both the core ACPICA code and the iASL 1565compiler. 1566 1567Example Code and Data Size: These are the sizes for the OS-independent 1568acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1569debug 1570version of the code includes the debug output trace mechanism and has a 1571much 1572larger code and data size. 1573 1574 Previous Release (VC 9.0): 1575 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 1576 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 1577 Current Release (VC 9.0): 1578 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 1579 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1580 15812) iASL Compiler/Disassembler and Tools: 1582 1583Debugger/AcpiExec: Implemented support for "complex" method arguments on 1584the 1585debugger command line. This adds support beyond simple integers -- 1586including 1587Strings, Buffers, and Packages. Includes support for nested packages. 1588Increased the default command line buffer size to accommodate these 1589arguments. 1590See the ACPICA reference for details and syntax. ACPICA BZ 917. 1591 1592Debugger/AcpiExec: Implemented support for "default" method arguments for 1593the 1594Execute/Debug command. Now, the debugger will always invoke a control 1595method 1596with the required number of arguments -- even if the command line 1597specifies 1598none or insufficient arguments. It uses default integer values for any 1599missing 1600arguments. Also fixes a bug where only six method arguments maximum were 1601supported instead of the required seven. 1602 1603Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 1604and 1605also return status in order to prevent buffer overruns. See the ACPICA 1606reference for details and syntax. ACPICA BZ 921 1607 1608iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 1609makefiles to simplify support for the two different but similar parser 1610generators, bison and yacc. 1611 1612Updated the generic unix makefile for gcc 4. The default gcc version is 1613now 1614expected to be 4 or greater, since options specific to gcc 4 are used. 1615 1616---------------------------------------- 161713 April 2011. Summary of changes for version 20110413: 1618 16191) ACPI CA Core Subsystem: 1620 1621Implemented support to execute a so-called "orphan" _REG method under the 1622EC 1623device. This change will force the execution of a _REG method underneath 1624the 1625EC 1626device even if there is no corresponding operation region of type 1627EmbeddedControl. Fixes a problem seen on some machines and apparently is 1628compatible with Windows behavior. ACPICA BZ 875. 1629 1630Added more predefined methods that are eligible for automatic NULL package 1631element removal. This change adds another group of predefined names to the 1632list 1633of names that can be repaired by having NULL package elements dynamically 1634removed. This group are those methods that return a single variable-length 1635package containing simple data types such as integers, buffers, strings. 1636This 1637includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 1638_PSL, 1639_Sx, 1640and _TZD. ACPICA BZ 914. 1641 1642Split and segregated all internal global lock functions to a new file, 1643evglock.c. 1644 1645Updated internal address SpaceID for DataTable regions. Moved this 1646internal 1647space 1648id in preparation for ACPI 5.0 changes that will include some new space 1649IDs. 1650This 1651change should not affect user/host code. 1652 1653Example Code and Data Size: These are the sizes for the OS-independent 1654acpica.lib 1655produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 1656version of 1657the code includes the debug output trace mechanism and has a much larger 1658code 1659and 1660data size. 1661 1662 Previous Release (VC 9.0): 1663 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 1664 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 1665 Current Release (VC 9.0): 1666 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 1667 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 1668 16692) iASL Compiler/Disassembler and Tools: 1670 1671iASL/DTC: Major update for new grammar features. Allow generic data types 1672in 1673custom ACPI tables. Field names are now optional. Any line can be split to 1674multiple lines using the continuation char (\). Large buffers now use 1675line- 1676continuation character(s) and no colon on the continuation lines. See the 1677grammar 1678update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 1679Moore. 1680 1681iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 1682statements. 1683Since the parser stuffs a "zero" as the return value for these statements 1684(due 1685to 1686the underlying AML grammar), they were seen as "return with value" by the 1687iASL 1688semantic checking. They are now seen correctly as "null" return 1689statements. 1690 1691iASL: Check if a_REG declaration has a corresponding Operation Region. 1692Adds a 1693check for each _REG to ensure that there is in fact a corresponding 1694operation 1695region declaration in the same scope. If not, the _REG method is not very 1696useful 1697since it probably won't be executed. ACPICA BZ 915. 1698 1699iASL/DTC: Finish support for expression evaluation. Added a new expression 1700parser 1701that implements c-style operator precedence and parenthesization. ACPICA 1702bugzilla 1703908. 1704 1705Disassembler/DTC: Remove support for () and <> style comments in data 1706tables. 1707Now 1708that DTC has full expression support, we don't want to have comment 1709strings 1710that 1711start with a parentheses or a less-than symbol. Now, only the standard /* 1712and 1713// 1714comments are supported, as well as the bracket [] comments. 1715 1716AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 1717"unusual" 1718headers in the acpidump file. Update the header validation to support 1719these 1720tables. Problem introduced in previous AcpiXtract version in the change to 1721support "wrong checksum" error messages emitted by acpidump utility. 1722 1723iASL: Add a * option to generate all template files (as a synonym for ALL) 1724as 1725in 1726"iasl -T *" or "iasl -T ALL". 1727 1728iASL/DTC: Do not abort compiler on fatal errors. We do not want to 1729completely 1730abort the compiler on "fatal" errors, simply should abort the current 1731compile. 1732This allows multiple compiles with a single (possibly wildcard) compiler 1733invocation. 1734 1735---------------------------------------- 173616 March 2011. Summary of changes for version 20110316: 1737 17381) ACPI CA Core Subsystem: 1739 1740Fixed a problem caused by a _PRW method appearing at the namespace root 1741scope 1742during the setup of wake GPEs. A fault could occur if a _PRW directly 1743under 1744the 1745root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 1746 1747Implemented support for "spurious" Global Lock interrupts. On some 1748systems, a 1749global lock interrupt can occur without the pending flag being set. Upon a 1750GL 1751interrupt, we now ensure that a thread is actually waiting for the lock 1752before 1753signaling GL availability. Rafael Wysocki, Bob Moore. 1754 1755Example Code and Data Size: These are the sizes for the OS-independent 1756acpica.lib 1757produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 1758version of 1759the code includes the debug output trace mechanism and has a much larger 1760code 1761and 1762data size. 1763 1764 Previous Release (VC 9.0): 1765 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 1766 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 1767 Current Release (VC 9.0): 1768 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 1769 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 1770 17712) iASL Compiler/Disassembler and Tools: 1772 1773Implemented full support for the "SLIC" ACPI table. Includes support in 1774the 1775header files, disassembler, table compiler, and template generator. Bob 1776Moore, 1777Lin Ming. 1778 1779AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 1780Apparently some or all versions of acpidump will occasionally emit a 1781comment 1782like 1783"Wrong checksum", etc., into the dump file. This was causing problems for 1784AcpiXtract. ACPICA BZ 905. 1785 1786iASL: Fix the Linux makefile by removing an inadvertent double file 1787inclusion. 1788ACPICA BZ 913. 1789 1790AcpiExec: Update installation of operation region handlers. Install one 1791handler 1792for a user-defined address space. This is used by the ASL test suite 1793(ASLTS). 1794 1795---------------------------------------- 179611 February 2011. Summary of changes for version 20110211: 1797 17981) ACPI CA Core Subsystem: 1799 1800Added a mechanism to defer _REG methods for some early-installed handlers. 1801Most user handlers should be installed before call to AcpiEnableSubsystem. 1802However, Event handlers and region handlers should be installed after 1803AcpiInitializeObjects. Override handlers for the "default" regions should 1804be 1805installed early, however. This change executes all _REG methods for the 1806default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 1807chicken/egg issues between them. ACPICA BZ 848. 1808 1809Implemented an optimization for GPE detection. This optimization will 1810simply 1811ignore GPE registers that contain no enabled GPEs -- there is no need to 1812read the register since this information is available internally. This 1813becomes more important on machines with a large GPE space. ACPICA bugzilla 1814884. Lin Ming. Suggestion from Joe Liu. 1815 1816Removed all use of the highly unreliable FADT revision field. The revision 1817number in the FADT has been found to be completely unreliable and cannot 1818be 1819trusted. Only the actual table length can be used to infer the version. 1820This 1821change updates the ACPICA core and the disassembler so that both no longer 1822even look at the FADT version and instead depend solely upon the FADT 1823length. 1824 1825Fix an unresolved name issue for the no-debug and no-error-message source 1826generation cases. The _AcpiModuleName was left undefined in these cases, 1827but 1828it is actually needed as a parameter to some interfaces. Define 1829_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 1830 1831Split several large files (makefiles and project files updated) 1832 utglobal.c -> utdecode.c 1833 dbcomds.c -> dbmethod.c dbnames.c 1834 dsopcode.c -> dsargs.c dscontrol.c 1835 dsload.c -> dsload2.c 1836 aslanalyze.c -> aslbtypes.c aslwalks.c 1837 1838Example Code and Data Size: These are the sizes for the OS-independent 1839acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1840debug version of the code includes the debug output trace mechanism and 1841has 1842a much larger code and data size. 1843 1844 Previous Release (VC 9.0): 1845 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 1846 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 1847 Current Release (VC 9.0): 1848 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 1849 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 1850 18512) iASL Compiler/Disassembler and Tools: 1852 1853iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 1854These are useful C-style macros with the standard definitions. ACPICA 1855bugzilla 898. 1856 1857iASL/DTC: Added support for integer expressions and labels. Support for 1858full 1859expressions for all integer fields in all ACPI tables. Support for labels 1860in 1861"generic" portions of tables such as UEFI. See the iASL reference manual. 1862 1863Debugger: Added a command to display the status of global handlers. The 1864"handlers" command will display op region, fixed event, and miscellaneous 1865global handlers. installation status -- and for op regions, whether 1866default 1867or user-installed handler will be used. 1868 1869iASL: Warn if reserved method incorrectly returns a value. Many predefined 1870names are defined such that they do not return a value. If implemented as 1871a 1872method, issue a warning if such a name explicitly returns a value. ACPICA 1873Bugzilla 855. 1874 1875iASL: Added detection of GPE method name conflicts. Detects a conflict 1876where 1877there are two GPE methods of the form _Lxy and _Exy in the same scope. 1878(For 1879example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 1880 1881iASL/DTC: Fixed a couple input scanner issues with comments and line 1882numbers. Comment remover could get confused and miss a comment ending. 1883Fixed 1884a problem with line counter maintenance. 1885 1886iASL/DTC: Reduced the severity of some errors from fatal to error. There 1887is 1888no need to abort on simple errors within a field definition. 1889 1890Debugger: Simplified the output of the help command. All help output now 1891in 1892a single screen, instead of help subcommands. ACPICA Bugzilla 897. 1893 1894---------------------------------------- 189512 January 2011. Summary of changes for version 20110112: 1896 18971) ACPI CA Core Subsystem: 1898 1899Fixed a race condition between method execution and namespace walks that 1900can 1901possibly cause a fault. The problem was apparently introduced in version 190220100528 as a result of a performance optimization that reduces the number 1903of 1904namespace walks upon method exit by using the delete_namespace_subtree 1905function instead of the delete_namespace_by_owner function used 1906previously. 1907Bug is a missing namespace lock in the delete_namespace_subtree function. 1908dana.myers@oracle.com 1909 1910Fixed several issues and a possible fault with the automatic "serialized" 1911method support. History: This support changes a method to "serialized" on 1912the 1913fly if the method generates an AE_ALREADY_EXISTS error, indicating the 1914possibility that it cannot handle reentrancy. This fix repairs a couple of 1915issues seen in the field, especially on machines with many cores: 1916 1917 1) Delete method children only upon the exit of the last thread, 1918 so as to not delete objects out from under other running threads 1919 (and possibly causing a fault.) 1920 2) Set the "serialized" bit for the method only upon the exit of the 1921 Last thread, so as to not cause deadlock when running threads 1922 attempt to exit. 1923 3) Cleanup the use of the AML "MethodFlags" and internal method flags 1924 so that there is no longer any confusion between the two. 1925 1926 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 1927 1928Debugger: Now lock the namespace for duration of a namespace dump. 1929Prevents 1930issues if the namespace is changing dynamically underneath the debugger. 1931Especially affects temporary namespace nodes, since the debugger displays 1932these also. 1933 1934Updated the ordering of include files. The ACPICA headers should appear 1935before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 1936set 1937any necessary compiler-specific defines, etc. Affects the ACPI-related 1938tools 1939and utilities. 1940 1941Updated all ACPICA copyrights and signons to 2011. Added the 2011 1942copyright 1943to all module headers and signons, including the Linux header. This 1944affects 1945virtually every file in the ACPICA core subsystem, iASL compiler, and all 1946utilities. 1947 1948Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 1949project files for VC++ 6.0 are now obsolete. New project files can be 1950found 1951under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 1952details. 1953 1954Example Code and Data Size: These are the sizes for the OS-independent 1955acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1956debug version of the code includes the debug output trace mechanism and 1957has a 1958much larger code and data size. 1959 1960 Previous Release (VC 6.0): 1961 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 1962 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 1963 Current Release (VC 9.0): 1964 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 1965 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 1966 19672) iASL Compiler/Disassembler and Tools: 1968 1969iASL: Added generic data types to the Data Table compiler. Add "generic" 1970data 1971types such as UINT32, String, Unicode, etc., to simplify the generation of 1972platform-defined tables such as UEFI. Lin Ming. 1973 1974iASL: Added listing support for the Data Table Compiler. Adds listing 1975support 1976(-l) to display actual binary output for each line of input code. 1977 1978---------------------------------------- 197909 December 2010. Summary of changes for version 20101209: 1980 19811) ACPI CA Core Subsystem: 1982 1983Completed the major overhaul of the GPE support code that was begun in 1984July 19852010. Major features include: removal of _PRW execution in ACPICA (host 1986executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 1987changes to existing interfaces, simplification of GPE handler operation, 1988and 1989a handful of new interfaces: 1990 1991 AcpiUpdateAllGpes 1992 AcpiFinishGpe 1993 AcpiSetupGpeForWake 1994 AcpiSetGpeWakeMask 1995 One new file, evxfgpe.c to consolidate all external GPE interfaces. 1996 1997See the ACPICA Programmer Reference for full details and programming 1998information. See the new section 4.4 "General Purpose Event (GPE) Support" 1999for a full overview, and section 8.7 "ACPI General Purpose Event 2000Management" 2001for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 2002Bob Moore, Rafael Wysocki. 2003 2004Implemented a new GPE feature for Windows compatibility, the "Implicit 2005Wake 2006GPE Notify". This feature will automatically issue a Notify(2) on a device 2007when a Wake GPE is received if there is no corresponding GPE method or 2008handler. ACPICA BZ 870. 2009 2010Fixed a problem with the Scope() operator during table parse and load 2011phase. 2012During load phase (table load or method execution), the scope operator 2013should 2014not enter the target into the namespace. Instead, it should open a new 2015scope 2016at the target location. Linux BZ 19462, ACPICA BZ 882. 2017 2018Example Code and Data Size: These are the sizes for the OS-independent 2019acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2020debug version of the code includes the debug output trace mechanism and 2021has a 2022much larger code and data size. 2023 2024 Previous Release: 2025 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 2026 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 2027 Current Release: 2028 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2029 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2030 20312) iASL Compiler/Disassembler and Tools: 2032 2033iASL: Relax the alphanumeric restriction on _CID strings. These strings 2034are 2035"bus-specific" per the ACPI specification, and therefore any characters 2036are 2037acceptable. The only checks that can be performed are for a null string 2038and 2039perhaps for a leading asterisk. ACPICA BZ 886. 2040 2041iASL: Fixed a problem where a syntax error that caused a premature EOF 2042condition on the source file emitted a very confusing error message. The 2043premature EOF is now detected correctly. ACPICA BZ 891. 2044 2045Disassembler: Decode the AccessSize within a Generic Address Structure 2046(byte 2047access, word access, etc.) Note, this field does not allow arbitrary bit 2048access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 2049 2050New: AcpiNames utility - Example namespace dump utility. Shows an example 2051of 2052ACPICA configuration for a minimal namespace dump utility. Uses table and 2053namespace managers, but no AML interpreter. Does not add any functionality 2054over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 2055partition and configure ACPICA. ACPICA BZ 883. 2056 2057AML Debugger: Increased the debugger buffer size for method return 2058objects. 2059Was 4K, increased to 16K. Also enhanced error messages for debugger method 2060execution, including the buffer overflow case. 2061 2062---------------------------------------- 206313 October 2010. Summary of changes for version 20101013: 2064 20651) ACPI CA Core Subsystem: 2066 2067Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 2068now 2069clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 2070HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 2071 2072Changed the type of the predefined namespace object _TZ from ThermalZone 2073to 2074Device. This was found to be confusing to the host software that processes 2075the various thermal zones, since _TZ is not really a ThermalZone. However, 2076a 2077Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 2078Zhang. 2079 2080Added Windows Vista SP2 to the list of supported _OSI strings. The actual 2081string is "Windows 2006 SP2". 2082 2083Eliminated duplicate code in AcpiUtExecute* functions. Now that the 2084nsrepair 2085code automatically repairs _HID-related strings, this type of code is no 2086longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 2087 2088Example Code and Data Size: These are the sizes for the OS-independent 2089acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2090debug version of the code includes the debug output trace mechanism and 2091has a 2092much larger code and data size. 2093 2094 Previous Release: 2095 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2096 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2097 Current Release: 2098 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2099 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2100 21012) iASL Compiler/Disassembler and Tools: 2102 2103iASL: Implemented additional compile-time validation for _HID strings. The 2104non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length 2105of 2106the string must be exactly seven or eight characters. For both _HID and 2107_CID 2108strings, all characters must be alphanumeric. ACPICA BZ 874. 2109 2110iASL: Allow certain "null" resource descriptors. Some BIOS code creates 2111descriptors that are mostly or all zeros, with the expectation that they 2112will 2113be filled in at runtime. iASL now allows this as long as there is a 2114"resource 2115tag" (name) associated with the descriptor, which gives the ASL a handle 2116needed to modify the descriptor. ACPICA BZ 873. 2117 2118Added single-thread support to the generic Unix application OSL. Primarily 2119for iASL support, this change removes the use of semaphores in the single- 2120threaded ACPICA tools/applications - increasing performance. The 2121_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 2122option. ACPICA BZ 879. 2123 2124AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 2125support 2126for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 2127 2128iASL: Moved all compiler messages to a new file, aslmessages.h. 2129 2130---------------------------------------- 213115 September 2010. Summary of changes for version 20100915: 2132 21331) ACPI CA Core Subsystem: 2134 2135Removed the AcpiOsDerivePciId OSL interface. The various host 2136implementations 2137of this function were not OS-dependent and are now obsolete and can be 2138removed from all host OSLs. This function has been replaced by 2139AcpiHwDerivePciId, which is now part of the ACPICA core code. 2140AcpiHwDerivePciId has been implemented without recursion. Adds one new 2141module, hwpci.c. ACPICA BZ 857. 2142 2143Implemented a dynamic repair for _HID and _CID strings. The following 2144problems are now repaired at runtime: 1) Remove a leading asterisk in the 2145string, and 2) the entire string is uppercased. Both repairs are in 2146accordance with the ACPI specification and will simplify host driver code. 2147ACPICA BZ 871. 2148 2149The ACPI_THREAD_ID type is no longer configurable, internally it is now 2150always UINT64. This simplifies the ACPICA code, especially any printf 2151output. 2152UINT64 is the only common data type for all thread_id types across all 2153operating systems. It is now up to the host OSL to cast the native 2154thread_id 2155type to UINT64 before returning the value to ACPICA (via 2156AcpiOsGetThreadId). 2157Lin Ming, Bob Moore. 2158 2159Added the ACPI_INLINE type to enhance the ACPICA configuration. The 2160"inline" 2161keyword is not standard across compilers, and this type allows inline to 2162be 2163configured on a per-compiler basis. Lin Ming. 2164 2165Made the system global AcpiGbl_SystemAwakeAndRunning publically available. 2166Added an extern for this boolean in acpixf.h. Some hosts utilize this 2167value 2168during suspend/restore operations. ACPICA BZ 869. 2169 2170All code that implements error/warning messages with the "ACPI:" prefix 2171has 2172been moved to a new module, utxferror.c. 2173 2174The UINT64_OVERLAY was moved to utmath.c, which is the only module where 2175it 2176is used. ACPICA BZ 829. Lin Ming, Bob Moore. 2177 2178Example Code and Data Size: These are the sizes for the OS-independent 2179acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2180debug version of the code includes the debug output trace mechanism and 2181has a 2182much larger code and data size. 2183 2184 Previous Release: 2185 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 2186 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 2187 Current Release: 2188 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2189 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2190 21912) iASL Compiler/Disassembler and Tools: 2192 2193iASL/Disassembler: Write ACPI errors to stderr instead of the output file. 2194This keeps the output files free of random error messages that may 2195originate 2196from within the namespace/interpreter code. Used this opportunity to merge 2197all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 2198866. Lin Ming, Bob Moore. 2199 2200Tools: update some printfs for ansi warnings on size_t. Handle width 2201change 2202of size_t on 32-bit versus 64-bit generations. Lin Ming. 2203 2204---------------------------------------- 220506 August 2010. Summary of changes for version 20100806: 2206 22071) ACPI CA Core Subsystem: 2208 2209Designed and implemented a new host interface to the _OSI support code. 2210This 2211will allow the host to dynamically add or remove multiple _OSI strings, as 2212well as install an optional handler that is called for each _OSI 2213invocation. 2214Also added a new AML debugger command, 'osi' to display and modify the 2215global 2216_OSI string table, and test support in the AcpiExec utility. See the 2217ACPICA 2218reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 2219New Functions: 2220 AcpiInstallInterface - Add an _OSI string. 2221 AcpiRemoveInterface - Delete an _OSI string. 2222 AcpiInstallInterfaceHandler - Install optional _OSI handler. 2223Obsolete Functions: 2224 AcpiOsValidateInterface - no longer used. 2225New Files: 2226 source/components/utilities/utosi.c 2227 2228Re-introduced the support to enable multi-byte transfers for Embedded 2229Controller (EC) operation regions. A reported problem was found to be a 2230bug 2231in the host OS, not in the multi-byte support. Previously, the maximum 2232data 2233size passed to the EC operation region handler was a single byte. There 2234are 2235often EC Fields larger than one byte that need to be transferred, and it 2236is 2237useful for the EC driver to lock these as a single transaction. This 2238change 2239enables single transfers larger than 8 bits. This effectively changes the 2240access to the EC space from ByteAcc to AnyAcc, and will probably require 2241changes to the host OS Embedded Controller driver to enable 16/32/64/256- 2242bit 2243transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 2244 2245Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 2246prototype in acpiosxf.h had the output value pointer as a (void *). 2247It should be a (UINT64 *). This may affect some host OSL code. 2248 2249Fixed a couple problems with the recently modified Linux makefiles for 2250iASL 2251and AcpiExec. These new makefiles place the generated object files in the 2252local directory so that there can be no collisions between the files that 2253are 2254shared between them that are compiled with different options. 2255 2256Example Code and Data Size: These are the sizes for the OS-independent 2257acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2258debug version of the code includes the debug output trace mechanism and 2259has a 2260much larger code and data size. 2261 2262 Previous Release: 2263 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2264 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 2265 Current Release: 2266 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 2267 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 2268 22692) iASL Compiler/Disassembler and Tools: 2270 2271iASL/Disassembler: Added a new option (-da, "disassemble all") to load the 2272namespace from and disassemble an entire group of AML files. Useful for 2273loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 2274and 2275disassembling with one simple command. ACPICA BZ 865. Lin Ming. 2276 2277iASL: Allow multiple invocations of -e option. This change allows multiple 2278uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 2279834. 2280Lin Ming. 2281 2282---------------------------------------- 228302 July 2010. Summary of changes for version 20100702: 2284 22851) ACPI CA Core Subsystem: 2286 2287Implemented several updates to the recently added GPE reference count 2288support. The model for "wake" GPEs is changing to give the host OS 2289complete 2290control of these GPEs. Eventually, the ACPICA core will not execute any 2291_PRW 2292methods, since the host already must execute them. Also, additional 2293changes 2294were made to help ensure that the reference counts are kept in proper 2295synchronization with reality. Rafael J. Wysocki. 2296 22971) Ensure that GPEs are not enabled twice during initialization. 22982) Ensure that GPE enable masks stay in sync with the reference count. 22993) Do not inadvertently enable GPEs when writing GPE registers. 23004) Remove the internal wake reference counter and add new AcpiGpeWakeup 2301interface. This interface will set or clear individual GPEs for wakeup. 23025) Remove GpeType argument from AcpiEnable and AcpiDisable. These 2303interfaces 2304are now used for "runtime" GPEs only. 2305 2306Changed the behavior of the GPE install/remove handler interfaces. The GPE 2307is 2308no longer disabled during this process, as it was found to cause problems 2309on 2310some machines. Rafael J. Wysocki. 2311 2312Reverted a change introduced in version 20100528 to enable Embedded 2313Controller multi-byte transfers. This change was found to cause problems 2314with 2315Index Fields and possibly Bank Fields. It will be reintroduced when these 2316problems have been resolved. 2317 2318Fixed a problem with references to Alias objects within Package Objects. A 2319reference to an Alias within the definition of a Package was not always 2320resolved properly. Aliases to objects like Processors, Thermal zones, etc. 2321were resolved to the actual object instead of a reference to the object as 2322it 2323should be. Package objects are only allowed to contain integer, string, 2324buffer, package, and reference objects. Redhat bugzilla 608648. 2325 2326Example Code and Data Size: These are the sizes for the OS-independent 2327acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2328debug version of the code includes the debug output trace mechanism and 2329has a 2330much larger code and data size. 2331 2332 Previous Release: 2333 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2334 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 2335 Current Release: 2336 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2337 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 2338 23392) iASL Compiler/Disassembler and Tools: 2340 2341iASL: Implemented a new compiler subsystem to allow definition and 2342compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 2343These 2344are called "ACPI Data Tables", and the new compiler is the "Data Table 2345Compiler". This compiler is intended to simplify the existing error-prone 2346process of creating these tables for the BIOS, as well as allowing the 2347disassembly, modification, recompilation, and override of existing ACPI 2348data 2349tables. See the iASL User Guide for detailed information. 2350 2351iASL: Implemented a new Template Generator option in support of the new 2352Data 2353Table Compiler. This option will create examples of all known ACPI tables 2354that can be used as the basis for table development. See the iASL 2355documentation and the -T option. 2356 2357Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 2358Descriptor Table). 2359 2360Updated the Linux makefiles for iASL and AcpiExec to place the generated 2361object files in the local directory so that there can be no collisions 2362between the shared files between them that are generated with different 2363options. 2364 2365Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 2366the #define __APPLE__ to enable this support. 2367 2368---------------------------------------- 236928 May 2010. Summary of changes for version 20100528: 2370 2371Note: The ACPI 4.0a specification was released on April 5, 2010 and is 2372available at www.acpi.info. This is primarily an errata release. 2373 23741) ACPI CA Core Subsystem: 2375 2376Undefined ACPI tables: We are looking for the definitions for the 2377following 2378ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 2379 2380Implemented support to enable multi-byte transfers for Embedded Controller 2381(EC) operation regions. Previously, the maximum data size passed to the EC 2382operation region handler was a single byte. There are often EC Fields 2383larger 2384than one byte that need to be transferred, and it is useful for the EC 2385driver 2386to lock these as a single transaction. This change enables single 2387transfers 2388larger than 8 bits. This effectively changes the access to the EC space 2389from 2390ByteAcc to AnyAcc, and will probably require changes to the host OS 2391Embedded 2392Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 2393bit 2394transfers. Alexey Starikovskiy, Lin Ming 2395 2396Implemented a performance enhancement for namespace search and access. 2397This 2398change enhances the performance of namespace searches and walks by adding 2399a 2400backpointer to the parent in each namespace node. On large namespaces, 2401this 2402change can improve overall ACPI performance by up to 9X. Adding a pointer 2403to 2404each namespace node increases the overall size of the internal namespace 2405by 2406about 5%, since each namespace entry usually consists of both a namespace 2407node and an ACPI operand object. However, this is the first growth of the 2408namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 2409 2410Implemented a performance optimization that reduces the number of 2411namespace 2412walks. On control method exit, only walk the namespace if the method is 2413known 2414to have created namespace objects outside of its local scope. Previously, 2415the 2416entire namespace was traversed on each control method exit. This change 2417can 2418improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 2419Moore. 2420 2421Added support to truncate I/O addresses to 16 bits for Windows 2422compatibility. 2423Some ASL code has been seen in the field that inadvertently has bits set 2424above bit 15. This feature is optional and is enabled if the BIOS requests 2425any Windows OSI strings. It can also be enabled by the host OS. Matthew 2426Garrett, Bob Moore. 2427 2428Added support to limit the maximum time for the ASL Sleep() operator. To 2429prevent accidental deep sleeps, limit the maximum time that Sleep() will 2430actually sleep. Configurable, the default maximum is two seconds. ACPICA 2431bugzilla 854. 2432 2433Added run-time validation support for the _WDG and_WED Microsoft 2434predefined 2435methods. These objects are defined by "Windows Instrumentation", and are 2436not 2437part of the ACPI spec. ACPICA BZ 860. 2438 2439Expanded all statistic counters used during namespace and device 2440initialization from 16 to 32 bits in order to support very large 2441namespaces. 2442 2443Replaced all instances of %d in printf format specifiers with %u since 2444nearly 2445all integers in ACPICA are unsigned. 2446 2447Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 2448returned 2449as AE_NO_HANDLER. 2450 2451Example Code and Data Size: These are the sizes for the OS-independent 2452acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2453debug version of the code includes the debug output trace mechanism and 2454has a 2455much larger code and data size. 2456 2457 Previous Release: 2458 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 2459 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 2460 Current Release: 2461 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2462 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 2463 24642) iASL Compiler/Disassembler and Tools: 2465 2466iASL: Added compiler support for the _WDG and_WED Microsoft predefined 2467methods. These objects are defined by "Windows Instrumentation", and are 2468not 2469part of the ACPI spec. ACPICA BZ 860. 2470 2471AcpiExec: added option to disable the memory tracking mechanism. The -dt 2472option will disable the tracking mechanism, which improves performance 2473considerably. 2474 2475AcpiExec: Restructured the command line options into -d (disable) and -e 2476(enable) options. 2477 2478---------------------------------------- 247928 April 2010. Summary of changes for version 20100428: 2480 24811) ACPI CA Core Subsystem: 2482 2483Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 2484including FADT-based and GPE Block Devices, execute any _PRW methods in 2485the 2486new table, and process any _Lxx/_Exx GPE methods in the new table. Any 2487runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 2488immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 2489Devices. Provides compatibility with other ACPI implementations. Two new 2490files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 2491Moore. 2492 2493Fixed a regression introduced in version 20100331 within the table manager 2494where initial table loading could fail. This was introduced in the fix for 2495AcpiReallocateRootTable. Also, renamed some of fields in the table manager 2496data structures to clarify their meaning and use. 2497 2498Fixed a possible allocation overrun during internal object copy in 2499AcpiUtCopySimpleObject. The original code did not correctly handle the 2500case 2501where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 2502847. 2503 2504Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 2505possible access beyond end-of-allocation. Also, now fully validate 2506descriptor 2507(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 2508 2509Example Code and Data Size: These are the sizes for the OS-independent 2510acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2511debug version of the code includes the debug output trace mechanism and 2512has a 2513much larger code and data size. 2514 2515 Previous Release: 2516 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 2517 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 2518 Current Release: 2519 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 2520 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 2521 25222) iASL Compiler/Disassembler and Tools: 2523 2524iASL: Implemented Min/Max/Len/Gran validation for address resource 2525descriptors. This change implements validation for the address fields that 2526are common to all address-type resource descriptors. These checks are 2527implemented: Checks for valid Min/Max, length within the Min/Max window, 2528valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 2529table 6-40 in the ACPI 4.0a specification. Also split the large 2530aslrestype1.c 2531and aslrestype2.c files into five new files. ACPICA BZ 840. 2532 2533iASL: Added support for the _Wxx predefined names. This support was 2534missing 2535and these names were not recognized by the compiler as valid predefined 2536names. ACPICA BZ 851. 2537 2538iASL: Added an error for all predefined names that are defined to return 2539no 2540value and thus must be implemented as Control Methods. These include all 2541of 2542the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 2543names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 2544 2545iASL: Implemented the -ts option to emit hex AML data in ASL format, as an 2546ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 2547be 2548dynamically loaded via the Load() operator. Also cleaned up output for the 2549- 2550ta and -tc options. ACPICA BZ 853. 2551 2552Tests: Added a new file with examples of extended iASL error checking. 2553Demonstrates the advanced error checking ability of the iASL compiler. 2554Available at tests/misc/badcode.asl. 2555 2556---------------------------------------- 255731 March 2010. Summary of changes for version 20100331: 2558 25591) ACPI CA Core Subsystem: 2560 2561Completed a major update for the GPE support in order to improve support 2562for 2563shared GPEs and to simplify both host OS and ACPICA code. Added a 2564reference 2565count mechanism to support shared GPEs that require multiple device 2566drivers. 2567Several external interfaces have changed. One external interface has been 2568removed. One new external interface was added. Most of the GPE external 2569interfaces now use the GPE spinlock instead of the events mutex (and the 2570Flags parameter for many GPE interfaces has been removed.) See the updated 2571ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 2572Rafael 2573Wysocki. ACPICA BZ 831. 2574 2575Changed: 2576 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 2577Removed: 2578 AcpiSetGpeType 2579New: 2580 AcpiSetGpe 2581 2582Implemented write support for DataTable operation regions. These regions 2583are 2584defined via the DataTableRegion() operator. Previously, only read support 2585was 2586implemented. The ACPI specification allows DataTableRegions to be 2587read/write, 2588however. 2589 2590Implemented a new subsystem option to force a copy of the DSDT to local 2591memory. Optionally copy the entire DSDT to local memory (instead of simply 2592mapping it.) There are some (albeit very rare) BIOSs that corrupt or 2593replace 2594the original DSDT, creating the need for this option. Default is FALSE, do 2595not copy the DSDT. 2596 2597Implemented detection of a corrupted or replaced DSDT. This change adds 2598support to detect a DSDT that has been corrupted and/or replaced from 2599outside 2600the OS (by firmware). This is typically catastrophic for the system, but 2601has 2602been seen on some machines. Once this problem has been detected, the DSDT 2603copy option can be enabled via system configuration. Lin Ming, Bob Moore. 2604 2605Fixed two problems with AcpiReallocateRootTable during the root table 2606copy. 2607When copying the root table to the new allocation, the length used was 2608incorrect. The new size was used instead of the current table size, 2609meaning 2610too much data was copied. Also, the count of available slots for ACPI 2611tables 2612was not set correctly. Alexey Starikovskiy, Bob Moore. 2613 2614Example Code and Data Size: These are the sizes for the OS-independent 2615acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2616debug version of the code includes the debug output trace mechanism and 2617has a 2618much larger code and data size. 2619 2620 Previous Release: 2621 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 2622 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 2623 Current Release: 2624 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 2625 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 2626 26272) iASL Compiler/Disassembler and Tools: 2628 2629iASL: Implement limited typechecking for values returned from predefined 2630control methods. The type of any returned static (unnamed) object is now 2631validated. For example, Return(1). ACPICA BZ 786. 2632 2633iASL: Fixed a predefined name object verification regression. Fixes a 2634problem 2635introduced in version 20100304. An error is incorrectly generated if a 2636predefined name is declared as a static named object with a value defined 2637using the keywords "Zero", "One", or "Ones". Lin Ming. 2638 2639iASL: Added Windows 7 support for the -g option (get local ACPI tables) by 2640reducing the requested registry access rights. ACPICA BZ 842. 2641 2642Disassembler: fixed a possible fault when generating External() 2643statements. 2644Introduced in commit ae7d6fd: Properly handle externals with parent-prefix 2645(carat). Fixes a string length allocation calculation. Lin Ming. 2646 2647---------------------------------------- 264804 March 2010. Summary of changes for version 20100304: 2649 26501) ACPI CA Core Subsystem: 2651 2652Fixed a possible problem with the AML Mutex handling function 2653AcpiExReleaseMutex where the function could fault under the very rare 2654condition when the interpreter has blocked, the interpreter lock is 2655released, 2656the interpreter is then reentered via the same thread, and attempts to 2657acquire an AML mutex that was previously acquired. FreeBSD report 140979. 2658Lin 2659Ming. 2660 2661Implemented additional configuration support for the AML "Debug Object". 2662Output from the debug object can now be enabled via a global variable, 2663AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 2664debugging. 2665This debug output is now available in the release version of ACPICA 2666instead 2667of just the debug version. Also, the entire debug output module can now be 2668configured out of the ACPICA build if desired. One new file added, 2669executer/exdebug.c. Lin Ming, Bob Moore. 2670 2671Added header support for the ACPI MCHI table (Management Controller Host 2672Interface Table). This table was added in ACPI 4.0, but the defining 2673document 2674has only recently become available. 2675 2676Standardized output of integer values for ACPICA warnings/errors. Always 2677use 26780x prefix for hex output, always use %u for unsigned integer decimal 2679output. 2680Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 2681invocations.) These invocations were converted from the original 2682ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 2683 2684Example Code and Data Size: These are the sizes for the OS-independent 2685acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2686debug version of the code includes the debug output trace mechanism and 2687has a 2688much larger code and data size. 2689 2690 Previous Release: 2691 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 2692 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 2693 Current Release: 2694 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 2695 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 2696 26972) iASL Compiler/Disassembler and Tools: 2698 2699iASL: Implemented typechecking support for static (non-control method) 2700predefined named objects that are declared with the Name() operator. For 2701example, the type of this object is now validated to be of type Integer: 2702Name(_BBN, 1). This change migrates the compiler to using the core 2703predefined 2704name table instead of maintaining a local version. Added a new file, 2705aslpredef.c. ACPICA BZ 832. 2706 2707Disassembler: Added support for the ACPI 4.0 MCHI table. 2708 2709---------------------------------------- 271021 January 2010. Summary of changes for version 20100121: 2711 27121) ACPI CA Core Subsystem: 2713 2714Added the 2010 copyright to all module headers and signons. This affects 2715virtually every file in the ACPICA core subsystem, the iASL compiler, the 2716tools/utilities, and the test suites. 2717 2718Implemented a change to the AcpiGetDevices interface to eliminate 2719unnecessary 2720invocations of the _STA method. In the case where a specific _HID is 2721requested, do not run _STA until a _HID match is found. This eliminates 2722potentially dozens of _STA calls during a search for a particular 2723device/HID, 2724which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 2725 2726Implemented an additional repair for predefined method return values. 2727Attempt 2728to repair unexpected NULL elements within returned Package objects. Create 2729an 2730Integer of value zero, a NULL String, or a zero-length Buffer as 2731appropriate. 2732ACPICA BZ 818. Lin Ming, Bob Moore. 2733 2734Removed the obsolete ACPI_INTEGER data type. This type was introduced as 2735the 2736code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 2737(with 273864-bit AML integers). It is now obsolete and this change removes it from 2739the 2740ACPICA code base, replaced by UINT64. The original typedef has been 2741retained 2742for now for compatibility with existing device driver code. ACPICA BZ 824. 2743 2744Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 2745the parse tree object. 2746 2747Added additional warning options for the gcc-4 generation. Updated the 2748source 2749accordingly. This includes some code restructuring to eliminate 2750unreachable 2751code, elimination of some gotos, elimination of unused return values, some 2752additional casting, and removal of redundant declarations. 2753 2754Example Code and Data Size: These are the sizes for the OS-independent 2755acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2756debug version of the code includes the debug output trace mechanism and 2757has a 2758much larger code and data size. 2759 2760 Previous Release: 2761 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 2762 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 2763 Current Release: 2764 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 2765 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 2766 27672) iASL Compiler/Disassembler and Tools: 2768 2769No functional changes for this release. 2770 2771---------------------------------------- 277214 December 2009. Summary of changes for version 20091214: 2773 27741) ACPI CA Core Subsystem: 2775 2776Enhanced automatic data type conversions for predefined name repairs. This 2777change expands the automatic repairs/conversions for predefined name 2778return 2779values to make Integers, Strings, and Buffers fully interchangeable. Also, 2780a 2781Buffer can be converted to a Package of Integers if necessary. The 2782nsrepair.c 2783module was completely restructured. Lin Ming, Bob Moore. 2784 2785Implemented automatic removal of null package elements during predefined 2786name 2787repairs. This change will automatically remove embedded and trailing NULL 2788package elements from returned package objects that are defined to contain 2789a 2790variable number of sub-packages. The driver is then presented with a 2791package 2792with no null elements to deal with. ACPICA BZ 819. 2793 2794Implemented a repair for the predefined _FDE and _GTM names. The expected 2795return value for both names is a Buffer of 5 DWORDs. This repair fixes two 2796possible problems (both seen in the field), where a package of integers is 2797returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 2798Kim. 2799 2800Implemented additional module-level code support. This change will 2801properly 2802execute module-level code that is not at the root of the namespace (under 2803a 2804Device object, etc.). Now executes the code within the current scope 2805instead 2806of the root. ACPICA BZ 762. Lin Ming. 2807 2808Fixed possible mutex acquisition errors when running _REG methods. Fixes a 2809problem where mutex errors can occur when running a _REG method that is in 2810the same scope as a method-defined operation region or an operation region 2811under a module-level IF block. This type of code is rare, so the problem 2812has 2813not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 2814 2815Fixed a possible memory leak during module-level code execution. An object 2816could be leaked for each block of executed module-level code if the 2817interpreter slack mode is enabled This change deletes any implicitly 2818returned 2819object from the module-level code block. Lin Ming. 2820 2821Removed messages for successful predefined repair(s). The repair mechanism 2822was considered too wordy. Now, messages are only unconditionally emitted 2823if 2824the return object cannot be repaired. Existing messages for successful 2825repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 2826827. 2827 2828Example Code and Data Size: These are the sizes for the OS-independent 2829acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2830debug version of the code includes the debug output trace mechanism and 2831has a 2832much larger code and data size. 2833 2834 Previous Release: 2835 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 2836 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 2837 Current Release: 2838 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 2839 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 2840 28412) iASL Compiler/Disassembler and Tools: 2842 2843iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 2844files 2845were no longer automatically removed at the termination of the compile. 2846 2847acpiexec: Implemented the -f option to specify default region fill value. 2848This option specifies the value used to initialize buffers that simulate 2849operation regions. Default value is zero. Useful for debugging problems 2850that 2851depend on a specific initial value for a region or field. 2852 2853---------------------------------------- 285412 November 2009. Summary of changes for version 20091112: 2855 28561) ACPI CA Core Subsystem: 2857 2858Implemented a post-order callback to AcpiWalkNamespace. The existing 2859interface only has a pre-order callback. This change adds an additional 2860parameter for a post-order callback which will be more useful for bus 2861scans. 2862ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 2863 2864Modified the behavior of the operation region memory mapping cache for 2865SystemMemory. Ensure that the memory mappings created for operation 2866regions 2867do not cross 4K page boundaries. Crossing a page boundary while mapping 2868regions can cause kernel warnings on some hosts if the pages have 2869different 2870attributes. Such regions are probably BIOS bugs, and this is the 2871workaround. 2872Linux BZ 14445. Lin Ming. 2873 2874Implemented an automatic repair for predefined methods that must return 2875sorted lists. This change will repair (by sorting) packages returned by 2876_ALR, 2877_PSS, and _TSS. Drivers can now assume that the packages are correctly 2878sorted 2879and do not contain NULL package elements. Adds one new file, 2880namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 2881 2882Fixed a possible fault during predefined name validation if a return 2883Package 2884object contains NULL elements. Also adds a warning if a NULL element is 2885followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 2886may 2887include repair or removal of all such NULL elements where possible. 2888 2889Implemented additional module-level executable AML code support. This 2890change 2891will execute module-level code that is not at the root of the namespace 2892(under a Device object, etc.) at table load time. Module-level executable 2893AML 2894code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 2895 2896Implemented a new internal function to create Integer objects. This 2897function 2898simplifies miscellaneous object creation code. ACPICA BZ 823. 2899 2900Reduced the severity of predefined repair messages, Warning to Info. Since 2901the object was successfully repaired, a warning is too severe. Reduced to 2902an 2903info message for now. These messages may eventually be changed to debug- 2904only. 2905ACPICA BZ 812. 2906 2907Example Code and Data Size: These are the sizes for the OS-independent 2908acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2909debug version of the code includes the debug output trace mechanism and 2910has a 2911much larger code and data size. 2912 2913 Previous Release: 2914 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 2915 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 2916 Current Release: 2917 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 2918 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 2919 29202) iASL Compiler/Disassembler and Tools: 2921 2922iASL: Implemented Switch() with While(1) so that Break works correctly. 2923This 2924change correctly implements the Switch operator with a surrounding 2925While(1) 2926so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 2927 2928iASL: Added a message if a package initializer list is shorter than 2929package 2930length. Adds a new remark for a Package() declaration if an initializer 2931list 2932exists, but is shorter than the declared length of the package. Although 2933technically legal, this is probably a coding error and it is seen in the 2934field. ACPICA BZ 815. Lin Ming, Bob Moore. 2935 2936iASL: Fixed a problem where the compiler could fault after the maximum 2937number 2938of errors was reached (200). 2939 2940acpixtract: Fixed a possible warning for pointer cast if the compiler 2941warning 2942level set very high. 2943 2944---------------------------------------- 294513 October 2009. Summary of changes for version 20091013: 2946 29471) ACPI CA Core Subsystem: 2948 2949Fixed a problem where an Operation Region _REG method could be executed 2950more 2951than once. If a custom address space handler is installed by the host 2952before 2953the "initialize operation regions" phase of the ACPICA initialization, any 2954_REG methods for that address space could be executed twice. This change 2955fixes the problem. ACPICA BZ 427. Lin Ming. 2956 2957Fixed a possible memory leak for the Scope() ASL operator. When the exact 2958invocation of "Scope(\)" is executed (change scope to root), one internal 2959operand object was leaked. Lin Ming. 2960 2961Implemented a run-time repair for the _MAT predefined method. If the _MAT 2962return value is defined as a Field object in the AML, and the field 2963size is less than or equal to the default width of an integer (32 or 296464),_MAT 2965can incorrectly return an Integer instead of a Buffer. ACPICA now 2966automatically repairs this problem. ACPICA BZ 810. 2967 2968Implemented a run-time repair for the _BIF and _BIX predefined methods. 2969The 2970"OEM Information" field is often incorrectly returned as an Integer with 2971value zero if the field is not supported by the platform. This is due to 2972an 2973ambiguity in the ACPI specification. The field should always be a string. 2974ACPICA now automatically repairs this problem by returning a NULL string 2975within the returned Package. ACPICA BZ 807. 2976 2977Example Code and Data Size: These are the sizes for the OS-independent 2978acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2979debug version of the code includes the debug output trace mechanism and 2980has a 2981much larger code and data size. 2982 2983 Previous Release: 2984 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 2985 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 2986 Current Release: 2987 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 2988 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 2989 29902) iASL Compiler/Disassembler and Tools: 2991 2992Disassembler: Fixed a problem where references to external symbols that 2993contained one or more parent-prefixes (carats) were not handled correctly, 2994possibly causing a fault. ACPICA BZ 806. Lin Ming. 2995 2996Disassembler: Restructured the code so that all functions that handle 2997external symbols are in a single module. One new file is added, 2998common/dmextern.c. 2999 3000AML Debugger: Added a max count argument for the Batch command (which 3001executes multiple predefined methods within the namespace.) 3002 3003iASL: Updated the compiler documentation (User Reference.) Available at 3004http://www.acpica.org/documentation/. ACPICA BZ 750. 3005 3006AcpiXtract: Updated for Lint and other formatting changes. Close all open 3007files. 3008 3009---------------------------------------- 301003 September 2009. Summary of changes for version 20090903: 3011 30121) ACPI CA Core Subsystem: 3013 3014For Windows Vista compatibility, added the automatic execution of an _INI 3015method located at the namespace root (\_INI). This method is executed at 3016table load time. This support is in addition to the automatic execution of 3017\_SB._INI. Lin Ming. 3018 3019Fixed a possible memory leak in the interpreter for AML package objects if 3020the package initializer list is longer than the defined size of the 3021package. 3022This apparently can only happen if the BIOS changes the package size on 3023the 3024fly (seen in a _PSS object), as ASL compilers do not allow this. The 3025interpreter will truncate the package to the defined size (and issue an 3026error 3027message), but previously could leave the extra objects undeleted if they 3028were 3029pre-created during the argument processing (such is the case if the 3030package 3031consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 3032 3033Fixed a problem seen when a Buffer or String is stored to itself via ASL. 3034This has been reported in the field. Previously, ACPICA would zero out the 3035buffer/string. Now, the operation is treated as a noop. Provides Windows 3036compatibility. ACPICA BZ 803. Lin Ming. 3037 3038Removed an extraneous error message for ASL constructs of the form 3039Store(LocalX,LocalX) when LocalX is uninitialized. These curious 3040statements 3041are seen in many BIOSs and are once again treated as NOOPs and no error is 3042emitted when they are encountered. ACPICA BZ 785. 3043 3044Fixed an extraneous warning message if a _DSM reserved method returns a 3045Package object. _DSM can return any type of object, so validation on the 3046return type cannot be performed. ACPICA BZ 802. 3047 3048Example Code and Data Size: These are the sizes for the OS-independent 3049acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3050debug version of the code includes the debug output trace mechanism and 3051has a 3052much larger code and data size. 3053 3054 Previous Release: 3055 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 3056 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 3057 Current Release: 3058 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 3059 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 3060 30612) iASL Compiler/Disassembler and Tools: 3062 3063iASL: Fixed a problem with the use of the Alias operator and Resource 3064Templates. The correct alias is now constructed and no error is emitted. 3065ACPICA BZ 738. 3066 3067iASL: Implemented the -I option to specify additional search directories 3068for 3069include files. Allows multiple additional search paths for include files. 3070Directories are searched in the order specified on the command line (after 3071the local directory is searched.) ACPICA BZ 800. 3072 3073iASL: Fixed a problem where the full pathname for include files was not 3074emitted for warnings/errors. This caused the IDE support to not work 3075properly. ACPICA BZ 765. 3076 3077iASL: Implemented the -@ option to specify a Windows-style response file 3078containing additional command line options. ACPICA BZ 801. 3079 3080AcpiExec: Added support to load multiple AML files simultaneously (such as 3081a 3082DSDT and multiple SSDTs). Also added support for wildcards within the AML 3083pathname. These features allow all machine tables to be easily loaded and 3084debugged together. ACPICA BZ 804. 3085 3086Disassembler: Added missing support for disassembly of HEST table Error 3087Bank 3088subtables. 3089 3090---------------------------------------- 309130 July 2009. Summary of changes for version 20090730: 3092 3093The ACPI 4.0 implementation for ACPICA is complete with this release. 3094 30951) ACPI CA Core Subsystem: 3096 3097ACPI 4.0: Added header file support for all new and changed ACPI tables. 3098Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 3099for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 3100BERT, 3101EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 3102There 3103have been some ACPI 4.0 changes to other existing tables. Split the large 3104actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 3105 3106ACPI 4.0: Implemented predefined name validation for all new names. There 3107are 310831 new names in ACPI 4.0. The predefined validation module was split into 3109two 3110files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 3111 3112Implemented support for so-called "module-level executable code". This is 3113executable AML code that exists outside of any control method and is 3114intended 3115to be executed at table load time. Although illegal since ACPI 2.0, this 3116type 3117of code still exists and is apparently still being created. Blocks of this 3118code are now detected and executed as intended. Currently, the code blocks 3119must exist under either an If, Else, or While construct; these are the 3120typical cases seen in the field. ACPICA BZ 762. Lin Ming. 3121 3122Implemented an automatic dynamic repair for predefined names that return 3123nested Package objects. This applies to predefined names that are defined 3124to 3125return a variable-length Package of sub-packages. If the number of sub- 3126packages is one, BIOS code is occasionally seen that creates a simple 3127single 3128package with no sub-packages. This code attempts to fix the problem by 3129wrapping a new package object around the existing package. These methods 3130can 3131be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 3132790. 3133 3134Fixed a regression introduced in 20090625 for the AcpiGetDevices 3135interface. 3136The _HID/_CID matching was broken and no longer matched IDs correctly. 3137ACPICA 3138BZ 793. 3139 3140Fixed a problem with AcpiReset where the reset would silently fail if the 3141register was one of the protected I/O ports. AcpiReset now bypasses the 3142port 3143validation mechanism. This may eventually be driven into the 3144AcpiRead/Write 3145interfaces. 3146 3147Fixed a regression related to the recent update of the AcpiRead/Write 3148interfaces. A sleep/suspend could fail if the optional PM2 Control 3149register 3150does not exist during an attempt to write the Bus Master Arbitration bit. 3151(However, some hosts already delete the code that writes this bit, and the 3152code may in fact be obsolete at this date.) ACPICA BZ 799. 3153 3154Fixed a problem where AcpiTerminate could fault if inadvertently called 3155twice 3156in succession. ACPICA BZ 795. 3157 3158Example Code and Data Size: These are the sizes for the OS-independent 3159acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3160debug version of the code includes the debug output trace mechanism and 3161has a 3162much larger code and data size. 3163 3164 Previous Release: 3165 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 3166 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 3167 Current Release: 3168 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 3169 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 3170 31712) iASL Compiler/Disassembler and Tools: 3172 3173ACPI 4.0: Implemented disassembler support for all new ACPI tables and 3174changes to existing tables. ACPICA BZ 775. 3175 3176---------------------------------------- 317725 June 2009. Summary of changes for version 20090625: 3178 3179The ACPI 4.0 Specification was released on June 16 and is available at 3180www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 3181continue for the next few releases. 3182 31831) ACPI CA Core Subsystem: 3184 3185ACPI 4.0: Implemented interpreter support for the IPMI operation region 3186address space. Includes support for bi-directional data buffers and an 3187IPMI 3188address space handler (to be installed by an IPMI device driver.) ACPICA 3189BZ 3190773. Lin Ming. 3191 3192ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 3193support in both the header files and the disassembler. 3194 3195Completed a major update for the AcpiGetObjectInfo external interface. 3196Changes include: 3197 - Support for variable, unlimited length HID, UID, and CID strings. 3198 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 3199etc.) 3200 - Call the _SxW power methods on behalf of a device object. 3201 - Determine if a device is a PCI root bridge. 3202 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 3203These changes will require an update to all callers of this interface. See 3204the updated ACPICA Programmer Reference for details. One new source file 3205has 3206been added - utilities/utids.c. ACPICA BZ 368, 780. 3207 3208Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 3209transfers. The Value parameter has been extended from 32 bits to 64 bits 3210in 3211order to support new ACPI 4.0 tables. These changes will require an update 3212to 3213all callers of these interfaces. See the ACPICA Programmer Reference for 3214details. ACPICA BZ 768. 3215 3216Fixed several problems with AcpiAttachData. The handler was not invoked 3217when 3218the host node was deleted. The data sub-object was not automatically 3219deleted 3220when the host node was deleted. The interface to the handler had an unused 3221parameter, this was removed. ACPICA BZ 778. 3222 3223Enhanced the function that dumps ACPI table headers. All non-printable 3224characters in the string fields are now replaced with '?' (Signature, 3225OemId, 3226OemTableId, and CompilerId.) ACPI tables with non-printable characters in 3227these fields are occasionally seen in the field. ACPICA BZ 788. 3228 3229Fixed a problem with predefined method repair code where the code that 3230attempts to repair/convert an object of incorrect type is only executed on 3231the first time the predefined method is called. The mechanism that 3232disables 3233warnings on subsequent calls was interfering with the repair mechanism. 3234ACPICA BZ 781. 3235 3236Fixed a possible memory leak in the predefined validation/repair code when 3237a 3238buffer is automatically converted to an expected string object. 3239 3240Removed obsolete 16-bit files from the distribution and from the current 3241git 3242tree head. ACPICA BZ 776. 3243 3244Example Code and Data Size: These are the sizes for the OS-independent 3245acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3246debug version of the code includes the debug output trace mechanism and 3247has a 3248much larger code and data size. 3249 3250 Previous Release: 3251 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 3252 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 3253 Current Release: 3254 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 3255 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 3256 32572) iASL Compiler/Disassembler and Tools: 3258 3259ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 3260operation region keyword. ACPICA BZ 771, 772. Lin Ming. 3261 3262ACPI 4.0: iASL - implemented compile-time validation support for all new 3263predefined names and control methods (31 total). ACPICA BZ 769. 3264 3265---------------------------------------- 326621 May 2009. Summary of changes for version 20090521: 3267 32681) ACPI CA Core Subsystem: 3269 3270Disabled the preservation of the SCI enable bit in the PM1 control 3271register. 3272The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to 3273be 3274a "preserved" bit - "OSPM always preserves this bit position", section 32754.7.3.2.1. However, some machines fail if this bit is in fact preserved 3276because the bit needs to be explicitly set by the OS as a workaround. No 3277machines fail if the bit is not preserved. Therefore, ACPICA no longer 3278attempts to preserve this bit. 3279 3280Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 3281incorrectly formed _PRT package could cause a fault. Added validation to 3282ensure that each package element is actually a sub-package. 3283 3284Implemented a new interface to install or override a single control 3285method, 3286AcpiInstallMethod. This interface is useful when debugging in order to 3287repair 3288an existing method or to install a missing method without having to 3289override 3290the entire ACPI table. See the ACPICA Programmer Reference for use and 3291examples. Lin Ming, Bob Moore. 3292 3293Fixed several reference count issues with the DdbHandle object that is 3294created from a Load or LoadTable operator. Prevent premature deletion of 3295the 3296object. Also, mark the object as invalid once the table has been unloaded. 3297This is needed because the handle itself may not be deleted after the 3298table 3299unload, depending on whether it has been stored in a named object by the 3300caller. Lin Ming. 3301 3302Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 3303mutexes of the same sync level are acquired but then not released in 3304strict 3305opposite order, the internally maintained Current Sync Level becomes 3306confused 3307and can cause subsequent execution errors. ACPICA BZ 471. 3308 3309Changed the allowable release order for ASL mutex objects. The ACPI 4.0 3310specification has been changed to make the SyncLevel for mutex objects 3311more 3312useful. When releasing a mutex, the SyncLevel of the mutex must now be the 3313same as the current sync level. This makes more sense than the previous 3314rule 3315(SyncLevel less than or equal). This change updates the code to match the 3316specification. 3317 3318Fixed a problem with the local version of the AcpiOsPurgeCache function. 3319The 3320(local) cache must be locked during all cache object deletions. Andrew 3321Baumann. 3322 3323Updated the Load operator to use operation region interfaces. This 3324replaces 3325direct memory mapping with region access calls. Now, all region accesses 3326go 3327through the installed region handler as they should. 3328 3329Simplified and optimized the NsGetNextNode function. Reduced parameter 3330count 3331and reduced code for this frequently used function. 3332 3333Example Code and Data Size: These are the sizes for the OS-independent 3334acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3335debug version of the code includes the debug output trace mechanism and 3336has a 3337much larger code and data size. 3338 3339 Previous Release: 3340 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 3341 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 3342 Current Release: 3343 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 3344 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 3345 33462) iASL Compiler/Disassembler and Tools: 3347 3348Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 3349problems 3350with sub-table disassembly and handling invalid sub-tables. Attempt 3351recovery 3352after an invalid sub-table ID. 3353 3354---------------------------------------- 335522 April 2009. Summary of changes for version 20090422: 3356 33571) ACPI CA Core Subsystem: 3358 3359Fixed a compatibility issue with the recently released I/O port protection 3360mechanism. For windows compatibility, 1) On a port protection violation, 3361simply ignore the request and do not return an exception (allow the 3362control 3363method to continue execution.) 2) If only part of the request overlaps a 3364protected port, read/write the individual ports that are not protected. 3365Linux 3366BZ 13036. Lin Ming 3367 3368Enhanced the execution of the ASL/AML BreakPoint operator so that it 3369actually 3370breaks into the AML debugger if the debugger is present. This matches the 3371ACPI-defined behavior. 3372 3373Fixed several possible warnings related to the use of the configurable 3374ACPI_THREAD_ID. This type can now be configured as either an integer or a 3375pointer with no warnings. Also fixes several warnings in printf-like 3376statements for the 64-bit build when the type is configured as a pointer. 3377ACPICA BZ 766, 767. 3378 3379Fixed a number of possible warnings when compiling with gcc 4+ (depending 3380on 3381warning options.) Examples include printf formats, aliasing, unused 3382globals, 3383missing prototypes, missing switch default statements, use of non-ANSI 3384library functions, use of non-ANSI constructs. See generate/unix/Makefile 3385for 3386a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 3387 3388Example Code and Data Size: These are the sizes for the OS-independent 3389acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3390debug version of the code includes the debug output trace mechanism and 3391has a 3392much larger code and data size. 3393 3394 Previous Release: 3395 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 3396 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 3397 Current Release: 3398 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 3399 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 3400 34012) iASL Compiler/Disassembler and Tools: 3402 3403iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings 3404on 3405the 64-bit build. 3406 3407iASL: Fixed a problem where the Unix/Linux versions of the compiler could 3408not 3409correctly digest Windows/DOS formatted files (with CR/LF). 3410 3411iASL: Added a new option for "quiet mode" (-va) that produces only the 3412compilation summary, not individual errors and warnings. Useful for large 3413batch compilations. 3414 3415AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 3416timeout that can be used to detect hang conditions during execution of AML 3417code (includes both internal semaphores and AML-defined mutexes and 3418events.) 3419 3420Added new makefiles for the generation of acpica in a generic unix-like 3421environment. These makefiles are intended to generate the acpica tools and 3422utilities from the original acpica git source tree structure. 3423 3424Test Suites: Updated and cleaned up the documentation files. Updated the 3425copyrights to 2009, affecting all source files. Use the new version of 3426iASL 3427with quiet mode. Increased the number of available semaphores in the 3428Windows 3429OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 3430added 3431an alternate implementation of the semaphore timeout to allow aslts to 3432execute fully on Cygwin. 3433 3434---------------------------------------- 343520 March 2009. Summary of changes for version 20090320: 3436 34371) ACPI CA Core Subsystem: 3438 3439Fixed a possible race condition between AcpiWalkNamespace and dynamic 3440table 3441unloads. Added a reader/writer locking mechanism to allow multiple 3442concurrent 3443namespace walks (readers), but block a dynamic table unload until it can 3444gain 3445exclusive write access to the namespace. This fixes a problem where a 3446table 3447unload could (possibly catastrophically) delete the portion of the 3448namespace 3449that is currently being examined by a walk. Adds a new file, utlock.c, 3450that 3451implements the reader/writer lock mechanism. ACPICA BZ 749. 3452 3453Fixed a regression introduced in version 20090220 where a change to the 3454FADT 3455handling could cause the ACPICA subsystem to access non-existent I/O 3456ports. 3457 3458Modified the handling of FADT register and table (FACS/DSDT) addresses. 3459The 3460FADT can contain both 32-bit and 64-bit versions of these addresses. 3461Previously, the 64-bit versions were favored, meaning that if both 32 and 346264 3463versions were valid, but not equal, the 64-bit version was used. This was 3464found to cause some machines to fail. Now, in this case, the 32-bit 3465version 3466is used instead. This now matches the Windows behavior. 3467 3468Implemented a new mechanism to protect certain I/O ports. Provides 3469Microsoft 3470compatibility and protects the standard PC I/O ports from access via AML 3471code. Adds a new file, hwvalid.c 3472 3473Fixed a possible extraneous warning message from the FADT support. The 3474message warns of a 32/64 length mismatch between the legacy and GAS 3475definitions for a register. 3476 3477Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 3478is 3479made obsolete by the port protection mechanism above. It was previously 3480used 3481to validate the entire address range of an operation region, which could 3482be 3483incorrect if the range included illegal ports, but fields within the 3484operation region did not actually access those ports. Validation is now 3485performed on a per-field basis instead of the entire region. 3486 3487Modified the handling of the PM1 Status Register ignored bit (bit 11.) 3488Ignored bits must be "preserved" according to the ACPI spec. Usually, this 3489means a read/modify/write when writing to the register. However, for 3490status 3491registers, writing a one means clear the event. Writing a zero means 3492preserve 3493the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 3494and the ACPICA code now simply always writes a zero to the ignored bit. 3495 3496Modified the handling of ignored bits for the PM1 A/B Control Registers. 3497As 3498per the ACPI specification, for the control registers, preserve 3499(read/modify/write) all bits that are defined as either reserved or 3500ignored. 3501 3502Updated the handling of write-only bits in the PM1 A/B Control Registers. 3503When reading the register, zero the write-only bits as per the ACPI spec. 3504ACPICA BZ 443. Lin Ming. 3505 3506Removed "Linux" from the list of supported _OSI strings. Linux no longer 3507wants to reply true to this request. The Windows strings are the only 3508paths 3509through the AML that are tested and known to work properly. 3510 3511 Previous Release: 3512 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 3513 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 3514 Current Release: 3515 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 3516 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 3517 35182) iASL Compiler/Disassembler and Tools: 3519 3520Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 3521and 3522aetables.c 3523 3524---------------------------------------- 352520 February 2009. Summary of changes for version 20090220: 3526 35271) ACPI CA Core Subsystem: 3528 3529Optimized the ACPI register locking. Removed locking for reads from the 3530ACPI 3531bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 3532not required when reading the single-bit registers. The 3533AcpiGetRegisterUnlocked function is no longer needed and has been removed. 3534This will improve performance for reads on these registers. ACPICA BZ 760. 3535 3536Fixed the parameter validation for AcpiRead/Write. Now return 3537AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS 3538if 3539the register has an address of zero. Previously, these cases simply 3540returned 3541AE_OK. For optional registers such as PM1B status/enable/control, the 3542caller 3543should check for a valid register address before calling. ACPICA BZ 748. 3544 3545Renamed the external ACPI bit register access functions. Renamed 3546AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 3547functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 3548Also, restructured the code for these functions by simplifying the code 3549path 3550and condensing duplicate code to reduce code size. 3551 3552Added new functions to transparently handle the possibly split PM1 A/B 3553registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 3554now handle the split registers for PM1 Status, Enable, and Control. ACPICA 3555BZ 3556746. 3557 3558Added a function to handle the PM1 control registers, 3559AcpiHwWritePm1Control. 3560This function writes both of the PM1 control registers (A/B). These 3561registers 3562are different than the PM1 A/B status and enable registers in that 3563different 3564values can be written to the A/B registers. Most notably, the SLP_TYP bits 3565can be different, as per the values returned from the _Sx predefined 3566methods. 3567 3568Removed an extra register write within AcpiHwClearAcpiStatus. This 3569function 3570was writing an optional PM1B status register twice. The existing call to 3571the 3572low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 3573A/B 3574register. ACPICA BZ 751. 3575 3576Split out the PM1 Status registers from the FADT. Added new globals for 3577these 3578registers (A/B), similar to the way the PM1 Enable registers are handled. 3579Instead of overloading the FADT Event Register blocks. This makes the code 3580clearer and less prone to error. 3581 3582Fixed the warning message for when the platform contains too many ACPI 3583tables 3584for the default size of the global root table data structure. The 3585calculation 3586for the truncation value was incorrect. 3587 3588Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 3589obsolete macro, since it is now a simple reference to ->common.type. There 3590were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 3591 3592Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 3593TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 3594simply SLEEP_TYPE. ACPICA BZ 754. 3595 3596Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 3597function is only needed on 64-bit host operating systems and is thus not 3598included for 32-bit hosts. 3599 3600Debug output: print the input and result for invocations of the _OSI 3601reserved 3602control method via the ACPI_LV_INFO debug level. Also, reduced some of the 3603verbosity of this debug level. Len Brown. 3604 3605Example Code and Data Size: These are the sizes for the OS-independent 3606acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3607debug version of the code includes the debug output trace mechanism and 3608has a 3609much larger code and data size. 3610 3611 Previous Release: 3612 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 3613 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 3614 Current Release: 3615 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 3616 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 3617 36182) iASL Compiler/Disassembler and Tools: 3619 3620Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 3621various legal performance profiles. 3622 3623---------------------------------------- 362423 January 2009. Summary of changes for version 20090123: 3625 36261) ACPI CA Core Subsystem: 3627 3628Added the 2009 copyright to all module headers and signons. This affects 3629virtually every file in the ACPICA core subsystem, the iASL compiler, and 3630the tools/utilities. 3631 3632Implemented a change to allow the host to override any ACPI table, 3633including 3634dynamically loaded tables. Previously, only the DSDT could be replaced by 3635the 3636host. With this change, the AcpiOsTableOverride interface is called for 3637each 3638table found in the RSDT/XSDT during ACPICA initialization, and also 3639whenever 3640a table is dynamically loaded via the AML Load operator. 3641 3642Updated FADT flag definitions, especially the Boot Architecture flags. 3643 3644Debugger: For the Find command, automatically pad the input ACPI name with 3645underscores if the name is shorter than 4 characters. This enables a match 3646with the actual namespace entry which is itself padded with underscores. 3647 3648Example Code and Data Size: These are the sizes for the OS-independent 3649acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3650debug version of the code includes the debug output trace mechanism and 3651has a 3652much larger code and data size. 3653 3654 Previous Release: 3655 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 3656 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 3657 Current Release: 3658 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 3659 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 3660 36612) iASL Compiler/Disassembler and Tools: 3662 3663Fix build error under Bison-2.4. 3664 3665Dissasembler: Enhanced FADT support. Added decoding of the Boot 3666Architecture 3667flags. Now decode all flags, regardless of the FADT version. Flag output 3668includes the FADT version which first defined each flag. 3669 3670The iASL -g option now dumps the RSDT to a file (in addition to the FADT 3671and 3672DSDT). Windows only. 3673 3674---------------------------------------- 367504 December 2008. Summary of changes for version 20081204: 3676 36771) ACPI CA Core Subsystem: 3678 3679The ACPICA Programmer Reference has been completely updated and revamped 3680for 3681this release. This includes updates to the external interfaces, OSL 3682interfaces, the overview sections, and the debugger reference. 3683 3684Several new ACPICA interfaces have been implemented and documented in the 3685programmer reference: 3686AcpiReset - Writes the reset value to the FADT-defined reset register. 3687AcpiDisableAllGpes - Disable all available GPEs. 3688AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 3689AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 3690AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 3691AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 3692AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 3693 3694Most of the public ACPI hardware-related interfaces have been moved to a 3695new 3696file, components/hardware/hwxface.c 3697 3698Enhanced the FADT parsing and low-level ACPI register access: The ACPI 3699register lengths within the FADT are now used, and the low level ACPI 3700register access no longer hardcodes the ACPI register lengths. Given that 3701there may be some risk in actually trusting the FADT register lengths, a 3702run- 3703time option was added to fall back to the default hardcoded lengths if the 3704FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 3705option is set to true for now, and a warning is issued if a suspicious 3706FADT 3707register length is overridden with the default value. 3708 3709Fixed a reference count issue in NsRepairObject. This problem was 3710introduced 3711in version 20081031 as part of a fix to repair Buffer objects within 3712Packages. Lin Ming. 3713 3714Added semaphore support to the Linux/Unix application OS-services layer 3715(OSL). ACPICA BZ 448. Lin Ming. 3716 3717Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 3718will 3719be implemented in the OSL, or will binary semaphores be used instead. 3720 3721Example Code and Data Size: These are the sizes for the OS-independent 3722acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3723debug version of the code includes the debug output trace mechanism and 3724has a 3725much larger code and data size. 3726 3727 Previous Release: 3728 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 3729 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 3730 Current Release: 3731 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 3732 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 3733 37342) iASL Compiler/Disassembler and Tools: 3735 3736iASL: Completed the '-e' option to include additional ACPI tables in order 3737to 3738aid with disassembly and External statement generation. ACPICA BZ 742. Lin 3739Ming. 3740 3741iASL: Removed the "named object in while loop" error. The compiler cannot 3742determine how many times a loop will execute. ACPICA BZ 730. 3743 3744Disassembler: Implemented support for FADT revision 2 (MS extension). 3745ACPICA 3746BZ 743. 3747 3748Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 3749 3750---------------------------------------- 375131 October 2008. Summary of changes for version 20081031: 3752 37531) ACPI CA Core Subsystem: 3754 3755Restructured the ACPICA header files into public/private. acpi.h now 3756includes 3757only the "public" acpica headers. All other acpica headers are "private" 3758and 3759should not be included by acpica users. One new file, accommon.h is used 3760to 3761include the commonly used private headers for acpica code generation. 3762Future 3763plans include moving all private headers to a new subdirectory. 3764 3765Implemented an automatic Buffer->String return value conversion for 3766predefined ACPI methods. For these methods (such as _BIF), added automatic 3767conversion for return objects that are required to be a String, but a 3768Buffer 3769was found instead. This can happen when reading string battery data from 3770an 3771operation region, because it used to be difficult to convert the data from 3772buffer to string from within the ASL. Ensures that the host OS is provided 3773with a valid null-terminated string. Linux BZ 11822. 3774 3775Updated the FACS waking vector interfaces. Split 3776AcpiSetFirmwareWakingVector 3777into two: one for the 32-bit vector, another for the 64-bit vector. This 3778is 3779required because the host OS must setup the wake much differently for each 3780vector (real vs. protected mode, etc.) and the interface itself should not 3781be 3782deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 3783interface, as it served no purpose (only the firmware reads the vector, OS 3784only writes the vector.) ACPICA BZ 731. 3785 3786Implemented a mechanism to escape infinite AML While() loops. Added a loop 3787counter to force exit from AML While loops if the count becomes too large. 3788This can occur in poorly written AML when the hardware does not respond 3789within a while loop and the loop does not implement a timeout. The maximum 3790loop count is configurable. A new exception code is returned when a loop 3791is 3792broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 3793 3794Optimized the execution of AML While loops. Previously, a control state 3795object was allocated and freed for each execution of the loop. The 3796optimization is to simply reuse the control state for each iteration. This 3797speeds up the raw loop execution time by about 5%. 3798 3799Enhanced the implicit return mechanism. For Windows compatibility, return 3800an 3801implicit integer of value zero for methods that contain no executable 3802code. 3803Such methods are seen in the field as stubs (presumably), and can cause 3804drivers to fail if they expect a return value. Lin Ming. 3805 3806Allow multiple backslashes as root prefixes in namepaths. In a fully 3807qualified namepath, allow multiple backslash prefixes. This can happen 3808(and 3809is seen in the field) because of the use of a double-backslash in strings 3810(since backslash is the escape character) causing confusion. ACPICA BZ 739 3811Lin Ming. 3812 3813Emit a warning if two different FACS or DSDT tables are discovered in the 3814FADT. Checks if there are two valid but different addresses for the FACS 3815and 3816DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 3817 3818Consolidated the method argument count validation code. Merged the code 3819that 3820validates control method argument counts into the predefined validation 3821module. Eliminates possible multiple warnings for incorrect argument 3822counts. 3823 3824Implemented ACPICA example code. Includes code for ACPICA initialization, 3825handler installation, and calling a control method. Available at 3826source/tools/examples. 3827 3828Added a global pointer for FACS table to simplify internal FACS access. 3829Use 3830the global pointer instead of using AcpiGetTableByIndex for each FACS 3831access. 3832This simplifies the code for the Global Lock and the Firmware Waking 3833Vector(s). 3834 3835Example Code and Data Size: These are the sizes for the OS-independent 3836acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3837debug version of the code includes the debug output trace mechanism and 3838has a 3839much larger code and data size. 3840 3841 Previous Release: 3842 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 3843 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 3844 Current Release: 3845 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 3846 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 3847 38482) iASL Compiler/Disassembler and Tools: 3849 3850iASL: Improved disassembly of external method calls. Added the -e option 3851to 3852allow the inclusion of additional ACPI tables to help with the disassembly 3853of 3854method invocations and the generation of external declarations during the 3855disassembly. Certain external method invocations cannot be disassembled 3856properly without the actual declaration of the method. Use the -e option 3857to 3858include the table where the external method(s) are actually declared. Most 3859useful for disassembling SSDTs that make method calls back to the master 3860DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 3861-d 3862-e dsdt.aml ssdt1.aml 3863 3864iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 3865problem where the use of an alias within a namepath would result in a not 3866found error or cause the compiler to fault. Also now allows forward 3867references from the Alias operator itself. ACPICA BZ 738. 3868 3869---------------------------------------- 387026 September 2008. Summary of changes for version 20080926: 3871 38721) ACPI CA Core Subsystem: 3873 3874Designed and implemented a mechanism to validate predefined ACPI methods 3875and 3876objects. This code validates the predefined ACPI objects (objects whose 3877names 3878start with underscore) that appear in the namespace, at the time they are 3879evaluated. The argument count and the type of the returned object are 3880validated against the ACPI specification. The purpose of this validation 3881is 3882to detect problems with the BIOS-implemented predefined ACPI objects 3883before 3884the results are returned to the ACPI-related drivers. Future enhancements 3885may 3886include actual repair of incorrect return objects where possible. Two new 3887files are nspredef.c and acpredef.h. 3888 3889Fixed a fault in the AML parser if a memory allocation fails during the Op 3890completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 3891 3892Fixed an issue with implicit return compatibility. This change improves 3893the 3894implicit return mechanism to be more compatible with the MS interpreter. 3895Lin 3896Ming, ACPICA BZ 349. 3897 3898Implemented support for zero-length buffer-to-string conversions. Allow 3899zero 3900length strings during interpreter buffer-to-string conversions. For 3901example, 3902during the ToDecimalString and ToHexString operators, as well as implicit 3903conversions. Fiodor Suietov, ACPICA BZ 585. 3904 3905Fixed two possible memory leaks in the error exit paths of 3906AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 3907similar in that they use a stack of state objects in order to eliminate 3908recursion. The stack must be fully unwound and deallocated if an error 3909occurs. Lin Ming. ACPICA BZ 383. 3910 3911Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 3912global 3913ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 3914Moore ACPICA BZ 442. 3915 3916Removed the obsolete version number in module headers. Removed the 3917"$Revision" number that appeared in each module header. This version 3918number 3919was useful under SourceSafe and CVS, but has no meaning under git. It is 3920not 3921only incorrect, it could also be misleading. 3922 3923Example Code and Data Size: These are the sizes for the OS-independent 3924acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3925debug version of the code includes the debug output trace mechanism and 3926has a 3927much larger code and data size. 3928 3929 Previous Release: 3930 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 3931 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 3932 Current Release: 3933 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 3934 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 3935 3936---------------------------------------- 393729 August 2008. Summary of changes for version 20080829: 3938 39391) ACPI CA Core Subsystem: 3940 3941Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 3942Reference. Changes include the elimination of cheating on the Object field 3943for the DdbHandle subtype, addition of a reference class field to 3944differentiate the various reference types (instead of an AML opcode), and 3945the 3946cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 3947 3948Reduce an error to a warning for an incorrect method argument count. 3949Previously aborted with an error if too few arguments were passed to a 3950control method via the external ACPICA interface. Now issue a warning 3951instead 3952and continue. Handles the case where the method inadvertently declares too 3953many arguments, but does not actually use the extra ones. Applies mainly 3954to 3955the predefined methods. Lin Ming. Linux BZ 11032. 3956 3957Disallow the evaluation of named object types with no intrinsic value. 3958Return 3959AE_TYPE for objects that have no value and therefore evaluation is 3960undefined: 3961Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 3962of 3963these types were allowed, but an exception would be generated at some 3964point 3965during the evaluation. Now, the error is generated up front. 3966 3967Fixed a possible memory leak in the AcpiNsGetExternalPathname function 3968(nsnames.c). Fixes a leak in the error exit path. 3969 3970Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 3971debug 3972levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 3973ACPI_EXCEPTION 3974interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 3975ACPI_LV_EVENTS. 3976 3977Removed obsolete and/or unused exception codes from the acexcep.h header. 3978There is the possibility that certain device drivers may be affected if 3979they 3980use any of these exceptions. 3981 3982The ACPICA documentation has been added to the public git source tree, 3983under 3984acpica/documents. Included are the ACPICA programmer reference, the iASL 3985compiler reference, and the changes.txt release logfile. 3986 3987Example Code and Data Size: These are the sizes for the OS-independent 3988acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3989debug version of the code includes the debug output trace mechanism and 3990has a 3991much larger code and data size. 3992 3993 Previous Release: 3994 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 3995 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 3996 Current Release: 3997 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 3998 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 3999 40002) iASL Compiler/Disassembler and Tools: 4001 4002Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 4003defines _SCP with 3 arguments. Previous versions defined it with only 1 4004argument. iASL now allows both definitions. 4005 4006iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 4007length subtables when disassembling ACPI tables. Also fixed a couple of 4008errors where a full 16-bit table type field was not extracted from the 4009input 4010properly. 4011 4012acpisrc: Improve comment counting mechanism for generating source code 4013statistics. Count first and last lines of multi-line comments as 4014whitespace, 4015not comment lines. Handle Linux legal header in addition to standard 4016acpica 4017header. 4018 4019---------------------------------------- 4020 402129 July 2008. Summary of changes for version 20080729: 4022 40231) ACPI CA Core Subsystem: 4024 4025Fix a possible deadlock in the GPE dispatch. Remove call to 4026AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 4027attempt 4028to acquire the GPE lock but can deadlock since the GPE lock is already 4029held 4030at dispatch time. This code was introduced in version 20060831 as a 4031response 4032to Linux BZ 6881 and has since been removed from Linux. 4033 4034Add a function to dereference returned reference objects. Examines the 4035return 4036object from a call to AcpiEvaluateObject. Any Index or RefOf references 4037are 4038automatically dereferenced in an attempt to return something useful (these 4039reference types cannot be converted into an external ACPI_OBJECT.) 4040Provides 4041MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 4042 4043x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 4044subtables for the MADT and one new subtable for the SRAT. Includes 4045disassembler and AcpiSrc support. Data from the Intel 64 Architecture 4046x2APIC 4047Specification, June 2008. 4048 4049Additional error checking for pathname utilities. Add error check after 4050all 4051calls to AcpiNsGetPathnameLength. Add status return from 4052AcpiNsBuildExternalPath and check after all calls. Add parameter 4053validation 4054to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 4055 4056Return status from the global init function AcpiUtGlobalInitialize. This 4057is 4058used by both the kernel subsystem and the utilities such as iASL compiler. 4059The function could possibly fail when the caches are initialized. Yang Yi. 4060 4061Add a function to decode reference object types to strings. Created for 4062improved error messages. 4063 4064Improve object conversion error messages. Better error messages during 4065object 4066conversion from internal to the external ACPI_OBJECT. Used for external 4067calls 4068to AcpiEvaluateObject. 4069 4070Example Code and Data Size: These are the sizes for the OS-independent 4071acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4072debug version of the code includes the debug output trace mechanism and 4073has a 4074much larger code and data size. 4075 4076 Previous Release: 4077 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 4078 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 4079 Current Release: 4080 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 4081 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 4082 40832) iASL Compiler/Disassembler and Tools: 4084 4085Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 4086introduced in version 20080701. If the object being evaluated (via execute 4087command) is not a method, the debugger can hang while trying to obtain 4088non- 4089existent parameters. 4090 4091iASL: relax error for using reserved "_T_x" identifiers. These names can 4092appear in a disassembled ASL file if they were emitted by the original 4093compiler. Instead of issuing an error or warning and forcing the user to 4094manually change these names, issue a remark instead. 4095 4096iASL: error if named object created in while loop. Emit an error if any 4097named 4098object is created within a While loop. If allowed, this code will generate 4099a 4100run-time error on the second iteration of the loop when an attempt is made 4101to 4102create the same named object twice. ACPICA bugzilla 730. 4103 4104iASL: Support absolute pathnames for include files. Add support for 4105absolute 4106pathnames within the Include operator. previously, only relative pathnames 4107were supported. 4108 4109iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 4110Descriptor. 4111The ACPI spec requires one interrupt minimum. BZ 423 4112 4113iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 4114Handles the case for the Interrupt Resource Descriptor where 4115the ResourceSource argument is omitted but ResourceSourceIndex 4116is present. Now leave room for the Index. BZ 426 4117 4118iASL: Prevent error message if CondRefOf target does not exist. Fixes 4119cases 4120where an error message is emitted if the target does not exist. BZ 516 4121 4122iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 4123(get ACPI tables on Windows). This was apparently broken in version 412420070919. 4125 4126AcpiXtract: Handle EOF while extracting data. Correctly handle the case 4127where 4128the EOF happens immediately after the last table in the input file. Print 4129completion message. Previously, no message was displayed in this case. 4130 4131---------------------------------------- 413201 July 2008. Summary of changes for version 20080701: 4133 41340) Git source tree / acpica.org 4135 4136Fixed a problem where a git-clone from http would not transfer the entire 4137source tree. 4138 41391) ACPI CA Core Subsystem: 4140 4141Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 4142enable bit. Now performs a read-change-write of the enable register 4143instead 4144of simply writing out the cached enable mask. This will prevent 4145inadvertent 4146enabling of GPEs if a rogue GPE is received during initialization (before 4147GPE 4148handlers are installed.) 4149 4150Implemented a copy for dynamically loaded tables. Previously, dynamically 4151loaded tables were simply mapped - but on some machines this memory is 4152corrupted after suspend. Now copy the table to a local buffer. For the 4153OpRegion case, added checksum verify. Use the table length from the table 4154header, not the region length. For the Buffer case, use the table length 4155also. Dennis Noordsij, Bob Moore. BZ 10734 4156 4157Fixed a problem where the same ACPI table could not be dynamically loaded 4158and 4159unloaded more than once. Without this change, a table cannot be loaded 4160again 4161once it has been loaded/unloaded one time. The current mechanism does not 4162unregister a table upon an unload. During a load, if the same table is 4163found, 4164this no longer returns an exception. BZ 722 4165 4166Fixed a problem where the wrong descriptor length was calculated for the 4167EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 4168are calculated as 12 bytes long, but the actual length in the internal 4169descriptor is 16 because of the round-up to 8 on the 64-bit build. 4170Reported 4171by Linn Crosetto. BZ 728 4172 4173Fixed a possible memory leak in the Unload operator. The DdbHandle 4174returned 4175by Load() did not have its reference count decremented during unload, 4176leading 4177to a memory leak. Lin Ming. BZ 727 4178 4179Fixed a possible memory leak when deleting thermal/processor objects. Any 4180associated notify handlers (and objects) were not being deleted. Fiodor 4181Suietov. BZ 506 4182 4183Fixed the ordering of the ASCII names in the global mutex table to match 4184the 4185actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 4186only. 4187Vegard Nossum. BZ 726 4188 4189Enhanced the AcpiGetObjectInfo interface to return the number of required 4190arguments if the object is a control method. Added this call to the 4191debugger 4192so the proper number of default arguments are passed to a method. This 4193prevents a warning when executing methods from AcpiExec. 4194 4195Added a check for an invalid handle in AcpiGetObjectInfo. Return 4196AE_BAD_PARAMETER if input handle is invalid. BZ 474 4197 4198Fixed an extraneous warning from exconfig.c on the 64-bit build. 4199 4200Example Code and Data Size: These are the sizes for the OS-independent 4201acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4202debug version of the code includes the debug output trace mechanism and 4203has a 4204much larger code and data size. 4205 4206 Previous Release: 4207 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 4208 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 4209 Current Release: 4210 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 4211 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 4212 42132) iASL Compiler/Disassembler and Tools: 4214 4215iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 4216resource descriptor names. 4217 4218iASL: Detect invalid ASCII characters in input (windows version). Removed 4219the 4220"-CF" flag from the flex compile, enables correct detection of non-ASCII 4221characters in the input. BZ 441 4222 4223iASL: Eliminate warning when result of LoadTable is not used. Eliminate 4224the 4225"result of operation not used" warning when the DDB handle returned from 4226LoadTable is not used. The warning is not needed. BZ 590 4227 4228AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method 4229to 4230pass address of table to the AML. Added option to disable OpRegion 4231simulation 4232to allow creation of an OpRegion with a real address that was passed to 4233_CFG. 4234All of this allows testing of the Load and Unload operators from AcpiExec. 4235 4236Debugger: update tables command for unloaded tables. Handle unloaded 4237tables 4238and use the standard table header output routine. 4239 4240---------------------------------------- 424109 June 2008. Summary of changes for version 20080609: 4242 42431) ACPI CA Core Subsystem: 4244 4245Implemented a workaround for reversed _PRT entries. A significant number 4246of 4247BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 4248change dynamically detects and repairs this problem. Provides 4249compatibility 4250with MS ACPI. BZ 6859 4251 4252Simplified the internal ACPI hardware interfaces to eliminate the locking 4253flag parameter from Register Read/Write. Added a new external interface, 4254AcpiGetRegisterUnlocked. 4255 4256Fixed a problem where the invocation of a GPE control method could hang. 4257This 4258was a regression introduced in 20080514. The new method argument count 4259validation mechanism can enter an infinite loop when a GPE method is 4260dispatched. Problem fixed by removing the obsolete code that passed GPE 4261block 4262information to the notify handler via the control method parameter 4263pointer. 4264 4265Fixed a problem where the _SST execution status was incorrectly returned 4266to 4267the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 426820080514. _SST is optional and a NOT_FOUND exception should never be 4269returned. BZ 716 4270 4271Fixed a problem where a deleted object could be accessed from within the 4272AML 4273parser. This was a regression introduced in version 20080123 as a fix for 4274the 4275Unload operator. Lin Ming. BZ 10669 4276 4277Cleaned up the debug operand dump mechanism. Eliminated unnecessary 4278operands 4279and eliminated the use of a negative index in a loop. Operands are now 4280displayed in the correct order, not backwards. This also fixes a 4281regression 4282introduced in 20080514 on 64-bit systems where the elimination of 4283ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 4284715 4285 4286Fixed a possible memory leak in EvPciConfigRegionSetup where the error 4287exit 4288path did not delete a locally allocated structure. 4289 4290Updated definitions for the DMAR and SRAT tables to synchronize with the 4291current specifications. Includes disassembler support. 4292 4293Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 4294loop termination value was used. Loop terminated on iteration early, 4295missing 4296one mutex. Linn Crosetto 4297 4298Example Code and Data Size: These are the sizes for the OS-independent 4299acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4300debug version of the code includes the debug output trace mechanism and 4301has a 4302much larger code and data size. 4303 4304 Previous Release: 4305 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 4306 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 4307 Current Release: 4308 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 4309 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 4310 43112) iASL Compiler/Disassembler and Tools: 4312 4313Disassembler: Implemented support for EisaId() within _CID objects. Now 4314disassemble integer _CID objects back to EisaId invocations, including 4315multiple integers within _CID packages. Includes single-step support for 4316debugger also. 4317 4318Disassembler: Added support for DMAR and SRAT table definition changes. 4319 4320---------------------------------------- 432114 May 2008. Summary of changes for version 20080514: 4322 43231) ACPI CA Core Subsystem: 4324 4325Fixed a problem where GPEs were enabled too early during the ACPICA 4326initialization. This could lead to "handler not installed" errors on some 4327machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 4328This 4329ensures that all operation regions and devices throughout the namespace 4330have 4331been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 4332 4333Implemented a change to the enter sleep code. Moved execution of the _GTS 4334method to just before setting sleep enable bit. The execution was moved 4335from 4336AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 4337immediately before the SLP_EN bit is set, as per the ACPI specification. 4338Luming Yu, BZ 1653. 4339 4340Implemented a fix to disable unknown GPEs (2nd version). Now always 4341disable 4342the GPE, even if ACPICA thinks that that it is already disabled. It is 4343possible that the AML or some other code has enabled the GPE unbeknownst 4344to 4345the ACPICA code. 4346 4347Fixed a problem with the Field operator where zero-length fields would 4348return 4349an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 4350ASL 4351field declarations in Field(), BankField(), and IndexField(). BZ 10606. 4352 4353Implemented a fix for the Load operator, now load the table at the 4354namespace 4355root. This reverts a change introduced in version 20071019. The table is 4356now 4357loaded at the namespace root even though this goes against the ACPI 4358specification. This provides compatibility with other ACPI 4359implementations. 4360The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 4361Ming. 4362 4363Fixed a problem where ACPICA would not Load() tables with unusual 4364signatures. 4365Now ignore ACPI table signature for Load() operator. Only "SSDT" is 4366acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 4367Therefore, signature validation is worthless. Apparently MS ACPI accepts 4368such 4369signatures, ACPICA must be compatible. BZ 10454. 4370 4371Fixed a possible negative array index in AcpiUtValidateException. Added 4372NULL 4373fields to the exception string arrays to eliminate a -1 subtraction on the 4374SubStatus field. 4375 4376Updated the debug tracking macros to reduce overall code and data size. 4377Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 4378instead of pointers to static strings. Jan Beulich and Bob Moore. 4379 4380Implemented argument count checking in control method invocation via 4381AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 4382many. This applies only to extern programmatic control method execution, 4383not 4384method-to-method calls within the AML. Lin Ming. 4385 4386Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 4387no 4388longer needed, especially with the removal of 16-bit support. It was 4389replaced 4390mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit 4391on 439232/64-bit platforms is required. 4393 4394Added the C const qualifier for appropriate string constants -- mostly 4395MODULE_NAME and printf format strings. Jan Beulich. 4396 4397Example Code and Data Size: These are the sizes for the OS-independent 4398acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4399debug version of the code includes the debug output trace mechanism and 4400has a 4401much larger code and data size. 4402 4403 Previous Release: 4404 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 4405 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 4406 Current Release: 4407 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 4408 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 4409 44102) iASL Compiler/Disassembler and Tools: 4411 4412Implemented ACPI table revision ID validation in the disassembler. Zero is 4413always invalid. For DSDTs, the ID controls the interpreter integer width. 44141 4415means 32-bit and this is unusual. 2 or greater is 64-bit. 4416 4417---------------------------------------- 441821 March 2008. Summary of changes for version 20080321: 4419 44201) ACPI CA Core Subsystem: 4421 4422Implemented an additional change to the GPE support in order to suppress 4423spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 4424disable incoming GPEs that are neither enabled nor disabled -- meaning 4425that 4426the GPE is unknown to the system. This should prevent future interrupt 4427floods 4428from that GPE. BZ 6217 (Zhang Rui) 4429 4430Fixed a problem where NULL package elements were not returned to the 4431AcpiEvaluateObject interface correctly. The element was simply ignored 4432instead of returning a NULL ACPI_OBJECT package element, potentially 4433causing 4434a buffer overflow and/or confusing the caller who expected a fixed number 4435of 4436elements. BZ 10132 (Lin Ming, Bob Moore) 4437 4438Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 4439Dword, 4440Qword), Field, BankField, and IndexField operators when invoked from 4441inside 4442an executing control method. In this case, these operators created 4443namespace 4444nodes that were incorrectly left marked as permanent nodes instead of 4445temporary nodes. This could cause a problem if there is race condition 4446between an exiting control method and a running namespace walk. (Reported 4447by 4448Linn Crosetto) 4449 4450Fixed a problem where the CreateField and CreateXXXField operators would 4451incorrectly allow duplicate names (the name of the field) with no 4452exception 4453generated. 4454 4455Implemented several changes for Notify handling. Added support for new 4456Notify 4457values (ACPI 2.0+) and improved the Notify debug output. Notify on 4458PowerResource objects is no longer allowed, as per the ACPI specification. 4459(Bob Moore, Zhang Rui) 4460 4461All Reference Objects returned via the AcpiEvaluateObject interface are 4462now 4463marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 4464for 4465NULL objects - either NULL package elements or unresolved named 4466references. 4467 4468Fixed a problem where an extraneous debug message was produced for package 4469objects (when debugging enabled). The message "Package List length larger 4470than NumElements count" is now produced in the correct case, and is now an 4471error message rather than a debug message. Added a debug message for the 4472opposite case, where NumElements is larger than the Package List (the 4473package 4474will be padded out with NULL elements as per the ACPI spec.) 4475 4476Implemented several improvements for the output of the ASL "Debug" object 4477to 4478clarify and keep all data for a given object on one output line. 4479 4480Fixed two size calculation issues with the variable-length Start Dependent 4481resource descriptor. 4482 4483Example Code and Data Size: These are the sizes for the OS-independent 4484acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4485debug version of the code includes the debug output trace mechanism and 4486has 4487a much larger code and data size. 4488 4489 Previous Release: 4490 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 4491 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 4492 Current Release: 4493 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 4494 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 4495 44962) iASL Compiler/Disassembler and Tools: 4497 4498Fixed a problem with the use of the Switch operator where execution of the 4499containing method by multiple concurrent threads could cause an 4500AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 4501actual Switch opcode, it must be simulated with local named temporary 4502variables and if/else pairs. The solution chosen was to mark any method 4503that 4504uses Switch as Serialized, thus preventing multiple thread entries. BZ 4505469. 4506 4507---------------------------------------- 450813 February 2008. Summary of changes for version 20080213: 4509 45101) ACPI CA Core Subsystem: 4511 4512Implemented another MS compatibility design change for GPE/Notify 4513handling. 4514GPEs are now cleared/enabled asynchronously to allow all pending notifies 4515to 4516complete first. It is expected that the OSL will queue the enable request 4517behind all pending notify requests (may require changes to the local host 4518OSL 4519in AcpiOsExecute). Alexey Starikovskiy. 4520 4521Fixed a problem where buffer and package objects passed as arguments to a 4522control method via the external AcpiEvaluateObject interface could cause 4523an 4524AE_AML_INTERNAL exception depending on the order and type of operators 4525executed by the target control method. 4526 4527Fixed a problem where resource descriptor size optimization could cause a 4528problem when a _CRS resource template is passed to a _SRS method. The _SRS 4529resource template must use the same descriptors (with the same size) as 4530returned from _CRS. This change affects the following resource 4531descriptors: 4532IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 45339487) 4534 4535Fixed a problem where a CopyObject to RegionField, BankField, and 4536IndexField 4537objects did not perform an implicit conversion as it should. These types 4538must 4539retain their initial type permanently as per the ACPI specification. 4540However, 4541a CopyObject to all other object types should not perform an implicit 4542conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 4543 4544Fixed a problem with the AcpiGetDevices interface where the mechanism to 4545match device CIDs did not examine the entire list of available CIDs, but 4546instead aborted on the first non-matching CID. Andrew Patterson. 4547 4548Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 4549was 4550inadvertently changed to return a 16-bit value instead of a 32-bit value, 4551truncating the upper dword of a 64-bit value. This macro is only used to 4552display debug output, so no incorrect calculations were made. Also, 4553reimplemented the macro so that a 64-bit shift is not performed by 4554inefficient compilers. 4555 4556Added missing va_end statements that should correspond with each va_start 4557statement. 4558 4559Example Code and Data Size: These are the sizes for the OS-independent 4560acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4561debug version of the code includes the debug output trace mechanism and 4562has 4563a much larger code and data size. 4564 4565 Previous Release: 4566 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 4567 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 4568 Current Release: 4569 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 4570 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 4571 45722) iASL Compiler/Disassembler and Tools: 4573 4574Implemented full disassembler support for the following new ACPI tables: 4575BERT, EINJ, and ERST. Implemented partial disassembler support for the 4576complicated HEST table. These tables support the Windows Hardware Error 4577Architecture (WHEA). 4578 4579---------------------------------------- 458023 January 2008. Summary of changes for version 20080123: 4581 45821) ACPI CA Core Subsystem: 4583 4584Added the 2008 copyright to all module headers and signons. This affects 4585virtually every file in the ACPICA core subsystem, the iASL compiler, and 4586the tools/utilities. 4587 4588Fixed a problem with the SizeOf operator when used with Package and Buffer 4589objects. These objects have deferred execution for some arguments, and the 4590execution is now completed before the SizeOf is executed. This problem 4591caused 4592unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 4593BZ 45949558 4595 4596Implemented an enhancement to the interpreter "slack mode". In the absence 4597of 4598an explicit return or an implicitly returned object from the last executed 4599opcode, a control method will now implicitly return an integer of value 0 4600for 4601Microsoft compatibility. (Lin Ming) BZ 392 4602 4603Fixed a problem with the Load operator where an exception was not returned 4604in 4605the case where the table is already loaded. (Lin Ming) BZ 463 4606 4607Implemented support for the use of DDBHandles as an Indexed Reference, as 4608per 4609the ACPI spec. (Lin Ming) BZ 486 4610 4611Implemented support for UserTerm (Method invocation) for the Unload 4612operator 4613as per the ACPI spec. (Lin Ming) BZ 580 4614 4615Fixed a problem with the LoadTable operator where the OemId and OemTableId 4616input strings could cause unexpected failures if they were shorter than 4617the 4618maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 4619 4620Implemented support for UserTerm (Method invocation) for the Unload 4621operator 4622as per the ACPI spec. (Lin Ming) BZ 580 4623 4624Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 4625HEST, 4626IBFT, UEFI, WDAT. Disassembler support is forthcoming. 4627 4628Example Code and Data Size: These are the sizes for the OS-independent 4629acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4630debug version of the code includes the debug output trace mechanism and 4631has 4632a much larger code and data size. 4633 4634 Previous Release: 4635 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 4636 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 4637 Current Release: 4638 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 4639 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 4640 46412) iASL Compiler/Disassembler and Tools: 4642 4643Implemented support in the disassembler for checksum validation on 4644incoming 4645binary DSDTs and SSDTs. If incorrect, a message is displayed within the 4646table 4647header dump at the start of the disassembly. 4648 4649Implemented additional debugging information in the namespace listing file 4650created during compilation. In addition to the namespace hierarchy, the 4651full 4652pathname to each namespace object is displayed. 4653 4654Fixed a problem with the disassembler where invalid ACPI tables could 4655cause 4656faults or infinite loops. 4657 4658Fixed an unexpected parse error when using the optional "parameter types" 4659list in a control method declaration. (Lin Ming) BZ 397 4660 4661Fixed a problem where two External declarations with the same name did not 4662cause an error (Lin Ming) BZ 509 4663 4664Implemented support for full TermArgs (adding Argx, Localx and method 4665invocation) for the ParameterData parameter to the LoadTable operator. 4666(Lin 4667Ming) BZ 583,587 4668 4669---------------------------------------- 467019 December 2007. Summary of changes for version 20071219: 4671 46721) ACPI CA Core Subsystem: 4673 4674Implemented full support for deferred execution for the TermArg string 4675arguments for DataTableRegion. This enables forward references and full 4676operand resolution for the three string arguments. Similar to 4677OperationRegion 4678deferred argument execution.) Lin Ming. BZ 430 4679 4680Implemented full argument resolution support for the BankValue argument to 4681BankField. Previously, only constants were supported, now any TermArg may 4682be 4683used. Lin Ming BZ 387, 393 4684 4685Fixed a problem with AcpiGetDevices where the search of a branch of the 4686device tree could be terminated prematurely. In accordance with the ACPI 4687specification, the search down the current branch is terminated if a 4688device 4689is both not present and not functional (instead of just not present.) 4690Yakui 4691Zhao. 4692 4693Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 4694if 4695the underlying AML code changed the GPE enable registers. Now, any unknown 4696incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 4697disabled 4698instead of simply ignored. Rui Zhang. 4699 4700Fixed a problem with Index Fields where the Index register was incorrectly 4701limited to a maximum of 32 bits. Now any size may be used. 4702 4703Fixed a couple memory leaks associated with "implicit return" objects when 4704the AML Interpreter slack mode is enabled. Lin Ming BZ 349 4705 4706Example Code and Data Size: These are the sizes for the OS-independent 4707acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4708debug version of the code includes the debug output trace mechanism and 4709has 4710a much larger code and data size. 4711 4712 Previous Release: 4713 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 4714 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 4715 Current Release: 4716 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 4717 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 4718 4719---------------------------------------- 472014 November 2007. Summary of changes for version 20071114: 4721 47221) ACPI CA Core Subsystem: 4723 4724Implemented event counters for each of the Fixed Events, the ACPI SCI 4725(interrupt) itself, and control methods executed. Named 4726AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 4727These 4728should be useful for debugging and statistics. 4729 4730Implemented a new external interface, AcpiGetStatistics, to retrieve the 4731contents of the various event counters. Returns the current values for 4732AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 4733AcpiMethodCount. The interface can be expanded in the future if new 4734counters 4735are added. Device drivers should use this interface rather than access the 4736counters directly. 4737 4738Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 4739the ShortDivide function worked incorrectly, causing problems with the BCD 4740functions with large input values. A truncation from 64-bit to 32-bit 4741inadvertently occurred. Internal BZ 435. Lin Ming 4742 4743Fixed a problem with Index references passed as method arguments. 4744References 4745passed as arguments to control methods were dereferenced immediately 4746(before 4747control was passed to the called method). The references are now correctly 4748passed directly to the called method. BZ 5389. Lin Ming 4749 4750Fixed a problem with CopyObject used in conjunction with the Index 4751operator. 4752The reference was incorrectly dereferenced before the copy. The reference 4753is 4754now correctly copied. BZ 5391. Lin Ming 4755 4756Fixed a problem with Control Method references within Package objects. 4757These 4758references are now correctly generated. This completes the package 4759construction overhaul that began in version 20071019. 4760 4761Example Code and Data Size: These are the sizes for the OS-independent 4762acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4763debug version of the code includes the debug output trace mechanism and 4764has 4765a much larger code and data size. 4766 4767 Previous Release: 4768 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 4769 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 4770 Current Release: 4771 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 4772 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 4773 4774 47752) iASL Compiler/Disassembler and Tools: 4776 4777The AcpiExec utility now installs handlers for all of the predefined 4778Operation Region types. New types supported are: PCI_Config, CMOS, and 4779PCIBARTarget. 4780 4781Fixed a problem with the 64-bit version of AcpiExec where the extended 4782(64- 4783bit) address fields for the DSDT and FACS within the FADT were not being 4784used, causing truncation of the upper 32-bits of these addresses. Lin Ming 4785and Bob Moore 4786 4787---------------------------------------- 478819 October 2007. Summary of changes for version 20071019: 4789 47901) ACPI CA Core Subsystem: 4791 4792Fixed a problem with the Alias operator when the target of the alias is a 4793named ASL operator that opens a new scope -- Scope, Device, PowerResource, 4794Processor, and ThermalZone. In these cases, any children of the original 4795operator could not be accessed via the alias, potentially causing 4796unexpected 4797AE_NOT_FOUND exceptions. (BZ 9067) 4798 4799Fixed a problem with the Package operator where all named references were 4800created as object references and left otherwise unresolved. According to 4801the 4802ACPI specification, a Package can only contain Data Objects or references 4803to 4804control methods. The implication is that named references to Data Objects 4805(Integer, Buffer, String, Package, BufferField, Field) should be resolved 4806immediately upon package creation. This is the approach taken with this 4807change. References to all other named objects (Methods, Devices, Scopes, 4808etc.) are all now properly created as reference objects. (BZ 5328) 4809 4810Reverted a change to Notify handling that was introduced in version 481120070508. This version changed the Notify handling from asynchronous to 4812fully synchronous (Device driver Notify handling with respect to the 4813Notify 4814ASL operator). It was found that this change caused more problems than it 4815solved and was removed by most users. 4816 4817Fixed a problem with the Increment and Decrement operators where the type 4818of 4819the target object could be unexpectedly and incorrectly changed. (BZ 353) 4820Lin Ming. 4821 4822Fixed a problem with the Load and LoadTable operators where the table 4823location within the namespace was ignored. Instead, the table was always 4824loaded into the root or current scope. Lin Ming. 4825 4826Fixed a problem with the Load operator when loading a table from a buffer 4827object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 4828 4829Fixed a problem with the Debug object where a store of a DdbHandle 4830reference 4831object to the Debug object could cause a fault. 4832 4833Added a table checksum verification for the Load operator, in the case 4834where 4835the load is from a buffer. (BZ 578). 4836 4837Implemented additional parameter validation for the LoadTable operator. 4838The 4839length of the input strings SignatureString, OemIdString, and OemTableId 4840are 4841now checked for maximum lengths. (BZ 582) Lin Ming. 4842 4843Example Code and Data Size: These are the sizes for the OS-independent 4844acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4845debug version of the code includes the debug output trace mechanism and 4846has 4847a much larger code and data size. 4848 4849 Previous Release: 4850 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 4851 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 4852 Current Release: 4853 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 4854 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 4855 4856 48572) iASL Compiler/Disassembler: 4858 4859Fixed a problem where if a single file was specified and the file did not 4860exist, no error message was emitted. (Introduced with wildcard support in 4861version 20070917.) 4862 4863---------------------------------------- 486419 September 2007. Summary of changes for version 20070919: 4865 48661) ACPI CA Core Subsystem: 4867 4868Designed and implemented new external interfaces to install and remove 4869handlers for ACPI table-related events. Current events that are defined 4870are 4871LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 4872they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 4873AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 4874 4875Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 4876(acpi_serialized option on Linux) could cause some systems to hang during 4877initialization. (Bob Moore) BZ 8171 4878 4879Fixed a problem where objects of certain types (Device, ThermalZone, 4880Processor, PowerResource) can be not found if they are declared and 4881referenced from within the same control method (Lin Ming) BZ 341 4882 4883Example Code and Data Size: These are the sizes for the OS-independent 4884acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4885debug version of the code includes the debug output trace mechanism and 4886has 4887a much larger code and data size. 4888 4889 Previous Release: 4890 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 4891 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 4892 Current Release: 4893 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 4894 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 4895 4896 48972) iASL Compiler/Disassembler: 4898 4899Implemented support to allow multiple files to be compiled/disassembled in 4900a 4901single invocation. This includes command line wildcard support for both 4902the 4903Windows and Unix versions of the compiler. This feature simplifies the 4904disassembly and compilation of multiple ACPI tables in a single directory. 4905 4906---------------------------------------- 490708 May 2007. Summary of changes for version 20070508: 4908 49091) ACPI CA Core Subsystem: 4910 4911Implemented a Microsoft compatibility design change for the handling of 4912the 4913Notify AML operator. Previously, notify handlers were dispatched and 4914executed completely asynchronously in a deferred thread. The new design 4915still executes the notify handlers in a different thread, but the original 4916thread that executed the Notify() now waits at a synchronization point for 4917the notify handler to complete. Some machines depend on a synchronous 4918Notify 4919operator in order to operate correctly. 4920 4921Implemented support to allow Package objects to be passed as method 4922arguments to the external AcpiEvaluateObject interface. Previously, this 4923would return the AE_NOT_IMPLEMENTED exception. This feature had not been 4924implemented since there were no reserved control methods that required it 4925until recently. 4926 4927Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 4928that 4929contained invalid non-zero values in reserved fields could cause later 4930failures because these fields have meaning in later revisions of the FADT. 4931For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 4932fields 4933are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 4934 4935Fixed a problem where the Global Lock handle was not properly updated if a 4936thread that acquired the Global Lock via executing AML code then attempted 4937to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 4938Joe 4939Liu. 4940 4941Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 4942could be corrupted if the interrupt being removed was at the head of the 4943list. Reported by Linn Crosetto. 4944 4945Example Code and Data Size: These are the sizes for the OS-independent 4946acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4947debug version of the code includes the debug output trace mechanism and 4948has 4949a much larger code and data size. 4950 4951 Previous Release: 4952 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 4953 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 4954 Current Release: 4955 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 4956 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 4957 4958---------------------------------------- 495920 March 2007. Summary of changes for version 20070320: 4960 49611) ACPI CA Core Subsystem: 4962 4963Implemented a change to the order of interpretation and evaluation of AML 4964operand objects within the AML interpreter. The interpreter now evaluates 4965operands in the order that they appear in the AML stream (and the 4966corresponding ASL code), instead of in the reverse order (after the entire 4967operand list has been parsed). The previous behavior caused several subtle 4968incompatibilities with the Microsoft AML interpreter as well as being 4969somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 4970 4971Implemented a change to the ACPI Global Lock support. All interfaces to 4972the 4973global lock now allow the same thread to acquire the lock multiple times. 4974This affects the AcpiAcquireGlobalLock external interface to the global 4975lock 4976as well as the internal use of the global lock to support AML fields -- a 4977control method that is holding the global lock can now simultaneously 4978access 4979AML fields that require global lock protection. Previously, in both cases, 4980this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 4981to 4982AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 4983Controller. There is no change to the behavior of the AML Acquire 4984operator, 4985as this can already be used to acquire a mutex multiple times by the same 4986thread. BZ 8066. With assistance from Alexey Starikovskiy. 4987 4988Fixed a problem where invalid objects could be referenced in the AML 4989Interpreter after error conditions. During operand evaluation, ensure that 4990the internal "Return Object" field is cleared on error and only valid 4991pointers are stored there. Caused occasional access to deleted objects 4992that 4993resulted in "large reference count" warning messages. Valery Podrezov. 4994 4995Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 4996on 4997deeply nested control method invocations. BZ 7873, local BZ 487. Valery 4998Podrezov. 4999 5000Fixed an internal problem with the handling of result objects on the 5001interpreter result stack. BZ 7872. Valery Podrezov. 5002 5003Removed obsolete code that handled the case where AML_NAME_OP is the 5004target 5005of a reference (Reference.Opcode). This code was no longer necessary. BZ 50067874. Valery Podrezov. 5007 5008Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was 5009a 5010remnant from the previously discontinued 16-bit support. 5011 5012Example Code and Data Size: These are the sizes for the OS-independent 5013acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5014debug version of the code includes the debug output trace mechanism and 5015has 5016a much larger code and data size. 5017 5018 Previous Release: 5019 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5020 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5021 Current Release: 5022 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5023 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 5024 5025---------------------------------------- 502626 January 2007. Summary of changes for version 20070126: 5027 50281) ACPI CA Core Subsystem: 5029 5030Added the 2007 copyright to all module headers and signons. This affects 5031virtually every file in the ACPICA core subsystem, the iASL compiler, and 5032the utilities. 5033 5034Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 5035during a table load. A bad pointer was passed in the case where the DSDT 5036is 5037overridden, causing a fault in this case. 5038 5039Example Code and Data Size: These are the sizes for the OS-independent 5040acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5041debug version of the code includes the debug output trace mechanism and 5042has 5043a much larger code and data size. 5044 5045 Previous Release: 5046 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5047 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5048 Current Release: 5049 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5050 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5051 5052---------------------------------------- 505315 December 2006. Summary of changes for version 20061215: 5054 50551) ACPI CA Core Subsystem: 5056 5057Support for 16-bit ACPICA has been completely removed since it is no 5058longer 5059necessary and it clutters the code. All 16-bit macros, types, and 5060conditional compiles have been removed, cleaning up and simplifying the 5061code 5062across the entire subsystem. DOS support is no longer needed since the 5063bootable Linux firmware kit is now available. 5064 5065The handler for the Global Lock is now removed during AcpiTerminate to 5066enable a clean subsystem restart, via the implementation of the 5067AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 5068HP) 5069 5070Implemented enhancements to the multithreading support within the debugger 5071to enable improved multithreading debugging and evaluation of the 5072subsystem. 5073(Valery Podrezov) 5074 5075Debugger: Enhanced the Statistics/Memory command to emit the total 5076(maximum) 5077memory used during the execution, as well as the maximum memory consumed 5078by 5079each of the various object types. (Valery Podrezov) 5080 5081Example Code and Data Size: These are the sizes for the OS-independent 5082acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5083debug version of the code includes the debug output trace mechanism and 5084has 5085a much larger code and data size. 5086 5087 Previous Release: 5088 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 5089 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 5090 Current Release: 5091 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5092 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5093 5094 50952) iASL Compiler/Disassembler and Tools: 5096 5097AcpiExec: Implemented a new option (-m) to display full memory use 5098statistics upon subsystem/program termination. (Valery Podrezov) 5099 5100---------------------------------------- 510109 November 2006. Summary of changes for version 20061109: 5102 51031) ACPI CA Core Subsystem: 5104 5105Optimized the Load ASL operator in the case where the source operand is an 5106operation region. Simply map the operation region memory, instead of 5107performing a bytewise read. (Region must be of type SystemMemory, see 5108below.) 5109 5110Fixed the Load ASL operator for the case where the source operand is a 5111region field. A buffer object is also allowed as the source operand. BZ 5112480 5113 5114Fixed a problem where the Load ASL operator allowed the source operand to 5115be 5116an operation region of any type. It is now restricted to regions of type 5117SystemMemory, as per the ACPI specification. BZ 481 5118 5119Additional cleanup and optimizations for the new Table Manager code. 5120 5121AcpiEnable will now fail if all of the required ACPI tables are not loaded 5122(FADT, FACS, DSDT). BZ 477 5123 5124Added #pragma pack(8/4) to acobject.h to ensure that the structures in 5125this 5126header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 5127manually optimized to be aligned and will not work if it is byte-packed. 5128 5129Example Code and Data Size: These are the sizes for the OS-independent 5130acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5131debug version of the code includes the debug output trace mechanism and 5132has 5133a much larger code and data size. 5134 5135 Previous Release: 5136 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 5137 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 5138 Current Release: 5139 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 5140 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 5141 5142 51432) iASL Compiler/Disassembler and Tools: 5144 5145Fixed a problem where the presence of the _OSI predefined control method 5146within complex expressions could cause an internal compiler error. 5147 5148AcpiExec: Implemented full region support for multiple address spaces. 5149SpaceId is now part of the REGION object. BZ 429 5150 5151---------------------------------------- 515211 October 2006. Summary of changes for version 20061011: 5153 51541) ACPI CA Core Subsystem: 5155 5156Completed an AML interpreter performance enhancement for control method 5157execution. Previously a 2-pass parse/execution, control methods are now 5158completely parsed and executed in a single pass. This improves overall 5159interpreter performance by ~25%, reduces code size, and reduces CPU stack 5160use. (Valery Podrezov + interpreter changes in version 20051202 that 5161eliminated namespace loading during the pass one parse.) 5162 5163Implemented _CID support for PCI Root Bridge detection. If the _HID does 5164not 5165match the predefined PCI Root Bridge IDs, the _CID list (if present) is 5166now 5167obtained and also checked for an ID match. 5168 5169Implemented additional support for the PCI _ADR execution: upsearch until 5170a 5171device scope is found before executing _ADR. This allows PCI_Config 5172operation regions to be declared locally within control methods underneath 5173PCI device objects. 5174 5175Fixed a problem with a possible race condition between threads executing 5176AcpiWalkNamespace and the AML interpreter. This condition was removed by 5177modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 5178entries created during any concurrent control method execution. An 5179additional namespace race condition is known to exist between 5180AcpiWalkNamespace and the Load/Unload ASL operators and is still under 5181investigation. 5182 5183Restructured the AML ParseLoop function, breaking it into several 5184subfunctions in order to reduce CPU stack use and improve maintainability. 5185(Mikhail Kouzmich) 5186 5187AcpiGetHandle: Fix for parameter validation to detect invalid combinations 5188of prefix handle and pathname. BZ 478 5189 5190Example Code and Data Size: These are the sizes for the OS-independent 5191acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5192debug version of the code includes the debug output trace mechanism and 5193has 5194a much larger code and data size. 5195 5196 Previous Release: 5197 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5198 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 5199 Current Release: 5200 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 5201 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 5202 52032) iASL Compiler/Disassembler and Tools: 5204 5205Ported the -g option (get local ACPI tables) to the new ACPICA Table 5206Manager 5207to restore original behavior. 5208 5209---------------------------------------- 521027 September 2006. Summary of changes for version 20060927: 5211 52121) ACPI CA Core Subsystem: 5213 5214Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 5215These functions now use a spinlock for mutual exclusion and the interrupt 5216level indication flag is not needed. 5217 5218Fixed a problem with the Global Lock where the lock could appear to be 5219obtained before it is actually obtained. The global lock semaphore was 5220inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 5221Suietov. 5222 5223Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 5224during 5225a read from a buffer or region field. (BZ 458) Fiodor Suietov. 5226 5227Example Code and Data Size: These are the sizes for the OS-independent 5228acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5229debug version of the code includes the debug output trace mechanism and 5230has 5231a much larger code and data size. 5232 5233 Previous Release: 5234 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5235 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 5236 Current Release: 5237 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5238 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 5239 5240 52412) iASL Compiler/Disassembler and Tools: 5242 5243Fixed a compilation problem with the pre-defined Resource Descriptor field 5244names where an "object does not exist" error could be incorrectly 5245generated 5246if the parent ResourceTemplate pathname places the template within a 5247different namespace scope than the current scope. (BZ 7212) 5248 5249Fixed a problem where the compiler could hang after syntax errors detected 5250in an ElseIf construct. (BZ 453) 5251 5252Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 5253operator. An incorrect output filename was produced when this parameter 5254was 5255a null string (""). Now, the original input filename is used as the AML 5256output filename, with an ".aml" extension. 5257 5258Implemented a generic batch command mode for the AcpiExec utility (execute 5259any AML debugger command) (Valery Podrezov). 5260 5261---------------------------------------- 526212 September 2006. Summary of changes for version 20060912: 5263 52641) ACPI CA Core Subsystem: 5265 5266Enhanced the implementation of the "serialized mode" of the interpreter 5267(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 5268specified, instead of creating a serialization semaphore per control 5269method, 5270the interpreter lock is simply no longer released before a blocking 5271operation during control method execution. This effectively makes the AML 5272Interpreter single-threaded. The overhead of a semaphore per-method is 5273eliminated. 5274 5275Fixed a regression where an error was no longer emitted if a control 5276method 5277attempts to create 2 objects of the same name. This once again returns 5278AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 5279that 5280will dynamically serialize the control method to possible prevent future 5281errors. (BZ 440) 5282 5283Integrated a fix for a problem with PCI Express HID detection in the PCI 5284Config Space setup procedure. (BZ 7145) 5285 5286Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 5287AcpiHwInitialize function - the FADT registers are now validated when the 5288table is loaded. 5289 5290Added two new warnings during FADT verification - 1) if the FADT is larger 5291than the largest known FADT version, and 2) if there is a mismatch between 5292a 529332-bit block address and the 64-bit X counterpart (when both are non- 5294zero.) 5295 5296Example Code and Data Size: These are the sizes for the OS-independent 5297acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5298debug version of the code includes the debug output trace mechanism and 5299has 5300a much larger code and data size. 5301 5302 Previous Release: 5303 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 5304 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 5305 Current Release: 5306 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5307 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 5308 5309 53102) iASL Compiler/Disassembler and Tools: 5311 5312Fixed a problem with the implementation of the Switch() operator where the 5313temporary variable was declared too close to the actual Switch, instead of 5314at method level. This could cause a problem if the Switch() operator is 5315within a while loop, causing an error on the second iteration. (BZ 460) 5316 5317Disassembler - fix for error emitted for unknown type for target of scope 5318operator. Now, ignore it and continue. 5319 5320Disassembly of an FADT now verifies the input FADT and reports any errors 5321found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 5322 5323Disassembly of raw data buffers with byte initialization data now prefixes 5324each output line with the current buffer offset. 5325 5326Disassembly of ASF! table now includes all variable-length data fields at 5327the end of some of the subtables. 5328 5329The disassembler now emits a comment if a buffer appears to be a 5330ResourceTemplate, but cannot be disassembled as such because the EndTag 5331does 5332not appear at the very end of the buffer. 5333 5334AcpiExec - Added the "-t" command line option to enable the serialized 5335mode 5336of the AML interpreter. 5337 5338---------------------------------------- 533931 August 2006. Summary of changes for version 20060831: 5340 53411) ACPI CA Core Subsystem: 5342 5343Miscellaneous fixes for the Table Manager: 5344- Correctly initialize internal common FADT for all 64-bit "X" fields 5345- Fixed a couple table mapping issues during table load 5346- Fixed a couple alignment issues for IA64 5347- Initialize input array to zero in AcpiInitializeTables 5348- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 5349AcpiGetTableByIndex 5350 5351Change for GPE support: when a "wake" GPE is received, all wake GPEs are 5352now 5353immediately disabled to prevent the waking GPE from firing again and to 5354prevent other wake GPEs from interrupting the wake process. 5355 5356Added the AcpiGpeCount global that tracks the number of processed GPEs, to 5357be used for debugging systems with a large number of ACPI interrupts. 5358 5359Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 5360both the ACPICA headers and the disassembler. 5361 5362Example Code and Data Size: These are the sizes for the OS-independent 5363acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5364debug version of the code includes the debug output trace mechanism and 5365has 5366a much larger code and data size. 5367 5368 Previous Release: 5369 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 5370 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 5371 Current Release: 5372 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 5373 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 5374 5375 53762) iASL Compiler/Disassembler and Tools: 5377 5378Disassembler support for the DMAR ACPI table. 5379 5380---------------------------------------- 538123 August 2006. Summary of changes for version 20060823: 5382 53831) ACPI CA Core Subsystem: 5384 5385The Table Manager component has been completely redesigned and 5386reimplemented. The new design is much simpler, and reduces the overall 5387code 5388and data size of the kernel-resident ACPICA by approximately 5%. Also, it 5389is 5390now possible to obtain the ACPI tables very early during kernel 5391initialization, even before dynamic memory management is initialized. 5392(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 5393 5394Obsolete ACPICA interfaces: 5395 5396- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 5397init 5398time). 5399- AcpiLoadTable: Not needed. 5400- AcpiUnloadTable: Not needed. 5401 5402New ACPICA interfaces: 5403 5404- AcpiInitializeTables: Must be called before the table manager can be 5405used. 5406- AcpiReallocateRootTable: Used to transfer the root table to dynamically 5407allocated memory after it becomes available. 5408- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 5409in the RSDT/XSDT. 5410 5411Other ACPICA changes: 5412 5413- AcpiGetTableHeader returns the actual mapped table header, not a copy. 5414Use 5415AcpiOsUnmapMemory to free this mapping. 5416- AcpiGetTable returns the actual mapped table. The mapping is managed 5417internally and must not be deleted by the caller. Use of this interface 5418causes no additional dynamic memory allocation. 5419- AcpiFindRootPointer: Support for physical addressing has been 5420eliminated, 5421it appeared to be unused. 5422- The interface to AcpiOsMapMemory has changed to be consistent with the 5423other allocation interfaces. 5424- The interface to AcpiOsGetRootPointer has changed to eliminate 5425unnecessary 5426parameters. 5427- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 5428bit platforms. Was previously 64 bits on all platforms. 5429- The interface to the ACPI Global Lock acquire/release macros have 5430changed 5431slightly since ACPICA no longer keeps a local copy of the FACS with a 5432constructed pointer to the actual global lock. 5433 5434Porting to the new table manager: 5435 5436- AcpiInitializeTables: Must be called once, and can be called anytime 5437during the OS initialization process. It allows the host to specify an 5438area 5439of memory to be used to store the internal version of the RSDT/XSDT (root 5440table). This allows the host to access ACPI tables before memory 5441management 5442is initialized and running. 5443- AcpiReallocateRootTable: Can be called after memory management is 5444running 5445to copy the root table to a dynamically allocated array, freeing up the 5446scratch memory specified in the call to AcpiInitializeTables. 5447- AcpiSubsystemInitialize: This existing interface is independent of the 5448Table Manager, and does not have to be called before the Table Manager can 5449be used, it only must be called before the rest of ACPICA can be used. 5450- ACPI Tables: Some changes have been made to the names and structure of 5451the 5452actbl.h and actbl1.h header files and may require changes to existing 5453code. 5454For example, bitfields have been completely removed because of their lack 5455of 5456portability across C compilers. 5457- Update interfaces to the Global Lock acquire/release macros if local 5458versions are used. (see acwin.h) 5459 5460Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 5461 5462New files: tbfind.c 5463 5464Example Code and Data Size: These are the sizes for the OS-independent 5465acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5466debug version of the code includes the debug output trace mechanism and 5467has 5468a much larger code and data size. 5469 5470 Previous Release: 5471 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 5472 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 5473 Current Release: 5474 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 5475 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 5476 5477 54782) iASL Compiler/Disassembler and Tools: 5479 5480No changes for this release. 5481 5482---------------------------------------- 548321 July 2006. Summary of changes for version 20060721: 5484 54851) ACPI CA Core Subsystem: 5486 5487The full source code for the ASL test suite used to validate the iASL 5488compiler and the ACPICA core subsystem is being released with the ACPICA 5489source for the first time. The source is contained in a separate package 5490and 5491consists of over 1100 files that exercise all ASL/AML operators. The 5492package 5493should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 5494Suietov) 5495 5496Completed a new design and implementation for support of the ACPI Global 5497Lock. On the OS side, the global lock is now treated as a standard AML 5498mutex. Previously, multiple OS threads could "acquire" the global lock 5499simultaneously. However, this could cause the BIOS to be starved out of 5500the 5501lock - especially in cases such as the Embedded Controller driver where 5502there is a tight coupling between the OS and the BIOS. 5503 5504Implemented an optimization for the ACPI Global Lock interrupt mechanism. 5505The Global Lock interrupt handler no longer queues the execution of a 5506separate thread to signal the global lock semaphore. Instead, the 5507semaphore 5508is signaled directly from the interrupt handler. 5509 5510Implemented support within the AML interpreter for package objects that 5511contain a larger AML length (package list length) than the package element 5512count. In this case, the length of the package is truncated to match the 5513package element count. Some BIOS code apparently modifies the package 5514length 5515on the fly, and this change supports this behavior. Provides compatibility 5516with the MS AML interpreter. (With assistance from Fiodor Suietov) 5517 5518Implemented a temporary fix for the BankValue parameter of a Bank Field to 5519support all constant values, now including the Zero and One opcodes. 5520Evaluation of this parameter must eventually be converted to a full 5521TermArg 5522evaluation. A not-implemented error is now returned (temporarily) for non- 5523constant values for this parameter. 5524 5525Fixed problem reports (Fiodor Suietov) integrated: 5526- Fix for premature object deletion after CopyObject on Operation Region 5527(BZ 5528350) 5529 5530Example Code and Data Size: These are the sizes for the OS-independent 5531acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5532debug version of the code includes the debug output trace mechanism and 5533has 5534a much larger code and data size. 5535 5536 Previous Release: 5537 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 5538 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 5539 Current Release: 5540 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 5541 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 5542 5543 55442) iASL Compiler/Disassembler and Tools: 5545 5546No changes for this release. 5547 5548---------------------------------------- 554907 July 2006. Summary of changes for version 20060707: 5550 55511) ACPI CA Core Subsystem: 5552 5553Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 5554that do not allow the initialization of address pointers within packed 5555structures - even though the hardware itself may support misaligned 5556transfers. Some of the debug data structures are packed by default to 5557minimize size. 5558 5559Added an error message for the case where AcpiOsGetThreadId() returns 5560zero. 5561A non-zero value is required by the core ACPICA code to ensure the proper 5562operation of AML mutexes and recursive control methods. 5563 5564The DSDT is now the only ACPI table that determines whether the AML 5565interpreter is in 32-bit or 64-bit mode. Not really a functional change, 5566but 5567the hooks for per-table 32/64 switching have been removed from the code. A 5568clarification to the ACPI specification is forthcoming in ACPI 3.0B. 5569 5570Fixed a possible leak of an OwnerID in the error path of 5571AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 5572deletion to a single place in AcpiTbUninstallTable to correct possible 5573leaks 5574when using the AcpiTbDeleteTablesByType interface (with assistance from 5575Lance Ortiz.) 5576 5577Fixed a problem with Serialized control methods where the semaphore 5578associated with the method could be over-signaled after multiple method 5579invocations. 5580 5581Fixed two issues with the locking of the internal namespace data 5582structure. 5583Both the Unload() operator and AcpiUnloadTable interface now lock the 5584namespace during the namespace deletion associated with the table unload 5585(with assistance from Linn Crosetto.) 5586 5587Fixed problem reports (Valery Podrezov) integrated: 5588- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 5589 5590Fixed problem reports (Fiodor Suietov) integrated: 5591- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 5592- On Address Space handler deletion, needless deactivation call (BZ 374) 5593- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 5594- Possible memory leak, Notify sub-objects of Processor, Power, 5595ThermalZone 5596(BZ 376) 5597- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 5598- Minimum Length of RSDT should be validated (BZ 379) 5599- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 5600Handler (BZ (380) 5601- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 5602loaded 5603(BZ 381) 5604 5605Example Code and Data Size: These are the sizes for the OS-independent 5606acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5607debug version of the code includes the debug output trace mechanism and 5608has 5609a much larger code and data size. 5610 5611 Previous Release: 5612 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 5613 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 5614 Current Release: 5615 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 5616 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 5617 5618 56192) iASL Compiler/Disassembler and Tools: 5620 5621Fixed problem reports: 5622Compiler segfault when ASL contains a long (>1024) String declaration (BZ 5623436) 5624 5625---------------------------------------- 562623 June 2006. Summary of changes for version 20060623: 5627 56281) ACPI CA Core Subsystem: 5629 5630Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 5631allows the type to be customized to the host OS for improved efficiency 5632(since a spinlock is usually a very small object.) 5633 5634Implemented support for "ignored" bits in the ACPI registers. According to 5635the ACPI specification, these bits should be preserved when writing the 5636registers via a read/modify/write cycle. There are 3 bits preserved in 5637this 5638manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 5639 5640Implemented the initial deployment of new OSL mutex interfaces. Since some 5641host operating systems have separate mutex and semaphore objects, this 5642feature was requested. The base code now uses mutexes (and the new mutex 5643interfaces) wherever a binary semaphore was used previously. However, for 5644the current release, the mutex interfaces are defined as macros to map 5645them 5646to the existing semaphore interfaces. Therefore, no OSL changes are 5647required 5648at this time. (See acpiosxf.h) 5649 5650Fixed several problems with the support for the control method SyncLevel 5651parameter. The SyncLevel now works according to the ACPI specification and 5652in concert with the Mutex SyncLevel parameter, since the current SyncLevel 5653is a property of the executing thread. Mutual exclusion for control 5654methods 5655is now implemented with a mutex instead of a semaphore. 5656 5657Fixed three instances of the use of the C shift operator in the bitfield 5658support code (exfldio.c) to avoid the use of a shift value larger than the 5659target data width. The behavior of C compilers is undefined in this case 5660and 5661can cause unpredictable results, and therefore the case must be detected 5662and 5663avoided. (Fiodor Suietov) 5664 5665Added an info message whenever an SSDT or OEM table is loaded dynamically 5666via the Load() or LoadTable() ASL operators. This should improve debugging 5667capability since it will show exactly what tables have been loaded (beyond 5668the tables present in the RSDT/XSDT.) 5669 5670Example Code and Data Size: These are the sizes for the OS-independent 5671acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5672debug version of the code includes the debug output trace mechanism and 5673has 5674a much larger code and data size. 5675 5676 Previous Release: 5677 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 5678 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 5679 Current Release: 5680 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 5681 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 5682 5683 56842) iASL Compiler/Disassembler and Tools: 5685 5686No changes for this release. 5687 5688---------------------------------------- 568908 June 2006. Summary of changes for version 20060608: 5690 56911) ACPI CA Core Subsystem: 5692 5693Converted the locking mutex used for the ACPI hardware to a spinlock. This 5694change should eliminate all problems caused by attempting to acquire a 5695semaphore at interrupt level, and it means that all ACPICA external 5696interfaces that directly access the ACPI hardware can be safely called 5697from 5698interrupt level. OSL code that implements the semaphore interfaces should 5699be 5700able to eliminate any workarounds for being called at interrupt level. 5701 5702Fixed a regression introduced in 20060526 where the ACPI device 5703initialization could be prematurely aborted with an AE_NOT_FOUND if a 5704device 5705did not have an optional _INI method. 5706 5707Fixed an IndexField issue where a write to the Data Register should be 5708limited in size to the AccessSize (width) of the IndexField itself. (BZ 5709433, 5710Fiodor Suietov) 5711 5712Fixed problem reports (Valery Podrezov) integrated: 5713- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 5714 5715Fixed problem reports (Fiodor Suietov) integrated: 5716- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 5717 5718Removed four global mutexes that were obsolete and were no longer being 5719used. 5720 5721Example Code and Data Size: These are the sizes for the OS-independent 5722acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5723debug version of the code includes the debug output trace mechanism and 5724has 5725a much larger code and data size. 5726 5727 Previous Release: 5728 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 5729 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 5730 Current Release: 5731 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 5732 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 5733 5734 57352) iASL Compiler/Disassembler and Tools: 5736 5737Fixed a fault when using -g option (get tables from registry) on Windows 5738machines. 5739 5740Fixed problem reports integrated: 5741- Generate error if CreateField NumBits parameter is zero. (BZ 405) 5742- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 5743Suietov) 5744- Global table revision override (-r) is ignored (BZ 413) 5745 5746---------------------------------------- 574726 May 2006. Summary of changes for version 20060526: 5748 57491) ACPI CA Core Subsystem: 5750 5751Restructured, flattened, and simplified the internal interfaces for 5752namespace object evaluation - resulting in smaller code, less CPU stack 5753use, 5754and fewer interfaces. (With assistance from Mikhail Kouzmich) 5755 5756Fixed a problem with the CopyObject operator where the first parameter was 5757not typed correctly for the parser, interpreter, compiler, and 5758disassembler. 5759Caused various errors and unexpected behavior. 5760 5761Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 5762produced incorrect results with some C compilers. Since the behavior of C 5763compilers when the shift value is larger than the datatype width is 5764apparently not well defined, the interpreter now detects this condition 5765and 5766simply returns zero as expected in all such cases. (BZ 395) 5767 5768Fixed problem reports (Valery Podrezov) integrated: 5769- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 5770- Allow interpreter to handle nested method declarations (BZ 5361) 5771 5772Fixed problem reports (Fiodor Suietov) integrated: 5773- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 5774- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 5775356) 5776- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 5777- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 5778- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 5779- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 5780- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 5781- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 5782- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 5783365) 5784- Status of the Global Initialization Handler call not used (BZ 366) 5785- Incorrect object parameter to Global Initialization Handler (BZ 367) 5786 5787Example Code and Data Size: These are the sizes for the OS-independent 5788acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5789debug version of the code includes the debug output trace mechanism and 5790has 5791a much larger code and data size. 5792 5793 Previous Release: 5794 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 5795 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 5796 Current Release: 5797 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 5798 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 5799 5800 58012) iASL Compiler/Disassembler and Tools: 5802 5803Modified the parser to allow the names IO, DMA, and IRQ to be used as 5804namespace identifiers with no collision with existing resource descriptor 5805macro names. This provides compatibility with other ASL compilers and is 5806most useful for disassembly/recompilation of existing tables without parse 5807errors. (With assistance from Thomas Renninger) 5808 5809Disassembler: fixed an incorrect disassembly problem with the 5810DataTableRegion and CopyObject operators. Fixed a possible fault during 5811disassembly of some Alias operators. 5812 5813---------------------------------------- 581412 May 2006. Summary of changes for version 20060512: 5815 58161) ACPI CA Core Subsystem: 5817 5818Replaced the AcpiOsQueueForExecution interface with a new interface named 5819AcpiOsExecute. The major difference is that the new interface does not 5820have 5821a Priority parameter, this appeared to be useless and has been replaced by 5822a 5823Type parameter. The Type tells the host what type of execution is being 5824requested, such as global lock handler, notify handler, GPE handler, etc. 5825This allows the host to queue and execute the request as appropriate for 5826the 5827request type, possibly using different work queues and different 5828priorities 5829for the various request types. This enables fixes for multithreading 5830deadlock problems such as BZ #5534, and will require changes to all 5831existing 5832OS interface layers. (Alexey Starikovskiy and Bob Moore) 5833 5834Fixed a possible memory leak associated with the support for the so-called 5835"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 5836Suietov) 5837 5838Fixed a problem with the Load() operator where a table load from an 5839operation region could overwrite an internal table buffer by up to 7 bytes 5840and cause alignment faults on IPF systems. (With assistance from Luming 5841Yu) 5842 5843Example Code and Data Size: These are the sizes for the OS-independent 5844acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5845debug version of the code includes the debug output trace mechanism and 5846has 5847a much larger code and data size. 5848 5849 Previous Release: 5850 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 5851 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 5852 Current Release: 5853 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 5854 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 5855 5856 5857 58582) iASL Compiler/Disassembler and Tools: 5859 5860Disassembler: Implemented support to cross reference the internal 5861namespace 5862and automatically generate ASL External() statements for symbols not 5863defined 5864within the current table being disassembled. This will simplify the 5865disassembly and recompilation of interdependent tables such as SSDTs since 5866these statements will no longer have to be added manually. 5867 5868Disassembler: Implemented experimental support to automatically detect 5869invocations of external control methods and generate appropriate 5870External() 5871statements. This is problematic because the AML cannot be correctly parsed 5872until the number of arguments for each control method is known. Currently, 5873standalone method invocations and invocations as the source operand of a 5874Store() statement are supported. 5875 5876Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 5877LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 5878LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 5879more readable and likely closer to the original ASL source. 5880 5881---------------------------------------- 588221 April 2006. Summary of changes for version 20060421: 5883 58841) ACPI CA Core Subsystem: 5885 5886Removed a device initialization optimization introduced in 20051216 where 5887the _STA method was not run unless an _INI was also present for the same 5888device. This optimization could cause problems because it could allow _INI 5889methods to be run within a not-present device subtree. (If a not-present 5890device had no _INI, _STA would not be run, the not-present status would 5891not 5892be discovered, and the children of the device would be incorrectly 5893traversed.) 5894 5895Implemented a new _STA optimization where namespace subtrees that do not 5896contain _INI are identified and ignored during device initialization. 5897Selectively running _STA can significantly improve boot time on large 5898machines (with assistance from Len Brown.) 5899 5900Implemented support for the device initialization case where the returned 5901_STA flags indicate a device not-present but functioning. In this case, 5902_INI 5903is not run, but the device children are examined for presence, as per the 5904ACPI specification. 5905 5906Implemented an additional change to the IndexField support in order to 5907conform to MS behavior. The value written to the Index Register is not 5908simply a byte offset, it is a byte offset in units of the access width of 5909the parent Index Field. (Fiodor Suietov) 5910 5911Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 5912interface is called during the creation of all AML operation regions, and 5913allows the host OS to exert control over what addresses it will allow the 5914AML code to access. Operation Regions whose addresses are disallowed will 5915cause a runtime exception when they are actually accessed (will not affect 5916or abort table loading.) See oswinxf or osunixxf for an example 5917implementation. 5918 5919Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 5920interface allows the host OS to match the various "optional" 5921interface/behavior strings for the _OSI predefined control method as 5922appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 5923for an example implementation. 5924 5925Restructured and corrected various problems in the exception handling code 5926paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 5927(with assistance from Takayoshi Kochi.) 5928 5929Modified the Linux source converter to ignore quoted string literals while 5930converting identifiers from mixed to lower case. This will correct 5931problems 5932with the disassembler and other areas where such strings must not be 5933modified. 5934 5935The ACPI_FUNCTION_* macros no longer require quotes around the function 5936name. This allows the Linux source converter to convert the names, now 5937that 5938the converter ignores quoted strings. 5939 5940Example Code and Data Size: These are the sizes for the OS-independent 5941acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5942debug version of the code includes the debug output trace mechanism and 5943has 5944a much larger code and data size. 5945 5946 Previous Release: 5947 5948 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 5949 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 5950 Current Release: 5951 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 5952 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 5953 5954 59552) iASL Compiler/Disassembler and Tools: 5956 5957Implemented 3 new warnings for iASL, and implemented multiple warning 5958levels 5959(w2 flag). 5960 59611) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 5962not 5963WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 5964check for the possible timeout, a warning is issued. 5965 59662) Useless operators: If an ASL operator does not specify an optional 5967target 5968operand and it also does not use the function return value from the 5969operator, a warning is issued since the operator effectively does nothing. 5970 59713) Unreferenced objects: If a namespace object is created, but never 5972referenced, a warning is issued. This is a warning level 2 since there are 5973cases where this is ok, such as when a secondary table is loaded that uses 5974the unreferenced objects. Even so, care is taken to only flag objects that 5975don't look like they will ever be used. For example, the reserved methods 5976(starting with an underscore) are usually not referenced because it is 5977expected that the OS will invoke them. 5978 5979---------------------------------------- 598031 March 2006. Summary of changes for version 20060331: 5981 59821) ACPI CA Core Subsystem: 5983 5984Implemented header file support for the following additional ACPI tables: 5985ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 5986support, 5987all current and known ACPI tables are now defined in the ACPICA headers 5988and 5989are available for use by device drivers and other software. 5990 5991Implemented support to allow tables that contain ACPI names with invalid 5992characters to be loaded. Previously, this would cause the table load to 5993fail, but since there are several known cases of such tables on existing 5994machines, this change was made to enable ACPI support for them. Also, this 5995matches the behavior of the Microsoft ACPI implementation. 5996 5997Fixed a couple regressions introduced during the memory optimization in 5998the 599920060317 release. The namespace node definition required additional 6000reorganization and an internal datatype that had been changed to 8-bit was 6001restored to 32-bit. (Valery Podrezov) 6002 6003Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 6004could be passed through to AcpiOsReleaseObject which is unexpected. Such 6005null pointers are now trapped and ignored, matching the behavior of the 6006previous implementation before the deployment of AcpiOsReleaseObject. 6007(Valery Podrezov, Fiodor Suietov) 6008 6009Fixed a memory mapping leak during the deletion of a SystemMemory 6010operation 6011region where a cached memory mapping was not deleted. This became a 6012noticeable problem for operation regions that are defined within 6013frequently 6014used control methods. (Dana Meyers) 6015 6016Reorganized the ACPI table header files into two main files: one for the 6017ACPI tables consumed by the ACPICA core, and another for the miscellaneous 6018ACPI tables that are consumed by the drivers and other software. The 6019various 6020FADT definitions were merged into one common section and three different 6021tables (ACPI 1.0, 1.0+, and 2.0) 6022 6023Example Code and Data Size: These are the sizes for the OS-independent 6024acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6025debug version of the code includes the debug output trace mechanism and 6026has 6027a much larger code and data size. 6028 6029 Previous Release: 6030 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 6031 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 6032 Current Release: 6033 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 6034 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 6035 6036 60372) iASL Compiler/Disassembler and Tools: 6038 6039Disassembler: Implemented support to decode and format all non-AML ACPI 6040tables (tables other than DSDTs and SSDTs.) This includes the new tables 6041added to the ACPICA headers, therefore all current and known ACPI tables 6042are 6043supported. 6044 6045Disassembler: The change to allow ACPI names with invalid characters also 6046enables the disassembly of such tables. Invalid characters within names 6047are 6048changed to '*' to make the name printable; the iASL compiler will still 6049generate an error for such names, however, since this is an invalid ACPI 6050character. 6051 6052Implemented an option for AcpiXtract (-a) to extract all tables found in 6053the 6054input file. The default invocation extracts only the DSDTs and SSDTs. 6055 6056Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 6057makefile for the AcpiXtract utility. 6058 6059---------------------------------------- 606017 March 2006. Summary of changes for version 20060317: 6061 60621) ACPI CA Core Subsystem: 6063 6064Implemented the use of a cache object for all internal namespace nodes. 6065Since there are about 1000 static nodes in a typical system, this will 6066decrease memory use for cache implementations that minimize per-allocation 6067overhead (such as a slab allocator.) 6068 6069Removed the reference count mechanism for internal namespace nodes, since 6070it 6071was deemed unnecessary. This reduces the size of each namespace node by 6072about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 6073and 32 bytes for the 64-bit case. 6074 6075Optimized several internal data structures to reduce object size on 64-bit 6076platforms by packing data within the 64-bit alignment. This includes the 6077frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 6078instances corresponding to the namespace objects. 6079 6080Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 6081and "Windows 2006". 6082 6083Split the allocation tracking mechanism out to a separate file, from 6084utalloc.c to uttrack.c. This mechanism appears to be only useful for 6085application-level code. Kernels may wish to not include uttrack.c in 6086distributions. 6087 6088Removed all remnants of the obsolete ACPI_REPORT_* macros and the 6089associated 6090code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 6091macros.) 6092 6093Code and Data Size: These are the sizes for the acpica.lib produced by the 6094Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6095ACPI 6096driver or OSPM code. The debug version of the code includes the debug 6097output 6098trace mechanism and has a much larger code and data size. Note that these 6099values will vary depending on the efficiency of the compiler and the 6100compiler options used during generation. 6101 6102 Previous Release: 6103 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6104 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 6105 Current Release: 6106 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 6107 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 6108 6109 61102) iASL Compiler/Disassembler and Tools: 6111 6112Implemented an ANSI C version of the acpixtract utility. This version will 6113automatically extract the DSDT and all SSDTs from the input acpidump text 6114file and dump the binary output to separate files. It can also display a 6115summary of the input file including the headers for each table found and 6116will extract any single ACPI table, with any signature. (See 6117source/tools/acpixtract) 6118 6119---------------------------------------- 612010 March 2006. Summary of changes for version 20060310: 6121 61221) ACPI CA Core Subsystem: 6123 6124Tagged all external interfaces to the subsystem with the new 6125ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 6126kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 6127macro. The default definition is NULL. 6128 6129Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 6130This allows the host to define this as necessary to simplify kernel 6131integration. The default definition is ACPI_NATIVE_UINT. 6132 6133Fixed two interpreter problems related to error processing, the deletion 6134of 6135objects, and placing invalid pointers onto the internal operator result 6136stack. BZ 6028, 6151 (Valery Podrezov) 6137 6138Increased the reference count threshold where a warning is emitted for 6139large 6140reference counts in order to eliminate unnecessary warnings on systems 6141with 6142large namespaces (especially 64-bit.) Increased the value from 0x400 to 61430x800. 6144 6145Due to universal disagreement as to the meaning of the 'c' in the calloc() 6146function, the ACPI_MEM_CALLOCATE macro has been renamed to 6147ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 6148ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 6149ACPI_FREE. 6150 6151Code and Data Size: These are the sizes for the acpica.lib produced by the 6152Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6153ACPI 6154driver or OSPM code. The debug version of the code includes the debug 6155output 6156trace mechanism and has a much larger code and data size. Note that these 6157values will vary depending on the efficiency of the compiler and the 6158compiler options used during generation. 6159 6160 Previous Release: 6161 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 6162 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 6163 Current Release: 6164 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6165 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 6166 6167 61682) iASL Compiler/Disassembler: 6169 6170Disassembler: implemented support for symbolic resource descriptor 6171references. If a CreateXxxxField operator references a fixed offset within 6172a 6173resource descriptor, a name is assigned to the descriptor and the offset 6174is 6175translated to the appropriate resource tag and pathname. The addition of 6176this support brings the disassembled code very close to the original ASL 6177source code and helps eliminate run-time errors when the disassembled code 6178is modified (and recompiled) in such a way as to invalidate the original 6179fixed offsets. 6180 6181Implemented support for a Descriptor Name as the last parameter to the ASL 6182Register() macro. This parameter was inadvertently left out of the ACPI 6183specification, and will be added for ACPI 3.0b. 6184 6185Fixed a problem where the use of the "_OSI" string (versus the full path 6186"\_OSI") caused an internal compiler error. ("No back ptr to op") 6187 6188Fixed a problem with the error message that occurs when an invalid string 6189is 6190used for a _HID object (such as one with an embedded asterisk: 6191"*PNP010A".) 6192The correct message is now displayed. 6193 6194---------------------------------------- 619517 February 2006. Summary of changes for version 20060217: 6196 61971) ACPI CA Core Subsystem: 6198 6199Implemented a change to the IndexField support to match the behavior of 6200the 6201Microsoft AML interpreter. The value written to the Index register is now 6202a 6203byte offset, no longer an index based upon the width of the Data register. 6204This should fix IndexField problems seen on some machines where the Data 6205register is not exactly one byte wide. The ACPI specification will be 6206clarified on this point. 6207 6208Fixed a problem where several resource descriptor types could overrun the 6209internal descriptor buffer due to size miscalculation: VendorShort, 6210VendorLong, and Interrupt. This was noticed on IA64 machines, but could 6211affect all platforms. 6212 6213Fixed a problem where individual resource descriptors were misaligned 6214within 6215the internal buffer, causing alignment faults on IA64 platforms. 6216 6217Code and Data Size: These are the sizes for the acpica.lib produced by the 6218Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6219ACPI 6220driver or OSPM code. The debug version of the code includes the debug 6221output 6222trace mechanism and has a much larger code and data size. Note that these 6223values will vary depending on the efficiency of the compiler and the 6224compiler options used during generation. 6225 6226 Previous Release: 6227 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6228 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 6229 Current Release: 6230 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 6231 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 6232 6233 62342) iASL Compiler/Disassembler: 6235 6236Implemented support for new reserved names: _WDG and _WED are Microsoft 6237extensions for Windows Instrumentation Management, _TDL is a new ACPI- 6238defined method (Throttling Depth Limit.) 6239 6240Fixed a problem where a zero-length VendorShort or VendorLong resource 6241descriptor was incorrectly emitted as a descriptor of length one. 6242 6243---------------------------------------- 624410 February 2006. Summary of changes for version 20060210: 6245 62461) ACPI CA Core Subsystem: 6247 6248Removed a couple of extraneous ACPI_ERROR messages that appeared during 6249normal execution. These became apparent after the conversion from 6250ACPI_DEBUG_PRINT. 6251 6252Fixed a problem where the CreateField operator could hang if the BitIndex 6253or 6254NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 6255 6256Fixed a problem where a DeRefOf operation on a buffer object incorrectly 6257failed with an exception. This also fixes a couple of related RefOf and 6258DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 6259 6260Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 6261of 6262AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 6263BZ 62645480) 6265 6266Implemented a memory cleanup at the end of the execution of each iteration 6267of an AML While() loop, preventing the accumulation of outstanding 6268objects. 6269(Valery Podrezov, BZ 5427) 6270 6271Eliminated a chunk of duplicate code in the object resolution code. 6272(Valery 6273Podrezov, BZ 5336) 6274 6275Fixed several warnings during the 64-bit code generation. 6276 6277The AcpiSrc source code conversion tool now inserts one line of whitespace 6278after an if() statement that is followed immediately by a comment, 6279improving 6280readability of the Linux code. 6281 6282Code and Data Size: The current and previous library sizes for the core 6283subsystem are shown below. These are the code and data sizes for the 6284acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6285values do not include any ACPI driver or OSPM code. The debug version of 6286the 6287code includes the debug output trace mechanism and has a much larger code 6288and data size. Note that these values will vary depending on the 6289efficiency 6290of the compiler and the compiler options used during generation. 6291 6292 Previous Release: 6293 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 6294 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 6295 Current Release: 6296 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6297 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 6298 6299 63002) iASL Compiler/Disassembler: 6301 6302Fixed a problem with the disassembly of a BankField operator with a 6303complex 6304expression for the BankValue parameter. 6305 6306---------------------------------------- 630727 January 2006. Summary of changes for version 20060127: 6308 63091) ACPI CA Core Subsystem: 6310 6311Implemented support in the Resource Manager to allow unresolved namestring 6312references within resource package objects for the _PRT method. This 6313support 6314is in addition to the previously implemented unresolved reference support 6315within the AML parser. If the interpreter slack mode is enabled, these 6316unresolved references will be passed through to the caller as a NULL 6317package 6318entry. 6319 6320Implemented and deployed new macros and functions for error and warning 6321messages across the subsystem. These macros are simpler and generate less 6322code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 6323ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 6324macros remain defined to allow ACPI drivers time to migrate to the new 6325macros. 6326 6327Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 6328Acquire/Release Lock OSL interfaces. 6329 6330Fixed a problem where Alias ASL operators are sometimes not correctly 6331resolved, in both the interpreter and the iASL compiler. 6332 6333Fixed several problems with the implementation of the 6334ConcatenateResTemplate 6335ASL operator. As per the ACPI specification, zero length buffers are now 6336treated as a single EndTag. One-length buffers always cause a fatal 6337exception. Non-zero length buffers that do not end with a full 2-byte 6338EndTag 6339cause a fatal exception. 6340 6341Fixed a possible structure overwrite in the AcpiGetObjectInfo external 6342interface. (With assistance from Thomas Renninger) 6343 6344Code and Data Size: The current and previous library sizes for the core 6345subsystem are shown below. These are the code and data sizes for the 6346acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6347values do not include any ACPI driver or OSPM code. The debug version of 6348the 6349code includes the debug output trace mechanism and has a much larger code 6350and data size. Note that these values will vary depending on the 6351efficiency 6352of the compiler and the compiler options used during generation. 6353 6354 Previous Release: 6355 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 6356 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 6357 Current Release: 6358 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 6359 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 6360 6361 63622) iASL Compiler/Disassembler: 6363 6364Fixed an internal error that was generated for any forward references to 6365ASL 6366Alias objects. 6367 6368---------------------------------------- 636913 January 2006. Summary of changes for version 20060113: 6370 63711) ACPI CA Core Subsystem: 6372 6373Added 2006 copyright to all module headers and signons. This affects 6374virtually every file in the ACPICA core subsystem, iASL compiler, and the 6375utilities. 6376 6377Enhanced the ACPICA error reporting in order to simplify user migration to 6378the non-debug version of ACPICA. Replaced all instances of the 6379ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 6380levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 6381respectively. This preserves all error and warning messages in the non- 6382debug 6383version of the ACPICA code (this has been referred to as the "debug lite" 6384option.) Over 200 cases were converted to create a total of over 380 6385error/warning messages across the ACPICA code. This increases the code and 6386data size of the default non-debug version of the code somewhat (about 638713K), 6388but all error/warning reporting may be disabled if desired (and code 6389eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 6390configuration option. The size of the debug version of ACPICA remains 6391about 6392the same. 6393 6394Fixed a memory leak within the AML Debugger "Set" command. One object was 6395not properly deleted for every successful invocation of the command. 6396 6397Code and Data Size: The current and previous library sizes for the core 6398subsystem are shown below. These are the code and data sizes for the 6399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6400values do not include any ACPI driver or OSPM code. The debug version of 6401the 6402code includes the debug output trace mechanism and has a much larger code 6403and data size. Note that these values will vary depending on the 6404efficiency 6405of the compiler and the compiler options used during generation. 6406 6407 Previous Release: 6408 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 6409 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 6410 Current Release: 6411 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 6412 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 6413 6414 64152) iASL Compiler/Disassembler: 6416 6417The compiler now officially supports the ACPI 3.0a specification that was 6418released on December 30, 2005. (Specification is available at 6419www.acpi.info) 6420 6421---------------------------------------- 642216 December 2005. Summary of changes for version 20051216: 6423 64241) ACPI CA Core Subsystem: 6425 6426Implemented optional support to allow unresolved names within ASL Package 6427objects. A null object is inserted in the package when a named reference 6428cannot be located in the current namespace. Enabled via the interpreter 6429slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 6430that contain such code. 6431 6432Implemented an optimization to the initialization sequence that can 6433improve 6434boot time. During ACPI device initialization, the _STA method is now run 6435if 6436and only if the _INI method exists. The _STA method is used to determine 6437if 6438the device is present; An _INI can only be run if _STA returns present, 6439but 6440it is a waste of time to run the _STA method if the _INI does not exist. 6441(Prototype and assistance from Dong Wei) 6442 6443Implemented use of the C99 uintptr_t for the pointer casting macros if it 6444is 6445available in the current compiler. Otherwise, the default (void *) cast is 6446used as before. 6447 6448Fixed some possible memory leaks found within the execution path of the 6449Break, Continue, If, and CreateField operators. (Valery Podrezov) 6450 6451Fixed a problem introduced in the 20051202 release where an exception is 6452generated during method execution if a control method attempts to declare 6453another method. 6454 6455Moved resource descriptor string constants that are used by both the AML 6456disassembler and AML debugger to the common utilities directory so that 6457these components are independent. 6458 6459Implemented support in the AcpiExec utility (-e switch) to globally ignore 6460exceptions during control method execution (method is not aborted.) 6461 6462Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 6463generation. 6464 6465Code and Data Size: The current and previous library sizes for the core 6466subsystem are shown below. These are the code and data sizes for the 6467acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6468values do not include any ACPI driver or OSPM code. The debug version of 6469the 6470code includes the debug output trace mechanism and has a much larger code 6471and data size. Note that these values will vary depending on the 6472efficiency 6473of the compiler and the compiler options used during generation. 6474 6475 Previous Release: 6476 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6477 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 6478 Current Release: 6479 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 6480 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 6481 6482 64832) iASL Compiler/Disassembler: 6484 6485Fixed a problem where a CPU stack overflow fault could occur if a 6486recursive 6487method call was made from within a Return statement. 6488 6489---------------------------------------- 649002 December 2005. Summary of changes for version 20051202: 6491 64921) ACPI CA Core Subsystem: 6493 6494Modified the parsing of control methods to no longer create namespace 6495objects during the first pass of the parse. Objects are now created only 6496during the execute phase, at the moment the namespace creation operator is 6497encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 6498should eliminate ALREADY_EXISTS exceptions seen on some machines where 6499reentrant control methods are protected by an AML mutex. The mutex will 6500now 6501correctly block multiple threads from attempting to create the same object 6502more than once. 6503 6504Increased the number of available Owner Ids for namespace object tracking 6505from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 6506on 6507some machines with a large number of ACPI tables (either static or 6508dynamic). 6509 6510Fixed a problem with the AcpiExec utility where a fault could occur when 6511the 6512-b switch (batch mode) is used. 6513 6514Enhanced the namespace dump routine to output the owner ID for each 6515namespace object. 6516 6517Code and Data Size: The current and previous library sizes for the core 6518subsystem are shown below. These are the code and data sizes for the 6519acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6520values do not include any ACPI driver or OSPM code. The debug version of 6521the 6522code includes the debug output trace mechanism and has a much larger code 6523and data size. Note that these values will vary depending on the 6524efficiency 6525of the compiler and the compiler options used during generation. 6526 6527 Previous Release: 6528 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6529 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 6530 Current Release: 6531 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6532 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 6533 6534 65352) iASL Compiler/Disassembler: 6536 6537Fixed a parse error during compilation of certain Switch/Case constructs. 6538To 6539simplify the parse, the grammar now allows for multiple Default statements 6540and this error is now detected and flagged during the analysis phase. 6541 6542Disassembler: The disassembly now includes the contents of the original 6543table header within a comment at the start of the file. This includes the 6544name and version of the original ASL compiler. 6545 6546---------------------------------------- 654717 November 2005. Summary of changes for version 20051117: 6548 65491) ACPI CA Core Subsystem: 6550 6551Fixed a problem in the AML parser where the method thread count could be 6552decremented below zero if any errors occurred during the method parse 6553phase. 6554This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 6555machines. 6556This also fixed a related regression with the mechanism that detects and 6557corrects methods that cannot properly handle reentrancy (related to the 6558deployment of the new OwnerId mechanism.) 6559 6560Eliminated the pre-parsing of control methods (to detect errors) during 6561table load. Related to the problem above, this was causing unwind issues 6562if 6563any errors occurred during the parse, and it seemed to be overkill. A 6564table 6565load should not be aborted if there are problems with any single control 6566method, thus rendering this feature rather pointless. 6567 6568Fixed a problem with the new table-driven resource manager where an 6569internal 6570buffer overflow could occur for small resource templates. 6571 6572Implemented a new external interface, AcpiGetVendorResource. This 6573interface 6574will find and return a vendor-defined resource descriptor within a _CRS or 6575_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 6576Helgaas. 6577 6578Removed the length limit (200) on string objects as per the upcoming ACPI 65793.0A specification. This affects the following areas of the interpreter: 65801) 6581any implicit conversion of a Buffer to a String, 2) a String object result 6582of the ASL Concatentate operator, 3) the String object result of the ASL 6583ToString operator. 6584 6585Fixed a problem in the Windows OS interface layer (OSL) where a 6586WAIT_FOREVER 6587on a semaphore object would incorrectly timeout. This allows the 6588multithreading features of the AcpiExec utility to work properly under 6589Windows. 6590 6591Updated the Linux makefiles for the iASL compiler and AcpiExec to include 6592the recently added file named "utresrc.c". 6593 6594Code and Data Size: The current and previous library sizes for the core 6595subsystem are shown below. These are the code and data sizes for the 6596acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6597values do not include any ACPI driver or OSPM code. The debug version of 6598the 6599code includes the debug output trace mechanism and has a much larger code 6600and data size. Note that these values will vary depending on the 6601efficiency 6602of the compiler and the compiler options used during generation. 6603 6604 Previous Release: 6605 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 6606 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 6607 Current Release: 6608 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6609 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 6610 6611 66122) iASL Compiler/Disassembler: 6613 6614Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 6615specification. For the iASL compiler, this means that string literals 6616within 6617the source ASL can be of any length. 6618 6619Enhanced the listing output to dump the AML code for resource descriptors 6620immediately after the ASL code for each descriptor, instead of in a block 6621at 6622the end of the entire resource template. 6623 6624Enhanced the compiler debug output to dump the entire original parse tree 6625constructed during the parse phase, before any transforms are applied to 6626the 6627tree. The transformed tree is dumped also. 6628 6629---------------------------------------- 663002 November 2005. Summary of changes for version 20051102: 6631 66321) ACPI CA Core Subsystem: 6633 6634Modified the subsystem initialization sequence to improve GPE support. The 6635GPE initialization has been split into two parts in order to defer 6636execution 6637of the _PRW methods (Power Resources for Wake) until after the hardware is 6638fully initialized and the SCI handler is installed. This allows the _PRW 6639methods to access fields protected by the Global Lock. This will fix 6640systems 6641where a NO_GLOBAL_LOCK exception has been seen during initialization. 6642 6643Converted the ACPI internal object disassemble and display code within the 6644AML debugger to fully table-driven operation, reducing code size and 6645increasing maintainability. 6646 6647Fixed a regression with the ConcatenateResTemplate() ASL operator 6648introduced 6649in the 20051021 release. 6650 6651Implemented support for "local" internal ACPI object types within the 6652debugger "Object" command and the AcpiWalkNamespace external interfaces. 6653These local types include RegionFields, BankFields, IndexFields, Alias, 6654and 6655reference objects. 6656 6657Moved common AML resource handling code into a new file, "utresrc.c". This 6658code is shared by both the Resource Manager and the AML Debugger. 6659 6660Code and Data Size: The current and previous library sizes for the core 6661subsystem are shown below. These are the code and data sizes for the 6662acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6663values do not include any ACPI driver or OSPM code. The debug version of 6664the 6665code includes the debug output trace mechanism and has a much larger code 6666and data size. Note that these values will vary depending on the 6667efficiency 6668of the compiler and the compiler options used during generation. 6669 6670 Previous Release: 6671 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 6672 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 6673 Current Release: 6674 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 6675 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 6676 6677 66782) iASL Compiler/Disassembler: 6679 6680Fixed a problem with very large initializer lists (more than 4000 6681elements) 6682for both Buffer and Package objects where the parse stack could overflow. 6683 6684Enhanced the pre-compile source code scan for non-ASCII characters to 6685ignore 6686characters within comment fields. The scan is now always performed and is 6687no 6688longer optional, detecting invalid characters within a source file 6689immediately rather than during the parse phase or later. 6690 6691Enhanced the ASL grammar definition to force early reductions on all list- 6692style grammar elements so that the overall parse stack usage is greatly 6693reduced. This should improve performance and reduce the possibility of 6694parse 6695stack overflow. 6696 6697Eliminated all reduce/reduce conflicts in the iASL parser generation. 6698Also, 6699with the addition of a %expected statement, the compiler generates from 6700source with no warnings. 6701 6702Fixed a possible segment fault in the disassembler if the input filename 6703does not contain a "dot" extension (Thomas Renninger). 6704 6705---------------------------------------- 670621 October 2005. Summary of changes for version 20051021: 6707 67081) ACPI CA Core Subsystem: 6709 6710Implemented support for the EM64T and other x86-64 processors. This 6711essentially entails recognizing that these processors support non-aligned 6712memory transfers. Previously, all 64-bit processors were assumed to lack 6713hardware support for non-aligned transfers. 6714 6715Completed conversion of the Resource Manager to nearly full table-driven 6716operation. Specifically, the resource conversion code (convert AML to 6717internal format and the reverse) and the debug code to dump internal 6718resource descriptors are fully table-driven, reducing code and data size 6719and 6720improving maintainability. 6721 6722The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 6723on 64-bit processors instead of a fixed 32-bit word. (With assistance from 6724Alexey Starikovskiy) 6725 6726Implemented support within the resource conversion code for the Type- 6727Specific byte within the various ACPI 3.0 *WordSpace macros. 6728 6729Fixed some issues within the resource conversion code for the type- 6730specific 6731flags for both Memory and I/O address resource descriptors. For Memory, 6732implemented support for the MTP and TTP flags. For I/O, split the TRS and 6733TTP flags into two separate fields. 6734 6735Code and Data Size: The current and previous library sizes for the core 6736subsystem are shown below. These are the code and data sizes for the 6737acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6738values do not include any ACPI driver or OSPM code. The debug version of 6739the 6740code includes the debug output trace mechanism and has a much larger code 6741and data size. Note that these values will vary depending on the 6742efficiency 6743of the compiler and the compiler options used during generation. 6744 6745 Previous Release: 6746 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 6747 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 6748 Current Release: 6749 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 6750 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 6751 6752 6753 67542) iASL Compiler/Disassembler: 6755 6756Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 6757corresponding ResourceSource string was not also present in a resource 6758descriptor declaration. This restriction caused problems with existing 6759AML/ASL code that includes the Index byte without the string. When such 6760AML 6761was disassembled, it could not be compiled without modification. Further, 6762the modified code created a resource template with a different size than 6763the 6764original, breaking code that used fixed offsets into the resource template 6765buffer. 6766 6767Removed a recent feature of the disassembler to ignore a lone 6768ResourceIndex 6769byte. This byte is now emitted if present so that the exact AML can be 6770reproduced when the disassembled code is recompiled. 6771 6772Improved comments and text alignment for the resource descriptor code 6773emitted by the disassembler. 6774 6775Implemented disassembler support for the ACPI 3.0 AccessSize field within 6776a 6777Register() resource descriptor. 6778 6779---------------------------------------- 678030 September 2005. Summary of changes for version 20050930: 6781 67821) ACPI CA Core Subsystem: 6783 6784Completed a major overhaul of the Resource Manager code - specifically, 6785optimizations in the area of the AML/internal resource conversion code. 6786The 6787code has been optimized to simplify and eliminate duplicated code, CPU 6788stack 6789use has been decreased by optimizing function parameters and local 6790variables, and naming conventions across the manager have been 6791standardized 6792for clarity and ease of maintenance (this includes function, parameter, 6793variable, and struct/typedef names.) The update may force changes in some 6794driver code, depending on how resources are handled by the host OS. 6795 6796All Resource Manager dispatch and information tables have been moved to a 6797single location for clarity and ease of maintenance. One new file was 6798created, named "rsinfo.c". 6799 6800The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 6801guarantee that the argument is not evaluated twice, making them less prone 6802to macro side-effects. However, since there exists the possibility of 6803additional stack use if a particular compiler cannot optimize them (such 6804as 6805in the debug generation case), the original macros are optionally 6806available. 6807Note that some invocations of the return_VALUE macro may now cause size 6808mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 6809to 6810eliminate these. (From Randy Dunlap) 6811 6812Implemented a new mechanism to enable debug tracing for individual control 6813methods. A new external interface, AcpiDebugTrace, is provided to enable 6814this mechanism. The intent is to allow the host OS to easily enable and 6815disable tracing for problematic control methods. This interface can be 6816easily exposed to a user or debugger interface if desired. See the file 6817psxface.c for details. 6818 6819AcpiUtCallocate will now return a valid pointer if a length of zero is 6820specified - a length of one is used and a warning is issued. This matches 6821the behavior of AcpiUtAllocate. 6822 6823Code and Data Size: The current and previous library sizes for the core 6824subsystem are shown below. These are the code and data sizes for the 6825acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6826values do not include any ACPI driver or OSPM code. The debug version of 6827the 6828code includes the debug output trace mechanism and has a much larger code 6829and data size. Note that these values will vary depending on the 6830efficiency 6831of the compiler and the compiler options used during generation. 6832 6833 Previous Release: 6834 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 6835 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 6836 Current Release: 6837 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 6838 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 6839 6840 68412) iASL Compiler/Disassembler: 6842 6843A remark is issued if the effective compile-time length of a package or 6844buffer is zero. Previously, this was a warning. 6845 6846---------------------------------------- 684716 September 2005. Summary of changes for version 20050916: 6848 68491) ACPI CA Core Subsystem: 6850 6851Fixed a problem within the Resource Manager where support for the Generic 6852Register descriptor was not fully implemented. This descriptor is now 6853fully 6854recognized, parsed, disassembled, and displayed. 6855 6856Completely restructured the Resource Manager code to utilize table-driven 6857dispatch and lookup, eliminating many of the large switch() statements. 6858This 6859reduces overall subsystem code size and code complexity. Affects the 6860resource parsing and construction, disassembly, and debug dump output. 6861 6862Cleaned up and restructured the debug dump output for all resource 6863descriptors. Improved readability of the output and reduced code size. 6864 6865Fixed a problem where changes to internal data structures caused the 6866optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 6867 6868Code and Data Size: The current and previous library sizes for the core 6869subsystem are shown below. These are the code and data sizes for the 6870acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6871values do not include any ACPI driver or OSPM code. The debug version of 6872the 6873code includes the debug output trace mechanism and has a much larger code 6874and data size. Note that these values will vary depending on the 6875efficiency 6876of the compiler and the compiler options used during generation. 6877 6878 Previous Release: 6879 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 6880 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 6881 Current Release: 6882 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 6883 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 6884 6885 68862) iASL Compiler/Disassembler: 6887 6888Updated the disassembler to automatically insert an EndDependentFn() macro 6889into the ASL stream if this macro is missing in the original AML code, 6890simplifying compilation of the resulting ASL module. 6891 6892Fixed a problem in the disassembler where a disassembled ResourceSource 6893string (within a large resource descriptor) was not surrounded by quotes 6894and 6895not followed by a comma, causing errors when the resulting ASL module was 6896compiled. Also, escape sequences within a ResourceSource string are now 6897handled correctly (especially "\\") 6898 6899---------------------------------------- 690002 September 2005. Summary of changes for version 20050902: 6901 69021) ACPI CA Core Subsystem: 6903 6904Fixed a problem with the internal Owner ID allocation and deallocation 6905mechanisms for control method execution and recursive method invocation. 6906This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 6907messages seen on some systems. Recursive method invocation depth is 6908currently limited to 255. (Alexey Starikovskiy) 6909 6910Completely eliminated all vestiges of support for the "module-level 6911executable code" until this support is fully implemented and debugged. 6912This 6913should eliminate the NO_RETURN_VALUE exceptions seen during table load on 6914some systems that invoke this support. 6915 6916Fixed a problem within the resource manager code where the transaction 6917flags 6918for a 64-bit address descriptor were handled incorrectly in the type- 6919specific flag byte. 6920 6921Consolidated duplicate code within the address descriptor resource manager 6922code, reducing overall subsystem code size. 6923 6924Fixed a fault when using the AML debugger "disassemble" command to 6925disassemble individual control methods. 6926 6927Removed references to the "release_current" directory within the Unix 6928release package. 6929 6930Code and Data Size: The current and previous core subsystem library sizes 6931are shown below. These are the code and data sizes for the acpica.lib 6932produced by the Microsoft Visual C++ 6.0 compiler. These values do not 6933include any ACPI driver or OSPM code. The debug version of the code 6934includes 6935the debug output trace mechanism and has a much larger code and data size. 6936Note that these values will vary depending on the efficiency of the 6937compiler 6938and the compiler options used during generation. 6939 6940 Previous Release: 6941 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 6942 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 6943 Current Release: 6944 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 6945 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 6946 6947 69482) iASL Compiler/Disassembler: 6949 6950Implemented an error check for illegal duplicate values in the interrupt 6951and 6952dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 6953Interrupt(). 6954 6955Implemented error checking for the Irq() and IrqNoFlags() macros to detect 6956too many values in the interrupt list (16 max) and invalid values in the 6957list (range 0 - 15) 6958 6959The maximum length string literal within an ASL file is now restricted to 6960200 characters as per the ACPI specification. 6961 6962Fixed a fault when using the -ln option (generate namespace listing). 6963 6964Implemented an error check to determine if a DescriptorName within a 6965resource descriptor has already been used within the current scope. 6966 6967---------------------------------------- 696815 August 2005. Summary of changes for version 20050815: 6969 69701) ACPI CA Core Subsystem: 6971 6972Implemented a full bytewise compare to determine if a table load request 6973is 6974attempting to load a duplicate table. The compare is performed if the 6975table 6976signatures and table lengths match. This will allow different tables with 6977the same OEM Table ID and revision to be loaded - probably against the 6978ACPI 6979specification, but discovered in the field nonetheless. 6980 6981Added the changes.txt logfile to each of the zipped release packages. 6982 6983Code and Data Size: Current and previous core subsystem library sizes are 6984shown below. These are the code and data sizes for the acpica.lib produced 6985by the Microsoft Visual C++ 6.0 compiler, and these values do not include 6986any ACPI driver or OSPM code. The debug version of the code includes the 6987debug output trace mechanism and has a much larger code and data size. 6988Note 6989that these values will vary depending on the efficiency of the compiler 6990and 6991the compiler options used during generation. 6992 6993 Previous Release: 6994 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 6995 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 6996 Current Release: 6997 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 6998 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 6999 7000 70012) iASL Compiler/Disassembler: 7002 7003Fixed a problem where incorrect AML code could be generated for Package 7004objects if optimization is disabled (via the -oa switch). 7005 7006Fixed a problem with where incorrect AML code is generated for variable- 7007length packages when the package length is not specified and the number of 7008initializer values is greater than 255. 7009 7010 7011---------------------------------------- 701229 July 2005. Summary of changes for version 20050729: 7013 70141) ACPI CA Core Subsystem: 7015 7016Implemented support to ignore an attempt to install/load a particular ACPI 7017table more than once. Apparently there exists BIOS code that repeatedly 7018attempts to load the same SSDT upon certain events. With assistance from 7019Venkatesh Pallipadi. 7020 7021Restructured the main interface to the AML parser in order to correctly 7022handle all exceptional conditions. This will prevent leakage of the 7023OwnerId 7024resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 7025some 7026machines. With assistance from Alexey Starikovskiy. 7027 7028Support for "module level code" has been disabled in this version due to a 7029number of issues that have appeared on various machines. The support can 7030be 7031enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 7032compilation. When the issues are fully resolved, the code will be enabled 7033by 7034default again. 7035 7036Modified the internal functions for debug print support to define the 7037FunctionName parameter as a (const char *) for compatibility with compiler 7038built-in macros such as __FUNCTION__, etc. 7039 7040Linted the entire ACPICA source tree for both 32-bit and 64-bit. 7041 7042Implemented support to display an object count summary for the AML 7043Debugger 7044commands Object and Methods. 7045 7046Code and Data Size: Current and previous core subsystem library sizes are 7047shown below. These are the code and data sizes for the acpica.lib produced 7048by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7049any ACPI driver or OSPM code. The debug version of the code includes the 7050debug output trace mechanism and has a much larger code and data size. 7051Note 7052that these values will vary depending on the efficiency of the compiler 7053and 7054the compiler options used during generation. 7055 7056 Previous Release: 7057 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 7058 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 7059 Current Release: 7060 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 7061 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 7062 7063 70642) iASL Compiler/Disassembler: 7065 7066Fixed a regression that appeared in the 20050708 version of the compiler 7067where an error message was inadvertently emitted for invocations of the 7068_OSI 7069reserved control method. 7070 7071---------------------------------------- 707208 July 2005. Summary of changes for version 20050708: 7073 70741) ACPI CA Core Subsystem: 7075 7076The use of the CPU stack in the debug version of the subsystem has been 7077considerably reduced. Previously, a debug structure was declared in every 7078function that used the debug macros. This structure has been removed in 7079favor of declaring the individual elements as parameters to the debug 7080functions. This reduces the cumulative stack use during nested execution 7081of 7082ACPI function calls at the cost of a small increase in the code size of 7083the 7084debug version of the subsystem. With assistance from Alexey Starikovskiy 7085and 7086Len Brown. 7087 7088Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 7089headers to define a macro that will return the current function name at 7090runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 7091by 7092the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 7093compiler-dependent header, the function name is saved on the CPU stack 7094(one 7095pointer per function.) This mechanism is used because apparently there 7096exists no standard ANSI-C defined macro that that returns the function 7097name. 7098 7099Redesigned and reimplemented the "Owner ID" mechanism used to track 7100namespace objects created/deleted by ACPI tables and control method 7101execution. A bitmap is now used to allocate and free the IDs, thus solving 7102the wraparound problem present in the previous implementation. The size of 7103the namespace node descriptor was reduced by 2 bytes as a result (Alexey 7104Starikovskiy). 7105 7106Removed the UINT32_BIT and UINT16_BIT types that were used for the 7107bitfield 7108flag definitions within the headers for the predefined ACPI tables. These 7109have been replaced by UINT8_BIT in order to increase the code portability 7110of 7111the subsystem. If the use of UINT8 remains a problem, we may be forced to 7112eliminate bitfields entirely because of a lack of portability. 7113 7114Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 7115This 7116is a frequently used function and this improvement increases the 7117performance 7118of the entire subsystem (Alexey Starikovskiy). 7119 7120Fixed several possible memory leaks and the inverse - premature object 7121deletion (Alexey Starikovskiy). 7122 7123Code and Data Size: Current and previous core subsystem library sizes are 7124shown below. These are the code and data sizes for the acpica.lib produced 7125by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7126any ACPI driver or OSPM code. The debug version of the code includes the 7127debug output trace mechanism and has a much larger code and data size. 7128Note 7129that these values will vary depending on the efficiency of the compiler 7130and 7131the compiler options used during generation. 7132 7133 Previous Release: 7134 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 7135 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 7136 Current Release: 7137 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 7138 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 7139 7140---------------------------------------- 714124 June 2005. Summary of changes for version 20050624: 7142 71431) ACPI CA Core Subsystem: 7144 7145Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 7146the host-defined cache object. This allows the OSL implementation to 7147define 7148and type this object in any manner desired, simplifying the OSL 7149implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 7150Linux, and should be defined in the OS-specific header file for other 7151operating systems as required. 7152 7153Changed the interface to AcpiOsAcquireObject to directly return the 7154requested object as the function return (instead of ACPI_STATUS.) This 7155change was made for performance reasons, since this is the purpose of the 7156interface in the first place. AcpiOsAcquireObject is now similar to the 7157AcpiOsAllocate interface. 7158 7159Implemented a new AML debugger command named Businfo. This command 7160displays 7161information about all devices that have an associate _PRT object. The 7162_ADR, 7163_HID, _UID, and _CID are displayed for these devices. 7164 7165Modified the initialization sequence in AcpiInitializeSubsystem to call 7166the 7167OSL interface AcpiOslInitialize first, before any local initialization. 7168This 7169change was required because the global initialization now calls OSL 7170interfaces. 7171 7172Enhanced the Dump command to display the entire contents of Package 7173objects 7174(including all sub-objects and their values.) 7175 7176Restructured the code base to split some files because of size and/or 7177because the code logically belonged in a separate file. New files are 7178listed 7179below. All makefiles and project files included in the ACPI CA release 7180have 7181been updated. 7182 utilities/utcache.c /* Local cache interfaces */ 7183 utilities/utmutex.c /* Local mutex support */ 7184 utilities/utstate.c /* State object support */ 7185 interpreter/parser/psloop.c /* Main AML parse loop */ 7186 7187Code and Data Size: Current and previous core subsystem library sizes are 7188shown below. These are the code and data sizes for the acpica.lib produced 7189by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7190any ACPI driver or OSPM code. The debug version of the code includes the 7191debug output trace mechanism and has a much larger code and data size. 7192Note 7193that these values will vary depending on the efficiency of the compiler 7194and 7195the compiler options used during generation. 7196 7197 Previous Release: 7198 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 7199 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 7200 Current Release: 7201 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 7202 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 7203 7204 72052) iASL Compiler/Disassembler: 7206 7207Fixed a regression introduced in version 20050513 where the use of a 7208Package 7209object within a Case() statement caused a compile time exception. The 7210original behavior has been restored (a Match() operator is emitted.) 7211 7212---------------------------------------- 721317 June 2005. Summary of changes for version 20050617: 7214 72151) ACPI CA Core Subsystem: 7216 7217Moved the object cache operations into the OS interface layer (OSL) to 7218allow 7219the host OS to handle these operations if desired (for example, the Linux 7220OSL will invoke the slab allocator). This support is optional; the compile 7221time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 7222code in the ACPI CA core. The new OSL interfaces are shown below. See 7223utalloc.c for an example implementation, and acpiosxf.h for the exact 7224interface definitions. With assistance from Alexey Starikovskiy. 7225 AcpiOsCreateCache 7226 AcpiOsDeleteCache 7227 AcpiOsPurgeCache 7228 AcpiOsAcquireObject 7229 AcpiOsReleaseObject 7230 7231Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 7232return 7233and restore a flags parameter. This fits better with many OS lock models. 7234Note: the current execution state (interrupt handler or not) is no longer 7235passed to these interfaces. If necessary, the OSL must determine this 7236state 7237by itself, a simple and fast operation. With assistance from Alexey 7238Starikovskiy. 7239 7240Fixed a problem in the ACPI table handling where a valid XSDT was assumed 7241present if the revision of the RSDP was 2 or greater. According to the 7242ACPI 7243specification, the XSDT is optional in all cases, and the table manager 7244therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 7245Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 7246only the RSDT. 7247 7248Fixed an interpreter problem with the Mid() operator in the case of an 7249input 7250string where the resulting output string is of zero length. It now 7251correctly 7252returns a valid, null terminated string object instead of a string object 7253with a null pointer. 7254 7255Fixed a problem with the control method argument handling to allow a store 7256to an Arg object that already contains an object of type Device. The 7257Device 7258object is now correctly overwritten. Previously, an error was returned. 7259 7260 7261Enhanced the debugger Find command to emit object values in addition to 7262the 7263found object pathnames. The output format is the same as the dump 7264namespace 7265command. 7266 7267Enhanced the debugger Set command. It now has the ability to set the value 7268of any Named integer object in the namespace (Previously, only method 7269locals 7270and args could be set.) 7271 7272Code and Data Size: Current and previous core subsystem library sizes are 7273shown below. These are the code and data sizes for the acpica.lib produced 7274by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7275any ACPI driver or OSPM code. The debug version of the code includes the 7276debug output trace mechanism and has a much larger code and data size. 7277Note 7278that these values will vary depending on the efficiency of the compiler 7279and 7280the compiler options used during generation. 7281 7282 Previous Release: 7283 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 7284 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 7285 Current Release: 7286 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 7287 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 7288 7289 72902) iASL Compiler/Disassembler: 7291 7292Fixed a regression in the disassembler where if/else/while constructs were 7293output incorrectly. This problem was introduced in the previous release 7294(20050526). This problem also affected the single-step disassembly in the 7295debugger. 7296 7297Fixed a problem where compiling the reserved _OSI method would randomly 7298(but 7299rarely) produce compile errors. 7300 7301Enhanced the disassembler to emit compilable code in the face of incorrect 7302AML resource descriptors. If the optional ResourceSourceIndex is present, 7303but the ResourceSource is not, do not emit the ResourceSourceIndex in the 7304disassembly. Otherwise, the resulting code cannot be compiled without 7305errors. 7306 7307---------------------------------------- 730826 May 2005. Summary of changes for version 20050526: 7309 73101) ACPI CA Core Subsystem: 7311 7312Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 7313the module level (not within a control method.) These opcodes are executed 7314exactly once at the time the table is loaded. This type of code was legal 7315up 7316until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 7317in 7318order to provide backwards compatibility with earlier BIOS 7319implementations. 7320This eliminates the "Encountered executable code at module level" warning 7321that was previously generated upon detection of such code. 7322 7323Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 7324inadvertently be generated during the lookup of namespace objects in the 7325second pass parse of ACPI tables and control methods. It appears that this 7326problem could occur during the resolution of forward references to 7327namespace 7328objects. 7329 7330Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 7331corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 7332allows the deadlock detection debug code to be compiled out in the normal 7333case, improving mutex performance (and overall subsystem performance) 7334considerably. 7335 7336Implemented a handful of miscellaneous fixes for possible memory leaks on 7337error conditions and error handling control paths. These fixes were 7338suggested by FreeBSD and the Coverity Prevent source code analysis tool. 7339 7340Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 7341to prevent a fault in this error case. 7342 7343Code and Data Size: Current and previous core subsystem library sizes are 7344shown below. These are the code and data sizes for the acpica.lib produced 7345by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7346any ACPI driver or OSPM code. The debug version of the code includes the 7347debug output trace mechanism and has a much larger code and data size. 7348Note 7349that these values will vary depending on the efficiency of the compiler 7350and 7351the compiler options used during generation. 7352 7353 Previous Release: 7354 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7355 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7356 Current Release: 7357 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 7358 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 7359 7360 73612) iASL Compiler/Disassembler: 7362 7363Implemented support to allow Type 1 and Type 2 ASL operators to appear at 7364the module level (not within a control method.) These operators will be 7365executed once at the time the table is loaded. This type of code was legal 7366up until the release of ACPI 2.0B (2002) and is now supported by the iASL 7367compiler in order to provide backwards compatibility with earlier BIOS ASL 7368code. 7369 7370The ACPI integer width (specified via the table revision ID or the -r 7371override, 32 or 64 bits) is now used internally during compile-time 7372constant 7373folding to ensure that constants are truncated to 32 bits if necessary. 7374Previously, the revision ID value was only emitted in the AML table 7375header. 7376 7377An error message is now generated for the Mutex and Method operators if 7378the 7379SyncLevel parameter is outside the legal range of 0 through 15. 7380 7381Fixed a problem with the Method operator ParameterTypes list handling 7382(ACPI 73833.0). Previously, more than 2 types or 2 arguments generated a syntax 7384error. 7385The actual underlying implementation of method argument typechecking is 7386still under development, however. 7387 7388---------------------------------------- 738913 May 2005. Summary of changes for version 20050513: 7390 73911) ACPI CA Core Subsystem: 7392 7393Implemented support for PCI Express root bridges -- added support for 7394device 7395PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 7396 7397The interpreter now automatically truncates incoming 64-bit constants to 739832 7399bits if currently executing out of a 32-bit ACPI table (Revision < 2). 7400This 7401also affects the iASL compiler constant folding. (Note: as per below, the 7402iASL compiler no longer allows 64-bit constants within 32-bit tables.) 7403 7404Fixed a problem where string and buffer objects with "static" pointers 7405(pointers to initialization data within an ACPI table) were not handled 7406consistently. The internal object copy operation now always copies the 7407data 7408to a newly allocated buffer, regardless of whether the source object is 7409static or not. 7410 7411Fixed a problem with the FromBCD operator where an implicit result 7412conversion was improperly performed while storing the result to the target 7413operand. Since this is an "explicit conversion" operator, the implicit 7414conversion should never be performed on the output. 7415 7416Fixed a problem with the CopyObject operator where a copy to an existing 7417named object did not always completely overwrite the existing object 7418stored 7419at name. Specifically, a buffer-to-buffer copy did not delete the existing 7420buffer. 7421 7422Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 7423structs for consistency. 7424 7425Code and Data Size: Current and previous core subsystem library sizes are 7426shown below. These are the code and data sizes for the acpica.lib produced 7427by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7428any ACPI driver or OSPM code. The debug version of the code includes the 7429debug output trace mechanism and has a much larger code and data size. 7430Note 7431that these values will vary depending on the efficiency of the compiler 7432and 7433the compiler options used during generation. 7434 7435 Previous Release: 7436 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7437 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7438 Current Release: (Same sizes) 7439 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7440 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7441 7442 74432) iASL Compiler/Disassembler: 7444 7445The compiler now emits a warning if an attempt is made to generate a 64- 7446bit 7447integer constant from within a 32-bit ACPI table (Revision < 2). The 7448integer 7449is truncated to 32 bits. 7450 7451Fixed a problem with large package objects: if the static length of the 7452package is greater than 255, the "variable length package" opcode is 7453emitted. Previously, this caused an error. This requires an update to the 7454ACPI spec, since it currently (incorrectly) states that packages larger 7455than 7456255 elements are not allowed. 7457 7458The disassembler now correctly handles variable length packages and 7459packages 7460larger than 255 elements. 7461 7462---------------------------------------- 746308 April 2005. Summary of changes for version 20050408: 7464 74651) ACPI CA Core Subsystem: 7466 7467Fixed three cases in the interpreter where an "index" argument to an ASL 7468function was still (internally) 32 bits instead of the required 64 bits. 7469This was the Index argument to the Index, Mid, and Match operators. 7470 7471The "strupr" function is now permanently local (AcpiUtStrupr), since this 7472is 7473not a POSIX-defined function and not present in most kernel-level C 7474libraries. All references to the C library strupr function have been 7475removed 7476from the headers. 7477 7478Completed the deployment of static functions/prototypes. All prototypes 7479with 7480the static attribute have been moved from the headers to the owning C 7481file. 7482 7483Implemented an extract option (-e) for the AcpiBin utility (AML binary 7484utility). This option allows the utility to extract individual ACPI tables 7485from the output of AcpiDmp. It provides the same functionality of the 7486acpixtract.pl perl script without the worry of setting the correct perl 7487options. AcpiBin runs on Windows and has not yet been generated/validated 7488in 7489the Linux/Unix environment (but should be soon). 7490 7491Updated and fixed the table dump option for AcpiBin (-d). This option 7492converts a single ACPI table to a hex/ascii file, similar to the output of 7493AcpiDmp. 7494 7495Code and Data Size: Current and previous core subsystem library sizes are 7496shown below. These are the code and data sizes for the acpica.lib produced 7497by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7498any ACPI driver or OSPM code. The debug version of the code includes the 7499debug output trace mechanism and has a much larger code and data size. 7500Note 7501that these values will vary depending on the efficiency of the compiler 7502and 7503the compiler options used during generation. 7504 7505 Previous Release: 7506 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 7507 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 7508 Current Release: 7509 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7510 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7511 7512 75132) iASL Compiler/Disassembler: 7514 7515Disassembler fix: Added a check to ensure that the table length found in 7516the 7517ACPI table header within the input file is not longer than the actual 7518input 7519file size. This indicates some kind of file or table corruption. 7520 7521---------------------------------------- 752229 March 2005. Summary of changes for version 20050329: 7523 75241) ACPI CA Core Subsystem: 7525 7526An error is now generated if an attempt is made to create a Buffer Field 7527of 7528length zero (A CreateField with a length operand of zero.) 7529 7530The interpreter now issues a warning whenever executable code at the 7531module 7532level is detected during ACPI table load. This will give some idea of the 7533prevalence of this type of code. 7534 7535Implemented support for references to named objects (other than control 7536methods) within package objects. 7537 7538Enhanced package object output for the debug object. Package objects are 7539now 7540completely dumped, showing all elements. 7541 7542Enhanced miscellaneous object output for the debug object. Any object can 7543now be written to the debug object (for example, a device object can be 7544written, and the type of the object will be displayed.) 7545 7546The "static" qualifier has been added to all local functions across both 7547the 7548core subsystem and the iASL compiler. 7549 7550The number of "long" lines (> 80 chars) within the source has been 7551significantly reduced, by about 1/3. 7552 7553Cleaned up all header files to ensure that all CA/iASL functions are 7554prototyped (even static functions) and the formatting is consistent. 7555 7556Two new header files have been added, acopcode.h and acnames.h. 7557 7558Removed several obsolete functions that were no longer used. 7559 7560Code and Data Size: Current and previous core subsystem library sizes are 7561shown below. These are the code and data sizes for the acpica.lib produced 7562by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7563any ACPI driver or OSPM code. The debug version of the code includes the 7564debug output trace mechanism and has a much larger code and data size. 7565Note 7566that these values will vary depending on the efficiency of the compiler 7567and 7568the compiler options used during generation. 7569 7570 Previous Release: 7571 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 7572 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 7573 Current Release: 7574 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 7575 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 7576 7577 7578 75792) iASL Compiler/Disassembler: 7580 7581Fixed a problem with the resource descriptor generation/support. For the 7582ResourceSourceIndex and the ResourceSource fields, both must be present, 7583or 7584both must be not present - can't have one without the other. 7585 7586The compiler now returns non-zero from the main procedure if any errors 7587have 7588occurred during the compilation. 7589 7590 7591---------------------------------------- 759209 March 2005. Summary of changes for version 20050309: 7593 75941) ACPI CA Core Subsystem: 7595 7596The string-to-buffer implicit conversion code has been modified again 7597after 7598a change to the ACPI specification. In order to match the behavior of the 7599other major ACPI implementation, the target buffer is no longer truncated 7600if 7601the source string is smaller than an existing target buffer. This change 7602requires an update to the ACPI spec, and should eliminate the recent 7603AE_AML_BUFFER_LIMIT issues. 7604 7605The "implicit return" support was rewritten to a new algorithm that solves 7606the general case. Rather than attempt to determine when a method is about 7607to 7608exit, the result of every ASL operator is saved momentarily until the very 7609next ASL operator is executed. Therefore, no matter how the method exits, 7610there will always be a saved implicit return value. This feature is only 7611enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 7612AE_AML_NO_RETURN_VALUE errors when enabled. 7613 7614Implemented implicit conversion support for the predicate (operand) of the 7615If, Else, and While operators. String and Buffer arguments are 7616automatically 7617converted to Integers. 7618 7619Changed the string-to-integer conversion behavior to match the new ACPI 7620errata: "If no integer object exists, a new integer is created. The ASCII 7621string is interpreted as a hexadecimal constant. Each string character is 7622interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 7623with the first character as the most significant digit, and ending with 7624the 7625first non-hexadecimal character or end-of-string." This means that the 7626first 7627non-hex character terminates the conversion and this is the code that was 7628changed. 7629 7630Fixed a problem where the ObjectType operator would fail (fault) when used 7631on an Index of a Package which pointed to a null package element. The 7632operator now properly returns zero (Uninitialized) in this case. 7633 7634Fixed a problem where the While operator used excessive memory by not 7635properly popping the result stack during execution. There was no memory 7636leak 7637after execution, however. (Code provided by Valery Podrezov.) 7638 7639Fixed a problem where references to control methods within Package objects 7640caused the method to be invoked, instead of producing a reference object 7641pointing to the method. 7642 7643Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 7644improve performance and reduce code size. (Code provided by Alexey 7645Starikovskiy.) 7646 7647Code and Data Size: Current and previous core subsystem library sizes are 7648shown below. These are the code and data sizes for the acpica.lib produced 7649by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7650any ACPI driver or OSPM code. The debug version of the code includes the 7651debug output trace mechanism and has a much larger code and data size. 7652Note 7653that these values will vary depending on the efficiency of the compiler 7654and 7655the compiler options used during generation. 7656 7657 Previous Release: 7658 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 7659 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 7660 Current Release: 7661 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 7662 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 7663 7664 76652) iASL Compiler/Disassembler: 7666 7667Fixed a problem with the Return operator with no arguments. Since the AML 7668grammar for the byte encoding requires an operand for the Return opcode, 7669the 7670compiler now emits a Return(Zero) for this case. An ACPI specification 7671update has been written for this case. 7672 7673For tables other than the DSDT, namepath optimization is automatically 7674disabled. This is because SSDTs can be loaded anywhere in the namespace, 7675the 7676compiler has no knowledge of where, and thus cannot optimize namepaths. 7677 7678Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 7679inadvertently omitted from the ACPI specification, and will require an 7680update to the spec. 7681 7682The source file scan for ASCII characters is now optional (-a). This 7683change 7684was made because some vendors place non-ascii characters within comments. 7685However, the scan is simply a brute-force byte compare to ensure all 7686characters in the file are in the range 0x00 to 0x7F. 7687 7688Fixed a problem with the CondRefOf operator where the compiler was 7689inappropriately checking for the existence of the target. Since the point 7690of 7691the operator is to check for the existence of the target at run-time, the 7692compiler no longer checks for the target existence. 7693 7694Fixed a problem where errors generated from the internal AML interpreter 7695during constant folding were not handled properly, causing a fault. 7696 7697Fixed a problem with overly aggressive range checking for the Stall 7698operator. The valid range (max 255) is now only checked if the operand is 7699of 7700type Integer. All other operand types cannot be statically checked. 7701 7702Fixed a problem where control method references within the RefOf, DeRefOf, 7703and ObjectType operators were not treated properly. They are now treated 7704as 7705actual references, not method invocations. 7706 7707Fixed and enhanced the "list namespace" option (-ln). This option was 7708broken 7709a number of releases ago. 7710 7711Improved error handling for the Field, IndexField, and BankField 7712operators. 7713The compiler now cleanly reports and recovers from errors in the field 7714component (FieldUnit) list. 7715 7716Fixed a disassembler problem where the optional ResourceDescriptor fields 7717TRS and TTP were not always handled correctly. 7718 7719Disassembler - Comments in output now use "//" instead of "/*" 7720 7721---------------------------------------- 772228 February 2005. Summary of changes for version 20050228: 7723 77241) ACPI CA Core Subsystem: 7725 7726Fixed a problem where the result of an Index() operator (an object 7727reference) must increment the reference count on the target object for the 7728life of the object reference. 7729 7730Implemented AML Interpreter and Debugger support for the new ACPI 3.0 7731Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 7732WordSpace 7733resource descriptors. 7734 7735Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 7736Space Descriptor" string, indicating interpreter support for the 7737descriptors 7738above. 7739 7740Implemented header support for the new ACPI 3.0 FADT flag bits. 7741 7742Implemented header support for the new ACPI 3.0 PCI Express bits for the 7743PM1 7744status/enable registers. 7745 7746Updated header support for the MADT processor local Apic struct and MADT 7747platform interrupt source struct for new ACPI 3.0 fields. 7748 7749Implemented header support for the SRAT and SLIT ACPI tables. 7750 7751Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 7752flag 7753at runtime. 7754 7755Code and Data Size: Current and previous core subsystem library sizes are 7756shown below. These are the code and data sizes for the acpica.lib produced 7757by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7758any ACPI driver or OSPM code. The debug version of the code includes the 7759debug output trace mechanism and has a much larger code and data size. 7760Note 7761that these values will vary depending on the efficiency of the compiler 7762and 7763the compiler options used during generation. 7764 7765 Previous Release: 7766 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 7767 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 7768 Current Release: 7769 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 7770 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 7771 7772 77732) iASL Compiler/Disassembler: 7774 7775Fixed a problem with the internal 64-bit String-to-integer conversion with 7776strings less than two characters long. 7777 7778Fixed a problem with constant folding where the result of the Index() 7779operator can not be considered a constant. This means that Index() cannot 7780be 7781a type3 opcode and this will require an update to the ACPI specification. 7782 7783Disassembler: Implemented support for the TTP, MTP, and TRS resource 7784descriptor fields. These fields were inadvertently ignored and not output 7785in 7786the disassembly of the resource descriptor. 7787 7788 7789 ---------------------------------------- 779011 February 2005. Summary of changes for version 20050211: 7791 77921) ACPI CA Core Subsystem: 7793 7794Implemented ACPI 3.0 support for implicit conversion within the Match() 7795operator. MatchObjects can now be of type integer, buffer, or string 7796instead 7797of just type integer. Package elements are implicitly converted to the 7798type 7799of the MatchObject. This change aligns the behavior of Match() with the 7800behavior of the other logical operators (LLess(), etc.) It also requires 7801an 7802errata change to the ACPI specification as this support was intended for 7803ACPI 3.0, but was inadvertently omitted. 7804 7805Fixed a problem with the internal implicit "to buffer" conversion. Strings 7806that are converted to buffers will cause buffer truncation if the string 7807is 7808smaller than the target buffer. Integers that are converted to buffers 7809will 7810not cause buffer truncation, only zero extension (both as per the ACPI 7811spec.) The problem was introduced when code was added to truncate the 7812buffer, but this should not be performed in all cases, only the string 7813case. 7814 7815Fixed a problem with the Buffer and Package operators where the 7816interpreter 7817would get confused if two such operators were used as operands to an ASL 7818operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 7819stack was not being popped after the execution of these operators, 7820resulting 7821in an AE_NO_RETURN_VALUE exception. 7822 7823Fixed a problem with constructs of the form Store(Index(...),...). The 7824reference object returned from Index was inadvertently resolved to an 7825actual 7826value. This problem was introduced in version 20050114 when the behavior 7827of 7828Store() was modified to restrict the object types that can be used as the 7829source operand (to match the ACPI specification.) 7830 7831Reduced excessive stack use within the AcpiGetObjectInfo procedure. 7832 7833Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 7834 7835Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 7836 7837Code and Data Size: Current and previous core subsystem library sizes are 7838shown below. These are the code and data sizes for the acpica.lib produced 7839by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7840any ACPI driver or OSPM code. The debug version of the code includes the 7841debug output trace mechanism and has a much larger code and data size. 7842Note 7843that these values will vary depending on the efficiency of the compiler 7844and 7845the compiler options used during generation. 7846 7847 Previous Release: 7848 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 7849 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 7850 Current Release: 7851 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 7852 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 7853 7854 78552) iASL Compiler/Disassembler: 7856 7857Fixed a code generation problem in the constant folding optimization code 7858where incorrect code was generated if a constant was reduced to a buffer 7859object (i.e., a reduced type 5 opcode.) 7860 7861Fixed a typechecking problem for the ToBuffer operator. Caused by an 7862incorrect return type in the internal opcode information table. 7863 7864---------------------------------------- 786525 January 2005. Summary of changes for version 20050125: 7866 78671) ACPI CA Core Subsystem: 7868 7869Fixed a recently introduced problem with the Global Lock where the 7870underlying semaphore was not created. This problem was introduced in 7871version 20050114, and caused an AE_AML_NO_OPERAND exception during an 7872Acquire() operation on _GL. 7873 7874The local object cache is now optional, and is disabled by default. Both 7875AcpiExec and the iASL compiler enable the cache because they run in user 7876mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 7877to enable the local cache. 7878 7879Fixed an issue in the internal function AcpiUtEvaluateObject concerning 7880the 7881optional "implicit return" support where an error was returned if no 7882return 7883object was expected, but one was implicitly returned. AE_OK is now 7884returned 7885in this case and the implicitly returned object is deleted. 7886AcpiUtEvaluateObject is only occasionally used, and only to execute 7887reserved 7888methods such as _STA and _INI where the return type is known up front. 7889 7890Fixed a few issues with the internal convert-to-integer code. It now 7891returns 7892an error if an attempt is made to convert a null string, a string of only 7893blanks/tabs, or a zero-length buffer. This affects both implicit 7894conversion 7895and explicit conversion via the ToInteger() operator. 7896 7897The internal debug code in AcpiUtAcquireMutex has been commented out. It 7898is 7899not needed for normal operation and should increase the performance of the 7900entire subsystem. The code remains in case it is needed for debug purposes 7901again. 7902 7903The AcpiExec source and makefile are included in the Unix/Linux package 7904for 7905the first time. 7906 7907Code and Data Size: Current and previous core subsystem library sizes are 7908shown below. These are the code and data sizes for the acpica.lib produced 7909by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7910any ACPI driver or OSPM code. The debug version of the code includes the 7911debug output trace mechanism and has a much larger code and data size. 7912Note 7913that these values will vary depending on the efficiency of the compiler 7914and 7915the compiler options used during generation. 7916 7917 Previous Release: 7918 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 7919 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 7920 Current Release: 7921 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 7922 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 7923 79242) iASL Compiler/Disassembler: 7925 7926Switch/Case support: A warning is now issued if the type of the Switch 7927value 7928cannot be determined at compile time. For example, Switch(Arg0) will 7929generate the warning, and the type is assumed to be an integer. As per the 7930ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 7931the 7932warning. 7933 7934Switch/Case support: Implemented support for buffer and string objects as 7935the switch value. This is an ACPI 3.0 feature, now that LEqual supports 7936buffers and strings. 7937 7938Switch/Case support: The emitted code for the LEqual() comparisons now 7939uses 7940the switch value as the first operand, not the second. The case value is 7941now 7942the second operand, and this allows the case value to be implicitly 7943converted to the type of the switch value, not the other way around. 7944 7945Switch/Case support: Temporary variables are now emitted immediately 7946within 7947the control method, not at the global level. This means that there are now 794836 temps available per-method, not 36 temps per-module as was the case 7949with 7950the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 7951 7952---------------------------------------- 795314 January 2005. Summary of changes for version 20050114: 7954 7955Added 2005 copyright to all module headers. This affects every module in 7956the core subsystem, iASL compiler, and the utilities. 7957 79581) ACPI CA Core Subsystem: 7959 7960Fixed an issue with the String-to-Buffer conversion code where the string 7961null terminator was not included in the buffer after conversion, but there 7962is existing ASL that assumes the string null terminator is included. This 7963is 7964the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 7965introduced in the previous version when the code was updated to correctly 7966set the converted buffer size as per the ACPI specification. The ACPI spec 7967is ambiguous and will be updated to specify that the null terminator must 7968be 7969included in the converted buffer. This also affects the ToBuffer() ASL 7970operator. 7971 7972Fixed a problem with the Mid() ASL/AML operator where it did not work 7973correctly on Buffer objects. Newly created sub-buffers were not being 7974marked 7975as initialized. 7976 7977 7978Fixed a problem in AcpiTbFindTable where incorrect string compares were 7979performed on the OemId and OemTableId table header fields. These fields 7980are 7981not null terminated, so strncmp is now used instead of strcmp. 7982 7983Implemented a restriction on the Store() ASL/AML operator to align the 7984behavior with the ACPI specification. Previously, any object could be 7985used 7986as the source operand. Now, the only objects that may be used are 7987Integers, 7988Buffers, Strings, Packages, Object References, and DDB Handles. If 7989necessary, the original behavior can be restored by enabling the 7990EnableInterpreterSlack flag. 7991 7992Enhanced the optional "implicit return" support to allow an implicit 7993return 7994value from methods that are invoked externally via the AcpiEvaluateObject 7995interface. This enables implicit returns from the _STA and _INI methods, 7996for example. 7997 7998Changed the Revision() ASL/AML operator to return the current version of 7999the 8000AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 8001returned 8002the supported ACPI version (This is the function of the _REV method). 8003 8004Updated the _REV predefined method to return the currently supported 8005version 8006of ACPI, now 3. 8007 8008Implemented batch mode option for the AcpiExec utility (-b). 8009 8010Code and Data Size: Current and previous core subsystem library sizes are 8011shown below. These are the code and data sizes for the acpica.lib produced 8012by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8013any ACPI driver or OSPM code. The debug version of the code includes the 8014debug output trace mechanism and has a much larger code and data size. 8015Note 8016that these values will vary depending on the efficiency of the compiler 8017and 8018the compiler options used during generation. 8019 8020 Previous Release: 8021 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8022 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 8023 Current Release: 8024 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 8025 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 8026 8027---------------------------------------- 802810 December 2004. Summary of changes for version 20041210: 8029 8030ACPI 3.0 support is nearing completion in both the iASL compiler and the 8031ACPI CA core subsystem. 8032 80331) ACPI CA Core Subsystem: 8034 8035Fixed a problem in the ToDecimalString operator where the resulting string 8036length was incorrectly calculated. The length is now calculated exactly, 8037eliminating incorrect AE_STRING_LIMIT exceptions. 8038 8039Fixed a problem in the ToHexString operator to allow a maximum 200 8040character 8041string to be produced. 8042 8043Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 8044routine where the length of the resulting buffer was not truncated to the 8045new size (if the target buffer already existed). 8046 8047Code and Data Size: Current and previous core subsystem library sizes are 8048shown below. These are the code and data sizes for the acpica.lib produced 8049by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8050any ACPI driver or OSPM code. The debug version of the code includes the 8051debug output trace mechanism and has a much larger code and data size. 8052Note 8053that these values will vary depending on the efficiency of the compiler 8054and 8055the compiler options used during generation. 8056 8057 Previous Release: 8058 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8059 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 8060 Current Release: 8061 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8062 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 8063 8064 80652) iASL Compiler/Disassembler: 8066 8067Implemented the new ACPI 3.0 resource template macros - DWordSpace, 8068ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 8069Includes support in the disassembler. 8070 8071Implemented support for the new (ACPI 3.0) parameter to the Register 8072macro, 8073AccessSize. 8074 8075Fixed a problem where the _HE resource name for the Interrupt macro was 8076referencing bit 0 instead of bit 1. 8077 8078Implemented check for maximum 255 interrupts in the Interrupt macro. 8079 8080Fixed a problem with the predefined resource descriptor names where 8081incorrect AML code was generated if the offset within the resource buffer 8082was 0 or 1. The optimizer shortened the AML code to a single byte opcode 8083but did not update the surrounding package lengths. 8084 8085Changes to the Dma macro: All channels within the channel list must be in 8086the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 8087optional (default is BusMaster). 8088 8089Implemented check for maximum 7 data bytes for the VendorShort macro. 8090 8091The ReadWrite parameter is now optional for the Memory32 and similar 8092macros. 8093 8094---------------------------------------- 809503 December 2004. Summary of changes for version 20041203: 8096 80971) ACPI CA Core Subsystem: 8098 8099The low-level field insertion/extraction code (exfldio) has been 8100completely 8101rewritten to eliminate unnecessary complexity, bugs, and boundary 8102conditions. 8103 8104Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 8105ToDecimalString 8106operators where the input operand could be inadvertently deleted if no 8107conversion was necessary (e.g., if the input to ToInteger was an Integer 8108object.) 8109 8110Fixed a problem with the ToDecimalString and ToHexString where an 8111incorrect 8112exception code was returned if the resulting string would be > 200 chars. 8113AE_STRING_LIMIT is now returned. 8114 8115Fixed a problem with the Concatenate operator where AE_OK was always 8116returned, even if the operation failed. 8117 8118Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 8119semaphores to be allocated. 8120 8121Code and Data Size: Current and previous core subsystem library sizes are 8122shown below. These are the code and data sizes for the acpica.lib produced 8123by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8124any ACPI driver or OSPM code. The debug version of the code includes the 8125debug output trace mechanism and has a much larger code and data size. 8126Note 8127that these values will vary depending on the efficiency of the compiler 8128and 8129the compiler options used during generation. 8130 8131 Previous Release: 8132 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8133 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8134 Current Release: 8135 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8136 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 8137 8138 81392) iASL Compiler/Disassembler: 8140 8141Fixed typechecking for the ObjectType and SizeOf operators. Problem was 8142recently introduced in 20041119. 8143 8144Fixed a problem with the ToUUID macro where the upper nybble of each 8145buffer 8146byte was inadvertently set to zero. 8147 8148---------------------------------------- 814919 November 2004. Summary of changes for version 20041119: 8150 81511) ACPI CA Core Subsystem: 8152 8153Fixed a problem in the internal ConvertToInteger routine where new 8154integers 8155were not truncated to 32 bits for 32-bit ACPI tables. This routine 8156converts 8157buffers and strings to integers. 8158 8159Implemented support to store a value to an Index() on a String object. 8160This 8161is an ACPI 2.0 feature that had not yet been implemented. 8162 8163Implemented new behavior for storing objects to individual package 8164elements 8165(via the Index() operator). The previous behavior was to invoke the 8166implicit 8167conversion rules if an object was already present at the index. The new 8168behavior is to simply delete any existing object and directly store the 8169new 8170object. Although the ACPI specification seems unclear on this subject, 8171other 8172ACPI implementations behave in this manner. (This is the root of the 8173AE_BAD_HEX_CONSTANT issue.) 8174 8175Modified the RSDP memory scan mechanism to support the extended checksum 8176for 8177ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 8178RSDP signature is found with a valid checksum. 8179 8180Code and Data Size: Current and previous core subsystem library sizes are 8181shown below. These are the code and data sizes for the acpica.lib produced 8182by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8183any ACPI driver or OSPM code. The debug version of the code includes the 8184debug output trace mechanism and has a much larger code and data size. 8185Note 8186that these values will vary depending on the efficiency of the compiler 8187and 8188the compiler options used during generation. 8189 8190 Previous Release: 8191 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8192 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8193 Current Release: 8194 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8195 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8196 8197 81982) iASL Compiler/Disassembler: 8199 8200Fixed a missing semicolon in the aslcompiler.y file. 8201 8202---------------------------------------- 820305 November 2004. Summary of changes for version 20041105: 8204 82051) ACPI CA Core Subsystem: 8206 8207Implemented support for FADT revision 2. This was an interim table 8208(between 8209ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 8210 8211Implemented optional support to allow uninitialized LocalX and ArgX 8212variables in a control method. The variables are initialized to an 8213Integer 8214object with a value of zero. This support is enabled by setting the 8215AcpiGbl_EnableInterpreterSlack flag to TRUE. 8216 8217Implemented support for Integer objects for the SizeOf operator. Either 4 8218or 8 is returned, depending on the current integer size (32-bit or 64-bit, 8219depending on the parent table revision). 8220 8221Fixed a problem in the implementation of the SizeOf and ObjectType 8222operators 8223where the operand was resolved to a value too early, causing incorrect 8224return values for some objects. 8225 8226Fixed some possible memory leaks during exceptional conditions. 8227 8228Code and Data Size: Current and previous core subsystem library sizes are 8229shown below. These are the code and data sizes for the acpica.lib produced 8230by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8231any ACPI driver or OSPM code. The debug version of the code includes the 8232debug output trace mechanism and has a much larger code and data size. 8233Note 8234that these values will vary depending on the efficiency of the compiler 8235and 8236the compiler options used during generation. 8237 8238 Previous Release: 8239 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8240 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 8241 Current Release: 8242 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8243 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8244 8245 82462) iASL Compiler/Disassembler: 8247 8248Implemented support for all ACPI 3.0 reserved names and methods. 8249 8250Implemented all ACPI 3.0 grammar elements in the front-end, including 8251support for semicolons. 8252 8253Implemented the ACPI 3.0 Function() and ToUUID() macros 8254 8255Fixed a problem in the disassembler where a Scope() operator would not be 8256emitted properly if the target of the scope was in another table. 8257 8258---------------------------------------- 825915 October 2004. Summary of changes for version 20041015: 8260 8261Note: ACPI CA is currently undergoing an in-depth and complete formal 8262evaluation to test/verify the following areas. Other suggestions are 8263welcome. This will result in an increase in the frequency of releases and 8264the number of bug fixes in the next few months. 8265 - Functional tests for all ASL/AML operators 8266 - All implicit/explicit type conversions 8267 - Bit fields and operation regions 8268 - 64-bit math support and 32-bit-only "truncated" math support 8269 - Exceptional conditions, both compiler and interpreter 8270 - Dynamic object deletion and memory leaks 8271 - ACPI 3.0 support when implemented 8272 - External interfaces to the ACPI subsystem 8273 8274 82751) ACPI CA Core Subsystem: 8276 8277Fixed two alignment issues on 64-bit platforms - within debug statements 8278in 8279AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 8280Address 8281field within the non-aligned ACPI generic address structure. 8282 8283Fixed a problem in the Increment and Decrement operators where incorrect 8284operand resolution could result in the inadvertent modification of the 8285original integer when the integer is passed into another method as an 8286argument and the arg is then incremented/decremented. 8287 8288Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 8289bit 8290BCD number were truncated during conversion. 8291 8292Fixed a problem in the ToDecimal operator where the length of the 8293resulting 8294string could be set incorrectly too long if the input operand was a Buffer 8295object. 8296 8297Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 8298(0) 8299within a buffer would prematurely terminate a compare between buffer 8300objects. 8301 8302Added a check for string overflow (>200 characters as per the ACPI 8303specification) during the Concatenate operator with two string operands. 8304 8305Code and Data Size: Current and previous core subsystem library sizes are 8306shown below. These are the code and data sizes for the acpica.lib produced 8307by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8308any ACPI driver or OSPM code. The debug version of the code includes the 8309debug output trace mechanism and has a much larger code and data size. 8310Note 8311that these values will vary depending on the efficiency of the compiler 8312and 8313the compiler options used during generation. 8314 8315 Previous Release: 8316 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8317 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 8318 Current Release: 8319 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8320 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 8321 8322 8323 83242) iASL Compiler/Disassembler: 8325 8326Allow the use of the ObjectType operator on uninitialized Locals and Args 8327(returns 0 as per the ACPI specification). 8328 8329Fixed a problem where the compiler would fault if there was a syntax error 8330in the FieldName of all of the various CreateXXXField operators. 8331 8332Disallow the use of lower case letters within the EISAID macro, as per the 8333ACPI specification. All EISAID strings must be of the form "UUUNNNN" 8334Where 8335U is an uppercase letter and N is a hex digit. 8336 8337 8338---------------------------------------- 833906 October 2004. Summary of changes for version 20041006: 8340 83411) ACPI CA Core Subsystem: 8342 8343Implemented support for the ACPI 3.0 Timer operator. This ASL function 8344implements a 64-bit timer with 100 nanosecond granularity. 8345 8346Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 8347implement the ACPI 3.0 Timer operator. This allows the host OS to 8348implement 8349the timer with the best clock available. Also, it keeps the core subsystem 8350out of the clock handling business, since the host OS (usually) performs 8351this function. 8352 8353Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 8354functions use a 64-bit address which is part of the packed ACPI Generic 8355Address Structure. Since the structure is non-aligned, the alignment 8356macros 8357are now used to extract the address to a local variable before use. 8358 8359Fixed a problem where the ToInteger operator assumed all input strings 8360were 8361hexadecimal. The operator now handles both decimal strings and hex strings 8362(prefixed with "0x"). 8363 8364Fixed a problem where the string length in the string object created as a 8365result of the internal ConvertToString procedure could be incorrect. This 8366potentially affected all implicit conversions and also the ToDecimalString 8367and ToHexString operators. 8368 8369Fixed two problems in the ToString operator. If the length parameter was 8370zero, an incorrect string object was created and the value of the input 8371length parameter was inadvertently changed from zero to Ones. 8372 8373Fixed a problem where the optional ResourceSource string in the 8374ExtendedIRQ 8375resource macro was ignored. 8376 8377Simplified the interfaces to the internal division functions, reducing 8378code 8379size and complexity. 8380 8381Code and Data Size: Current and previous core subsystem library sizes are 8382shown below. These are the code and data sizes for the acpica.lib produced 8383by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8384any ACPI driver or OSPM code. The debug version of the code includes the 8385debug output trace mechanism and has a much larger code and data size. 8386Note 8387that these values will vary depending on the efficiency of the compiler 8388and 8389the compiler options used during generation. 8390 8391 Previous Release: 8392 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 8393 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 8394 Current Release: 8395 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8396 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 8397 8398 83992) iASL Compiler/Disassembler: 8400 8401Implemented support for the ACPI 3.0 Timer operator. 8402 8403Fixed a problem where the Default() operator was inadvertently ignored in 8404a 8405Switch/Case block. This was a problem in the translation of the Switch 8406statement to If...Else pairs. 8407 8408Added support to allow a standalone Return operator, with no parentheses 8409(or 8410operands). 8411 8412Fixed a problem with code generation for the ElseIf operator where the 8413translated Else...If parse tree was improperly constructed leading to the 8414loss of some code. 8415 8416---------------------------------------- 841722 September 2004. Summary of changes for version 20040922: 8418 84191) ACPI CA Core Subsystem: 8420 8421Fixed a problem with the implementation of the LNot() operator where 8422"Ones" 8423was not returned for the TRUE case. Changed the code to return Ones 8424instead 8425of (!Arg) which was usually 1. This change affects iASL constant folding 8426for 8427this operator also. 8428 8429Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 8430initialized properly -- Now zero the entire buffer in this case where the 8431buffer already exists. 8432 8433Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 8434Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 8435related code considerably. This will require changes/updates to all OS 8436interface layers (OSLs.) 8437 8438Implemented a new external interface, AcpiInstallExceptionHandler, to 8439allow 8440a system exception handler to be installed. This handler is invoked upon 8441any 8442run-time exception that occurs during control method execution. 8443 8444Added support for the DSDT in AcpiTbFindTable. This allows the 8445DataTableRegion() operator to access the local copy of the DSDT. 8446 8447Code and Data Size: Current and previous core subsystem library sizes are 8448shown below. These are the code and data sizes for the acpica.lib produced 8449by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8450any ACPI driver or OSPM code. The debug version of the code includes the 8451debug output trace mechanism and has a much larger code and data size. 8452Note 8453that these values will vary depending on the efficiency of the compiler 8454and 8455the compiler options used during generation. 8456 8457 Previous Release: 8458 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 8459 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 8460 Current Release: 8461 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 8462 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 8463 8464 84652) iASL Compiler/Disassembler: 8466 8467Fixed a problem with constant folding and the LNot operator. LNot was 8468returning 1 in the TRUE case, not Ones as per the ACPI specification. This 8469could result in the generation of an incorrect folded/reduced constant. 8470 8471End-Of-File is now allowed within a "//"-style comment. A parse error no 8472longer occurs if such a comment is at the very end of the input ASL source 8473file. 8474 8475Implemented the "-r" option to override the Revision in the table header. 8476The initial use of this option will be to simplify the evaluation of the 8477AML 8478interpreter by allowing a single ASL source module to be compiled for 8479either 848032-bit or 64-bit integers. 8481 8482 8483---------------------------------------- 848427 August 2004. Summary of changes for version 20040827: 8485 84861) ACPI CA Core Subsystem: 8487 8488- Implemented support for implicit object conversion in the non-numeric 8489logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 8490LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 8491the second operand is implicitly converted on the fly to match the type of 8492the first operand. For example: 8493 8494 LEqual (Source1, Source2) 8495 8496Source1 and Source2 must each evaluate to an integer, a string, or a 8497buffer. 8498The data type of Source1 dictates the required type of Source2. Source2 is 8499implicitly converted if necessary to match the type of Source1. 8500 8501- Updated and corrected the behavior of the string conversion support. 8502The 8503rules concerning conversion of buffers to strings (according to the ACPI 8504specification) are as follows: 8505 8506ToDecimalString - explicit byte-wise conversion of buffer to string of 8507decimal values (0-255) separated by commas. ToHexString - explicit byte- 8508wise 8509conversion of buffer to string of hex values (0-FF) separated by commas. 8510ToString - explicit byte-wise conversion of buffer to string. Byte-by- 8511byte 8512copy with no transform except NULL terminated. Any other implicit buffer- 8513to- 8514string conversion - byte-wise conversion of buffer to string of hex values 8515(0-FF) separated by spaces. 8516 8517- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 8518 8519- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 8520one byte too short in the case of a node in the root scope. This could 8521cause a fault during debug output. 8522 8523- Code and Data Size: Current and previous core subsystem library sizes 8524are 8525shown below. These are the code and data sizes for the acpica.lib 8526produced 8527by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8528any ACPI driver or OSPM code. The debug version of the code includes the 8529debug output trace mechanism and has a much larger code and data size. 8530Note 8531that these values will vary depending on the efficiency of the compiler 8532and 8533the compiler options used during generation. 8534 8535 Previous Release: 8536 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 8537 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 8538 Current Release: 8539 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 8540 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 8541 8542 85432) iASL Compiler/Disassembler: 8544 8545- Fixed a Linux generation error. 8546 8547 8548---------------------------------------- 854916 August 2004. Summary of changes for version 20040816: 8550 85511) ACPI CA Core Subsystem: 8552 8553Designed and implemented support within the AML interpreter for the so- 8554called "implicit return". This support returns the result of the last ASL 8555operation within a control method, in the absence of an explicit Return() 8556operator. A few machines depend on this behavior, even though it is not 8557explicitly supported by the ASL language. It is optional support that can 8558be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 8559 8560Removed support for the PCI_Config address space from the internal low 8561level 8562hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 8563support was not used internally, and would not work correctly anyway 8564because 8565the PCI bus number and segment number were not supported. There are 8566separate interfaces for PCI configuration space access because of the 8567unique 8568interface. 8569 8570Code and Data Size: Current and previous core subsystem library sizes are 8571shown below. These are the code and data sizes for the acpica.lib 8572produced 8573by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8574any ACPI driver or OSPM code. The debug version of the code includes the 8575debug output trace mechanism and has a much larger code and data size. 8576Note 8577that these values will vary depending on the efficiency of the compiler 8578and 8579the compiler options used during generation. 8580 8581 Previous Release: 8582 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8583 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 8584 Current Release: 8585 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 8586 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 8587 8588 85892) iASL Compiler/Disassembler: 8590 8591Fixed a problem where constants in ASL expressions at the root level (not 8592within a control method) could be inadvertently truncated during code 8593generation. This problem was introduced in the 20040715 release. 8594 8595 8596---------------------------------------- 859715 July 2004. Summary of changes for version 20040715: 8598 85991) ACPI CA Core Subsystem: 8600 8601Restructured the internal HW GPE interfaces to pass/track the current 8602state 8603of interrupts (enabled/disabled) in order to avoid possible deadlock and 8604increase flexibility of the interfaces. 8605 8606Implemented a "lexicographical compare" for String and Buffer objects 8607within 8608the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 8609as per further clarification to the ACPI specification. Behavior is 8610similar 8611to C library "strcmp". 8612 8613Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 8614external function. In the 32-bit non-debug case, the stack use has been 8615reduced from 168 bytes to 32 bytes. 8616 8617Deployed a new run-time configuration flag, 8618AcpiGbl_EnableInterpreterSlack, 8619whose purpose is to allow the AML interpreter to forgive certain bad AML 8620constructs. Default setting is FALSE. 8621 8622Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 8623IO 8624support code. If enabled, it allows field access to go beyond the end of 8625a 8626region definition if the field is within the region length rounded up to 8627the 8628next access width boundary (a common coding error.) 8629 8630Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 8631ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 8632these 8633symbols are lowercased by the latest version of the AcpiSrc tool. 8634 8635The prototypes for the PCI interfaces in acpiosxf.h have been updated to 8636rename "Register" to simply "Reg" to prevent certain compilers from 8637complaining. 8638 8639Code and Data Size: Current and previous core subsystem library sizes are 8640shown below. These are the code and data sizes for the acpica.lib 8641produced 8642by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8643any ACPI driver or OSPM code. The debug version of the code includes the 8644debug output trace mechanism and has a much larger code and data size. 8645Note 8646that these values will vary depending on the efficiency of the compiler 8647and 8648the compiler options used during generation. 8649 8650 Previous Release: 8651 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8652 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 8653 Current Release: 8654 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8655 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 8656 8657 86582) iASL Compiler/Disassembler: 8659 8660Implemented full support for Package objects within the Case() operator. 8661Note: The Break() operator is currently not supported within Case blocks 8662(TermLists) as there is some question about backward compatibility with 8663ACPI 86641.0 interpreters. 8665 8666 8667Fixed a problem where complex terms were not supported properly within the 8668Switch() operator. 8669 8670Eliminated extraneous warning for compiler-emitted reserved names of the 8671form "_T_x". (Used in Switch/Case operators.) 8672 8673Eliminated optimization messages for "_T_x" objects and small constants 8674within the DefinitionBlock operator. 8675 8676 8677---------------------------------------- 867815 June 2004. Summary of changes for version 20040615: 8679 86801) ACPI CA Core Subsystem: 8681 8682Implemented support for Buffer and String objects (as per ACPI 2.0) for 8683the 8684following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 8685LLessEqual. 8686 8687All directory names in the entire source package are lower case, as they 8688were in earlier releases. 8689 8690Implemented "Disassemble" command in the AML debugger that will 8691disassemble 8692a single control method. 8693 8694Code and Data Size: Current and previous core subsystem library sizes are 8695shown below. These are the code and data sizes for the acpica.lib 8696produced 8697by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8698any ACPI driver or OSPM code. The debug version of the code includes the 8699debug output trace mechanism and has a much larger code and data size. 8700Note 8701that these values will vary depending on the efficiency of the compiler 8702and 8703the compiler options used during generation. 8704 8705 Previous Release: 8706 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 8707 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 8708 8709 Current Release: 8710 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8711 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 8712 8713 87142) iASL Compiler/Disassembler: 8715 8716Implemented support for Buffer and String objects (as per ACPI 2.0) for 8717the 8718following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 8719LLessEqual. 8720 8721All directory names in the entire source package are lower case, as they 8722were in earlier releases. 8723 8724Fixed a fault when using the -g or -d<nofilename> options if the FADT was 8725not found. 8726 8727Fixed an issue with the Windows version of the compiler where later 8728versions 8729of Windows place the FADT in the registry under the name "FADT" and not 8730"FACP" as earlier versions did. This applies when using the -g or - 8731d<nofilename> options. The compiler now looks for both strings as 8732necessary. 8733 8734Fixed a problem with compiler namepath optimization where a namepath 8735within 8736the Scope() operator could not be optimized if the namepath was a subpath 8737of 8738the current scope path. 8739 8740---------------------------------------- 874127 May 2004. Summary of changes for version 20040527: 8742 87431) ACPI CA Core Subsystem: 8744 8745Completed a new design and implementation for EBDA (Extended BIOS Data 8746Area) 8747support in the RSDP scan code. The original code improperly scanned for 8748the 8749EBDA by simply scanning from memory location 0 to 0x400. The correct 8750method 8751is to first obtain the EBDA pointer from within the BIOS data area, then 8752scan 1K of memory starting at the EBDA pointer. There appear to be few if 8753any machines that place the RSDP in the EBDA, however. 8754 8755Integrated a fix for a possible fault during evaluation of BufferField 8756arguments. Obsolete code that was causing the problem was removed. 8757 8758Found and fixed a problem in the Field Support Code where data could be 8759corrupted on a bit field read that starts on an aligned boundary but does 8760not end on an aligned boundary. Merged the read/write "datum length" 8761calculation code into a common procedure. 8762 8763Rolled in a couple of changes to the FreeBSD-specific header. 8764 8765 8766Code and Data Size: Current and previous core subsystem library sizes are 8767shown below. These are the code and data sizes for the acpica.lib 8768produced 8769by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8770any ACPI driver or OSPM code. The debug version of the code includes the 8771debug output trace mechanism and has a much larger code and data size. 8772Note 8773that these values will vary depending on the efficiency of the compiler 8774and 8775the compiler options used during generation. 8776 8777 Previous Release: 8778 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 8779 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 8780 Current Release: 8781 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 8782 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 8783 8784 87852) iASL Compiler/Disassembler: 8786 8787Fixed a generation warning produced by some overly-verbose compilers for a 878864-bit constant. 8789 8790---------------------------------------- 879114 May 2004. Summary of changes for version 20040514: 8792 87931) ACPI CA Core Subsystem: 8794 8795Fixed a problem where hardware GPE enable bits sometimes not set properly 8796during and after GPE method execution. Result of 04/27 changes. 8797 8798Removed extra "clear all GPEs" when sleeping/waking. 8799 8800Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 8801AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 8802to 8803the new AcpiEv* calls as appropriate. 8804 8805ACPI_OS_NAME was removed from the OS-specific headers. The default name 8806is 8807now "Microsoft Windows NT" for maximum compatibility. However this can be 8808changed by modifying the acconfig.h file. 8809 8810Allow a single invocation of AcpiInstallNotifyHandler for a handler that 8811traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 8812 8813Run _INI methods on ThermalZone objects. This is against the ACPI 8814specification, but there is apparently ASL code in the field that has 8815these 8816_INI methods, and apparently "other" AML interpreters execute them. 8817 8818Performed a full 16/32/64 bit lint that resulted in some small changes. 8819 8820Added a sleep simulation command to the AML debugger to test sleep code. 8821 8822Code and Data Size: Current and previous core subsystem library sizes are 8823shown below. These are the code and data sizes for the acpica.lib 8824produced 8825by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8826any ACPI driver or OSPM code. The debug version of the code includes the 8827debug output trace mechanism and has a much larger code and data size. 8828Note 8829that these values will vary depending on the efficiency of the compiler 8830and 8831the compiler options used during generation. 8832 8833 Previous Release: 8834 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 8835 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 8836 Current Release: 8837 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 8838 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 8839 8840---------------------------------------- 884127 April 2004. Summary of changes for version 20040427: 8842 88431) ACPI CA Core Subsystem: 8844 8845Completed a major overhaul of the GPE handling within ACPI CA. There are 8846now three types of GPEs: wake-only, runtime-only, and combination 8847wake/run. 8848The only GPEs allowed to be combination wake/run are for button-style 8849devices such as a control-method power button, control-method sleep 8850button, 8851or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 8852not 8853referenced by any _PRW methods are marked for "runtime" and hardware 8854enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 8855(and disabled at runtime). However, at sleep time, only those GPEs that 8856have been specifically enabled for wake via the AcpiEnableGpe interface 8857will 8858actually be hardware enabled. 8859 8860A new external interface has been added, AcpiSetGpeType(), that is meant 8861to 8862be used by device drivers to force a GPE to a particular type. It will be 8863especially useful for the drivers for the button devices mentioned above. 8864 8865Completed restructuring of the ACPI CA initialization sequence so that 8866default operation region handlers are installed before GPEs are 8867initialized 8868and the _PRW methods are executed. This will prevent errors when the _PRW 8869methods attempt to access system memory or I/O space. 8870 8871GPE enable/disable no longer reads the GPE enable register. We now keep 8872the 8873enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 8874thus no longer depend on the hardware to maintain these bits. 8875 8876Always clear the wake status and fixed/GPE status bits before sleep, even 8877for state S5. 8878 8879Improved the AML debugger output for displaying the GPE blocks and their 8880current status. 8881 8882Added new strings for the _OSI method, of the form "Windows 2001 SPx" 8883where 8884x = 0,1,2,3,4. 8885 8886Fixed a problem where the physical address was incorrectly calculated when 8887the Load() operator was used to directly load from an Operation Region 8888(vs. 8889loading from a Field object.) Also added check for minimum table length 8890for 8891this case. 8892 8893Fix for multiple mutex acquisition. Restore original thread SyncLevel on 8894mutex release. 8895 8896Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 8897consistency with the other fields returned. 8898 8899Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 8900structure for each GPE in the system, so the size of this structure is 8901important. 8902 8903CPU stack requirement reduction: Cleaned up the method execution and 8904object 8905evaluation paths so that now a parameter structure is passed, instead of 8906copying the various method parameters over and over again. 8907 8908In evregion.c: Correctly exit and reenter the interpreter region if and 8909only if dispatching an operation region request to a user-installed 8910handler. 8911Do not exit/reenter when dispatching to a default handler (e.g., default 8912system memory or I/O handlers) 8913 8914 8915Notes for updating drivers for the new GPE support. The following changes 8916must be made to ACPI-related device drivers that are attached to one or 8917more 8918GPEs: (This information will be added to the ACPI CA Programmer 8919Reference.) 8920 89211) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 8922explicitly call AcpiEnableGpe. 89232) There is a new interface called AcpiSetGpeType. This should be called 8924before enabling the GPE. Also, this interface will automatically disable 8925the GPE if it is currently enabled. 89263) AcpiEnableGpe no longer supports a GPE type flag. 8927 8928Specific drivers that must be changed: 89291) EC driver: 8930 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 8931AeGpeHandler, NULL); 8932 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 8933 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 8934 89352) Button Drivers (Power, Lid, Sleep): 8936Run _PRW method under parent device 8937If _PRW exists: /* This is a control-method button */ 8938 Extract GPE number and possibly GpeDevice 8939 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 8940 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 8941 8942For all other devices that have _PRWs, we automatically set the GPE type 8943to 8944ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 8945must be done on a selective basis, usually requiring some kind of user app 8946to allow the user to pick the wake devices. 8947 8948 8949Code and Data Size: Current and previous core subsystem library sizes are 8950shown below. These are the code and data sizes for the acpica.lib 8951produced 8952by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8953any ACPI driver or OSPM code. The debug version of the code includes the 8954debug output trace mechanism and has a much larger code and data size. 8955Note 8956that these values will vary depending on the efficiency of the compiler 8957and 8958the compiler options used during generation. 8959 8960 Previous Release: 8961 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 8962 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 8963 Current Release: 8964 8965 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 8966 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 8967 8968 8969 8970---------------------------------------- 897102 April 2004. Summary of changes for version 20040402: 8972 89731) ACPI CA Core Subsystem: 8974 8975Fixed an interpreter problem where an indirect store through an ArgX 8976parameter was incorrectly applying the "implicit conversion rules" during 8977the store. From the ACPI specification: "If the target is a method local 8978or 8979argument (LocalX or ArgX), no conversion is performed and the result is 8980stored directly to the target". The new behavior is to disable implicit 8981conversion during ALL stores to an ArgX. 8982 8983Changed the behavior of the _PRW method scan to ignore any and all errors 8984returned by a given _PRW. This prevents the scan from aborting from the 8985failure of any single _PRW. 8986 8987Moved the runtime configuration parameters from the global init procedure 8988to 8989static variables in acglobal.h. This will allow the host to override the 8990default values easily. 8991 8992Code and Data Size: Current and previous core subsystem library sizes are 8993shown below. These are the code and data sizes for the acpica.lib 8994produced 8995by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8996any ACPI driver or OSPM code. The debug version of the code includes the 8997debug output trace mechanism and has a much larger code and data size. 8998Note 8999that these values will vary depending on the efficiency of the compiler 9000and 9001the compiler options used during generation. 9002 9003 Previous Release: 9004 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 9005 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 9006 Current Release: 9007 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 9008 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 9009 9010 90112) iASL Compiler/Disassembler: 9012 9013iASL now fully disassembles SSDTs. However, External() statements are not 9014generated automatically for unresolved symbols at this time. This is a 9015planned feature for future implementation. 9016 9017Fixed a scoping problem in the disassembler that occurs when the type of 9018the 9019target of a Scope() operator is overridden. This problem caused an 9020incorrectly nested internal namespace to be constructed. 9021 9022Any warnings or errors that are emitted during disassembly are now 9023commented 9024out automatically so that the resulting file can be recompiled without any 9025hand editing. 9026 9027---------------------------------------- 902826 March 2004. Summary of changes for version 20040326: 9029 90301) ACPI CA Core Subsystem: 9031 9032Implemented support for "wake" GPEs via interaction between GPEs and the 9033_PRW methods. Every GPE that is pointed to by one or more _PRWs is 9034identified as a WAKE GPE and by default will no longer be enabled at 9035runtime. Previously, we were blindly enabling all GPEs with a 9036corresponding 9037_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 9038We 9039believe this has been the cause of thousands of "spurious" GPEs on some 9040systems. 9041 9042This new GPE behavior is can be reverted to the original behavior (enable 9043ALL GPEs at runtime) via a runtime flag. 9044 9045Fixed a problem where aliased control methods could not access objects 9046properly. The proper scope within the namespace was not initialized 9047(transferred to the target of the aliased method) before executing the 9048target method. 9049 9050Fixed a potential race condition on internal object deletion on the return 9051object in AcpiEvaluateObject. 9052 9053Integrated a fix for resource descriptors where both _MEM and _MTP were 9054being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 9055wide, 0x0F instead of 0x03.) 9056 9057Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing 9058a 9059fault in some cases. 9060 9061Updated Notify() values for debug statements in evmisc.c 9062 9063Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 9064 9065Code and Data Size: Current and previous core subsystem library sizes are 9066shown below. These are the code and data sizes for the acpica.lib 9067produced 9068by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9069any ACPI driver or OSPM code. The debug version of the code includes the 9070debug output trace mechanism and has a much larger code and data size. 9071Note 9072that these values will vary depending on the efficiency of the compiler 9073and 9074the compiler options used during generation. 9075 9076 Previous Release: 9077 9078 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 9079 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 9080 Current Release: 9081 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 9082 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 9083 9084---------------------------------------- 908511 March 2004. Summary of changes for version 20040311: 9086 90871) ACPI CA Core Subsystem: 9088 9089Fixed a problem where errors occurring during the parse phase of control 9090method execution did not abort cleanly. For example, objects created and 9091installed in the namespace were not deleted. This caused all subsequent 9092invocations of the method to return the AE_ALREADY_EXISTS exception. 9093 9094Implemented a mechanism to force a control method to "Serialized" 9095execution 9096if the method attempts to create namespace objects. (The root of the 9097AE_ALREADY_EXISTS problem.) 9098 9099Implemented support for the predefined _OSI "internal" control method. 9100Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 9101"Windows 2001.1", and can be easily upgraded for new strings as necessary. 9102This feature will allow "other" operating systems to execute the fully 9103tested, "Windows" code path through the ASL code 9104 9105Global Lock Support: Now allows multiple acquires and releases with any 9106internal thread. Removed concept of "owning thread" for this special 9107mutex. 9108 9109Fixed two functions that were inappropriately declaring large objects on 9110the 9111CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 9112during 9113method execution considerably. 9114 9115Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 9116S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 9117 9118Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 9119defined on the machine. 9120 9121Implemented two runtime options: One to force all control method 9122execution 9123to "Serialized" to mimic Windows behavior, another to disable _OSI support 9124if it causes problems on a given machine. 9125 9126Code and Data Size: Current and previous core subsystem library sizes are 9127shown below. These are the code and data sizes for the acpica.lib 9128produced 9129by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9130any ACPI driver or OSPM code. The debug version of the code includes the 9131debug output trace mechanism and has a much larger code and data size. 9132Note 9133that these values will vary depending on the efficiency of the compiler 9134and 9135the compiler options used during generation. 9136 9137 Previous Release: 9138 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 9139 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 9140 Current Release: 9141 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 9142 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 9143 91442) iASL Compiler/Disassembler: 9145 9146Fixed an array size problem for FreeBSD that would cause the compiler to 9147fault. 9148 9149---------------------------------------- 915020 February 2004. Summary of changes for version 20040220: 9151 9152 91531) ACPI CA Core Subsystem: 9154 9155Implemented execution of _SxD methods for Device objects in the 9156GetObjectInfo interface. 9157 9158Fixed calls to _SST method to pass the correct arguments. 9159 9160Added a call to _SST on wake to restore to "working" state. 9161 9162Check for End-Of-Buffer failure case in the WalkResources interface. 9163 9164Integrated fix for 64-bit alignment issue in acglobal.h by moving two 9165structures to the beginning of the file. 9166 9167After wake, clear GPE status register(s) before enabling GPEs. 9168 9169After wake, clear/enable power button. (Perhaps we should clear/enable 9170all 9171fixed events upon wake.) 9172 9173Fixed a couple of possible memory leaks in the Namespace manager. 9174 9175Integrated latest acnetbsd.h file. 9176 9177---------------------------------------- 917811 February 2004. Summary of changes for version 20040211: 9179 9180 91811) ACPI CA Core Subsystem: 9182 9183Completed investigation and implementation of the call-by-reference 9184mechanism for control method arguments. 9185 9186Fixed a problem where a store of an object into an indexed package could 9187fail if the store occurs within a different method than the method that 9188created the package. 9189 9190Fixed a problem where the ToDecimal operator could return incorrect 9191results. 9192 9193Fixed a problem where the CopyObject operator could fail on some of the 9194more 9195obscure objects (e.g., Reference objects.) 9196 9197Improved the output of the Debug object to display buffer, package, and 9198index objects. 9199 9200Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 9201the expected result. 9202 9203Added permanent ACPI_REPORT_ERROR macros for all instances of the 9204ACPI_AML_INTERNAL exception. 9205 9206Integrated latest version of acfreebsd.h 9207 9208---------------------------------------- 920916 January 2004. Summary of changes for version 20040116: 9210 9211The purpose of this release is primarily to update the copyright years in 9212each module, thus causing a huge number of diffs. There are a few small 9213functional changes, however. 9214 92151) ACPI CA Core Subsystem: 9216 9217Improved error messages when there is a problem finding one or more of the 9218required base ACPI tables 9219 9220Reintroduced the definition of APIC_HEADER in actbl.h 9221 9222Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 9223 9224Removed extraneous reference to NewObj in dsmthdat.c 9225 92262) iASL compiler 9227 9228Fixed a problem introduced in December that disabled the correct 9229disassembly 9230of Resource Templates 9231 9232 9233---------------------------------------- 923403 December 2003. Summary of changes for version 20031203: 9235 92361) ACPI CA Core Subsystem: 9237 9238Changed the initialization of Operation Regions during subsystem 9239init to perform two entire walks of the ACPI namespace; The first 9240to initialize the regions themselves, the second to execute the 9241_REG methods. This fixed some interdependencies across _REG 9242methods found on some machines. 9243 9244Fixed a problem where a Store(Local0, Local1) could simply update 9245the object reference count, and not create a new copy of the 9246object if the Local1 is uninitialized. 9247 9248Implemented support for the _SST reserved method during sleep 9249transitions. 9250 9251Implemented support to clear the SLP_TYP and SLP_EN bits when 9252waking up, this is apparently required by some machines. 9253 9254When sleeping, clear the wake status only if SleepState is not S5. 9255 9256Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 9257pointer arithmetic advanced a string pointer too far. 9258 9259Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 9260could be returned if the requested table has not been loaded. 9261 9262Within the support for IRQ resources, restructured the handling of 9263the active and edge/level bits. 9264 9265Fixed a few problems in AcpiPsxExecute() where memory could be 9266leaked under certain error conditions. 9267 9268Improved error messages for the cases where the ACPI mode could 9269not be entered. 9270 9271Code and Data Size: Current and previous core subsystem library 9272sizes are shown below. These are the code and data sizes for the 9273acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9274these values do not include any ACPI driver or OSPM code. The 9275debug version of the code includes the debug output trace 9276mechanism and has a much larger code and data size. Note that 9277these values will vary depending on the efficiency of the compiler 9278and the compiler options used during generation. 9279 9280 Previous Release (20031029): 9281 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 9282 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 9283 Current Release: 9284 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 9285 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 9286 92872) iASL Compiler/Disassembler: 9288 9289Implemented a fix for the iASL disassembler where a bad index was 9290generated. This was most noticeable on 64-bit platforms 9291 9292 9293---------------------------------------- 929429 October 2003. Summary of changes for version 20031029: 9295 92961) ACPI CA Core Subsystem: 9297 9298 9299Fixed a problem where a level-triggered GPE with an associated 9300_Lxx control method was incorrectly cleared twice. 9301 9302Fixed a problem with the Field support code where an access can 9303occur beyond the end-of-region if the field is non-aligned but 9304extends to the very end of the parent region (resulted in an 9305AE_AML_REGION_LIMIT exception.) 9306 9307Fixed a problem with ACPI Fixed Events where an RT Clock handler 9308would not get invoked on an RTC event. The RTC event bitmasks for 9309the PM1 registers were not being initialized properly. 9310 9311Implemented support for executing _STA and _INI methods for 9312Processor objects. Although this is currently not part of the 9313ACPI specification, there is existing ASL code that depends on the 9314init-time execution of these methods. 9315 9316Implemented and deployed a GetDescriptorName function to decode 9317the various types of internal descriptors. Guards against null 9318descriptors during debug output also. 9319 9320Implemented and deployed a GetNodeName function to extract the 4- 9321character namespace node name. This function simplifies the debug 9322and error output, as well as guarding against null pointers during 9323output. 9324 9325Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 9326simplify the debug and error output of 64-bit integers. This 9327macro replaces the HIDWORD and LODWORD macros for dumping these 9328integers. 9329 9330Updated the implementation of the Stall() operator to only call 9331AcpiOsStall(), and also return an error if the operand is larger 9332than 255. This preserves the required behavior of not 9333relinquishing the processor, as would happen if AcpiOsSleep() was 9334called for "long stalls". 9335 9336Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 9337initialized are now treated as NOOPs. 9338 9339Cleaned up a handful of warnings during 64-bit generation. 9340 9341Fixed a reported error where and incorrect GPE number was passed 9342to the GPE dispatch handler. This value is only used for error 9343output, however. Used this opportunity to clean up and streamline 9344the GPE dispatch code. 9345 9346Code and Data Size: Current and previous core subsystem library 9347sizes are shown below. These are the code and data sizes for the 9348acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9349these values do not include any ACPI driver or OSPM code. The 9350 9351debug version of the code includes the debug output trace 9352mechanism and has a much larger code and data size. Note that 9353these values will vary depending on the efficiency of the compiler 9354and the compiler options used during generation. 9355 9356 Previous Release (20031002): 9357 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 9358 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 9359 Current Release: 9360 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 9361 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 9362 9363 93642) iASL Compiler/Disassembler: 9365 9366Updated the iASL compiler to return an error if the operand to the 9367Stall() operator is larger than 255. 9368 9369 9370---------------------------------------- 937102 October 2003. Summary of changes for version 20031002: 9372 9373 93741) ACPI CA Core Subsystem: 9375 9376Fixed a problem with Index Fields where the index was not 9377incremented for fields that require multiple writes to the 9378index/data registers (Fields that are wider than the data 9379register.) 9380 9381Fixed a problem with all Field objects where a write could go 9382beyond the end-of-field if the field was larger than the access 9383granularity and therefore required multiple writes to complete the 9384request. An extra write beyond the end of the field could happen 9385inadvertently. 9386 9387Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 9388would incorrectly be returned if the width of the Data Register 9389was larger than the specified field access width. 9390 9391Completed fixes for LoadTable() and Unload() and verified their 9392operation. Implemented full support for the "DdbHandle" object 9393throughout the ACPI CA subsystem. 9394 9395Implemented full support for the MADT and ECDT tables in the ACPI 9396CA header files. Even though these tables are not directly 9397consumed by ACPI CA, the header definitions are useful for ACPI 9398device drivers. 9399 9400Integrated resource descriptor fixes posted to the Linux ACPI 9401list. This included checks for minimum descriptor length, and 9402support for trailing NULL strings within descriptors that have 9403optional string elements. 9404 9405Code and Data Size: Current and previous core subsystem library 9406sizes are shown below. These are the code and data sizes for the 9407acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9408these values do not include any ACPI driver or OSPM code. The 9409debug version of the code includes the debug output trace 9410mechanism and has a much larger code and data size. Note that 9411these values will vary depending on the efficiency of the compiler 9412and the compiler options used during generation. 9413 9414 Previous Release (20030918): 9415 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 9416 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 9417 Current Release: 9418 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 9419 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 9420 9421 94222) iASL Compiler: 9423 9424Implemented detection of non-ASCII characters within the input 9425source ASL file. This catches attempts to compile binary (AML) 9426files early in the compile, with an informative error message. 9427 9428Fixed a problem where the disassembler would fault if the output 9429filename could not be generated or if the output file could not be 9430opened. 9431 9432---------------------------------------- 943318 September 2003. Summary of changes for version 20030918: 9434 9435 94361) ACPI CA Core Subsystem: 9437 9438Found and fixed a longstanding problem with the late execution of 9439the various deferred AML opcodes (such as Operation Regions, 9440Buffer Fields, Buffers, and Packages). If the name string 9441specified for the name of the new object placed the object in a 9442scope other than the current scope, the initialization/execution 9443of the opcode failed. The solution to this problem was to 9444implement a mechanism where the late execution of such opcodes 9445does not attempt to lookup/create the name a second time in an 9446incorrect scope. This fixes the "region size computed 9447incorrectly" problem. 9448 9449Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 9450Global Lock AE_BAD_PARAMETER error. 9451 9452Fixed several 64-bit issues with prototypes, casting and data 9453types. 9454 9455Removed duplicate prototype from acdisasm.h 9456 9457Fixed an issue involving EC Operation Region Detach (Shaohua Li) 9458 9459Code and Data Size: Current and previous core subsystem library 9460sizes are shown below. These are the code and data sizes for the 9461acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9462these values do not include any ACPI driver or OSPM code. The 9463debug version of the code includes the debug output trace 9464mechanism and has a much larger code and data size. Note that 9465these values will vary depending on the efficiency of the compiler 9466and the compiler options used during generation. 9467 9468 Previous Release: 9469 9470 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 9471 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 9472 Current Release: 9473 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 9474 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 9475 9476 94772) Linux: 9478 9479Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 9480correct sleep time in seconds. 9481 9482---------------------------------------- 948314 July 2003. Summary of changes for version 20030619: 9484 94851) ACPI CA Core Subsystem: 9486 9487Parse SSDTs in order discovered, as opposed to reverse order 9488(Hrvoje Habjanic) 9489 9490Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 9491Klausner, 9492 Nate Lawson) 9493 9494 94952) Linux: 9496 9497Dynamically allocate SDT list (suggested by Andi Kleen) 9498 9499proc function return value cleanups (Andi Kleen) 9500 9501Correctly handle NMI watchdog during long stalls (Andrew Morton) 9502 9503Make it so acpismp=force works (reported by Andrew Morton) 9504 9505 9506---------------------------------------- 950719 June 2003. Summary of changes for version 20030619: 9508 95091) ACPI CA Core Subsystem: 9510 9511Fix To/FromBCD, eliminating the need for an arch-specific #define. 9512 9513Do not acquire a semaphore in the S5 shutdown path. 9514 9515Fix ex_digits_needed for 0. (Takayoshi Kochi) 9516 9517Fix sleep/stall code reversal. (Andi Kleen) 9518 9519Revert a change having to do with control method calling 9520semantics. 9521 95222) Linux: 9523 9524acpiphp update (Takayoshi Kochi) 9525 9526Export acpi_disabled for sonypi (Stelian Pop) 9527 9528Mention acpismp=force in config help 9529 9530Re-add acpitable.c and acpismp=force. This improves backwards 9531 9532compatibility and also cleans up the code to a significant degree. 9533 9534Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 9535 9536---------------------------------------- 953722 May 2003. Summary of changes for version 20030522: 9538 95391) ACPI CA Core Subsystem: 9540 9541Found and fixed a reported problem where an AE_NOT_FOUND error 9542occurred occasionally during _BST evaluation. This turned out to 9543be an Owner ID allocation issue where a called method did not get 9544a new ID assigned to it. Eventually, (after 64k calls), the Owner 9545ID UINT16 would wraparound so that the ID would be the same as the 9546caller's and the called method would delete the caller's 9547namespace. 9548 9549Implemented extended error reporting for control methods that are 9550aborted due to a run-time exception. Output includes the exact 9551AML instruction that caused the method abort, a dump of the method 9552locals and arguments at the time of the abort, and a trace of all 9553nested control method calls. 9554 9555Modified the interpreter to allow the creation of buffers of zero 9556length from the AML code. Implemented new code to ensure that no 9557attempt is made to actually allocate a memory buffer (of length 9558zero) - instead, a simple buffer object with a NULL buffer pointer 9559and length zero is created. A warning is no longer issued when 9560the AML attempts to create a zero-length buffer. 9561 9562Implemented a workaround for the "leading asterisk issue" in 9563_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 9564asterisk is automatically removed if present in any HID, UID, or 9565CID strings. The iASL compiler will still flag this asterisk as 9566an error, however. 9567 9568Implemented full support for _CID methods that return a package of 9569multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 9570now additionally returns a device _CID list if present. This 9571required a change to the external interface in order to pass an 9572ACPI_BUFFER object as a parameter since the _CID list is of 9573variable length. 9574 9575Fixed a problem with the new AE_SAME_HANDLER exception where 9576handler initialization code did not know about this exception. 9577 9578Code and Data Size: Current and previous core subsystem library 9579sizes are shown below. These are the code and data sizes for the 9580acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9581these values do not include any ACPI driver or OSPM code. The 9582debug version of the code includes the debug output trace 9583mechanism and has a much larger code and data size. Note that 9584these values will vary depending on the efficiency of the compiler 9585and the compiler options used during generation. 9586 9587 Previous Release (20030509): 9588 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 9589 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 9590 Current Release: 9591 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 9592 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 9593 9594 95952) Linux: 9596 9597Fixed a bug in which we would reinitialize the ACPI interrupt 9598after it was already working, thus disabling all ACPI and the IRQs 9599for any other device sharing the interrupt. (Thanks to Stian 9600Jordet) 9601 9602Toshiba driver update (John Belmonte) 9603 9604Return only 0 or 1 for our interrupt handler status (Andrew 9605Morton) 9606 9607 96083) iASL Compiler: 9609 9610Fixed a reported problem where multiple (nested) ElseIf() 9611statements were not handled correctly by the compiler, resulting 9612in incorrect warnings and incorrect AML code. This was a problem 9613in both the ASL parser and the code generator. 9614 9615 96164) Documentation: 9617 9618Added changes to existing interfaces, new exception codes, and new 9619text concerning reference count object management versus garbage 9620collection. 9621 9622---------------------------------------- 962309 May 2003. Summary of changes for version 20030509. 9624 9625 96261) ACPI CA Core Subsystem: 9627 9628Changed the subsystem initialization sequence to hold off 9629installation of address space handlers until the hardware has been 9630initialized and the system has entered ACPI mode. This is because 9631the installation of space handlers can cause _REG methods to be 9632run. Previously, the _REG methods could potentially be run before 9633ACPI mode was enabled. 9634 9635Fixed some memory leak issues related to address space handler and 9636notify handler installation. There were some problems with the 9637reference count mechanism caused by the fact that the handler 9638objects are shared across several namespace objects. 9639 9640Fixed a reported problem where reference counts within the 9641namespace were not properly updated when named objects created by 9642method execution were deleted. 9643 9644Fixed a reported problem where multiple SSDTs caused a deletion 9645issue during subsystem termination. Restructured the table data 9646structures to simplify the linked lists and the related code. 9647 9648Fixed a problem where the table ID associated with secondary 9649tables (SSDTs) was not being propagated into the namespace objects 9650created by those tables. This would only present a problem for 9651tables that are unloaded at run-time, however. 9652 9653Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 9654type as the length parameter (instead of UINT32). 9655 9656Solved a long-standing problem where an ALREADY_EXISTS error 9657appears on various systems. This problem could happen when there 9658are multiple PCI_Config operation regions under a single PCI root 9659bus. This doesn't happen very frequently, but there are some 9660systems that do this in the ASL. 9661 9662Fixed a reported problem where the internal DeleteNode function 9663was incorrectly handling the case where a namespace node was the 9664first in the parent's child list, and had additional peers (not 9665the only child, but first in the list of children.) 9666 9667Code and Data Size: Current core subsystem library sizes are shown 9668below. These are the code and data sizes for the acpica.lib 9669produced by the Microsoft Visual C++ 6.0 compiler, and these 9670values do not include any ACPI driver or OSPM code. The debug 9671version of the code includes the debug output trace mechanism and 9672has a much larger code and data size. Note that these values will 9673vary depending on the efficiency of the compiler and the compiler 9674options used during generation. 9675 9676 Previous Release 9677 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 9678 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 9679 Current Release: 9680 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 9681 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 9682 9683 96842) Linux: 9685 9686Allow ":" in OS override string (Ducrot Bruno) 9687 9688Kobject fix (Greg KH) 9689 9690 96913 iASL Compiler/Disassembler: 9692 9693Fixed a problem in the generation of the C source code files (AML 9694is emitted in C source statements for BIOS inclusion) where the 9695Ascii dump that appears within a C comment at the end of each line 9696could cause a compile time error if the AML sequence happens to 9697have an open comment or close comment sequence embedded. 9698 9699 9700---------------------------------------- 970124 April 2003. Summary of changes for version 20030424. 9702 9703 97041) ACPI CA Core Subsystem: 9705 9706Support for big-endian systems has been implemented. Most of the 9707support has been invisibly added behind big-endian versions of the 9708ACPI_MOVE_* macros. 9709 9710Fixed a problem in AcpiHwDisableGpeBlock() and 9711AcpiHwClearGpeBlock() where an incorrect offset was passed to the 9712low level hardware write routine. The offset parameter was 9713actually eliminated from the low level read/write routines because 9714they had become obsolete. 9715 9716Fixed a problem where a handler object was deleted twice during 9717the removal of a fixed event handler. 9718 9719 97202) Linux: 9721 9722A fix for SMP systems with link devices was contributed by 9723 9724Compaq's Dan Zink. 9725 9726(2.5) Return whether we handled the interrupt in our IRQ handler. 9727(Linux ISRs no longer return void, so we can propagate the handler 9728return value from the ACPI CA core back to the OS.) 9729 9730 9731 97323) Documentation: 9733 9734The ACPI CA Programmer Reference has been updated to reflect new 9735interfaces and changes to existing interfaces. 9736 9737---------------------------------------- 973828 March 2003. Summary of changes for version 20030328. 9739 97401) ACPI CA Core Subsystem: 9741 9742The GPE Block Device support has been completed. New interfaces 9743are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 9744interfaces (enable, disable, clear, getstatus) have been split 9745into separate interfaces for Fixed Events and General Purpose 9746Events (GPEs) in order to support GPE Block Devices properly. 9747 9748Fixed a problem where the error message "Failed to acquire 9749semaphore" would appear during operations on the embedded 9750controller (EC). 9751 9752Code and Data Size: Current core subsystem library sizes are shown 9753below. These are the code and data sizes for the acpica.lib 9754produced by the Microsoft Visual C++ 6.0 compiler, and these 9755values do not include any ACPI driver or OSPM code. The debug 9756version of the code includes the debug output trace mechanism and 9757has a much larger code and data size. Note that these values will 9758vary depending on the efficiency of the compiler and the compiler 9759options used during generation. 9760 9761 Previous Release 9762 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 9763 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 9764 Current Release: 9765 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 9766 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 9767 9768 9769---------------------------------------- 977028 February 2003. Summary of changes for version 20030228. 9771 9772 97731) ACPI CA Core Subsystem: 9774 9775The GPE handling and dispatch code has been completely overhauled 9776in preparation for support of GPE Block Devices (ID ACPI0006). 9777This affects internal data structures and code only; there should 9778be no differences visible externally. One new file has been 9779added, evgpeblk.c 9780 9781The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 9782fields that are used to determine the GPE block lengths. The 9783REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 9784structures are ignored. This is per the ACPI specification but it 9785isn't very clear. The full 256 Block 0/1 GPEs are now supported 9786(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 9787 9788In the SCI interrupt handler, removed the read of the PM1_CONTROL 9789register to look at the SCI_EN bit. On some machines, this read 9790causes an SMI event and greatly slows down SCI events. (This may 9791in fact be the cause of slow battery status response on some 9792systems.) 9793 9794Fixed a problem where a store of a NULL string to a package object 9795could cause the premature deletion of the object. This was seen 9796during execution of the battery _BIF method on some systems, 9797resulting in no battery data being returned. 9798 9799Added AcpiWalkResources interface to simplify parsing of resource 9800lists. 9801 9802Code and Data Size: Current core subsystem library sizes are shown 9803below. These are the code and data sizes for the acpica.lib 9804produced by the Microsoft Visual C++ 6.0 compiler, and these 9805values do not include any ACPI driver or OSPM code. The debug 9806version of the code includes the debug output trace mechanism and 9807has a much larger code and data size. Note that these values will 9808vary depending on the efficiency of the compiler and the compiler 9809options used during generation. 9810 9811 Previous Release 9812 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 9813 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 9814 Current Release: 9815 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 9816 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 9817 9818 98192) Linux 9820 9821S3 fixes (Ole Rohne) 9822 9823Update ACPI PHP driver with to use new acpi_walk_resource API 9824(Bjorn Helgaas) 9825 9826Add S4BIOS support (Pavel Machek) 9827 9828Map in entire table before performing checksum (John Stultz) 9829 9830Expand the mem= cmdline to allow the specification of reserved and 9831ACPI DATA blocks (Pavel Machek) 9832 9833Never use ACPI on VISWS 9834 9835Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 9836 9837Revert a change that allowed P_BLK lengths to be 4 or 5. This is 9838causing us to think that some systems support C2 when they really 9839don't. 9840 9841Do not count processor objects for non-present CPUs (Thanks to 9842Dominik Brodowski) 9843 9844 98453) iASL Compiler: 9846 9847Fixed a problem where ASL include files could not be found and 9848opened. 9849 9850Added support for the _PDC reserved name. 9851 9852 9853---------------------------------------- 985422 January 2003. Summary of changes for version 20030122. 9855 9856 98571) ACPI CA Core Subsystem: 9858 9859Added a check for constructs of the form: Store (Local0, Local0) 9860where Local0 is not initialized. Apparently, some BIOS 9861programmers believe that this is a NOOP. Since this store doesn't 9862do anything anyway, the new prototype behavior will ignore this 9863error. This is a case where we can relax the strict checking in 9864the interpreter in the name of compatibility. 9865 9866 98672) Linux 9868 9869The AcpiSrc Source Conversion Utility has been released with the 9870Linux package for the first time. This is the utility that is 9871used to convert the ACPI CA base source code to the Linux version. 9872 9873(Both) Handle P_BLK lengths shorter than 6 more gracefully 9874 9875(Both) Move more headers to include/acpi, and delete an unused 9876header. 9877 9878(Both) Move drivers/acpi/include directory to include/acpi 9879 9880(Both) Boot functions don't use cmdline, so don't pass it around 9881 9882(Both) Remove include of unused header (Adrian Bunk) 9883 9884(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 9885the 9886former now also includes the latter, acpiphp.h only needs the one, 9887now. 9888 9889(2.5) Make it possible to select method of bios restoring after S3 9890resume. [=> no more ugly ifdefs] (Pavel Machek) 9891 9892(2.5) Make proc write interfaces work (Pavel Machek) 9893 9894(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 9895 9896(2.5) Break out ACPI Perf code into its own module, under cpufreq 9897(Dominik Brodowski) 9898 9899(2.4) S4BIOS support (Ducrot Bruno) 9900 9901(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 9902Visinoni) 9903 9904 99053) iASL Compiler: 9906 9907Added support to disassemble SSDT and PSDTs. 9908 9909Implemented support to obtain SSDTs from the Windows registry if 9910available. 9911 9912 9913---------------------------------------- 991409 January 2003. Summary of changes for version 20030109. 9915 99161) ACPI CA Core Subsystem: 9917 9918Changed the behavior of the internal Buffer-to-String conversion 9919function. The current ACPI specification states that the contents 9920of the buffer are "converted to a string of two-character 9921hexadecimal numbers, each separated by a space". Unfortunately, 9922this definition is not backwards compatible with existing ACPI 1.0 9923implementations (although the behavior was not defined in the ACPI 99241.0 specification). The new behavior simply copies data from the 9925buffer to the string until a null character is found or the end of 9926the buffer is reached. The new String object is always null 9927terminated. This problem was seen during the generation of _BIF 9928battery data where incorrect strings were returned for battery 9929type, etc. This will also require an errata to the ACPI 9930specification. 9931 9932Renamed all instances of NATIVE_UINT and NATIVE_INT to 9933ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 9934 9935Copyright in all module headers (both Linux and non-Linux) has be 9936updated to 2003. 9937 9938Code and Data Size: Current core subsystem library sizes are shown 9939below. These are the code and data sizes for the acpica.lib 9940produced by the Microsoft Visual C++ 6.0 compiler, and these 9941values do not include any ACPI driver or OSPM code. The debug 9942version of the code includes the debug output trace mechanism and 9943has a much larger code and data size. Note that these values will 9944vary depending on the efficiency of the compiler and the compiler 9945options used during generation. 9946 9947 Previous Release 9948 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 9949 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 9950 Current Release: 9951 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 9952 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 9953 9954 99552) Linux 9956 9957Fixed an oops on module insertion/removal (Matthew Tippett) 9958 9959(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 9960 9961(2.5) Replace pr_debug (Randy Dunlap) 9962 9963(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 9964 9965(Both) Eliminate spawning of thread from timer callback, in favor 9966of schedule_work() 9967 9968(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 9969 9970(Both) Added define for Fixed Function HW region (Matthew Wilcox) 9971 9972(Both) Add missing statics to button.c (Pavel Machek) 9973 9974Several changes have been made to the source code translation 9975utility that generates the Linux Code in order to make the code 9976more "Linux-like": 9977 9978All typedefs on structs and unions have been removed in keeping 9979with the Linux coding style. 9980 9981Removed the non-Linux SourceSafe module revision number from each 9982module header. 9983 9984Completed major overhaul of symbols to be lowercased for linux. 9985Doubled the number of symbols that are lowercased. 9986 9987Fixed a problem where identifiers within procedure headers and 9988within quotes were not fully lower cased (they were left with a 9989starting capital.) 9990 9991Some C macros whose only purpose is to allow the generation of 16- 9992bit code are now completely removed in the Linux code, increasing 9993readability and maintainability. 9994 9995---------------------------------------- 9996 999712 December 2002. Summary of changes for version 20021212. 9998 9999 100001) ACPI CA Core Subsystem: 10001 10002Fixed a problem where the creation of a zero-length AML Buffer 10003would cause a fault. 10004 10005Fixed a problem where a Buffer object that pointed to a static AML 10006buffer (in an ACPI table) could inadvertently be deleted, causing 10007memory corruption. 10008 10009Fixed a problem where a user buffer (passed in to the external 10010ACPI CA interfaces) could be overwritten if the buffer was too 10011small to complete the operation, causing memory corruption. 10012 10013Fixed a problem in the Buffer-to-String conversion code where a 10014string of length one was always returned, regardless of the size 10015of the input Buffer object. 10016 10017Removed the NATIVE_CHAR data type across the entire source due to 10018lack of need and lack of consistent use. 10019 10020Code and Data Size: Current core subsystem library sizes are shown 10021below. These are the code and data sizes for the acpica.lib 10022produced by the Microsoft Visual C++ 6.0 compiler, and these 10023values do not include any ACPI driver or OSPM code. The debug 10024version of the code includes the debug output trace mechanism and 10025has a much larger code and data size. Note that these values will 10026vary depending on the efficiency of the compiler and the compiler 10027options used during generation. 10028 10029 Previous Release 10030 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 10031 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 10032 Current Release: 10033 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 10034 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 10035 10036 10037---------------------------------------- 1003805 December 2002. Summary of changes for version 20021205. 10039 100401) ACPI CA Core Subsystem: 10041 10042Fixed a problem where a store to a String or Buffer object could 10043cause corruption of the DSDT if the object type being stored was 10044the same as the target object type and the length of the object 10045being stored was equal to or smaller than the original (existing) 10046target object. This was seen to cause corruption of battery _BIF 10047buffers if the _BIF method modified the buffer on the fly. 10048 10049Fixed a problem where an internal error was generated if a control 10050method invocation was used in an OperationRegion, Buffer, or 10051Package declaration. This was caused by the deferred parsing of 10052the control method and thus the deferred creation of the internal 10053method object. The solution to this problem was to create the 10054internal method object at the moment the method is encountered in 10055the first pass - so that subsequent references to the method will 10056able to obtain the required parameter count and thus properly 10057parse the method invocation. This problem presented itself as an 10058AE_AML_INTERNAL during the pass 1 parse phase during table load. 10059 10060Fixed a problem where the internal String object copy routine did 10061not always allocate sufficient memory for the target String object 10062and caused memory corruption. This problem was seen to cause 10063"Allocation already present in list!" errors as memory allocation 10064became corrupted. 10065 10066Implemented a new function for the evaluation of namespace objects 10067that allows the specification of the allowable return object 10068types. This simplifies a lot of code that checks for a return 10069object of one or more specific objects returned from the 10070evaluation (such as _STA, etc.) This may become and external 10071function if it would be useful to ACPI-related drivers. 10072 10073Completed another round of prefixing #defines with "ACPI_" for 10074clarity. 10075 10076Completed additional code restructuring to allow more modular 10077linking for iASL compiler and AcpiExec. Several files were split 10078creating new files. New files: nsparse.c dsinit.c evgpe.c 10079 10080Implemented an abort mechanism to terminate an executing control 10081method via the AML debugger. This feature is useful for debugging 10082control methods that depend (wait) for specific hardware 10083responses. 10084 10085Code and Data Size: Current core subsystem library sizes are shown 10086below. These are the code and data sizes for the acpica.lib 10087produced by the Microsoft Visual C++ 6.0 compiler, and these 10088values do not include any ACPI driver or OSPM code. The debug 10089version of the code includes the debug output trace mechanism and 10090has a much larger code and data size. Note that these values will 10091vary depending on the efficiency of the compiler and the compiler 10092options used during generation. 10093 10094 Previous Release 10095 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10096 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 10097 Current Release: 10098 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 10099 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 10100 10101 101022) iASL Compiler/Disassembler 10103 10104Fixed a compiler code generation problem for "Interrupt" Resource 10105Descriptors. If specified in the ASL, the optional "Resource 10106Source Index" and "Resource Source" fields were not inserted into 10107the correct location within the AML resource descriptor, creating 10108an invalid descriptor. 10109 10110Fixed a disassembler problem for "Interrupt" resource descriptors. 10111The optional "Resource Source Index" and "Resource Source" fields 10112were ignored. 10113 10114 10115---------------------------------------- 1011622 November 2002. Summary of changes for version 20021122. 10117 10118 101191) ACPI CA Core Subsystem: 10120 10121Fixed a reported problem where an object stored to a Method Local 10122or Arg was not copied to a new object during the store - the 10123object pointer was simply copied to the Local/Arg. This caused 10124all subsequent operations on the Local/Arg to also affect the 10125original source of the store operation. 10126 10127Fixed a problem where a store operation to a Method Local or Arg 10128was not completed properly if the Local/Arg contained a reference 10129(from RefOf) to a named field. The general-purpose store-to- 10130namespace-node code is now used so that this case is handled 10131automatically. 10132 10133Fixed a problem where the internal object copy routine would cause 10134a protection fault if the object being copied was a Package and 10135contained either 1) a NULL package element or 2) a nested sub- 10136package. 10137 10138Fixed a problem with the GPE initialization that resulted from an 10139ambiguity in the ACPI specification. One section of the 10140specification states that both the address and length of the GPE 10141block must be zero if the block is not supported. Another section 10142implies that only the address need be zero if the block is not 10143supported. The code has been changed so that both the address and 10144the length must be non-zero to indicate a valid GPE block (i.e., 10145if either the address or the length is zero, the GPE block is 10146invalid.) 10147 10148Code and Data Size: Current core subsystem library sizes are shown 10149below. These are the code and data sizes for the acpica.lib 10150produced by the Microsoft Visual C++ 6.0 compiler, and these 10151values do not include any ACPI driver or OSPM code. The debug 10152version of the code includes the debug output trace mechanism and 10153has a much larger code and data size. Note that these values will 10154vary depending on the efficiency of the compiler and the compiler 10155options used during generation. 10156 10157 Previous Release 10158 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 10159 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 10160 Current Release: 10161 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10162 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 10163 10164 101652) Linux 10166 10167Cleaned up EC driver. Exported an external EC read/write 10168interface. By going through this, other drivers (most notably 10169sonypi) will be able to serialize access to the EC. 10170 10171 101723) iASL Compiler/Disassembler 10173 10174Implemented support to optionally generate include files for both 10175ASM and C (the -i switch). This simplifies BIOS development by 10176automatically creating include files that contain external 10177declarations for the symbols that are created within the 10178 10179(optionally generated) ASM and C AML source files. 10180 10181 10182---------------------------------------- 1018315 November 2002. Summary of changes for version 20021115. 10184 101851) ACPI CA Core Subsystem: 10186 10187Fixed a memory leak problem where an error during resolution of 10188 10189method arguments during a method invocation from another method 10190failed to cleanup properly by deleting all successfully resolved 10191argument objects. 10192 10193Fixed a problem where the target of the Index() operator was not 10194correctly constructed if the source object was a package. This 10195problem has not been detected because the use of a target operand 10196with Index() is very rare. 10197 10198Fixed a problem with the Index() operator where an attempt was 10199made to delete the operand objects twice. 10200 10201Fixed a problem where an attempt was made to delete an operand 10202twice during execution of the CondRefOf() operator if the target 10203did not exist. 10204 10205Implemented the first of perhaps several internal create object 10206functions that create and initialize a specific object type. This 10207consolidates duplicated code wherever the object is created, thus 10208shrinking the size of the subsystem. 10209 10210Implemented improved debug/error messages for errors that occur 10211during nested method invocations. All executing method pathnames 10212are displayed (with the error) as the call stack is unwound - thus 10213simplifying debug. 10214 10215Fixed a problem introduced in the 10/02 release that caused 10216premature deletion of a buffer object if a buffer was used as an 10217ASL operand where an integer operand is required (Thus causing an 10218implicit object conversion from Buffer to Integer.) The change in 10219the 10/02 release was attempting to fix a memory leak (albeit 10220incorrectly.) 10221 10222Code and Data Size: Current core subsystem library sizes are shown 10223below. These are the code and data sizes for the acpica.lib 10224produced by the Microsoft Visual C++ 6.0 compiler, and these 10225values do not include any ACPI driver or OSPM code. The debug 10226version of the code includes the debug output trace mechanism and 10227has a much larger code and data size. Note that these values will 10228vary depending on the efficiency of the compiler and the compiler 10229options used during generation. 10230 10231 Previous Release 10232 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 10233 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 10234 Current Release: 10235 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 10236 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 10237 10238 102392) Linux 10240 10241Changed the implementation of the ACPI semaphores to use down() 10242instead of down_interruptable(). It is important that the 10243execution of ACPI control methods not be interrupted by signals. 10244Methods must run to completion, or the system may be left in an 10245unknown/unstable state. 10246 10247Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 10248(Shawn Starr) 10249 10250 102513) iASL Compiler/Disassembler 10252 10253 10254Changed the default location of output files. All output files 10255are now placed in the current directory by default instead of in 10256the directory of the source file. This change may affect some 10257existing makefiles, but it brings the behavior of the compiler in 10258line with other similar tools. The location of the output files 10259can be overridden with the -p command line switch. 10260 10261 10262---------------------------------------- 1026311 November 2002. Summary of changes for version 20021111. 10264 10265 102660) ACPI Specification 2.0B is released and is now available at: 10267http://www.acpi.info/index.html 10268 10269 102701) ACPI CA Core Subsystem: 10271 10272Implemented support for the ACPI 2.0 SMBus Operation Regions. 10273This includes the early detection and handoff of the request to 10274the SMBus region handler (avoiding all of the complex field 10275support code), and support for the bidirectional return packet 10276from an SMBus write operation. This paves the way for the 10277development of SMBus drivers in each host operating system. 10278 10279Fixed a problem where the semaphore WAIT_FOREVER constant was 10280defined as 32 bits, but must be 16 bits according to the ACPI 10281specification. This had the side effect of causing ASL 10282Mutex/Event timeouts even though the ASL code requested a wait 10283forever. Changed all internal references to the ACPI timeout 10284parameter to 16 bits to prevent future problems. Changed the name 10285of WAIT_FOREVER to ACPI_WAIT_FOREVER. 10286 10287Code and Data Size: Current core subsystem library sizes are shown 10288below. These are the code and data sizes for the acpica.lib 10289produced by the Microsoft Visual C++ 6.0 compiler, and these 10290values do not include any ACPI driver or OSPM code. The debug 10291version of the code includes the debug output trace mechanism and 10292has a much larger code and data size. Note that these values will 10293vary depending on the efficiency of the compiler and the compiler 10294options used during generation. 10295 10296 Previous Release 10297 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10298 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 10299 Current Release: 10300 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 10301 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 10302 10303 103042) Linux 10305 10306Module loading/unloading fixes (John Cagle) 10307 10308 103093) iASL Compiler/Disassembler 10310 10311Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 10312 10313Implemented support for the disassembly of all SMBus protocol 10314keywords (SMBQuick, SMBWord, etc.) 10315 10316---------------------------------------- 1031701 November 2002. Summary of changes for version 20021101. 10318 10319 103201) ACPI CA Core Subsystem: 10321 10322Fixed a problem where platforms that have a GPE1 block but no GPE0 10323block were not handled correctly. This resulted in a "GPE 10324overlap" error message. GPE0 is no longer required. 10325 10326Removed code added in the previous release that inserted nodes 10327into the namespace in alphabetical order. This caused some side- 10328effects on various machines. The root cause of the problem is 10329still under investigation since in theory, the internal ordering 10330of the namespace nodes should not matter. 10331 10332 10333Enhanced error reporting for the case where a named object is not 10334found during control method execution. The full ACPI namepath 10335(name reference) of the object that was not found is displayed in 10336this case. 10337 10338Note: as a result of the overhaul of the namespace object types in 10339the previous release, the namespace nodes for the predefined 10340scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 10341instead of ACPI_TYPE_ANY. This simplifies the namespace 10342management code but may affect code that walks the namespace tree 10343looking for specific object types. 10344 10345Code and Data Size: Current core subsystem library sizes are shown 10346below. These are the code and data sizes for the acpica.lib 10347produced by the Microsoft Visual C++ 6.0 compiler, and these 10348values do not include any ACPI driver or OSPM code. The debug 10349version of the code includes the debug output trace mechanism and 10350has a much larger code and data size. Note that these values will 10351vary depending on the efficiency of the compiler and the compiler 10352options used during generation. 10353 10354 Previous Release 10355 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 10356 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 10357 Current Release: 10358 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10359 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 10360 10361 103622) Linux 10363 10364Fixed a problem introduced in the previous release where the 10365Processor and Thermal objects were not recognized and installed in 10366/proc. This was related to the scope type change described above. 10367 10368 103693) iASL Compiler/Disassembler 10370 10371Implemented the -g option to get all of the required ACPI tables 10372from the registry and save them to files (Windows version of the 10373compiler only.) The required tables are the FADT, FACS, and DSDT. 10374 10375Added ACPI table checksum validation during table disassembly in 10376order to catch corrupted tables. 10377 10378 10379---------------------------------------- 1038022 October 2002. Summary of changes for version 20021022. 10381 103821) ACPI CA Core Subsystem: 10383 10384Implemented a restriction on the Scope operator that the target 10385must already exist in the namespace at the time the operator is 10386encountered (during table load or method execution). In other 10387words, forward references are not allowed and Scope() cannot 10388create a new object. This changes the previous behavior where the 10389interpreter would create the name if not found. This new behavior 10390correctly enables the search-to-root algorithm during namespace 10391lookup of the target name. Because of this upsearch, this fixes 10392the known Compaq _SB_.OKEC problem and makes both the AML 10393interpreter and iASL compiler compatible with other ACPI 10394implementations. 10395 10396Completed a major overhaul of the internal ACPI object types for 10397the ACPI Namespace and the associated operand objects. Many of 10398these types had become obsolete with the introduction of the two- 10399pass namespace load. This cleanup simplifies the code and makes 10400the entire namespace load mechanism much clearer and easier to 10401understand. 10402 10403Improved debug output for tracking scope opening/closing to help 10404diagnose scoping issues. The old scope name as well as the new 10405scope name are displayed. Also improved error messages for 10406problems with ASL Mutex objects and error messages for GPE 10407problems. 10408 10409Cleaned up the namespace dump code, removed obsolete code. 10410 10411All string output (for all namespace/object dumps) now uses the 10412common ACPI string output procedure which handles escapes properly 10413and does not emit non-printable characters. 10414 10415Fixed some issues with constants in the 64-bit version of the 10416local C library (utclib.c) 10417 10418 104192) Linux 10420 10421EC Driver: No longer attempts to acquire the Global Lock at 10422interrupt level. 10423 10424 104253) iASL Compiler/Disassembler 10426 10427Implemented ACPI 2.0B grammar change that disallows all Type 1 and 104282 opcodes outside of a control method. This means that the 10429"executable" operators (versus the "namespace" operators) cannot 10430be used at the table level; they can only be used within a control 10431method. 10432 10433Implemented the restriction on the Scope() operator where the 10434target must already exist in the namespace at the time the 10435operator is encountered (during ASL compilation). In other words, 10436forward references are not allowed and Scope() cannot create a new 10437object. This makes the iASL compiler compatible with other ACPI 10438implementations and makes the Scope() implementation adhere to the 10439ACPI specification. 10440 10441Fixed a problem where namepath optimization for the Alias operator 10442was optimizing the wrong path (of the two namepaths.) This caused 10443a "Missing alias link" error message. 10444 10445Fixed a problem where an "unknown reserved name" warning could be 10446incorrectly generated for names like "_SB" when the trailing 10447underscore is not used in the original ASL. 10448 10449Fixed a problem where the reserved name check did not handle 10450NamePaths with multiple NameSegs correctly. The first nameseg of 10451the NamePath was examined instead of the last NameSeg. 10452 10453 10454---------------------------------------- 10455 1045602 October 2002. Summary of changes for this release. 10457 10458 104591) ACPI CA Core Subsystem version 20021002: 10460 10461Fixed a problem where a store/copy of a string to an existing 10462string did not always set the string length properly in the String 10463object. 10464 10465Fixed a reported problem with the ToString operator where the 10466behavior was identical to the ToHexString operator instead of just 10467simply converting a raw buffer to a string data type. 10468 10469Fixed a problem where CopyObject and the other "explicit" 10470conversion operators were not updating the internal namespace node 10471type as part of the store operation. 10472 10473Fixed a memory leak during implicit source operand conversion 10474where the original object was not deleted if it was converted to a 10475new object of a different type. 10476 10477Enhanced error messages for all problems associated with namespace 10478lookups. Common procedure generates and prints the lookup name as 10479well as the formatted status. 10480 10481Completed implementation of a new design for the Alias support 10482within the namespace. The existing design did not handle the case 10483where a new object was assigned to one of the two names due to the 10484use of an explicit conversion operator, resulting in the two names 10485pointing to two different objects. The new design simply points 10486the Alias name to the original name node - not to the object. 10487This results in a level of indirection that must be handled in the 10488name resolution mechanism. 10489 10490Code and Data Size: Current core subsystem library sizes are shown 10491below. These are the code and data sizes for the acpica.lib 10492produced by the Microsoft Visual C++ 6.0 compiler, and these 10493values do not include any ACPI driver or OSPM code. The debug 10494version of the code includes the debug output trace mechanism and 10495has a larger code and data size. Note that these values will vary 10496depending on the efficiency of the compiler and the compiler 10497options used during generation. 10498 10499 Previous Release 10500 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 10501 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 10502 Current Release: 10503 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 10504 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 10505 10506 105072) Linux 10508 10509Initialize thermal driver's timer before it is used. (Knut 10510Neumann) 10511 10512Allow handling negative celsius values. (Kochi Takayoshi) 10513 10514Fix thermal management and make trip points. R/W (Pavel Machek) 10515 10516Fix /proc/acpi/sleep. (P. Christeas) 10517 10518IA64 fixes. (David Mosberger) 10519 10520Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 10521 10522Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 10523Brodowski) 10524 10525 105263) iASL Compiler/Disassembler 10527 10528Clarified some warning/error messages. 10529 10530 10531---------------------------------------- 1053218 September 2002. Summary of changes for this release. 10533 10534 105351) ACPI CA Core Subsystem version 20020918: 10536 10537Fixed a reported problem with reference chaining (via the Index() 10538and RefOf() operators) in the ObjectType() and SizeOf() operators. 10539The definition of these operators includes the dereferencing of 10540all chained references to return information on the base object. 10541 10542Fixed a problem with stores to indexed package elements - the 10543existing code would not complete the store if an "implicit 10544conversion" was not performed. In other words, if the existing 10545object (package element) was to be replaced completely, the code 10546didn't handle this case. 10547 10548Relaxed typechecking on the ASL "Scope" operator to allow the 10549target name to refer to an object of type Integer, String, or 10550Buffer, in addition to the scoping object types (Device, 10551predefined Scopes, Processor, PowerResource, and ThermalZone.) 10552This allows existing AML code that has workarounds for a bug in 10553Windows to function properly. A warning is issued, however. This 10554affects both the AML interpreter and the iASL compiler. Below is 10555an example of this type of ASL code: 10556 10557 Name(DEB,0x00) 10558 Scope(DEB) 10559 { 10560 10561Fixed some reported problems with 64-bit integer support in the 10562local implementation of C library functions (clib.c) 10563 10564 105652) Linux 10566 10567Use ACPI fix map region instead of IOAPIC region, since it is 10568undefined in non-SMP. 10569 10570Ensure that the SCI has the proper polarity and trigger, even on 10571systems that do not have an interrupt override entry in the MADT. 10572 105732.5 big driver reorganization (Pat Mochel) 10574 10575Use early table mapping code from acpitable.c (Andi Kleen) 10576 10577New blacklist entries (Andi Kleen) 10578 10579Blacklist improvements. Split blacklist code out into a separate 10580file. Move checking the blacklist to very early. Previously, we 10581would use ACPI tables, and then halfway through init, check the 10582blacklist -- too late. Now, it's early enough to completely fall- 10583back to non-ACPI. 10584 10585 105863) iASL Compiler/Disassembler version 20020918: 10587 10588Fixed a problem where the typechecking code didn't know that an 10589alias could point to a method. In other words, aliases were not 10590being dereferenced during typechecking. 10591 10592 10593---------------------------------------- 1059429 August 2002. Summary of changes for this release. 10595 105961) ACPI CA Core Subsystem Version 20020829: 10597 10598If the target of a Scope() operator already exists, it must be an 10599object type that actually opens a scope -- such as a Device, 10600Method, Scope, etc. This is a fatal runtime error. Similar error 10601check has been added to the iASL compiler also. 10602 10603Tightened up the namespace load to disallow multiple names in the 10604same scope. This previously was allowed if both objects were of 10605the same type. (i.e., a lookup was the same as entering a new 10606name). 10607 10608 106092) Linux 10610 10611Ensure that the ACPI interrupt has the proper trigger and 10612polarity. 10613 10614local_irq_disable is extraneous. (Matthew Wilcox) 10615 10616Make "acpi=off" actually do what it says, and not use the ACPI 10617interpreter *or* the tables. 10618 10619Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 10620Takayoshi) 10621 10622 106233) iASL Compiler/Disassembler Version 20020829: 10624 10625Implemented namepath optimization for name declarations. For 10626example, a declaration like "Method (\_SB_.ABCD)" would get 10627optimized to "Method (ABCD)" if the declaration is within the 10628\_SB_ scope. This optimization is in addition to the named 10629reference path optimization first released in the previous 10630version. This would seem to complete all possible optimizations 10631for namepaths within the ASL/AML. 10632 10633If the target of a Scope() operator already exists, it must be an 10634object type that actually opens a scope -- such as a Device, 10635Method, Scope, etc. 10636 10637Implemented a check and warning for unreachable code in the same 10638block below a Return() statement. 10639 10640Fixed a problem where the listing file was not generated if the 10641compiler aborted if the maximum error count was exceeded (200). 10642 10643Fixed a problem where the typechecking of method return values was 10644broken. This includes the check for a return value when the 10645method is invoked as a TermArg (a return value is expected.) 10646 10647Fixed a reported problem where EOF conditions during a quoted 10648string or comment caused a fault. 10649 10650 10651---------------------------------------- 1065215 August 2002. Summary of changes for this release. 10653 106541) ACPI CA Core Subsystem Version 20020815: 10655 10656Fixed a reported problem where a Store to a method argument that 10657contains a reference did not perform the indirect store correctly. 10658This problem was created during the conversion to the new 10659reference object model - the indirect store to a method argument 10660code was not updated to reflect the new model. 10661 10662Reworked the ACPI mode change code to better conform to ACPI 2.0, 10663handle corner cases, and improve code legibility (Kochi Takayoshi) 10664 10665Fixed a problem with the pathname parsing for the carat (^) 10666prefix. The heavy use of the carat operator by the new namepath 10667optimization in the iASL compiler uncovered a problem with the AML 10668interpreter handling of this prefix. In the case where one or 10669more carats precede a single nameseg, the nameseg was treated as 10670standalone and the search rule (to root) was inadvertently 10671applied. This could cause both the iASL compiler and the 10672interpreter to find the wrong object or to miss the error that 10673should occur if the object does not exist at that exact pathname. 10674 10675Found and fixed the problem where the HP Pavilion DSDT would not 10676load. This was a relatively minor tweak to the table loading code 10677(a problem caused by the unexpected encounter with a method 10678invocation not within a control method), but it does not solve the 10679overall issue of the execution of AML code at the table level. 10680This investigation is still ongoing. 10681 10682Code and Data Size: Current core subsystem library sizes are shown 10683below. These are the code and data sizes for the acpica.lib 10684produced by the Microsoft Visual C++ 6.0 compiler, and these 10685values do not include any ACPI driver or OSPM code. The debug 10686version of the code includes the debug output trace mechanism and 10687has a larger code and data size. Note that these values will vary 10688depending on the efficiency of the compiler and the compiler 10689options used during generation. 10690 10691 Previous Release 10692 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 10693 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 10694 Current Release: 10695 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 10696 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 10697 10698 106992) Linux 10700 10701Remove redundant slab.h include (Brad Hards) 10702 10703Fix several bugs in thermal.c (Herbert Nachtnebel) 10704 10705Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 10706 10707Change acpi_system_suspend to use updated irq functions (Pavel 10708Machek) 10709 10710Export acpi_get_firmware_table (Matthew Wilcox) 10711 10712Use proper root proc entry for ACPI (Kochi Takayoshi) 10713 10714Fix early-boot table parsing (Bjorn Helgaas) 10715 10716 107173) iASL Compiler/Disassembler 10718 10719Reworked the compiler options to make them more consistent and to 10720use two-letter options where appropriate. We were running out of 10721sensible letters. This may break some makefiles, so check the 10722current options list by invoking the compiler with no parameters. 10723 10724Completed the design and implementation of the ASL namepath 10725optimization option for the compiler. This option optimizes all 10726references to named objects to the shortest possible path. The 10727first attempt tries to utilize a single nameseg (4 characters) and 10728the "search-to-root" algorithm used by the interpreter. If that 10729cannot be used (because either the name is not in the search path 10730or there is a conflict with another object with the same name), 10731the pathname is optimized using the carat prefix (usually a 10732shorter string than specifying the entire path from the root.) 10733 10734Implemented support to obtain the DSDT from the Windows registry 10735(when the disassembly option is specified with no input file). 10736Added this code as the implementation for AcpiOsTableOverride in 10737the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 10738utility) to scan memory for the DSDT to the AcpiOsTableOverride 10739function in the DOS OSL to make the disassembler truly OS 10740independent. 10741 10742Implemented a new option to disassemble and compile in one step. 10743When used without an input filename, this option will grab the 10744DSDT from the local machine, disassemble it, and compile it in one 10745step. 10746 10747Added a warning message for invalid escapes (a backslash followed 10748by any character other than the allowable escapes). This catches 10749the quoted string error "\_SB_" (which should be "\\_SB_" ). 10750 10751Also, there are numerous instances in the ACPI specification where 10752this error occurs. 10753 10754Added a compiler option to disable all optimizations. This is 10755basically the "compatibility mode" because by using this option, 10756the AML code will come out exactly the same as other ASL 10757compilers. 10758 10759Added error messages for incorrectly ordered dependent resource 10760functions. This includes: missing EndDependentFn macro at end of 10761dependent resource list, nested dependent function macros (both 10762start and end), and missing StartDependentFn macro. These are 10763common errors that should be caught at compile time. 10764 10765Implemented _OSI support for the disassembler and compiler. _OSI 10766must be included in the namespace for proper disassembly (because 10767the disassembler must know the number of arguments.) 10768 10769Added an "optimization" message type that is optional (off by 10770default). This message is used for all optimizations - including 10771constant folding, integer optimization, and namepath optimization. 10772 10773---------------------------------------- 1077425 July 2002. Summary of changes for this release. 10775 10776 107771) ACPI CA Core Subsystem Version 20020725: 10778 10779The AML Disassembler has been enhanced to produce compilable ASL 10780code and has been integrated into the iASL compiler (see below) as 10781well as the single-step disassembly for the AML debugger and the 10782disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 10783resource templates and macros are fully supported. The 10784disassembler has been tested on over 30 different AML files, 10785producing identical AML when the resulting disassembled ASL file 10786is recompiled with the same ASL compiler. 10787 10788Modified the Resource Manager to allow zero interrupts and zero 10789dma channels during the GetCurrentResources call. This was 10790causing problems on some platforms. 10791 10792Added the AcpiOsRedirectOutput interface to the OSL to simplify 10793output redirection for the AcpiOsPrintf and AcpiOsVprintf 10794interfaces. 10795 10796Code and Data Size: Current core subsystem library sizes are shown 10797below. These are the code and data sizes for the acpica.lib 10798produced by the Microsoft Visual C++ 6.0 compiler, and these 10799values do not include any ACPI driver or OSPM code. The debug 10800version of the code includes the debug output trace mechanism and 10801has a larger code and data size. Note that these values will vary 10802depending on the efficiency of the compiler and the compiler 10803options used during generation. 10804 10805 Previous Release 10806 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 10807 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 10808 Current Release: 10809 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 10810 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 10811 10812 108132) Linux 10814 10815Fixed a panic in the EC driver (Dominik Brodowski) 10816 10817Implemented checksum of the R/XSDT itself during Linux table scan 10818(Richard Schaal) 10819 10820 108213) iASL compiler 10822 10823The AML disassembler is integrated into the compiler. The "-d" 10824option invokes the disassembler to completely disassemble an 10825input AML file, producing as output a text ASL file with the 10826extension ".dsl" (to avoid name collisions with existing .asl 10827source files.) A future enhancement will allow the disassembler 10828to obtain the BIOS DSDT from the registry under Windows. 10829 10830Fixed a problem with the VendorShort and VendorLong resource 10831descriptors where an invalid AML sequence was created. 10832 10833Implemented a fix for BufferData term in the ASL parser. It was 10834inadvertently defined twice, allowing invalid syntax to pass and 10835causing reduction conflicts. 10836 10837Fixed a problem where the Ones opcode could get converted to a 10838value of zero if "Ones" was used where a byte, word or dword value 10839was expected. The 64-bit value is now truncated to the correct 10840size with the correct value. 10841 10842 10843 10844---------------------------------------- 1084502 July 2002. Summary of changes for this release. 10846 10847 108481) ACPI CA Core Subsystem Version 20020702: 10849 10850The Table Manager code has been restructured to add several new 10851features. Tables that are not required by the core subsystem 10852(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 10853validated in any way and are returned from AcpiGetFirmwareTable if 10854requested. The AcpiOsTableOverride interface is now called for 10855each table that is loaded by the subsystem in order to allow the 10856host to override any table it chooses. Previously, only the DSDT 10857could be overridden. Added one new files, tbrsdt.c and 10858tbgetall.c. 10859 10860Fixed a problem with the conversion of internal package objects to 10861external objects (when a package is returned from a control 10862method.) The return buffer length was set to zero instead of the 10863proper length of the package object. 10864 10865Fixed a reported problem with the use of the RefOf and DeRefOf 10866operators when passing reference arguments to control methods. A 10867new type of Reference object is used internally for references 10868produced by the RefOf operator. 10869 10870Added additional error messages in the Resource Manager to explain 10871AE_BAD_DATA errors when they occur during resource parsing. 10872 10873Split the AcpiEnableSubsystem into two primitives to enable a 10874finer granularity initialization sequence. These two calls should 10875be called in this order: AcpiEnableSubsystem (flags), 10876AcpiInitializeObjects (flags). The flags parameter remains the 10877same. 10878 10879 108802) Linux 10881 10882Updated the ACPI utilities module to understand the new style of 10883fully resolved package objects that are now returned from the core 10884subsystem. This eliminates errors of the form: 10885 10886 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 10887 acpi_utils-0430 [145] acpi_evaluate_reference: 10888 Invalid element in package (not a device reference) 10889 10890The method evaluation utility uses the new buffer allocation 10891scheme instead of calling AcpiEvaluate Object twice. 10892 10893Added support for ECDT. This allows the use of the Embedded 10894 10895Controller before the namespace has been fully initialized, which 10896is necessary for ACPI 2.0 support, and for some laptops to 10897initialize properly. (Laptops using ECDT are still rare, so only 10898limited testing was performed of the added functionality.) 10899 10900Fixed memory leaks in the EC driver. 10901 10902Eliminated a brittle code structure in acpi_bus_init(). 10903 10904Eliminated the acpi_evaluate() helper function in utils.c. It is 10905no longer needed since acpi_evaluate_object can optionally 10906allocate memory for the return object. 10907 10908Implemented fix for keyboard hang when getting battery readings on 10909some systems (Stephen White) 10910 10911PCI IRQ routing update (Dominik Brodowski) 10912 10913Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 10914support 10915 10916---------------------------------------- 1091711 June 2002. Summary of changes for this release. 10918 10919 109201) ACPI CA Core Subsystem Version 20020611: 10921 10922Fixed a reported problem where constants such as Zero and One 10923appearing within _PRT packages were not handled correctly within 10924the resource manager code. Originally reported against the ASL 10925compiler because the code generator now optimizes integers to 10926their minimal AML representation (i.e. AML constants if possible.) 10927The _PRT code now handles all AML constant opcodes correctly 10928(Zero, One, Ones, Revision). 10929 10930Fixed a problem with the Concatenate operator in the AML 10931interpreter where a buffer result object was incorrectly marked as 10932not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 10933 10934All package sub-objects are now fully resolved before they are 10935returned from the external ACPI interfaces. This means that name 10936strings are resolved to object handles, and constant operators 10937(Zero, One, Ones, Revision) are resolved to Integers. 10938 10939Implemented immediate resolution of the AML Constant opcodes 10940(Zero, One, Ones, Revision) to Integer objects upon detection 10941within the AML stream. This has simplified and reduced the 10942generated code size of the subsystem by eliminating about 10 10943switch statements for these constants (which previously were 10944contained in Reference objects.) The complicating issues are that 10945the Zero opcode is used as a "placeholder" for unspecified 10946optional target operands and stores to constants are defined to be 10947no-ops. 10948 10949Code and Data Size: Current core subsystem library sizes are shown 10950below. These are the code and data sizes for the acpica.lib 10951produced by the Microsoft Visual C++ 6.0 compiler, and these 10952values do not include any ACPI driver or OSPM code. The debug 10953version of the code includes the debug output trace mechanism and 10954has a larger code and data size. Note that these values will vary 10955depending on the efficiency of the compiler and the compiler 10956options used during generation. 10957 10958 Previous Release 10959 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 10960 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 10961 Current Release: 10962 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 10963 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 10964 10965 109662) Linux 10967 10968 10969Added preliminary support for obtaining _TRA data for PCI root 10970bridges (Bjorn Helgaas). 10971 10972 109733) iASL Compiler Version X2046: 10974 10975Fixed a problem where the "_DDN" reserved name was defined to be a 10976control method with one argument. There are no arguments, and 10977_DDN does not have to be a control method. 10978 10979Fixed a problem with the Linux version of the compiler where the 10980source lines printed with error messages were the wrong lines. 10981This turned out to be the "LF versus CR/LF" difference between 10982Windows and Unix. This appears to be the longstanding issue 10983concerning listing output and error messages. 10984 10985Fixed a problem with the Linux version of compiler where opcode 10986names within error messages were wrong. This was caused by a 10987slight difference in the output of the Flex tool on Linux versus 10988Windows. 10989 10990Fixed a problem with the Linux compiler where the hex output files 10991contained some garbage data caused by an internal buffer overrun. 10992 10993 10994---------------------------------------- 1099517 May 2002. Summary of changes for this release. 10996 10997 109981) ACPI CA Core Subsystem Version 20020517: 10999 11000Implemented a workaround to an BIOS bug discovered on the HP 11001OmniBook where the FADT revision number and the table size are 11002inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 11003behavior is to fallback to using only the ACPI 1.0 fields of the 11004FADT if the table is too small to be a ACPI 2.0 table as claimed 11005by the revision number. Although this is a BIOS bug, this is a 11006case where the workaround is simple enough and with no side 11007effects, so it seemed prudent to add it. A warning message is 11008issued, however. 11009 11010Implemented minimum size checks for the fixed-length ACPI tables - 11011- the FADT and FACS, as well as consistency checks between the 11012revision number and the table size. 11013 11014Fixed a reported problem in the table override support where the 11015new table pointer was incorrectly treated as a physical address 11016instead of a logical address. 11017 11018Eliminated the use of the AE_AML_ERROR exception and replaced it 11019with more descriptive codes. 11020 11021Fixed a problem where an exception would occur if an ASL Field was 11022defined with no named Field Units underneath it (used by some 11023index fields). 11024 11025Code and Data Size: Current core subsystem library sizes are shown 11026below. These are the code and data sizes for the acpica.lib 11027produced by the Microsoft Visual C++ 6.0 compiler, and these 11028values do not include any ACPI driver or OSPM code. The debug 11029version of the code includes the debug output trace mechanism and 11030has a larger code and data size. Note that these values will vary 11031depending on the efficiency of the compiler and the compiler 11032options used during generation. 11033 11034 Previous Release 11035 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 11036 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 11037 Current Release: 11038 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 11039 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 11040 11041 11042 110432) Linux 11044 11045Much work done on ACPI init (MADT and PCI IRQ routing support). 11046(Paul D. and Dominik Brodowski) 11047 11048Fix PCI IRQ-related panic on boot (Sam Revitch) 11049 11050Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 11051 11052Fix "MHz" typo (Dominik Brodowski) 11053 11054Fix RTC year 2000 issue (Dominik Brodowski) 11055 11056Preclude multiple button proc entries (Eric Brunet) 11057 11058Moved arch-specific code out of include/platform/aclinux.h 11059 110603) iASL Compiler Version X2044: 11061 11062Implemented error checking for the string used in the EISAID macro 11063(Usually used in the definition of the _HID object.) The code now 11064strictly enforces the PnP format - exactly 7 characters, 3 11065uppercase letters and 4 hex digits. 11066 11067If a raw string is used in the definition of the _HID object 11068(instead of the EISAID macro), the string must contain all 11069alphanumeric characters (e.g., "*PNP0011" is not allowed because 11070of the asterisk.) 11071 11072Implemented checking for invalid use of ACPI reserved names for 11073most of the name creation operators (Name, Device, Event, Mutex, 11074OperationRegion, PowerResource, Processor, and ThermalZone.) 11075Previously, this check was only performed for control methods. 11076 11077Implemented an additional check on the Name operator to emit an 11078error if a reserved name that must be implemented in ASL as a 11079control method is used. We know that a reserved name must be a 11080method if it is defined with input arguments. 11081 11082The warning emitted when a namespace object reference is not found 11083during the cross reference phase has been changed into an error. 11084The "External" directive should be used for names defined in other 11085modules. 11086 11087 110884) Tools and Utilities 11089 11090The 16-bit tools (adump16 and aexec16) have been regenerated and 11091tested. 11092 11093Fixed a problem with the output of both acpidump and adump16 where 11094the indentation of closing parentheses and brackets was not 11095 11096aligned properly with the parent block. 11097 11098 11099---------------------------------------- 1110003 May 2002. Summary of changes for this release. 11101 11102 111031) ACPI CA Core Subsystem Version 20020503: 11104 11105Added support a new OSL interface that allows the host operating 11106 11107system software to override the DSDT found in the firmware - 11108AcpiOsTableOverride. With this interface, the OSL can examine the 11109version of the firmware DSDT and replace it with a different one 11110if desired. 11111 11112Added new external interfaces for accessing ACPI registers from 11113device drivers and other system software - AcpiGetRegister and 11114AcpiSetRegister. This was simply an externalization of the 11115existing AcpiHwBitRegister interfaces. 11116 11117Fixed a regression introduced in the previous build where the 11118ASL/AML CreateField operator always returned an error, 11119"destination must be a NS Node". 11120 11121Extended the maximum time (before failure) to successfully enable 11122ACPI mode to 3 seconds. 11123 11124Code and Data Size: Current core subsystem library sizes are shown 11125below. These are the code and data sizes for the acpica.lib 11126produced by the Microsoft Visual C++ 6.0 compiler, and these 11127values do not include any ACPI driver or OSPM code. The debug 11128version of the code includes the debug output trace mechanism and 11129has a larger code and data size. Note that these values will vary 11130depending on the efficiency of the compiler and the compiler 11131options used during generation. 11132 11133 Previous Release 11134 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 11135 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 11136 Current Release: 11137 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 11138 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 11139 11140 111412) Linux 11142 11143Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 11144free. While 3 out of 4 of our in-house systems work fine, the last 11145one still hangs when testing the LAPIC timer. 11146 11147Renamed many files in 2.5 kernel release to omit "acpi_" from the 11148name. 11149 11150Added warning on boot for Presario 711FR. 11151 11152Sleep improvements (Pavel Machek) 11153 11154ACPI can now be built without CONFIG_PCI enabled. 11155 11156IA64: Fixed memory map functions (JI Lee) 11157 11158 111593) iASL Compiler Version X2043: 11160 11161Added support to allow the compiler to be integrated into the MS 11162VC++ development environment for one-button compilation of single 11163files or entire projects -- with error-to-source-line mapping. 11164 11165Implemented support for compile-time constant folding for the 11166Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 11167specification. This allows the ASL writer to use expressions 11168instead of Integer/Buffer/String constants in terms that must 11169evaluate to constants at compile time and will also simplify the 11170emitted AML in any such sub-expressions that can be folded 11171(evaluated at compile-time.) This increases the size of the 11172compiler significantly because a portion of the ACPI CA AML 11173interpreter is included within the compiler in order to pre- 11174evaluate constant expressions. 11175 11176 11177Fixed a problem with the "Unicode" ASL macro that caused the 11178compiler to fault. (This macro is used in conjunction with the 11179_STR reserved name.) 11180 11181Implemented an AML opcode optimization to use the Zero, One, and 11182Ones opcodes where possible to further reduce the size of integer 11183constants and thus reduce the overall size of the generated AML 11184code. 11185 11186Implemented error checking for new reserved terms for ACPI version 111872.0A. 11188 11189Implemented the -qr option to display the current list of ACPI 11190reserved names known to the compiler. 11191 11192Implemented the -qc option to display the current list of ASL 11193operators that are allowed within constant expressions and can 11194therefore be folded at compile time if the operands are constants. 11195 11196 111974) Documentation 11198 11199Updated the Programmer's Reference for new interfaces, data types, 11200and memory allocation model options. 11201 11202Updated the iASL Compiler User Reference to apply new format and 11203add information about new features and options. 11204 11205---------------------------------------- 1120619 April 2002. Summary of changes for this release. 11207 112081) ACPI CA Core Subsystem Version 20020419: 11209 11210The source code base for the Core Subsystem has been completely 11211cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 11212versions. The Lint option files used are included in the 11213/acpi/generate/lint directory. 11214 11215Implemented enhanced status/error checking across the entire 11216Hardware manager subsystem. Any hardware errors (reported from 11217the OSL) are now bubbled up and will abort a running control 11218method. 11219 11220 11221Fixed a problem where the per-ACPI-table integer width (32 or 64) 11222was stored only with control method nodes, causing a fault when 11223non-control method code was executed during table loading. The 11224solution implemented uses a global variable to indicate table 11225width across the entire ACPI subsystem. Therefore, ACPI CA does 11226not support mixed integer widths across different ACPI tables 11227(DSDT, SSDT). 11228 11229Fixed a problem where NULL extended fields (X fields) in an ACPI 112302.0 ACPI FADT caused the table load to fail. Although the 11231existing ACPI specification is a bit fuzzy on this topic, the new 11232behavior is to fall back on a ACPI 1.0 field if the corresponding 11233ACPI 2.0 X field is zero (even though the table revision indicates 11234a full ACPI 2.0 table.) The ACPI specification will be updated to 11235clarify this issue. 11236 11237Fixed a problem with the SystemMemory operation region handler 11238where memory was always accessed byte-wise even if the AML- 11239specified access width was larger than a byte. This caused 11240problems on systems with memory-mapped I/O. Memory is now 11241accessed with the width specified. On systems that do not support 11242non-aligned transfers, a check is made to guarantee proper address 11243alignment before proceeding in order to avoid an AML-caused 11244alignment fault within the kernel. 11245 11246 11247Fixed a problem with the ExtendedIrq resource where only one byte 11248of the 4-byte Irq field was extracted. 11249 11250Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 11251function was out of date and required a rewrite. 11252 11253Code and Data Size: Current core subsystem library sizes are shown 11254below. These are the code and data sizes for the acpica.lib 11255produced by the Microsoft Visual C++ 6.0 compiler, and these 11256values do not include any ACPI driver or OSPM code. The debug 11257version of the code includes the debug output trace mechanism and 11258has a larger code and data size. Note that these values will vary 11259depending on the efficiency of the compiler and the compiler 11260options used during generation. 11261 11262 Previous Release 11263 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 11264 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 11265 Current Release: 11266 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 11267 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 11268 11269 112702) Linux 11271 11272PCI IRQ routing fixes (Dominik Brodowski) 11273 11274 112753) iASL Compiler Version X2042: 11276 11277Implemented an additional compile-time error check for a field 11278unit whose size + minimum access width would cause a run-time 11279access beyond the end-of-region. Previously, only the field size 11280itself was checked. 11281 11282The Core subsystem and iASL compiler now share a common parse 11283object in preparation for compile-time evaluation of the type 112843/4/5 ASL operators. 11285 11286 11287---------------------------------------- 11288Summary of changes for this release: 03_29_02 11289 112901) ACPI CA Core Subsystem Version 20020329: 11291 11292Implemented support for late evaluation of TermArg operands to 11293Buffer and Package objects. This allows complex expressions to be 11294used in the declarations of these object types. 11295 11296Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 112971.0, if the field was larger than 32 bits, it was returned as a 11298buffer - otherwise it was returned as an integer. In ACPI 2.0, 11299the field is returned as a buffer only if the field is larger than 1130064 bits. The TableRevision is now considered when making this 11301conversion to avoid incompatibility with existing ASL code. 11302 11303Implemented logical addressing for AcpiOsGetRootPointer. This 11304allows an RSDP with either a logical or physical address. With 11305this support, the host OS can now override all ACPI tables with 11306one logical RSDP. Includes implementation of "typed" pointer 11307support to allow a common data type for both physical and logical 11308pointers internally. This required a change to the 11309AcpiOsGetRootPointer interface. 11310 11311Implemented the use of ACPI 2.0 Generic Address Structures for all 11312GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 11313mapped I/O for these ACPI features. 11314 11315Initialization now ignores not only non-required tables (All 11316tables other than the FADT, FACS, DSDT, and SSDTs), but also does 11317not validate the table headers of unrecognized tables. 11318 11319Fixed a problem where a notify handler could only be 11320installed/removed on an object of type Device. All "notify" 11321 11322objects are now supported -- Devices, Processor, Power, and 11323Thermal. 11324 11325Removed most verbosity from the ACPI_DB_INFO debug level. Only 11326critical information is returned when this debug level is enabled. 11327 11328Code and Data Size: Current core subsystem library sizes are shown 11329below. These are the code and data sizes for the acpica.lib 11330produced by the Microsoft Visual C++ 6.0 compiler, and these 11331values do not include any ACPI driver or OSPM code. The debug 11332version of the code includes the debug output trace mechanism and 11333has a larger code and data size. Note that these values will vary 11334depending on the efficiency of the compiler and the compiler 11335options used during generation. 11336 11337 Previous Release 11338 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 11339 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 11340 Current Release: 11341 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 11342 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 11343 11344 113452) Linux: 11346 11347The processor driver (acpi_processor.c) now fully supports ACPI 113482.0-based processor performance control (e.g. Intel(R) 11349SpeedStep(TM) technology) Note that older laptops that only have 11350the Intel "applet" interface are not supported through this. The 11351'limit' and 'performance' interface (/proc) are fully functional. 11352[Note that basic policy for controlling performance state 11353transitions will be included in the next version of ospmd.] The 11354idle handler was modified to more aggressively use C2, and PIIX4 11355errata handling underwent a complete overhaul (big thanks to 11356Dominik Brodowski). 11357 11358Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 11359based devices in the ACPI namespace are now dynamically bound 11360(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 11361This allows, among other things, ACPI to resolve bus numbers for 11362subordinate PCI bridges. 11363 11364Enhanced PCI IRQ routing to get the proper bus number for _PRT 11365entries defined underneath PCI bridges. 11366 11367Added IBM 600E to bad bios list due to invalid _ADR value for 11368PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 11369 11370In the process of adding full MADT support (e.g. IOAPIC) for IA32 11371(acpi.c, mpparse.c) -- stay tuned. 11372 11373Added back visual differentiation between fixed-feature and 11374control-method buttons in dmesg. Buttons are also subtyped (e.g. 11375button/power/PWRF) to simplify button identification. 11376 11377We no longer use -Wno-unused when compiling debug. Please ignore 11378any "_THIS_MODULE defined but not used" messages. 11379 11380Can now shut down the system using "magic sysrq" key. 11381 11382 113833) iASL Compiler version 2041: 11384 11385Fixed a problem where conversion errors for hex/octal/decimal 11386constants were not reported. 11387 11388Implemented a fix for the General Register template Address field. 11389This field was 8 bits when it should be 64. 11390 11391Fixed a problem where errors/warnings were no longer being emitted 11392within the listing output file. 11393 11394Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 11395exactly 4 characters, alphanumeric only. 11396 11397 11398 11399 11400---------------------------------------- 11401Summary of changes for this release: 03_08_02 11402 11403 114041) ACPI CA Core Subsystem Version 20020308: 11405 11406Fixed a problem with AML Fields where the use of the "AccessAny" 11407keyword could cause an interpreter error due to attempting to read 11408or write beyond the end of the parent Operation Region. 11409 11410Fixed a problem in the SystemMemory Operation Region handler where 11411an attempt was made to map memory beyond the end of the region. 11412This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 11413errors on some Linux systems. 11414 11415Fixed a problem where the interpreter/namespace "search to root" 11416algorithm was not functioning for some object types. Relaxed the 11417internal restriction on the search to allow upsearches for all 11418external object types as well as most internal types. 11419 11420 114212) Linux: 11422 11423We now use safe_halt() macro versus individual calls to sti | hlt. 11424 11425Writing to the processor limit interface should now work. "echo 1" 11426will increase the limit, 2 will decrease, and 0 will reset to the 11427 11428default. 11429 11430 114313) ASL compiler: 11432 11433Fixed segfault on Linux version. 11434 11435 11436---------------------------------------- 11437Summary of changes for this release: 02_25_02 11438 114391) ACPI CA Core Subsystem: 11440 11441 11442Fixed a problem where the GPE bit masks were not initialized 11443properly, causing erratic GPE behavior. 11444 11445Implemented limited support for multiple calling conventions. The 11446code can be generated with either the VPL (variable parameter 11447list, or "C") convention, or the FPL (fixed parameter list, or 11448"Pascal") convention. The core subsystem is about 3.4% smaller 11449when generated with FPL. 11450 11451 114522) Linux 11453 11454Re-add some /proc/acpi/event functionality that was lost during 11455the rewrite 11456 11457Resolved issue with /proc events for fixed-feature buttons showing 11458up as the system device. 11459 11460Fixed checks on C2/C3 latencies to be inclusive of maximum values. 11461 11462Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 11463 11464Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 11465 11466Fixed limit interface & usage to fix bugs with passive cooling 11467hysterisis. 11468 11469Restructured PRT support. 11470 11471 11472---------------------------------------- 11473Summary of changes for this label: 02_14_02 11474 11475 114761) ACPI CA Core Subsystem: 11477 11478Implemented support in AcpiLoadTable to allow loading of FACS and 11479FADT tables. 11480 11481Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 11482been removed. All 64-bit platforms should be migrated to the ACPI 114832.0 tables. The actbl71.h header has been removed from the source 11484tree. 11485 11486All C macros defined within the subsystem have been prefixed with 11487"ACPI_" to avoid collision with other system include files. 11488 11489Removed the return value for the two AcpiOsPrint interfaces, since 11490it is never used and causes lint warnings for ignoring the return 11491value. 11492 11493Added error checking to all internal mutex acquire and release 11494calls. Although a failure from one of these interfaces is 11495probably a fatal system error, these checks will cause the 11496immediate abort of the currently executing method or interface. 11497 11498Fixed a problem where the AcpiSetCurrentResources interface could 11499fault. This was a side effect of the deployment of the new memory 11500allocation model. 11501 11502Fixed a couple of problems with the Global Lock support introduced 11503in the last major build. The "common" (1.0/2.0) internal FACS was 11504being overwritten with the FACS signature and clobbering the 11505Global Lock pointer. Also, the actual firmware FACS was being 11506unmapped after construction of the "common" FACS, preventing 11507access to the actual Global Lock field within it. The "common" 11508internal FACS is no longer installed as an actual ACPI table; it 11509is used simply as a global. 11510 11511Code and Data Size: Current core subsystem library sizes are shown 11512below. These are the code and data sizes for the acpica.lib 11513produced by the Microsoft Visual C++ 6.0 compiler, and these 11514values do not include any ACPI driver or OSPM code. The debug 11515version of the code includes the debug output trace mechanism and 11516has a larger code and data size. Note that these values will vary 11517depending on the efficiency of the compiler and the compiler 11518options used during generation. 11519 11520 Previous Release (02_07_01) 11521 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 11522 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 11523 Current Release: 11524 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 11525 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 11526 11527 115282) Linux 11529 11530Updated Linux-specific code for core macro and OSL interface 11531changes described above. 11532 11533Improved /proc/acpi/event. It now can be opened only once and has 11534proper poll functionality. 11535 11536Fixed and restructured power management (acpi_bus). 11537 11538Only create /proc "view by type" when devices of that class exist. 11539 11540Fixed "charging/discharging" bug (and others) in acpi_battery. 11541 11542Improved thermal zone code. 11543 11544 115453) ASL Compiler, version X2039: 11546 11547 11548Implemented the new compiler restriction on ASL String hex/octal 11549escapes to non-null, ASCII values. An error results if an invalid 11550value is used. (This will require an ACPI 2.0 specification 11551change.) 11552 11553AML object labels that are output to the optional C and ASM source 11554are now prefixed with both the ACPI table signature and table ID 11555to help guarantee uniqueness within a large BIOS project. 11556 11557 11558---------------------------------------- 11559Summary of changes for this label: 02_01_02 11560 115611) ACPI CA Core Subsystem: 11562 11563ACPI 2.0 support is complete in the entire Core Subsystem and the 11564ASL compiler. All new ACPI 2.0 operators are implemented and all 11565other changes for ACPI 2.0 support are complete. With 11566simultaneous code and data optimizations throughout the subsystem, 11567ACPI 2.0 support has been implemented with almost no additional 11568cost in terms of code and data size. 11569 11570Implemented a new mechanism for allocation of return buffers. If 11571the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 11572be allocated on behalf of the caller. Consolidated all return 11573buffer validation and allocation to a common procedure. Return 11574buffers will be allocated via the primary OSL allocation interface 11575since it appears that a separate pool is not needed by most users. 11576If a separate pool is required for these buffers, the caller can 11577still use the original mechanism and pre-allocate the buffer(s). 11578 11579Implemented support for string operands within the DerefOf 11580operator. 11581 11582Restructured the Hardware and Event managers to be table driven, 11583simplifying the source code and reducing the amount of generated 11584code. 11585 11586Split the common read/write low-level ACPI register bitfield 11587procedure into a separate read and write, simplifying the code 11588considerably. 11589 11590Obsoleted the AcpiOsCallocate OSL interface. This interface was 11591used only a handful of times and didn't have enough critical mass 11592for a separate interface. Replaced with a common calloc procedure 11593in the core. 11594 11595Fixed a reported problem with the GPE number mapping mechanism 11596that allows GPE1 numbers to be non-contiguous with GPE0. 11597Reorganized the GPE information and shrunk a large array that was 11598originally large enough to hold info for all possible GPEs (256) 11599to simply large enough to hold all GPEs up to the largest GPE 11600number on the machine. 11601 11602Fixed a reported problem with resource structure alignment on 64- 11603bit platforms. 11604 11605Changed the AcpiEnableEvent and AcpiDisableEvent external 11606interfaces to not require any flags for the common case of 11607enabling/disabling a GPE. 11608 11609Implemented support to allow a "Notify" on a Processor object. 11610 11611Most TBDs in comments within the source code have been resolved 11612and eliminated. 11613 11614 11615Fixed a problem in the interpreter where a standalone parent 11616prefix (^) was not handled correctly in the interpreter and 11617debugger. 11618 11619Removed obsolete and unnecessary GPE save/restore code. 11620 11621Implemented Field support in the ASL Load operator. This allows a 11622table to be loaded from a named field, in addition to loading a 11623table directly from an Operation Region. 11624 11625Implemented timeout and handle support in the external Global Lock 11626interfaces. 11627 11628Fixed a problem in the AcpiDump utility where pathnames were no 11629longer being generated correctly during the dump of named objects. 11630 11631Modified the AML debugger to give a full display of if/while 11632predicates instead of just one AML opcode at a time. (The 11633predicate can have several nested ASL statements.) The old method 11634was confusing during single stepping. 11635 11636Code and Data Size: Current core subsystem library sizes are shown 11637below. These are the code and data sizes for the acpica.lib 11638produced by the Microsoft Visual C++ 6.0 compiler, and these 11639values do not include any ACPI driver or OSPM code. The debug 11640version of the code includes the debug output trace mechanism and 11641has a larger code and data size. Note that these values will vary 11642depending on the efficiency of the compiler and the compiler 11643options used during generation. 11644 11645 Previous Release (12_18_01) 11646 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 11647 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 11648 Current Release: 11649 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 11650 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 11651 116522) Linux 11653 11654 Implemented fix for PIIX reverse throttling errata (Processor 11655driver) 11656 11657Added new Limit interface (Processor and Thermal drivers) 11658 11659New thermal policy (Thermal driver) 11660 11661Many updates to /proc 11662 11663Battery "low" event support (Battery driver) 11664 11665Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 11666 11667IA32 - IA64 initialization unification, no longer experimental 11668 11669Menuconfig options redesigned 11670 116713) ASL Compiler, version X2037: 11672 11673Implemented several new output features to simplify integration of 11674AML code into firmware: 1) Output the AML in C source code with 11675labels for each named ASL object. The original ASL source code 11676is interleaved as C comments. 2) Output the AML in ASM source code 11677with labels and interleaved ASL source. 3) Output the AML in 11678raw hex table form, in either C or ASM. 11679 11680Implemented support for optional string parameters to the 11681LoadTable operator. 11682 11683Completed support for embedded escape sequences within string 11684literals. The compiler now supports all single character escapes 11685as well as the Octal and Hex escapes. Note: the insertion of a 11686null byte into a string literal (via the hex/octal escape) causes 11687the string to be immediately terminated. A warning is issued. 11688 11689Fixed a problem where incorrect AML was generated for the case 11690where an ASL namepath consists of a single parent prefix ( 11691 11692) with no trailing name segments. 11693 11694The compiler has been successfully generated with a 64-bit C 11695compiler. 11696 11697 11698 11699 11700---------------------------------------- 11701Summary of changes for this label: 12_18_01 11702 117031) Linux 11704 11705Enhanced blacklist with reason and severity fields. Any table's 11706signature may now be used to identify a blacklisted system. 11707 11708Call _PIC control method to inform the firmware which interrupt 11709model the OS is using. Turn on any disabled link devices. 11710 11711Cleaned up busmgr /proc error handling (Andreas Dilger) 11712 11713 2) ACPI CA Core Subsystem: 11714 11715Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 11716while loop) 11717 11718Completed implementation of the ACPI 2.0 "Continue", 11719"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 11720operators. All new ACPI 2.0 operators are now implemented in both 11721the ASL compiler and the AML interpreter. The only remaining ACPI 117222.0 task is support for the String data type in the DerefOf 11723operator. Fixed a problem with AcquireMutex where the status code 11724was lost if the caller had to actually wait for the mutex. 11725 11726Increased the maximum ASL Field size from 64K bits to 4G bits. 11727 11728Completed implementation of the external Global Lock interfaces -- 11729AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 11730Handler parameters were added. 11731 11732Completed another pass at removing warnings and issues when 11733compiling with 64-bit compilers. The code now compiles cleanly 11734with the Intel 64-bit C/C++ compiler. Most notably, the pointer 11735add and subtract (diff) macros have changed considerably. 11736 11737 11738Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1173964-bit platforms, 32-bits on all others. This type is used 11740wherever memory allocation and/or the C sizeof() operator is used, 11741and affects the OSL memory allocation interfaces AcpiOsAllocate 11742and AcpiOsCallocate. 11743 11744Implemented sticky user breakpoints in the AML debugger. 11745 11746Code and Data Size: Current core subsystem library sizes are shown 11747below. These are the code and data sizes for the acpica.lib 11748produced by the Microsoft Visual C++ 6.0 compiler, and these 11749values do not include any ACPI driver or OSPM code. The debug 11750version of the code includes the debug output trace mechanism and 11751has a larger code and data size. Note that these values will vary 11752depending on the efficiency of the compiler and the compiler 11753options used during generation. 11754 11755 Previous Release (12_05_01) 11756 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 11757 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 11758 Current Release: 11759 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 11760 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 11761 11762 3) ASL Compiler, version X2034: 11763 11764Now checks for (and generates an error if detected) the use of a 11765Break or Continue statement without an enclosing While statement. 11766 11767 11768Successfully generated the compiler with the Intel 64-bit C 11769compiler. 11770 11771 ---------------------------------------- 11772Summary of changes for this label: 12_05_01 11773 11774 1) ACPI CA Core Subsystem: 11775 11776The ACPI 2.0 CopyObject operator is fully implemented. This 11777operator creates a new copy of an object (and is also used to 11778bypass the "implicit conversion" mechanism of the Store operator.) 11779 11780The ACPI 2.0 semantics for the SizeOf operator are fully 11781implemented. The change is that performing a SizeOf on a 11782reference object causes an automatic dereference of the object to 11783tha actual value before the size is evaluated. This behavior was 11784undefined in ACPI 1.0. 11785 11786The ACPI 2.0 semantics for the Extended IRQ resource descriptor 11787have been implemented. The interrupt polarity and mode are now 11788independently set. 11789 11790Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 11791appearing in Package objects were not properly converted to 11792integers when the internal Package was converted to an external 11793object (via the AcpiEvaluateObject interface.) 11794 11795Fixed a problem with the namespace object deletion mechanism for 11796objects created by control methods. There were two parts to this 11797problem: 1) Objects created during the initialization phase method 11798parse were not being deleted, and 2) The object owner ID mechanism 11799to track objects was broken. 11800 11801Fixed a problem where the use of the ASL Scope operator within a 11802control method would result in an invalid opcode exception. 11803 11804Fixed a problem introduced in the previous label where the buffer 11805length required for the _PRT structure was not being returned 11806correctly. 11807 11808Code and Data Size: Current core subsystem library sizes are shown 11809below. These are the code and data sizes for the acpica.lib 11810produced by the Microsoft Visual C++ 6.0 compiler, and these 11811values do not include any ACPI driver or OSPM code. The debug 11812version of the code includes the debug output trace mechanism and 11813has a larger code and data size. Note that these values will vary 11814depending on the efficiency of the compiler and the compiler 11815options used during generation. 11816 11817 Previous Release (11_20_01) 11818 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 11819 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 11820 11821 Current Release: 11822 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 11823 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 11824 11825 2) Linux: 11826 11827Updated all files to apply cleanly against 2.4.16. 11828 11829Added basic PCI Interrupt Routing Table (PRT) support for IA32 11830(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 11831version supports both static and dyanmic PRT entries, but dynamic 11832entries are treated as if they were static (not yet 11833reconfigurable). Architecture- specific code to use this data is 11834absent on IA32 but should be available shortly. 11835 11836Changed the initialization sequence to start the ACPI interpreter 11837(acpi_init) prior to initialization of the PCI driver (pci_init) 11838in init/main.c. This ordering is required to support PRT and 11839facilitate other (future) enhancement. A side effect is that the 11840ACPI bus driver and certain device drivers can no longer be loaded 11841as modules. 11842 11843Modified the 'make menuconfig' options to allow PCI Interrupt 11844Routing support to be included without the ACPI Bus and other 11845device drivers. 11846 11847 3) ASL Compiler, version X2033: 11848 11849Fixed some issues with the use of the new CopyObject and 11850DataTableRegion operators. Both are fully functional. 11851 11852 ---------------------------------------- 11853Summary of changes for this label: 11_20_01 11854 11855 20 November 2001. Summary of changes for this release. 11856 11857 1) ACPI CA Core Subsystem: 11858 11859Updated Index support to match ACPI 2.0 semantics. Storing a 11860Integer, String, or Buffer to an Index of a Buffer will store only 11861the least-significant byte of the source to the Indexed buffer 11862byte. Multiple writes are not performed. 11863 11864Fixed a problem where the access type used in an AccessAs ASL 11865operator was not recorded correctly into the field object. 11866 11867Fixed a problem where ASL Event objects were created in a 11868signalled state. Events are now created in an unsignalled state. 11869 11870The internal object cache is now purged after table loading and 11871initialization to reduce the use of dynamic kernel memory -- on 11872the assumption that object use is greatest during the parse phase 11873of the entire table (versus the run-time use of individual control 11874methods.) 11875 11876ACPI 2.0 variable-length packages are now fully operational. 11877 11878Code and Data Size: Code and Data optimizations have permitted new 11879feature development with an actual reduction in the library size. 11880Current core subsystem library sizes are shown below. These are 11881the code and data sizes for the acpica.lib produced by the 11882Microsoft Visual C++ 6.0 compiler, and these values do not include 11883any ACPI driver or OSPM code. The debug version of the code 11884includes the debug output trace mechanism and has a larger code 11885and data size. Note that these values will vary depending on the 11886efficiency of the compiler and the compiler options used during 11887generation. 11888 11889 Previous Release (11_09_01): 11890 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 11891 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 11892 11893 Current Release: 11894 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 11895 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 11896 11897 2) Linux: 11898 11899Enhanced the ACPI boot-time initialization code to allow the use 11900of Local APIC tables for processor enumeration on IA-32, and to 11901pave the way for a fully MPS-free boot (on SMP systems) in the 11902near future. This functionality replaces 11903arch/i386/kernel/acpitables.c, which was introduced in an earlier 119042.4.15-preX release. To enable this feature you must add 11905"acpi_boot=on" to the kernel command line -- see the help entry 11906for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 11907the works... 11908 11909Restructured the configuration options to allow boot-time table 11910parsing support without inclusion of the ACPI Interpreter (and 11911other) code. 11912 11913NOTE: This release does not include fixes for the reported events, 11914power-down, and thermal passive cooling issues (coming soon). 11915 11916 3) ASL Compiler: 11917 11918Added additional typechecking for Fields within restricted access 11919Operation Regions. All fields within EC and CMOS regions must be 11920declared with ByteAcc. All fields withing SMBus regions must be 11921declared with the BufferAcc access type. 11922 11923Fixed a problem where the listing file output of control methods 11924no longer interleaved the actual AML code with the ASL source 11925code. 11926 11927 11928 11929 11930---------------------------------------- 11931Summary of changes for this label: 11_09_01 11932 119331) ACPI CA Core Subsystem: 11934 11935Implemented ACPI 2.0-defined support for writes to fields with a 11936Buffer, String, or Integer source operand that is smaller than the 11937target field. In these cases, the source operand is zero-extended 11938to fill the target field. 11939 11940Fixed a problem where a Field starting bit offset (within the 11941parent operation region) was calculated incorrectly if the 11942 11943alignment of the field differed from the access width. This 11944affected CreateWordField, CreateDwordField, CreateQwordField, and 11945possibly other fields that use the "AccessAny" keyword. 11946 11947Fixed a problem introduced in the 11_02_01 release where indirect 11948stores through method arguments did not operate correctly. 11949 119502) Linux: 11951 11952Implemented boot-time ACPI table parsing support 11953(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 11954facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 11955legacy BIOS interfaces (e.g. MPS) for the configuration of system 11956processors, memory, and interrupts during setup_arch(). Note that 11957this patch does not include the required architecture-specific 11958changes required to apply this information -- subsequent patches 11959will be posted for both IA32 and IA64 to achieve this. 11960 11961Added low-level sleep support for IA32 platforms, courtesy of Pat 11962Mochel. This allows IA32 systems to transition to/from various 11963sleeping states (e.g. S1, S3), although the lack of a centralized 11964driver model and power-manageable drivers will prevent its 11965(successful) use on most systems. 11966 11967Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 11968submenu, unified IA32 and IA64 options, added new "Boot using ACPI 11969tables" option, etc. 11970 11971Increased the default timeout for the EC driver from 1ms to 10ms 11972(1000 cycles of 10us) to try to address AE_TIME errors during EC 11973transactions. 11974 11975 ---------------------------------------- 11976Summary of changes for this label: 11_02_01 11977 119781) ACPI CA Core Subsystem: 11979 11980ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 11981(QWordAcc keyword). All ACPI 2.0 64-bit support is now 11982implemented. 11983 11984OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 11985changes to support ACPI 2.0 Qword field access. Read/Write 11986PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 11987accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 11988the value parameter for the address space handler interface is now 11989an ACPI_INTEGER. OSL implementations of these interfaces must now 11990handle the case where the Width parameter is 64. 11991 11992Index Fields: Fixed a problem where unaligned bit assembly and 11993disassembly for IndexFields was not supported correctly. 11994 11995Index and Bank Fields: Nested Index and Bank Fields are now 11996supported. During field access, a check is performed to ensure 11997that the value written to an Index or Bank register is not out of 11998the range of the register. The Index (or Bank) register is 11999written before each access to the field data. Future support will 12000include allowing individual IndexFields to be wider than the 12001DataRegister width. 12002 12003Fields: Fixed a problem where the AML interpreter was incorrectly 12004attempting to write beyond the end of a Field/OpRegion. This was 12005a boundary case that occurred when a DWORD field was written to a 12006BYTE access OpRegion, forcing multiple writes and causing the 12007interpreter to write one datum too many. 12008 12009Fields: Fixed a problem with Field/OpRegion access where the 12010starting bit address of a field was incorrectly calculated if the 12011current access type was wider than a byte (WordAcc, DwordAcc, or 12012QwordAcc). 12013 12014Fields: Fixed a problem where forward references to individual 12015FieldUnits (individual Field names within a Field definition) were 12016not resolved during the AML table load. 12017 12018Fields: Fixed a problem where forward references from a Field 12019definition to the parent Operation Region definition were not 12020resolved during the AML table load. 12021 12022Fields: Duplicate FieldUnit names within a scope are now detected 12023during AML table load. 12024 12025Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 12026returned an incorrect name for the root node. 12027 12028Code and Data Size: Code and Data optimizations have permitted new 12029feature development with an actual reduction in the library size. 12030Current core subsystem library sizes are shown below. These are 12031the code and data sizes for the acpica.lib produced by the 12032Microsoft Visual C++ 6.0 compiler, and these values do not include 12033any ACPI driver or OSPM code. The debug version of the code 12034includes the debug output trace mechanism and has a larger code 12035and data size. Note that these values will vary depending on the 12036efficiency of the compiler and the compiler options used during 12037generation. 12038 12039 Previous Release (10_18_01): 12040 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 12041 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 12042 12043 Current Release: 12044 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 12045 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 12046 12047 2) Linux: 12048 12049Improved /proc processor output (Pavel Machek) Re-added 12050MODULE_LICENSE("GPL") to all modules. 12051 12052 3) ASL Compiler version X2030: 12053 12054Duplicate FieldUnit names within a scope are now detected and 12055flagged as errors. 12056 12057 4) Documentation: 12058 12059Programmer Reference updated to reflect OSL and address space 12060handler interface changes described above. 12061 12062---------------------------------------- 12063Summary of changes for this label: 10_18_01 12064 12065ACPI CA Core Subsystem: 12066 12067Fixed a problem with the internal object reference count mechanism 12068that occasionally caused premature object deletion. This resolves 12069all of the outstanding problem reports where an object is deleted 12070in the middle of an interpreter evaluation. Although this problem 12071only showed up in rather obscure cases, the solution to the 12072problem involved an adjustment of all reference counts involving 12073objects attached to namespace nodes. 12074 12075Fixed a problem with Field support in the interpreter where 12076writing to an aligned field whose length is an exact multiple (2 12077or greater) of the field access granularity would cause an attempt 12078to write beyond the end of the field. 12079 12080The top level AML opcode execution functions within the 12081interpreter have been renamed with a more meaningful and 12082consistent naming convention. The modules exmonad.c and 12083exdyadic.c were eliminated. New modules are exoparg1.c, 12084exoparg2.c, exoparg3.c, and exoparg6.c. 12085 12086Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 12087 12088Fixed a problem where the AML debugger was causing some internal 12089objects to not be deleted during subsystem termination. 12090 12091Fixed a problem with the external AcpiEvaluateObject interface 12092where the subsystem would fault if the named object to be 12093evaluated refered to a constant such as Zero, Ones, etc. 12094 12095Fixed a problem with IndexFields and BankFields where the 12096subsystem would fault if the index, data, or bank registers were 12097not defined in the same scope as the field itself. 12098 12099Added printf format string checking for compilers that support 12100this feature. Corrected more than 50 instances of issues with 12101format specifiers within invocations of ACPI_DEBUG_PRINT 12102throughout the core subsystem code. 12103 12104The ASL "Revision" operator now returns the ACPI support level 12105implemented in the core - the value "2" since the ACPI 2.0 support 12106is more than 50% implemented. 12107 12108Enhanced the output of the AML debugger "dump namespace" command 12109to output in a more human-readable form. 12110 12111Current core subsystem library code sizes are shown below. These 12112 12113are the code and data sizes for the acpica.lib produced by the 12114Microsoft Visual C++ 6.0 compiler, and these values do not include 12115any ACPI driver or OSPM code. The debug version of the code 12116includes the full debug trace mechanism -- leading to a much 12117 12118larger code and data size. Note that these values will vary 12119depending on the efficiency of the compiler and the compiler 12120options used during generation. 12121 12122 Previous Label (09_20_01): 12123 Non-Debug Version: 65K Code, 5K Data, 70K Total 12124 Debug Version: 138K Code, 58K Data, 196K Total 12125 12126 This Label: 12127 12128 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 12129 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 12130 12131Linux: 12132 12133Implemented a "Bad BIOS Blacklist" to track machines that have 12134known ASL/AML problems. 12135 12136Enhanced the /proc interface for the thermal zone driver and added 12137support for _HOT (the critical suspend trip point). The 'info' 12138file now includes threshold/policy information, and allows setting 12139of _SCP (cooling preference) and _TZP (polling frequency) values 12140to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 12141frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 12142preference to the passive/quiet mode (if supported by the ASL). 12143 12144Implemented a workaround for a gcc bug that resuted in an OOPs 12145when loading the control method battery driver. 12146 12147 ---------------------------------------- 12148Summary of changes for this label: 09_20_01 12149 12150 ACPI CA Core Subsystem: 12151 12152The AcpiEnableEvent and AcpiDisableEvent interfaces have been 12153modified to allow individual GPE levels to be flagged as wake- 12154enabled (i.e., these GPEs are to remain enabled when the platform 12155sleeps.) 12156 12157The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 12158support wake-enabled GPEs. This means that upon entering the 12159sleep state, all GPEs that are not wake-enabled are disabled. 12160When leaving the sleep state, these GPEs are reenabled. 12161 12162A local double-precision divide/modulo module has been added to 12163enhance portability to OS kernels where a 64-bit math library is 12164not available. The new module is "utmath.c". 12165 12166Several optimizations have been made to reduce the use of CPU 12167stack. Originally over 2K, the maximum stack usage is now below 121682K at 1860 bytes (1.82k) 12169 12170Fixed a problem with the AcpiGetFirmwareTable interface where the 12171root table pointer was not mapped into a logical address properly. 12172 12173Fixed a problem where a NULL pointer was being dereferenced in the 12174interpreter code for the ASL Notify operator. 12175 12176Fixed a problem where the use of the ASL Revision operator 12177returned an error. This operator now returns the current version 12178of the ACPI CA core subsystem. 12179 12180Fixed a problem where objects passed as control method parameters 12181to AcpiEvaluateObject were always deleted at method termination. 12182However, these objects may end up being stored into the namespace 12183by the called method. The object reference count mechanism was 12184applied to these objects instead of a force delete. 12185 12186Fixed a problem where static strings or buffers (contained in the 12187AML code) that are declared as package elements within the ASL 12188code could cause a fault because the interpreter would attempt to 12189delete them. These objects are now marked with the "static 12190object" flag to prevent any attempt to delete them. 12191 12192Implemented an interpreter optimization to use operands directly 12193from the state object instead of extracting the operands to local 12194variables. This reduces stack use and code size, and improves 12195performance. 12196 12197The module exxface.c was eliminated as it was an unnecessary extra 12198layer of code. 12199 12200Current core subsystem library code sizes are shown below. These 12201are the code and data sizes for the acpica.lib produced by the 12202Microsoft Visual C++ 6.0 compiler, and these values do not include 12203any ACPI driver or OSPM code. The debug version of the code 12204includes the full debug trace mechanism -- leading to a much 12205larger code and data size. Note that these values will vary 12206depending on the efficiency of the compiler and the compiler 12207options used during generation. 12208 12209 Non-Debug Version: 65K Code, 5K Data, 70K Total 12210(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 12211Total (Previously 195K) 12212 12213Linux: 12214 12215Support for ACPI 2.0 64-bit integers has been added. All ACPI 12216Integer objects are now 64 bits wide 12217 12218All Acpi data types and structures are now in lower case. Only 12219Acpi macros are upper case for differentiation. 12220 12221 Documentation: 12222 12223Changes to the external interfaces as described above. 12224 12225 ---------------------------------------- 12226Summary of changes for this label: 08_31_01 12227 12228 ACPI CA Core Subsystem: 12229 12230A bug with interpreter implementation of the ASL Divide operator 12231was found and fixed. The implicit function return value (not the 12232explicit store operands) was returning the remainder instead of 12233the quotient. This was a longstanding bug and it fixes several 12234known outstanding issues on various platforms. 12235 12236The ACPI_DEBUG_PRINT and function trace entry/exit macros have 12237been further optimized for size. There are 700 invocations of the 12238DEBUG_PRINT macro alone, so each optimization reduces the size of 12239the debug version of the subsystem significantly. 12240 12241A stack trace mechanism has been implemented. The maximum stack 12242usage is about 2K on 32-bit platforms. The debugger command "stat 12243stack" will display the current maximum stack usage. 12244 12245All public symbols and global variables within the subsystem are 12246now prefixed with the string "Acpi". This keeps all of the 12247symbols grouped together in a kernel map, and avoids conflicts 12248with other kernel subsystems. 12249 12250Most of the internal fixed lookup tables have been moved into the 12251code segment via the const operator. 12252 12253Several enhancements have been made to the interpreter to both 12254reduce the code size and improve performance. 12255 12256Current core subsystem library code sizes are shown below. These 12257are the code and data sizes for the acpica.lib produced by the 12258Microsoft Visual C++ 6.0 compiler, and these values do not include 12259any ACPI driver or OSPM code. The debug version of the code 12260includes the full debug trace mechanism which contains over 700 12261invocations of the DEBUG_PRINT macro, 500 function entry macro 12262invocations, and over 900 function exit macro invocations -- 12263leading to a much larger code and data size. Note that these 12264values will vary depending on the efficiency of the compiler and 12265the compiler options used during generation. 12266 12267 Non-Debug Version: 64K Code, 5K Data, 69K Total 12268Debug Version: 137K Code, 58K Data, 195K Total 12269 12270 Linux: 12271 12272Implemented wbinvd() macro, pending a kernel-wide definition. 12273 12274Fixed /proc/acpi/event to handle poll() and short reads. 12275 12276 ASL Compiler, version X2026: 12277 12278Fixed a problem introduced in the previous label where the AML 12279 12280code emitted for package objects produced packages with zero 12281length. 12282 12283 ---------------------------------------- 12284Summary of changes for this label: 08_16_01 12285 12286ACPI CA Core Subsystem: 12287 12288The following ACPI 2.0 ASL operators have been implemented in the 12289AML interpreter (These are already supported by the Intel ASL 12290compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 12291ToBuffer. Support for 64-bit AML constants is implemented in the 12292AML parser, debugger, and disassembler. 12293 12294The internal memory tracking mechanism (leak detection code) has 12295been upgraded to reduce the memory overhead (a separate tracking 12296block is no longer allocated for each memory allocation), and now 12297supports all of the internal object caches. 12298 12299The data structures and code for the internal object caches have 12300been coelesced and optimized so that there is a single cache and 12301memory list data structure and a single group of functions that 12302implement generic cache management. This has reduced the code 12303size in both the debug and release versions of the subsystem. 12304 12305The DEBUG_PRINT macro(s) have been optimized for size and replaced 12306by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 12307different, because it generates a single call to an internal 12308function. This results in a savings of about 90 bytes per 12309invocation, resulting in an overall code and data savings of about 1231016% in the debug version of the subsystem. 12311 12312 Linux: 12313 12314Fixed C3 disk corruption problems and re-enabled C3 on supporting 12315machines. 12316 12317Integrated low-level sleep code by Patrick Mochel. 12318 12319Further tweaked source code Linuxization. 12320 12321Other minor fixes. 12322 12323 ASL Compiler: 12324 12325Support for ACPI 2.0 variable length packages is fixed/completed. 12326 12327Fixed a problem where the optional length parameter for the ACPI 123282.0 ToString operator. 12329 12330Fixed multiple extraneous error messages when a syntax error is 12331detected within the declaration line of a control method. 12332 12333 ---------------------------------------- 12334Summary of changes for this label: 07_17_01 12335 12336ACPI CA Core Subsystem: 12337 12338Added a new interface named AcpiGetFirmwareTable to obtain any 12339ACPI table via the ACPI signature. The interface can be called at 12340any time during kernel initialization, even before the kernel 12341virtual memory manager is initialized and paging is enabled. This 12342allows kernel subsystems to obtain ACPI tables very early, even 12343before the ACPI CA subsystem is initialized. 12344 12345Fixed a problem where Fields defined with the AnyAcc attribute 12346could be resolved to the incorrect address under the following 12347conditions: 1) the field width is larger than 8 bits and 2) the 12348parent operation region is not defined on a DWORD boundary. 12349 12350Fixed a problem where the interpreter is not being locked during 12351namespace initialization (during execution of the _INI control 12352methods), causing an error when an attempt is made to release it 12353later. 12354 12355ACPI 2.0 support in the AML Interpreter has begun and will be 12356ongoing throughout the rest of this year. In this label, The Mod 12357operator is implemented. 12358 12359Added a new data type to contain full PCI addresses named 12360ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 12361and Function values. 12362 12363 Linux: 12364 12365Enhanced the Linux version of the source code to change most 12366capitalized ACPI type names to lowercase. For example, all 12367instances of ACPI_STATUS are changed to acpi_status. This will 12368result in a large diff, but the change is strictly cosmetic and 12369aligns the CA code closer to the Linux coding standard. 12370 12371OSL Interfaces: 12372 12373The interfaces to the PCI configuration space have been changed to 12374add the PCI Segment number and to split the single 32-bit combined 12375DeviceFunction field into two 16-bit fields. This was 12376accomplished by moving the four values that define an address in 12377PCI configuration space (segment, bus, device, and function) to 12378the new ACPI_PCI_ID structure. 12379 12380The changes to the PCI configuration space interfaces led to a 12381reexamination of the complete set of address space access 12382interfaces for PCI, I/O, and Memory. The previously existing 18 12383interfaces have proven difficult to maintain (any small change 12384must be propagated across at least 6 interfaces) and do not easily 12385allow for future expansion to 64 bits if necessary. Also, on some 12386systems, it would not be appropriate to demultiplex the access 12387width (8, 16, 32,or 64) before calling the OSL if the 12388corresponding native OS interfaces contain a similar access width 12389parameter. For these reasons, the 18 address space interfaces 12390have been replaced by these 6 new ones: 12391 12392AcpiOsReadPciConfiguration 12393AcpiOsWritePciConfiguration 12394AcpiOsReadMemory 12395AcpiOsWriteMemory 12396AcpiOsReadPort 12397AcpiOsWritePort 12398 12399Added a new interface named AcpiOsGetRootPointer to allow the OSL 12400to perform the platform and/or OS-specific actions necessary to 12401obtain the ACPI RSDP table pointer. On IA-32 platforms, this 12402interface will simply call down to the CA core to perform the low- 12403memory search for the table. On IA-64, the RSDP is obtained from 12404EFI. Migrating this interface to the OSL allows the CA core to 12405 12406remain OS and platform independent. 12407 12408Added a new interface named AcpiOsSignal to provide a generic 12409"function code and pointer" interface for various miscellaneous 12410signals and notifications that must be made to the host OS. The 12411first such signals are intended to support the ASL Fatal and 12412Breakpoint operators. In the latter case, the AcpiOsBreakpoint 12413interface has been obsoleted. 12414 12415The definition of the AcpiFormatException interface has been 12416changed to simplify its use. The caller no longer must supply a 12417buffer to the call; A pointer to a const string is now returned 12418directly. This allows the call to be easily used in printf 12419statements, etc. since the caller does not have to manage a local 12420buffer. 12421 12422 12423 ASL Compiler, Version X2025: 12424 12425The ACPI 2.0 Switch/Case/Default operators have been implemented 12426and are fully functional. They will work with all ACPI 1.0 12427interpreters, since the operators are simply translated to If/Else 12428pairs. 12429 12430The ACPI 2.0 ElseIf operator is implemented and will also work 12431with 1.0 interpreters, for the same reason. 12432 12433Implemented support for ACPI 2.0 variable-length packages. These 12434packages have a separate opcode, and their size is determined by 12435the interpreter at run-time. 12436 12437Documentation The ACPI CA Programmer Reference has been updated to 12438reflect the new interfaces and changes to existing interfaces. 12439 12440 ------------------------------------------ 12441Summary of changes for this label: 06_15_01 12442 12443 ACPI CA Core Subsystem: 12444 12445Fixed a problem where a DWORD-accessed field within a Buffer 12446object would get its byte address inadvertently rounded down to 12447the nearest DWORD. Buffers are always Byte-accessible. 12448 12449 ASL Compiler, version X2024: 12450 12451Fixed a problem where the Switch() operator would either fault or 12452hang the compiler. Note however, that the AML code for this ACPI 124532.0 operator is not yet implemented. 12454 12455Compiler uses the new AcpiOsGetTimer interface to obtain compile 12456timings. 12457 12458Implementation of the CreateField operator automatically converts 12459a reference to a named field within a resource descriptor from a 12460byte offset to a bit offset if required. 12461 12462Added some missing named fields from the resource descriptor 12463support. These are the names that are automatically created by the 12464compiler to reference fields within a descriptor. They are only 12465valid at compile time and are not passed through to the AML 12466interpreter. 12467 12468Resource descriptor named fields are now typed as Integers and 12469subject to compile-time typechecking when used in expressions. 12470 12471 ------------------------------------------ 12472Summary of changes for this label: 05_18_01 12473 12474 ACPI CA Core Subsystem: 12475 12476Fixed a couple of problems in the Field support code where bits 12477from adjacent fields could be returned along with the proper field 12478bits. Restructured the field support code to improve performance, 12479readability and maintainability. 12480 12481New DEBUG_PRINTP macro automatically inserts the procedure name 12482into the output, saving hundreds of copies of procedure name 12483strings within the source, shrinking the memory footprint of the 12484debug version of the core subsystem. 12485 12486 Source Code Structure: 12487 12488The source code directory tree was restructured to reflect the 12489current organization of the component architecture. Some files 12490and directories have been moved and/or renamed. 12491 12492 Linux: 12493 12494Fixed leaking kacpidpc processes. 12495 12496Fixed queueing event data even when /proc/acpi/event is not 12497opened. 12498 12499 ASL Compiler, version X2020: 12500 12501Memory allocation performance enhancement - over 24X compile time 12502improvement on large ASL files. Parse nodes and namestring 12503buffers are now allocated from a large internal compiler buffer. 12504 12505The temporary .SRC file is deleted unless the "-s" option is 12506specified 12507 12508The "-d" debug output option now sends all output to the .DBG file 12509instead of the console. 12510 12511"External" second parameter is now optional 12512 12513"ElseIf" syntax now properly allows the predicate 12514 12515Last operand to "Load" now recognized as a Target operand 12516 12517Debug object can now be used anywhere as a normal object. 12518 12519ResourceTemplate now returns an object of type BUFFER 12520 12521EISAID now returns an object of type INTEGER 12522 12523"Index" now works with a STRING operand 12524 12525"LoadTable" now accepts optional parameters 12526 12527"ToString" length parameter is now optional 12528 12529"Interrupt (ResourceType," parse error fixed. 12530 12531"Register" with a user-defined region space parse error fixed 12532 12533Escaped backslash at the end of a string ("\\") scan/parse error 12534fixed 12535 12536"Revision" is now an object of type INTEGER. 12537 12538 12539 12540------------------------------------------ 12541Summary of changes for this label: 05_02_01 12542 12543Linux: 12544 12545/proc/acpi/event now blocks properly. 12546 12547Removed /proc/sys/acpi. You can still dump your DSDT from 12548/proc/acpi/dsdt. 12549 12550 ACPI CA Core Subsystem: 12551 12552Fixed a problem introduced in the previous label where some of the 12553"small" resource descriptor types were not recognized. 12554 12555Improved error messages for the case where an ASL Field is outside 12556the range of the parent operation region. 12557 12558 ASL Compiler, version X2018: 12559 12560 12561Added error detection for ASL Fields that extend beyond the length 12562of the parent operation region (only if the length of the region 12563is known at compile time.) This includes fields that have a 12564minimum access width that is smaller than the parent region, and 12565individual field units that are partially or entirely beyond the 12566extent of the parent. 12567 12568 12569 12570------------------------------------------ 12571Summary of changes for this label: 04_27_01 12572 12573 ACPI CA Core Subsystem: 12574 12575Fixed a problem where the namespace mutex could be released at the 12576wrong time during execution of AcpiRemoveAddressSpaceHandler. 12577 12578Added optional thread ID output for debug traces, to simplify 12579debugging of multiple threads. Added context switch notification 12580when the debug code realizes that a different thread is now 12581executing ACPI code. 12582 12583Some additional external data types have been prefixed with the 12584string "ACPI_" for consistency. This may effect existing code. 12585The data types affected are the external callback typedefs - e.g., 12586 12587WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 12588 12589 Linux: 12590 12591Fixed an issue with the OSL semaphore implementation where a 12592thread was waking up with an error from receiving a SIGCHLD 12593signal. 12594 12595Linux version of ACPI CA now uses the system C library for string 12596manipulation routines instead of a local implementation. 12597 12598Cleaned up comments and removed TBDs. 12599 12600 ASL Compiler, version X2017: 12601 12602Enhanced error detection and reporting for all file I/O 12603operations. 12604 12605 Documentation: 12606 12607Programmer Reference updated to version 1.06. 12608 12609 12610 12611------------------------------------------ 12612Summary of changes for this label: 04_13_01 12613 12614 ACPI CA Core Subsystem: 12615 12616Restructured support for BufferFields and RegionFields. 12617BankFields support is now fully operational. All known 32-bit 12618limitations on field sizes have been removed. Both BufferFields 12619and (Operation) RegionFields are now supported by the same field 12620management code. 12621 12622Resource support now supports QWORD address and IO resources. The 1262316/32/64 bit address structures and the Extended IRQ structure 12624have been changed to properly handle Source Resource strings. 12625 12626A ThreadId of -1 is now used to indicate a "mutex not acquired" 12627condition internally and must never be returned by AcpiOsThreadId. 12628This reserved value was changed from 0 since Unix systems allow a 12629thread ID of 0. 12630 12631Linux: 12632 12633Driver code reorganized to enhance portability 12634 12635Added a kernel configuration option to control ACPI_DEBUG 12636 12637Fixed the EC driver to honor _GLK. 12638 12639ASL Compiler, version X2016: 12640 12641Fixed support for the "FixedHw" keyword. Previously, the FixedHw 12642address space was set to 0, not 0x7f as it should be. 12643 12644 ------------------------------------------ 12645Summary of changes for this label: 03_13_01 12646 12647 ACPI CA Core Subsystem: 12648 12649During ACPI initialization, the _SB_._INI method is now run if 12650present. 12651 12652Notify handler fix - notifies are deferred until the parent method 12653completes execution. This fixes the "mutex already acquired" 12654issue seen occasionally. 12655 12656Part of the "implicit conversion" rules in ACPI 2.0 have been 12657found to cause compatibility problems with existing ASL/AML. The 12658convert "result-to-target-type" implementation has been removed 12659for stores to method Args and Locals. Source operand conversion 12660is still fully implemented. Possible changes to ACPI 2.0 12661specification pending. 12662 12663Fix to AcpiRsCalculatePciRoutingTableLength to return correct 12664length. 12665 12666Fix for compiler warnings for 64-bit compiles. 12667 12668 Linux: 12669 12670/proc output aligned for easier parsing. 12671 12672Release-version compile problem fixed. 12673 12674New kernel configuration options documented in Configure.help. 12675 12676IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 12677context" message. 12678 12679 OSPM: 12680 12681Power resource driver integrated with bus manager. 12682 12683Fixed kernel fault during active cooling for thermal zones. 12684 12685Source Code: 12686 12687The source code tree has been restructured. 12688 12689 12690 12691------------------------------------------ 12692Summary of changes for this label: 03_02_01 12693 12694 Linux OS Services Layer (OSL): 12695 12696Major revision of all Linux-specific code. 12697 12698Modularized all ACPI-specific drivers. 12699 12700Added new thermal zone and power resource drivers. 12701 12702Revamped /proc interface (new functionality is under /proc/acpi). 12703 12704New kernel configuration options. 12705 12706 Linux known issues: 12707 12708New kernel configuration options not documented in Configure.help 12709yet. 12710 12711 12712Module dependencies not currently implemented. If used, they 12713should be loaded in this order: busmgr, power, ec, system, 12714processor, battery, ac_adapter, button, thermal. 12715 12716Modules will not load if CONFIG_MODVERSION is set. 12717 12718IBM 600E - entering S5 may reboot instead of shutting down. 12719 12720IBM 600E - Sleep button may generate "Invalid <NULL> context" 12721message. 12722 12723Some systems may fail with "execution mutex already acquired" 12724message. 12725 12726 ACPI CA Core Subsystem: 12727 12728Added a new OSL Interface, AcpiOsGetThreadId. This was required 12729for the deadlock detection code. Defined to return a non-zero, 32- 12730bit thread ID for the currently executing thread. May be a non- 12731zero constant integer on single-thread systems. 12732 12733Implemented deadlock detection for internal subsystem mutexes. We 12734may add conditional compilation for this code (debug only) later. 12735 12736ASL/AML Mutex object semantics are now fully supported. This 12737includes multiple acquires/releases by owner and support for the 12738 12739Mutex SyncLevel parameter. 12740 12741A new "Force Release" mechanism automatically frees all ASL 12742Mutexes that have been acquired but not released when a thread 12743exits the interpreter. This forces conformance to the ACPI spec 12744("All mutexes must be released when an invocation exits") and 12745prevents deadlocked ASL threads. This mechanism can be expanded 12746(later) to monitor other resource acquisitions if OEM ASL code 12747continues to misbehave (which it will). 12748 12749Several new ACPI exception codes have been added for the Mutex 12750support. 12751 12752Recursive method calls are now allowed and supported (the ACPI 12753spec does in fact allow recursive method calls.) The number of 12754recursive calls is subject to the restrictions imposed by the 12755SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 12756parameter. 12757 12758Implemented support for the SyncLevel parameter for control 12759methods (ACPI 2.0 feature) 12760 12761Fixed a deadlock problem when multiple threads attempted to use 12762the interpreter. 12763 12764Fixed a problem where the string length of a String package 12765element was not always set in a package returned from 12766AcpiEvaluateObject. 12767 12768Fixed a problem where the length of a String package element was 12769not always included in the length of the overall package returned 12770from AcpiEvaluateObject. 12771 12772Added external interfaces (Acpi*) to the ACPI debug memory 12773manager. This manager keeps a list of all outstanding 12774allocations, and can therefore detect memory leaks and attempts to 12775free memory blocks more than once. Useful for code such as the 12776power manager, etc. May not be appropriate for device drivers. 12777Performance with the debug code enabled is slow. 12778 12779The ACPI Global Lock is now an optional hardware element. 12780 12781 ASL Compiler Version X2015: 12782 12783Integrated changes to allow the compiler to be generated on 12784multiple platforms. 12785 12786Linux makefile added to generate the compiler on Linux 12787 12788 Source Code: 12789 12790All platform-specific headers have been moved to their own 12791subdirectory, Include/Platform. 12792 12793New source file added, Interpreter/ammutex.c 12794 12795New header file, Include/acstruct.h 12796 12797 Documentation: 12798 12799The programmer reference has been updated for the following new 12800interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 12801 12802 ------------------------------------------ 12803Summary of changes for this label: 02_08_01 12804 12805Core ACPI CA Subsystem: Fixed a problem where an error was 12806incorrectly returned if the return resource buffer was larger than 12807the actual data (in the resource interfaces). 12808 12809References to named objects within packages are resolved to the 12810 12811full pathname string before packages are returned directly (via 12812the AcpiEvaluateObject interface) or indirectly via the resource 12813interfaces. 12814 12815Linux OS Services Layer (OSL): 12816 12817Improved /proc battery interface. 12818 12819 12820Added C-state debugging output and other miscellaneous fixes. 12821 12822ASL Compiler Version X2014: 12823 12824All defined method arguments can now be used as local variables, 12825including the ones that are not actually passed in as parameters. 12826The compiler tracks initialization of the arguments and issues an 12827exception if they are used without prior assignment (just like 12828locals). 12829 12830The -o option now specifies a filename prefix that is used for all 12831output files, including the AML output file. Otherwise, the 12832default behavior is as follows: 1) the AML goes to the file 12833specified in the DSDT. 2) all other output files use the input 12834source filename as the base. 12835 12836 ------------------------------------------ 12837Summary of changes for this label: 01_25_01 12838 12839Core ACPI CA Subsystem: Restructured the implementation of object 12840store support within the interpreter. This includes support for 12841the Store operator as well as any ASL operators that include a 12842target operand. 12843 12844Partially implemented support for Implicit Result-to-Target 12845conversion. This is when a result object is converted on the fly 12846to the type of an existing target object. Completion of this 12847support is pending further analysis of the ACPI specification 12848concerning this matter. 12849 12850CPU-specific code has been removed from the subsystem (hardware 12851directory). 12852 12853New Power Management Timer functions added 12854 12855Linux OS Services Layer (OSL): Moved system state transition code 12856to the core, fixed it, and modified Linux OSL accordingly. 12857 12858Fixed C2 and C3 latency calculations. 12859 12860 12861We no longer use the compilation date for the version message on 12862initialization, but retrieve the version from AcpiGetSystemInfo(). 12863 12864Incorporated for fix Sony VAIO machines. 12865 12866Documentation: The Programmer Reference has been updated and 12867reformatted. 12868 12869 12870ASL Compiler: Version X2013: Fixed a problem where the line 12871numbering and error reporting could get out of sync in the 12872presence of multiple include files. 12873 12874 ------------------------------------------ 12875Summary of changes for this label: 01_15_01 12876 12877Core ACPI CA Subsystem: 12878 12879Implemented support for type conversions in the execution of the 12880ASL Concatenate operator (The second operand is converted to 12881match the type of the first operand before concatenation.) 12882 12883Support for implicit source operand conversion is partially 12884implemented. The ASL source operand types Integer, Buffer, and 12885String are freely interchangeable for most ASL operators and are 12886converted by the interpreter on the fly as required. Implicit 12887Target operand conversion (where the result is converted to the 12888target type before storing) is not yet implemented. 12889 12890Support for 32-bit and 64-bit BCD integers is implemented. 12891 12892Problem fixed where a field read on an aligned field could cause a 12893read past the end of the field. 12894 12895New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 12896does not return a value, but the caller expects one. (The ASL 12897compiler flags this as a warning.) 12898 12899ASL Compiler: 12900 12901Version X2011: 129021. Static typechecking of all operands is implemented. This 12903prevents the use of invalid objects (such as using a Package where 12904an Integer is required) at compile time instead of at interpreter 12905run-time. 129062. The ASL source line is printed with ALL errors and warnings. 129073. Bug fix for source EOF without final linefeed. 129084. Debug option is split into a parse trace and a namespace trace. 129095. Namespace output option (-n) includes initial values for 12910integers and strings. 129116. Parse-only option added for quick syntax checking. 129127. Compiler checks for duplicate ACPI name declarations 12913 12914Version X2012: 129151. Relaxed typechecking to allow interchangeability between 12916strings, integers, and buffers. These types are now converted by 12917the interpreter at runtime. 129182. Compiler reports time taken by each internal subsystem in the 12919debug output file. 12920 12921 12922 ------------------------------------------ 12923Summary of changes for this label: 12_14_00 12924 12925ASL Compiler: 12926 12927This is the first official release of the compiler. Since the 12928compiler requires elements of the Core Subsystem, this label 12929synchronizes everything. 12930 12931------------------------------------------ 12932Summary of changes for this label: 12_08_00 12933 12934 12935Fixed a problem where named references within the ASL definition 12936of both OperationRegions and CreateXXXFields did not work 12937properly. The symptom was an AE_AML_OPERAND_TYPE during 12938initialization of the region/field. This is similar (but not 12939related internally) to the problem that was fixed in the last 12940label. 12941 12942Implemented both 32-bit and 64-bit support for the BCD ASL 12943functions ToBCD and FromBCD. 12944 12945Updated all legal headers to include "2000" in the copyright 12946years. 12947 12948 ------------------------------------------ 12949Summary of changes for this label: 12_01_00 12950 12951Fixed a problem where method invocations within the ASL definition 12952of both OperationRegions and CreateXXXFields did not work 12953properly. The symptom was an AE_AML_OPERAND_TYPE during 12954initialization of the region/field: 12955 12956 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 12957[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 12958(0x3005) 12959 12960Fixed a problem where operators with more than one nested 12961subexpression would fail. The symptoms were varied, by mostly 12962AE_AML_OPERAND_TYPE errors. This was actually a rather serious 12963problem that has gone unnoticed until now. 12964 12965 Subtract (Add (1,2), Multiply (3,4)) 12966 12967Fixed a problem where AcpiGetHandle didn't quite get fixed in the 12968previous build (The prefix part of a relative path was handled 12969incorrectly). 12970 12971Fixed a problem where Operation Region initialization failed if 12972the operation region name was a "namepath" instead of a simple 12973"nameseg". Symptom was an AE_NO_OPERAND error. 12974 12975Fixed a problem where an assignment to a local variable via the 12976indirect RefOf mechanism only worked for the first such 12977assignment. Subsequent assignments were ignored. 12978 12979 ------------------------------------------ 12980Summary of changes for this label: 11_15_00 12981 12982ACPI 2.0 table support with backwards support for ACPI 1.0 and the 129830.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 12984the AML interpreter does NOT have support for the new 2.0 ASL 12985grammar terms at this time. 12986 12987All ACPI hardware access is via the GAS structures in the ACPI 2.0 12988FADT. 12989 12990All physical memory addresses across all platforms are now 64 bits 12991wide. Logical address width remains dependent on the platform 12992(i.e., "void *"). 12993 12994AcpiOsMapMemory interface changed to a 64-bit physical address. 12995 12996The AML interpreter integer size is now 64 bits, as per the ACPI 129972.0 specification. 12998 12999For backwards compatibility with ACPI 1.0, ACPI tables with a 13000revision number less than 2 use 32-bit integers only. 13001 13002Fixed a problem where the evaluation of OpRegion operands did not 13003always resolve them to numbers properly. 13004 13005------------------------------------------ 13006Summary of changes for this label: 10_20_00 13007 13008Fix for CBN_._STA issue. This fix will allow correct access to 13009CBN_ OpRegions when the _STA returns 0x8. 13010 13011Support to convert ACPI constants (Ones, Zeros, One) to actual 13012values before a package object is returned 13013 13014Fix for method call as predicate to if/while construct causing 13015incorrect if/while behavior 13016 13017Fix for Else block package lengths sometimes calculated wrong (if 13018block > 63 bytes) 13019 13020Fix for Processor object length field, was always zero 13021 13022Table load abort if FACP sanity check fails 13023 13024Fix for problem with Scope(name) if name already exists 13025 13026Warning emitted if a named object referenced cannot be found 13027(resolved) during method execution. 13028 13029 13030 13031 13032 13033------------------------------------------ 13034Summary of changes for this label: 9_29_00 13035 13036New table initialization interfaces: AcpiInitializeSubsystem no 13037longer has any parameters AcpiFindRootPointer - Find the RSDP (if 13038necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 13039>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 13040AcpiLoadTables 13041 13042Note: These interface changes require changes to all existing OSDs 13043 13044The PCI_Config default address space handler is always installed 13045at the root namespace object. 13046 13047------------------------------------------- 13048Summary of changes for this label: 09_15_00 13049 13050The new initialization architecture is implemented. New 13051interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 13052AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 13053 13054(Namespace is automatically loaded when a table is loaded) 13055 13056The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1305752 bytes to 32 bytes. There is usually one of these for every 13058namespace object, so the memory savings is significant. 13059 13060Implemented just-in-time evaluation of the CreateField operators. 13061 13062Bug fixes for IA-64 support have been integrated. 13063 13064Additional code review comments have been implemented 13065 13066The so-called "third pass parse" has been replaced by a final walk 13067through the namespace to initialize all operation regions (address 13068spaces) and fields that have not yet been initialized during the 13069execution of the various _INI and REG methods. 13070 13071New file - namespace/nsinit.c 13072 13073------------------------------------------- 13074Summary of changes for this label: 09_01_00 13075 13076Namespace manager data structures have been reworked to change the 13077primary object from a table to a single object. This has 13078resulted in dynamic memory savings of 3X within the namespace and 130792X overall in the ACPI CA subsystem. 13080 13081Fixed problem where the call to AcpiEvFindPciRootBuses was 13082inadvertently left commented out. 13083 13084Reduced the warning count when generating the source with the GCC 13085compiler. 13086 13087Revision numbers added to each module header showing the 13088SourceSafe version of the file. Please refer to this version 13089number when giving us feedback or comments on individual modules. 13090 13091The main object types within the subsystem have been renamed to 13092clarify their purpose: 13093 13094ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 13095ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 13096ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 13097 13098NOTE: no changes to the initialization sequence are included in 13099this label. 13100 13101------------------------------------------- 13102Summary of changes for this label: 08_23_00 13103 13104Fixed problem where TerminateControlMethod was being called 13105multiple times per method 13106 13107Fixed debugger problem where single stepping caused a semaphore to 13108be oversignalled 13109 13110Improved performance through additional parse object caching - 13111added ACPI_EXTENDED_OP type 13112 13113------------------------------------------- 13114Summary of changes for this label: 08_10_00 13115 13116Parser/Interpreter integration: Eliminated the creation of 13117complete parse trees for ACPI tables and control methods. 13118Instead, parse subtrees are created and then deleted as soon as 13119they are processed (Either entered into the namespace or executed 13120by the interpreter). This reduces the use of dynamic kernel 13121memory significantly. (about 10X) 13122 13123Exception codes broken into classes and renumbered. Be sure to 13124recompile all code that includes acexcep.h. Hopefully we won't 13125have to renumber the codes again now that they are split into 13126classes (environment, programmer, AML code, ACPI table, and 13127internal). 13128 13129Fixed some additional alignment issues in the Resource Manager 13130subcomponent 13131 13132Implemented semaphore tracking in the AcpiExec utility, and fixed 13133several places where mutexes/semaphores were being unlocked 13134without a corresponding lock operation. There are no known 13135semaphore or mutex "leaks" at this time. 13136 13137Fixed the case where an ASL Return operator is used to return an 13138unnamed package. 13139 13140------------------------------------------- 13141Summary of changes for this label: 07_28_00 13142 13143Fixed a problem with the way addresses were calculated in 13144AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 13145manifested itself when a Field was created with WordAccess or 13146DwordAccess, but the field unit defined within the Field was less 13147 13148than a Word or Dword. 13149 13150Fixed a problem in AmlDumpOperands() module's loop to pull 13151operands off of the operand stack to display information. The 13152problem manifested itself as a TLB error on 64-bit systems when 13153accessing an operand stack with two or more operands. 13154 13155Fixed a problem with the PCI configuration space handlers where 13156context was getting confused between accesses. This required a 13157change to the generic address space handler and address space 13158setup definitions. Handlers now get both a global handler context 13159(this is the one passed in by the user when executing 13160AcpiInstallAddressSpaceHandler() and a specific region context 13161that is unique to each region (For example, the _ADR, _SEG and 13162_BBN values associated with a specific region). The generic 13163function definitions have changed to the following: 13164 13165typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 13166UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 13167*HandlerContext, // This used to be void *Context void 13168*RegionContext); // This is an additional parameter 13169 13170typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 13171RegionHandle, UINT32 Function, void *HandlerContext, void 13172**RegionContext); // This used to be **ReturnContext 13173 13174------------------------------------------- 13175Summary of changes for this label: 07_21_00 13176 13177Major file consolidation and rename. All files within the 13178interpreter have been renamed as well as most header files. This 13179was done to prevent collisions with existing files in the host 13180OSs -- filenames such as "config.h" and "global.h" seem to be 13181quite common. The VC project files have been updated. All 13182makefiles will require modification. 13183 13184The parser/interpreter integration continues in Phase 5 with the 13185implementation of a complete 2-pass parse (the AML is parsed 13186twice) for each table; This avoids the construction of a huge 13187parse tree and therefore reduces the amount of dynamic memory 13188required by the subsystem. Greater use of the parse object cache 13189means that performance is unaffected. 13190 13191Many comments from the two code reviews have been rolled in. 13192 13193The 64-bit alignment support is complete. 13194 13195------------------------------------------- 13196Summary of changes for this label: 06_30_00 13197 13198With a nod and a tip of the hat to the technology of yesteryear, 13199we've added support in the source code for 80 column output 13200devices. The code is now mostly constrained to 80 columns or 13201less to support environments and editors that 1) cannot display 13202or print more than 80 characters on a single line, and 2) cannot 13203disable line wrapping. 13204 13205A major restructuring of the namespace data structure has been 13206completed. The result is 1) cleaner and more 13207understandable/maintainable code, and 2) a significant reduction 13208in the dynamic memory requirement for each named ACPI object 13209(almost half). 13210 13211------------------------------------------- 13212Summary of changes for this label: 06_23_00 13213 13214Linux support has been added. In order to obtain approval to get 13215the ACPI CA subsystem into the Linux kernel, we've had to make 13216quite a few changes to the base subsystem that will affect all 13217users (all the changes are generic and OS- independent). The 13218effects of these global changes have been somewhat far reaching. 13219Files have been merged and/or renamed and interfaces have been 13220renamed. The major changes are described below. 13221 13222Osd* interfaces renamed to AcpiOs* to eliminate namespace 13223pollution/confusion within our target kernels. All OSD 13224interfaces must be modified to match the new naming convention. 13225 13226Files merged across the subsystem. A number of the smaller source 13227and header files have been merged to reduce the file count and 13228increase the density of the existing files. There are too many 13229to list here. In general, makefiles that call out individual 13230files will require rebuilding. 13231 13232Interpreter files renamed. All interpreter files now have the 13233prefix am* instead of ie* and is*. 13234 13235Header files renamed: The acapi.h file is now acpixf.h. The 13236acpiosd.h file is now acpiosxf.h. We are removing references to 13237the acronym "API" since it is somewhat windowsy. The new name is 13238"external interface" or xface or xf in the filenames.j 13239 13240 13241All manifest constants have been forced to upper case (some were 13242mixed case.) Also, the string "ACPI_" has been prepended to many 13243(not all) of the constants, typedefs, and structs. 13244 13245The globals "DebugLevel" and "DebugLayer" have been renamed 13246"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 13247 13248All other globals within the subsystem are now prefixed with 13249"AcpiGbl_" Internal procedures within the subsystem are now 13250prefixed with "Acpi" (with only a few exceptions). The original 13251two-letter abbreviation for the subcomponent remains after "Acpi" 13252- for example, CmCallocate became AcpiCmCallocate. 13253 13254Added a source code translation/conversion utility. Used to 13255generate the Linux source code, it can be modified to generate 13256other types of source as well. Can also be used to cleanup 13257existing source by removing extraneous spaces and blank lines. 13258Found in tools/acpisrc/* 13259 13260OsdUnMapMemory was renamed to OsdUnmapMemory and then 13261AcpiOsUnmapMemory. (UnMap became Unmap). 13262 13263A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 13264When set to one, this indicates that the caller wants to use the 13265 13266semaphore as a mutex, not a counting semaphore. ACPI CA uses 13267both types. However, implementers of this call may want to use 13268different OS primitives depending on the type of semaphore 13269requested. For example, some operating systems provide separate 13270 13271"mutex" and "semaphore" interfaces - where the mutex interface is 13272much faster because it doesn't have all the overhead of a full 13273semaphore implementation. 13274 13275Fixed a deadlock problem where a method that accesses the PCI 13276address space can block forever if it is the first access to the 13277space. 13278 13279------------------------------------------- 13280Summary of changes for this label: 06_02_00 13281 13282Support for environments that cannot handle unaligned data 13283accesses (e.g. firmware and OS environments devoid of alignment 13284handler technology namely SAL/EFI and the IA-64 Linux kernel) has 13285been added (via configurable macros) in these three areas: - 13286Transfer of data from the raw AML byte stream is done via byte 13287moves instead of word/dword/qword moves. - External objects are 13288aligned within the user buffer, including package elements (sub- 13289objects). - Conversion of name strings to UINT32 Acpi Names is now 13290done byte-wise. 13291 13292The Store operator was modified to mimic Microsoft's 13293implementation when storing to a Buffer Field. 13294 13295Added a check of the BM_STS bit before entering C3. 13296 13297The methods subdirectory has been obsoleted and removed. A new 13298file, cmeval.c subsumes the functionality. 13299 13300A 16-bit (DOS) version of AcpiExec has been developed. The 13301makefile is under the acpiexec directory. 13302