changes.txt revision 197104
1---------------------------------------- 203 September 2009. Summary of changes for version 20090903: 3 4This release is available at www.acpica.org/downloads 5 61) ACPI CA Core Subsystem: 7 8For Windows Vista compatibility, added the automatic execution of an _INI 9method located at the namespace root (\_INI). This method is executed at 10table load time. This support is in addition to the automatic execution of 11\_SB._INI. Lin Ming. 12 13Fixed a possible memory leak in the interpreter for AML package objects if 14the package initializer list is longer than the defined size of the package. 15This apparently can only happen if the BIOS changes the package size on the 16fly (seen in a _PSS object), as ASL compilers do not allow this. The 17interpreter will truncate the package to the defined size (and issue an error 18message), but previously could leave the extra objects undeleted if they were 19pre-created during the argument processing (such is the case if the package 20consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 21 22Fixed a problem seen when a Buffer or String is stored to itself via ASL. 23This has been reported in the field. Previously, ACPICA would zero out the 24buffer/string. Now, the operation is treated as a noop. Provides Windows 25compatibility. ACPICA BZ 803. Lin Ming. 26 27Removed an extraneous error message for ASL constructs of the form 28Store(LocalX,LocalX) when LocalX is uninitialized. These curious statements 29are seen in many BIOSs and are once again treated as NOOPs and no error is 30emitted when they are encountered. ACPICA BZ 785. 31 32Fixed an extraneous warning message if a _DSM reserved method returns a 33Package object. _DSM can return any type of object, so validation on the 34return type cannot be performed. ACPICA BZ 802. 35 36Example Code and Data Size: These are the sizes for the OS-independent 37acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 38debug version of the code includes the debug output trace mechanism and has a 39much larger code and data size. 40 41 Previous Release: 42 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 43 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 44 Current Release: 45 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 46 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 47 482) iASL Compiler/Disassembler and Tools: 49 50iASL: Fixed a problem with the use of the Alias operator and Resource 51Templates. The correct alias is now constructed and no error is emitted. 52ACPICA BZ 738. 53 54iASL: Implemented the -I option to specify additional search directories for 55include files. Allows multiple additional search paths for include files. 56Directories are searched in the order specified on the command line (after 57the local directory is searched.) ACPICA BZ 800. 58 59iASL: Fixed a problem where the full pathname for include files was not 60emitted for warnings/errors. This caused the IDE support to not work 61properly. ACPICA BZ 765. 62 63iASL: Implemented the -@ option to specify a Windows-style response file 64containing additional command line options. ACPICA BZ 801. 65 66AcpiExec: Added support to load multiple AML files simultaneously (such as a 67DSDT and multiple SSDTs). Also added support for wildcards within the AML 68pathname. These features allow all machine tables to be easily loaded and 69debugged together. ACPICA BZ 804. 70 71Disassembler: Added missing support for disassembly of HEST table Error Bank 72subtables. 73 74---------------------------------------- 7530 July 2009. Summary of changes for version 20090730: 76 77This release is available at www.acpica.org/downloads 78 79The ACPI 4.0 implementation for ACPICA is complete with this release. 80 811) ACPI CA Core Subsystem: 82 83ACPI 4.0: Added header file support for all new and changed ACPI tables. 84Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 85for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 86EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 87have been some ACPI 4.0 changes to other existing tables. Split the large 88actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 89 90ACPI 4.0: Implemented predefined name validation for all new names. There are 9131 new names in ACPI 4.0. The predefined validation module was split into two 92files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 93 94Implemented support for so-called "module-level executable code". This is 95executable AML code that exists outside of any control method and is intended 96to be executed at table load time. Although illegal since ACPI 2.0, this type 97of code still exists and is apparently still being created. Blocks of this 98code are now detected and executed as intended. Currently, the code blocks 99must exist under either an If, Else, or While construct; these are the 100typical cases seen in the field. ACPICA BZ 762. Lin Ming. 101 102Implemented an automatic dynamic repair for predefined names that return 103nested Package objects. This applies to predefined names that are defined to 104return a variable-length Package of sub-packages. If the number of sub- 105packages is one, BIOS code is occasionally seen that creates a simple single 106package with no sub-packages. This code attempts to fix the problem by 107wrapping a new package object around the existing package. These methods can 108be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 109790. 110 111Fixed a regression introduced in 20090625 for the AcpiGetDevices interface. 112The _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 113BZ 793. 114 115Fixed a problem with AcpiReset where the reset would silently fail if the 116register was one of the protected I/O ports. AcpiReset now bypasses the port 117validation mechanism. This may eventually be driven into the AcpiRead/Write 118interfaces. 119 120Fixed a regression related to the recent update of the AcpiRead/Write 121interfaces. A sleep/suspend could fail if the optional PM2 Control register 122does not exist during an attempt to write the Bus Master Arbitration bit. 123(However, some hosts already delete the code that writes this bit, and the 124code may in fact be obsolete at this date.) ACPICA BZ 799. 125 126Fixed a problem where AcpiTerminate could fault if inadvertently called twice 127in succession. ACPICA BZ 795. 128 129Example Code and Data Size: These are the sizes for the OS-independent 130acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 131debug version of the code includes the debug output trace mechanism and has a 132much larger code and data size. 133 134 Previous Release: 135 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 136 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 137 Current Release: 138 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 139 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 140 1412) iASL Compiler/Disassembler and Tools: 142 143ACPI 4.0: Implemented disassembler support for all new ACPI tables and 144changes to existing tables. ACPICA BZ 775. 145 146---------------------------------------- 14725 June 2009. Summary of changes for version 20090625: 148 149This release is available at www.acpica.org/downloads 150 151The ACPI 4.0 Specification was released on June 16 and is available at 152www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 153continue for the next few releases. 154 1551) ACPI CA Core Subsystem: 156 157ACPI 4.0: Implemented interpreter support for the IPMI operation region 158address space. Includes support for bi-directional data buffers and an IPMI 159address space handler (to be installed by an IPMI device driver.) ACPICA BZ 160773. Lin Ming. 161 162ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 163support in both the header files and the disassembler. 164 165Completed a major update for the AcpiGetObjectInfo external interface. 166Changes include: 167 - Support for variable, unlimited length HID, UID, and CID strings. 168 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 169 - Call the _SxW power methods on behalf of a device object. 170 - Determine if a device is a PCI root bridge. 171 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 172These changes will require an update to all callers of this interface. See 173the updated ACPICA Programmer Reference for details. One new source file has 174been added - utilities/utids.c. ACPICA BZ 368, 780. 175 176Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 177transfers. The Value parameter has been extended from 32 bits to 64 bits in 178order to support new ACPI 4.0 tables. These changes will require an update to 179all callers of these interfaces. See the ACPICA Programmer Reference for 180details. ACPICA BZ 768. 181 182Fixed several problems with AcpiAttachData. The handler was not invoked when 183the host node was deleted. The data sub-object was not automatically deleted 184when the host node was deleted. The interface to the handler had an unused 185parameter, this was removed. ACPICA BZ 778. 186 187Enhanced the function that dumps ACPI table headers. All non-printable 188characters in the string fields are now replaced with '?' (Signature, OemId, 189OemTableId, and CompilerId.) ACPI tables with non-printable characters in 190these fields are occasionally seen in the field. ACPICA BZ 788. 191 192Fixed a problem with predefined method repair code where the code that 193attempts to repair/convert an object of incorrect type is only executed on 194the first time the predefined method is called. The mechanism that disables 195warnings on subsequent calls was interfering with the repair mechanism. 196ACPICA BZ 781. 197 198Fixed a possible memory leak in the predefined validation/repair code when a 199buffer is automatically converted to an expected string object. 200 201Removed obsolete 16-bit files from the distribution and from the current git 202tree head. ACPICA BZ 776. 203 204Example Code and Data Size: These are the sizes for the OS-independent 205acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 206debug version of the code includes the debug output trace mechanism and has a 207much larger code and data size. 208 209 Previous Release: 210 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 211 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 212 Current Release: 213 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 214 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 215 2162) iASL Compiler/Disassembler and Tools: 217 218ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 219operation region keyword. ACPICA BZ 771, 772. Lin Ming. 220 221ACPI 4.0: iASL - implemented compile-time validation support for all new 222predefined names and control methods (31 total). ACPICA BZ 769. 223 224---------------------------------------- 22521 May 2009. Summary of changes for version 20090521: 226 227This release is available at www.acpica.org/downloads 228 2291) ACPI CA Core Subsystem: 230 231Disabled the preservation of the SCI enable bit in the PM1 control register. 232The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 233a "preserved" bit - "OSPM always preserves this bit position", section 2344.7.3.2.1. However, some machines fail if this bit is in fact preserved 235because the bit needs to be explicitly set by the OS as a workaround. No 236machines fail if the bit is not preserved. Therefore, ACPICA no longer 237attempts to preserve this bit. 238 239Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 240incorrectly formed _PRT package could cause a fault. Added validation to 241ensure that each package element is actually a sub-package. 242 243Implemented a new interface to install or override a single control method, 244AcpiInstallMethod. This interface is useful when debugging in order to repair 245an existing method or to install a missing method without having to override 246the entire ACPI table. See the ACPICA Programmer Reference for use and 247examples. Lin Ming, Bob Moore. 248 249Fixed several reference count issues with the DdbHandle object that is 250created from a Load or LoadTable operator. Prevent premature deletion of the 251object. Also, mark the object as invalid once the table has been unloaded. 252This is needed because the handle itself may not be deleted after the table 253unload, depending on whether it has been stored in a named object by the 254caller. Lin Ming. 255 256Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 257mutexes of the same sync level are acquired but then not released in strict 258opposite order, the internally maintained Current Sync Level becomes confused 259and can cause subsequent execution errors. ACPICA BZ 471. 260 261Changed the allowable release order for ASL mutex objects. The ACPI 4.0 262specification has been changed to make the SyncLevel for mutex objects more 263useful. When releasing a mutex, the SyncLevel of the mutex must now be the 264same as the current sync level. This makes more sense than the previous rule 265(SyncLevel less than or equal). This change updates the code to match the 266specification. 267 268Fixed a problem with the local version of the AcpiOsPurgeCache function. The 269(local) cache must be locked during all cache object deletions. Andrew 270Baumann. 271 272Updated the Load operator to use operation region interfaces. This replaces 273direct memory mapping with region access calls. Now, all region accesses go 274through the installed region handler as they should. 275 276Simplified and optimized the NsGetNextNode function. Reduced parameter count 277and reduced code for this frequently used function. 278 279Example Code and Data Size: These are the sizes for the OS-independent 280acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 281debug version of the code includes the debug output trace mechanism and has a 282much larger code and data size. 283 284 Previous Release: 285 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 286 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 287 Current Release: 288 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 289 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 290 2912) iASL Compiler/Disassembler and Tools: 292 293Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 294with sub-table disassembly and handling invalid sub-tables. Attempt recovery 295after an invalid sub-table ID. 296 297---------------------------------------- 29822 April 2009. Summary of changes for version 20090422: 299 300This release is available at www.acpica.org/downloads 301 3021) ACPI CA Core Subsystem: 303 304Fixed a compatibility issue with the recently released I/O port protection 305mechanism. For windows compatibility, 1) On a port protection violation, 306simply ignore the request and do not return an exception (allow the control 307method to continue execution.) 2) If only part of the request overlaps a 308protected port, read/write the individual ports that are not protected. Linux 309BZ 13036. Lin Ming 310 311Enhanced the execution of the ASL/AML BreakPoint operator so that it actually 312breaks into the AML debugger if the debugger is present. This matches the 313ACPI-defined behavior. 314 315Fixed several possible warnings related to the use of the configurable 316ACPI_THREAD_ID. This type can now be configured as either an integer or a 317pointer with no warnings. Also fixes several warnings in printf-like 318statements for the 64-bit build when the type is configured as a pointer. 319ACPICA BZ 766, 767. 320 321Fixed a number of possible warnings when compiling with gcc 4+ (depending on 322warning options.) Examples include printf formats, aliasing, unused globals, 323missing prototypes, missing switch default statements, use of non-ANSI 324library functions, use of non-ANSI constructs. See generate/unix/Makefile for 325a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 326 327Example Code and Data Size: These are the sizes for the OS-independent 328acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 329debug version of the code includes the debug output trace mechanism and has a 330much larger code and data size. 331 332 Previous Release: 333 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 334 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 335 Current Release: 336 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 337 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 338 3392) iASL Compiler/Disassembler and Tools: 340 341iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 342the 64-bit build. 343 344iASL: Fixed a problem where the Unix/Linux versions of the compiler could not 345correctly digest Windows/DOS formatted files (with CR/LF). 346 347iASL: Added a new option for "quiet mode" (-va) that produces only the 348compilation summary, not individual errors and warnings. Useful for large 349batch compilations. 350 351AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 352timeout that can be used to detect hang conditions during execution of AML 353code (includes both internal semaphores and AML-defined mutexes and events.) 354 355Added new makefiles for the generation of acpica in a generic unix-like 356environment. These makefiles are intended to generate the acpica tools and 357utilities from the original acpica git source tree structure. 358 359Test Suites: Updated and cleaned up the documentation files. Updated the 360copyrights to 2009, affecting all source files. Use the new version of iASL 361with quiet mode. Increased the number of available semaphores in the Windows 362OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 363an alternate implementation of the semaphore timeout to allow aslts to 364execute fully on Cygwin. 365 366---------------------------------------- 36720 March 2009. Summary of changes for version 20090320: 368 3691) ACPI CA Core Subsystem: 370 371Fixed a possible race condition between AcpiWalkNamespace and dynamic table 372unloads. Added a reader/writer locking mechanism to allow multiple concurrent 373namespace walks (readers), but block a dynamic table unload until it can gain 374exclusive write access to the namespace. This fixes a problem where a table 375unload could (possibly catastrophically) delete the portion of the namespace 376that is currently being examined by a walk. Adds a new file, utlock.c, that 377implements the reader/writer lock mechanism. ACPICA BZ 749. 378 379Fixed a regression introduced in version 20090220 where a change to the FADT 380handling could cause the ACPICA subsystem to access non-existent I/O ports. 381 382Modified the handling of FADT register and table (FACS/DSDT) addresses. The 383FADT can contain both 32-bit and 64-bit versions of these addresses. 384Previously, the 64-bit versions were favored, meaning that if both 32 and 64 385versions were valid, but not equal, the 64-bit version was used. This was 386found to cause some machines to fail. Now, in this case, the 32-bit version 387is used instead. This now matches the Windows behavior. 388 389Implemented a new mechanism to protect certain I/O ports. Provides Microsoft 390compatibility and protects the standard PC I/O ports from access via AML 391code. Adds a new file, hwvalid.c 392 393Fixed a possible extraneous warning message from the FADT support. The 394message warns of a 32/64 length mismatch between the legacy and GAS 395definitions for a register. 396 397Removed the obsolete AcpiOsValidateAddress OSL interface. This interface is 398made obsolete by the port protection mechanism above. It was previously used 399to validate the entire address range of an operation region, which could be 400incorrect if the range included illegal ports, but fields within the 401operation region did not actually access those ports. Validation is now 402performed on a per-field basis instead of the entire region. 403 404Modified the handling of the PM1 Status Register ignored bit (bit 11.) 405Ignored bits must be "preserved" according to the ACPI spec. Usually, this 406means a read/modify/write when writing to the register. However, for status 407registers, writing a one means clear the event. Writing a zero means preserve 408the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 409and the ACPICA code now simply always writes a zero to the ignored bit. 410 411Modified the handling of ignored bits for the PM1 A/B Control Registers. As 412per the ACPI specification, for the control registers, preserve 413(read/modify/write) all bits that are defined as either reserved or ignored. 414 415Updated the handling of write-only bits in the PM1 A/B Control Registers. 416When reading the register, zero the write-only bits as per the ACPI spec. 417ACPICA BZ 443. Lin Ming. 418 419Removed "Linux" from the list of supported _OSI strings. Linux no longer 420wants to reply true to this request. The Windows strings are the only paths 421through the AML that are tested and known to work properly. 422 423 Previous Release: 424 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 425 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 426 Current Release: 427 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 428 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 429 4302) iASL Compiler/Disassembler and Tools: 431 432Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 433aetables.c 434 435---------------------------------------- 43620 February 2009. Summary of changes for version 20090220: 437 4381) ACPI CA Core Subsystem: 439 440Optimized the ACPI register locking. Removed locking for reads from the ACPI 441bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 442not required when reading the single-bit registers. The 443AcpiGetRegisterUnlocked function is no longer needed and has been removed. 444This will improve performance for reads on these registers. ACPICA BZ 760. 445 446Fixed the parameter validation for AcpiRead/Write. Now return 447AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 448the register has an address of zero. Previously, these cases simply returned 449AE_OK. For optional registers such as PM1B status/enable/control, the caller 450should check for a valid register address before calling. ACPICA BZ 748. 451 452Renamed the external ACPI bit register access functions. Renamed 453AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 454functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 455Also, restructured the code for these functions by simplifying the code path 456and condensing duplicate code to reduce code size. 457 458Added new functions to transparently handle the possibly split PM1 A/B 459registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 460now handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 461746. 462 463Added a function to handle the PM1 control registers, AcpiHwWritePm1Control. 464This function writes both of the PM1 control registers (A/B). These registers 465are different than the PM1 A/B status and enable registers in that different 466values can be written to the A/B registers. Most notably, the SLP_TYP bits 467can be different, as per the values returned from the _Sx predefined methods. 468 469Removed an extra register write within AcpiHwClearAcpiStatus. This function 470was writing an optional PM1B status register twice. The existing call to the 471low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 472register. ACPICA BZ 751. 473 474Split out the PM1 Status registers from the FADT. Added new globals for these 475registers (A/B), similar to the way the PM1 Enable registers are handled. 476Instead of overloading the FADT Event Register blocks. This makes the code 477clearer and less prone to error. 478 479Fixed the warning message for when the platform contains too many ACPI tables 480for the default size of the global root table data structure. The calculation 481for the truncation value was incorrect. 482 483Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 484obsolete macro, since it is now a simple reference to ->common.type. There 485were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 486 487Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 488TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 489simply SLEEP_TYPE. ACPICA BZ 754. 490 491Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 492function is only needed on 64-bit host operating systems and is thus not 493included for 32-bit hosts. 494 495Debug output: print the input and result for invocations of the _OSI reserved 496control method via the ACPI_LV_INFO debug level. Also, reduced some of the 497verbosity of this debug level. Len Brown. 498 499Example Code and Data Size: These are the sizes for the OS-independent 500acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 501debug version of the code includes the debug output trace mechanism and has a 502much larger code and data size. 503 504 Previous Release: 505 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 506 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 507 Current Release: 508 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 509 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 510 5112) iASL Compiler/Disassembler and Tools: 512 513Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 514various legal performance profiles. 515 516---------------------------------------- 51723 January 2009. Summary of changes for version 20090123: 518 5191) ACPI CA Core Subsystem: 520 521Added the 2009 copyright to all module headers and signons. This affects 522virtually every file in the ACPICA core subsystem, the iASL compiler, and 523the tools/utilities. 524 525Implemented a change to allow the host to override any ACPI table, including 526dynamically loaded tables. Previously, only the DSDT could be replaced by the 527host. With this change, the AcpiOsTableOverride interface is called for each 528table found in the RSDT/XSDT during ACPICA initialization, and also whenever 529a table is dynamically loaded via the AML Load operator. 530 531Updated FADT flag definitions, especially the Boot Architecture flags. 532 533Debugger: For the Find command, automatically pad the input ACPI name with 534underscores if the name is shorter than 4 characters. This enables a match 535with the actual namespace entry which is itself padded with underscores. 536 537Example Code and Data Size: These are the sizes for the OS-independent 538acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 539debug version of the code includes the debug output trace mechanism and has a 540much larger code and data size. 541 542 Previous Release: 543 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 544 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 545 Current Release: 546 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 547 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 548 5492) iASL Compiler/Disassembler and Tools: 550 551Fix build error under Bison-2.4. 552 553Dissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 554flags. Now decode all flags, regardless of the FADT version. Flag output 555includes the FADT version which first defined each flag. 556 557The iASL -g option now dumps the RSDT to a file (in addition to the FADT and 558DSDT). Windows only. 559 560---------------------------------------- 56104 December 2008. Summary of changes for version 20081204: 562 5631) ACPI CA Core Subsystem: 564 565The ACPICA Programmer Reference has been completely updated and revamped for 566this release. This includes updates to the external interfaces, OSL 567interfaces, the overview sections, and the debugger reference. 568 569Several new ACPICA interfaces have been implemented and documented in the 570programmer reference: 571AcpiReset - Writes the reset value to the FADT-defined reset register. 572AcpiDisableAllGpes - Disable all available GPEs. 573AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 574AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 575AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 576AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 577AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 578 579Most of the public ACPI hardware-related interfaces have been moved to a new 580file, components/hardware/hwxface.c 581 582Enhanced the FADT parsing and low-level ACPI register access: The ACPI 583register lengths within the FADT are now used, and the low level ACPI 584register access no longer hardcodes the ACPI register lengths. Given that 585there may be some risk in actually trusting the FADT register lengths, a run- 586time option was added to fall back to the default hardcoded lengths if the 587FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 588option is set to true for now, and a warning is issued if a suspicious FADT 589register length is overridden with the default value. 590 591Fixed a reference count issue in NsRepairObject. This problem was introduced 592in version 20081031 as part of a fix to repair Buffer objects within 593Packages. Lin Ming. 594 595Added semaphore support to the Linux/Unix application OS-services layer 596(OSL). ACPICA BZ 448. Lin Ming. 597 598Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 599be implemented in the OSL, or will binary semaphores be used instead. 600 601Example Code and Data Size: These are the sizes for the OS-independent 602acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 603debug version of the code includes the debug output trace mechanism and has a 604much larger code and data size. 605 606 Previous Release: 607 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 608 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 609 Current Release: 610 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 611 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 612 6132) iASL Compiler/Disassembler and Tools: 614 615iASL: Completed the '-e' option to include additional ACPI tables in order to 616aid with disassembly and External statement generation. ACPICA BZ 742. Lin 617Ming. 618 619iASL: Removed the "named object in while loop" error. The compiler cannot 620determine how many times a loop will execute. ACPICA BZ 730. 621 622Disassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 623BZ 743. 624 625Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 626 627---------------------------------------- 62831 October 2008. Summary of changes for version 20081031: 629 6301) ACPI CA Core Subsystem: 631 632Restructured the ACPICA header files into public/private. acpi.h now includes 633only the "public" acpica headers. All other acpica headers are "private" and 634should not be included by acpica users. One new file, accommon.h is used to 635include the commonly used private headers for acpica code generation. Future 636plans include moving all private headers to a new subdirectory. 637 638Implemented an automatic Buffer->String return value conversion for 639predefined ACPI methods. For these methods (such as _BIF), added automatic 640conversion for return objects that are required to be a String, but a Buffer 641was found instead. This can happen when reading string battery data from an 642operation region, because it used to be difficult to convert the data from 643buffer to string from within the ASL. Ensures that the host OS is provided 644with a valid null-terminated string. Linux BZ 11822. 645 646Updated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 647into two: one for the 32-bit vector, another for the 64-bit vector. This is 648required because the host OS must setup the wake much differently for each 649vector (real vs. protected mode, etc.) and the interface itself should not be 650deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 651interface, as it served no purpose (only the firmware reads the vector, OS 652only writes the vector.) ACPICA BZ 731. 653 654Implemented a mechanism to escape infinite AML While() loops. Added a loop 655counter to force exit from AML While loops if the count becomes too large. 656This can occur in poorly written AML when the hardware does not respond 657within a while loop and the loop does not implement a timeout. The maximum 658loop count is configurable. A new exception code is returned when a loop is 659broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 660 661Optimized the execution of AML While loops. Previously, a control state 662object was allocated and freed for each execution of the loop. The 663optimization is to simply reuse the control state for each iteration. This 664speeds up the raw loop execution time by about 5%. 665 666Enhanced the implicit return mechanism. For Windows compatibility, return an 667implicit integer of value zero for methods that contain no executable code. 668Such methods are seen in the field as stubs (presumably), and can cause 669drivers to fail if they expect a return value. Lin Ming. 670 671Allow multiple backslashes as root prefixes in namepaths. In a fully 672qualified namepath, allow multiple backslash prefixes. This can happen (and 673is seen in the field) because of the use of a double-backslash in strings 674(since backslash is the escape character) causing confusion. ACPICA BZ 739 675Lin Ming. 676 677Emit a warning if two different FACS or DSDT tables are discovered in the 678FADT. Checks if there are two valid but different addresses for the FACS and 679DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 680 681Consolidated the method argument count validation code. Merged the code that 682validates control method argument counts into the predefined validation 683module. Eliminates possible multiple warnings for incorrect argument counts. 684 685Implemented ACPICA example code. Includes code for ACPICA initialization, 686handler installation, and calling a control method. Available at 687source/tools/examples. 688 689Added a global pointer for FACS table to simplify internal FACS access. Use 690the global pointer instead of using AcpiGetTableByIndex for each FACS access. 691This simplifies the code for the Global Lock and the Firmware Waking 692Vector(s). 693 694Example Code and Data Size: These are the sizes for the OS-independent 695acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 696debug version of the code includes the debug output trace mechanism and has a 697much larger code and data size. 698 699 Previous Release: 700 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 701 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 702 Current Release: 703 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 704 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 705 7062) iASL Compiler/Disassembler and Tools: 707 708iASL: Improved disassembly of external method calls. Added the -e option to 709allow the inclusion of additional ACPI tables to help with the disassembly of 710method invocations and the generation of external declarations during the 711disassembly. Certain external method invocations cannot be disassembled 712properly without the actual declaration of the method. Use the -e option to 713include the table where the external method(s) are actually declared. Most 714useful for disassembling SSDTs that make method calls back to the master 715DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 716-e dsdt.aml ssdt1.aml 717 718iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 719problem where the use of an alias within a namepath would result in a not 720found error or cause the compiler to fault. Also now allows forward 721references from the Alias operator itself. ACPICA BZ 738. 722 723---------------------------------------- 72426 September 2008. Summary of changes for version 20080926: 725 7261) ACPI CA Core Subsystem: 727 728Designed and implemented a mechanism to validate predefined ACPI methods and 729objects. This code validates the predefined ACPI objects (objects whose names 730start with underscore) that appear in the namespace, at the time they are 731evaluated. The argument count and the type of the returned object are 732validated against the ACPI specification. The purpose of this validation is 733to detect problems with the BIOS-implemented predefined ACPI objects before 734the results are returned to the ACPI-related drivers. Future enhancements may 735include actual repair of incorrect return objects where possible. Two new 736files are nspredef.c and acpredef.h. 737 738Fixed a fault in the AML parser if a memory allocation fails during the Op 739completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 740 741Fixed an issue with implicit return compatibility. This change improves the 742implicit return mechanism to be more compatible with the MS interpreter. Lin 743Ming, ACPICA BZ 349. 744 745Implemented support for zero-length buffer-to-string conversions. Allow zero 746length strings during interpreter buffer-to-string conversions. For example, 747during the ToDecimalString and ToHexString operators, as well as implicit 748conversions. Fiodor Suietov, ACPICA BZ 585. 749 750Fixed two possible memory leaks in the error exit paths of 751AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 752similar in that they use a stack of state objects in order to eliminate 753recursion. The stack must be fully unwound and deallocated if an error 754occurs. Lin Ming. ACPICA BZ 383. 755 756Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 757ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 758Moore ACPICA BZ 442. 759 760Removed the obsolete version number in module headers. Removed the 761"$Revision" number that appeared in each module header. This version number 762was useful under SourceSafe and CVS, but has no meaning under git. It is not 763only incorrect, it could also be misleading. 764 765Example Code and Data Size: These are the sizes for the OS-independent 766acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 767debug version of the code includes the debug output trace mechanism and has a 768much larger code and data size. 769 770 Previous Release: 771 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 772 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 773 Current Release: 774 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 775 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 776 777---------------------------------------- 77829 August 2008. Summary of changes for version 20080829: 779 7801) ACPI CA Core Subsystem: 781 782Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 783Reference. Changes include the elimination of cheating on the Object field 784for the DdbHandle subtype, addition of a reference class field to 785differentiate the various reference types (instead of an AML opcode), and the 786cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 787 788Reduce an error to a warning for an incorrect method argument count. 789Previously aborted with an error if too few arguments were passed to a 790control method via the external ACPICA interface. Now issue a warning instead 791and continue. Handles the case where the method inadvertently declares too 792many arguments, but does not actually use the extra ones. Applies mainly to 793the predefined methods. Lin Ming. Linux BZ 11032. 794 795Disallow the evaluation of named object types with no intrinsic value. Return 796AE_TYPE for objects that have no value and therefore evaluation is undefined: 797Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 798these types were allowed, but an exception would be generated at some point 799during the evaluation. Now, the error is generated up front. 800 801Fixed a possible memory leak in the AcpiNsGetExternalPathname function 802(nsnames.c). Fixes a leak in the error exit path. 803 804Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 805levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 806interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 807ACPI_LV_EVENTS. 808 809Removed obsolete and/or unused exception codes from the acexcep.h header. 810There is the possibility that certain device drivers may be affected if they 811use any of these exceptions. 812 813The ACPICA documentation has been added to the public git source tree, under 814acpica/documents. Included are the ACPICA programmer reference, the iASL 815compiler reference, and the changes.txt release logfile. 816 817Example Code and Data Size: These are the sizes for the OS-independent 818acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 819debug version of the code includes the debug output trace mechanism and has a 820much larger code and data size. 821 822 Previous Release: 823 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 824 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 825 Current Release: 826 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 827 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 828 8292) iASL Compiler/Disassembler and Tools: 830 831Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 832defines _SCP with 3 arguments. Previous versions defined it with only 1 833argument. iASL now allows both definitions. 834 835iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 836length subtables when disassembling ACPI tables. Also fixed a couple of 837errors where a full 16-bit table type field was not extracted from the input 838properly. 839 840acpisrc: Improve comment counting mechanism for generating source code 841statistics. Count first and last lines of multi-line comments as whitespace, 842not comment lines. Handle Linux legal header in addition to standard acpica 843header. 844 845---------------------------------------- 846 84729 July 2008. Summary of changes for version 20080729: 848 849This release is available at http://acpica.org/downloads 850Direct git access via http://www.acpica.org/repos/acpica.git 851 8521) ACPI CA Core Subsystem: 853 854Fix a possible deadlock in the GPE dispatch. Remove call to 855AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 856to acquire the GPE lock but can deadlock since the GPE lock is already held 857at dispatch time. This code was introduced in version 20060831 as a response 858to Linux BZ 6881 and has since been removed from Linux. 859 860Add a function to dereference returned reference objects. Examines the return 861object from a call to AcpiEvaluateObject. Any Index or RefOf references are 862automatically dereferenced in an attempt to return something useful (these 863reference types cannot be converted into an external ACPI_OBJECT.) Provides 864MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 865 866x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 867subtables for the MADT and one new subtable for the SRAT. Includes 868disassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 869Specification, June 2008. 870 871Additional error checking for pathname utilities. Add error check after all 872calls to AcpiNsGetPathnameLength. Add status return from 873AcpiNsBuildExternalPath and check after all calls. Add parameter validation 874to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 875 876Return status from the global init function AcpiUtGlobalInitialize. This is 877used by both the kernel subsystem and the utilities such as iASL compiler. 878The function could possibly fail when the caches are initialized. Yang Yi. 879 880Add a function to decode reference object types to strings. Created for 881improved error messages. 882 883Improve object conversion error messages. Better error messages during object 884conversion from internal to the external ACPI_OBJECT. Used for external calls 885to AcpiEvaluateObject. 886 887Example Code and Data Size: These are the sizes for the OS-independent 888acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 889debug version of the code includes the debug output trace mechanism and has a 890much larger code and data size. 891 892 Previous Release: 893 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 894 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 895 Current Release: 896 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 897 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 898 8992) iASL Compiler/Disassembler and Tools: 900 901Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 902introduced in version 20080701. If the object being evaluated (via execute 903command) is not a method, the debugger can hang while trying to obtain non- 904existent parameters. 905 906iASL: relax error for using reserved "_T_x" identifiers. These names can 907appear in a disassembled ASL file if they were emitted by the original 908compiler. Instead of issuing an error or warning and forcing the user to 909manually change these names, issue a remark instead. 910 911iASL: error if named object created in while loop. Emit an error if any named 912object is created within a While loop. If allowed, this code will generate a 913run-time error on the second iteration of the loop when an attempt is made to 914create the same named object twice. ACPICA bugzilla 730. 915 916iASL: Support absolute pathnames for include files. Add support for absolute 917pathnames within the Include operator. previously, only relative pathnames 918were supported. 919 920iASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 921The ACPI spec requires one interrupt minimum. BZ 423 922 923iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 924Handles the case for the Interrupt Resource Descriptor where 925the ResourceSource argument is omitted but ResourceSourceIndex 926is present. Now leave room for the Index. BZ 426 927 928iASL: Prevent error message if CondRefOf target does not exist. Fixes cases 929where an error message is emitted if the target does not exist. BZ 516 930 931iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 932(get ACPI tables on Windows). This was apparently broken in version 20070919. 933 934AcpiXtract: Handle EOF while extracting data. Correctly handle the case where 935the EOF happens immediately after the last table in the input file. Print 936completion message. Previously, no message was displayed in this case. 937 938---------------------------------------- 93901 July 2008. Summary of changes for version 20080701: 940 941This release is available at http://acpica.org/downloads 942Direct git access via http://www.acpica.org/repos/acpica.git 943 9440) Git source tree / acpica.org 945 946Fixed a problem where a git-clone from http would not transfer the entire 947source tree. 948 9491) ACPI CA Core Subsystem: 950 951Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 952enable bit. Now performs a read-change-write of the enable register instead 953of simply writing out the cached enable mask. This will prevent inadvertent 954enabling of GPEs if a rogue GPE is received during initialization (before GPE 955handlers are installed.) 956 957Implemented a copy for dynamically loaded tables. Previously, dynamically 958loaded tables were simply mapped - but on some machines this memory is 959corrupted after suspend. Now copy the table to a local buffer. For the 960OpRegion case, added checksum verify. Use the table length from the table 961header, not the region length. For the Buffer case, use the table length 962also. Dennis Noordsij, Bob Moore. BZ 10734 963 964Fixed a problem where the same ACPI table could not be dynamically loaded and 965unloaded more than once. Without this change, a table cannot be loaded again 966once it has been loaded/unloaded one time. The current mechanism does not 967unregister a table upon an unload. During a load, if the same table is found, 968this no longer returns an exception. BZ 722 969 970Fixed a problem where the wrong descriptor length was calculated for the 971EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 972are calculated as 12 bytes long, but the actual length in the internal 973descriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 974by Linn Crosetto. BZ 728 975 976Fixed a possible memory leak in the Unload operator. The DdbHandle returned 977by Load() did not have its reference count decremented during unload, leading 978to a memory leak. Lin Ming. BZ 727 979 980Fixed a possible memory leak when deleting thermal/processor objects. Any 981associated notify handlers (and objects) were not being deleted. Fiodor 982Suietov. BZ 506 983 984Fixed the ordering of the ASCII names in the global mutex table to match the 985actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 986Vegard Nossum. BZ 726 987 988Enhanced the AcpiGetObjectInfo interface to return the number of required 989arguments if the object is a control method. Added this call to the debugger 990so the proper number of default arguments are passed to a method. This 991prevents a warning when executing methods from AcpiExec. 992 993Added a check for an invalid handle in AcpiGetObjectInfo. Return 994AE_BAD_PARAMETER if input handle is invalid. BZ 474 995 996Fixed an extraneous warning from exconfig.c on the 64-bit build. 997 998Example Code and Data Size: These are the sizes for the OS-independent 999acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1000debug version of the code includes the debug output trace mechanism and has a 1001much larger code and data size. 1002 1003 Previous Release: 1004 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1005 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1006 Current Release: 1007 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1008 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1009 10102) iASL Compiler/Disassembler and Tools: 1011 1012iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 1013resource descriptor names. 1014 1015iASL: Detect invalid ASCII characters in input (windows version). Removed the 1016"-CF" flag from the flex compile, enables correct detection of non-ASCII 1017characters in the input. BZ 441 1018 1019iASL: Eliminate warning when result of LoadTable is not used. Eliminate the 1020"result of operation not used" warning when the DDB handle returned from 1021LoadTable is not used. The warning is not needed. BZ 590 1022 1023AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 1024pass address of table to the AML. Added option to disable OpRegion simulation 1025to allow creation of an OpRegion with a real address that was passed to _CFG. 1026All of this allows testing of the Load and Unload operators from AcpiExec. 1027 1028Debugger: update tables command for unloaded tables. Handle unloaded tables 1029and use the standard table header output routine. 1030 1031---------------------------------------- 103209 June 2008. Summary of changes for version 20080609: 1033 10341) ACPI CA Core Subsystem: 1035 1036Implemented a workaround for reversed _PRT entries. A significant number of 1037BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 1038change dynamically detects and repairs this problem. Provides compatibility 1039with MS ACPI. BZ 6859 1040 1041Simplified the internal ACPI hardware interfaces to eliminate the locking 1042flag parameter from Register Read/Write. Added a new external interface, 1043AcpiGetRegisterUnlocked. 1044 1045Fixed a problem where the invocation of a GPE control method could hang. This 1046was a regression introduced in 20080514. The new method argument count 1047validation mechanism can enter an infinite loop when a GPE method is 1048dispatched. Problem fixed by removing the obsolete code that passed GPE block 1049information to the notify handler via the control method parameter pointer. 1050 1051Fixed a problem where the _SST execution status was incorrectly returned to 1052the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 105320080514. _SST is optional and a NOT_FOUND exception should never be 1054returned. BZ 716 1055 1056Fixed a problem where a deleted object could be accessed from within the AML 1057parser. This was a regression introduced in version 20080123 as a fix for the 1058Unload operator. Lin Ming. BZ 10669 1059 1060Cleaned up the debug operand dump mechanism. Eliminated unnecessary operands 1061and eliminated the use of a negative index in a loop. Operands are now 1062displayed in the correct order, not backwards. This also fixes a regression 1063introduced in 20080514 on 64-bit systems where the elimination of 1064ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 1065 1066Fixed a possible memory leak in EvPciConfigRegionSetup where the error exit 1067path did not delete a locally allocated structure. 1068 1069Updated definitions for the DMAR and SRAT tables to synchronize with the 1070current specifications. Includes disassembler support. 1071 1072Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 1073loop termination value was used. Loop terminated on iteration early, missing 1074one mutex. Linn Crosetto 1075 1076Example Code and Data Size: These are the sizes for the OS-independent 1077acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1078debug version of the code includes the debug output trace mechanism and has a 1079much larger code and data size. 1080 1081 Previous Release: 1082 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1083 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1084 Current Release: 1085 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1086 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1087 10882) iASL Compiler/Disassembler and Tools: 1089 1090Disassembler: Implemented support for EisaId() within _CID objects. Now 1091disassemble integer _CID objects back to EisaId invocations, including 1092multiple integers within _CID packages. Includes single-step support for 1093debugger also. 1094 1095Disassembler: Added support for DMAR and SRAT table definition changes. 1096 1097---------------------------------------- 109814 May 2008. Summary of changes for version 20080514: 1099 11001) ACPI CA Core Subsystem: 1101 1102Fixed a problem where GPEs were enabled too early during the ACPICA 1103initialization. This could lead to "handler not installed" errors on some 1104machines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 1105ensures that all operation regions and devices throughout the namespace have 1106been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 1107 1108Implemented a change to the enter sleep code. Moved execution of the _GTS 1109method to just before setting sleep enable bit. The execution was moved from 1110AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 1111immediately before the SLP_EN bit is set, as per the ACPI specification. 1112Luming Yu, BZ 1653. 1113 1114Implemented a fix to disable unknown GPEs (2nd version). Now always disable 1115the GPE, even if ACPICA thinks that that it is already disabled. It is 1116possible that the AML or some other code has enabled the GPE unbeknownst to 1117the ACPICA code. 1118 1119Fixed a problem with the Field operator where zero-length fields would return 1120an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 1121field declarations in Field(), BankField(), and IndexField(). BZ 10606. 1122 1123Implemented a fix for the Load operator, now load the table at the namespace 1124root. This reverts a change introduced in version 20071019. The table is now 1125loaded at the namespace root even though this goes against the ACPI 1126specification. This provides compatibility with other ACPI implementations. 1127The ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 1128 1129Fixed a problem where ACPICA would not Load() tables with unusual signatures. 1130Now ignore ACPI table signature for Load() operator. Only "SSDT" is 1131acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 1132Therefore, signature validation is worthless. Apparently MS ACPI accepts such 1133signatures, ACPICA must be compatible. BZ 10454. 1134 1135Fixed a possible negative array index in AcpiUtValidateException. Added NULL 1136fields to the exception string arrays to eliminate a -1 subtraction on the 1137SubStatus field. 1138 1139Updated the debug tracking macros to reduce overall code and data size. 1140Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 1141instead of pointers to static strings. Jan Beulich and Bob Moore. 1142 1143Implemented argument count checking in control method invocation via 1144AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 1145many. This applies only to extern programmatic control method execution, not 1146method-to-method calls within the AML. Lin Ming. 1147 1148Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 1149longer needed, especially with the removal of 16-bit support. It was replaced 1150mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 115132/64-bit platforms is required. 1152 1153Added the C const qualifier for appropriate string constants -- mostly 1154MODULE_NAME and printf format strings. Jan Beulich. 1155 1156Example Code and Data Size: These are the sizes for the OS-independent 1157acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1158debug version of the code includes the debug output trace mechanism and has a 1159much larger code and data size. 1160 1161 Previous Release: 1162 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1163 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1164 Current Release: 1165 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1166 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1167 11682) iASL Compiler/Disassembler and Tools: 1169 1170Implemented ACPI table revision ID validation in the disassembler. Zero is 1171always invalid. For DSDTs, the ID controls the interpreter integer width. 1 1172means 32-bit and this is unusual. 2 or greater is 64-bit. 1173 1174---------------------------------------- 117521 March 2008. Summary of changes for version 20080321: 1176 11771) ACPI CA Core Subsystem: 1178 1179Implemented an additional change to the GPE support in order to suppress 1180spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 1181disable incoming GPEs that are neither enabled nor disabled -- meaning that 1182the GPE is unknown to the system. This should prevent future interrupt floods 1183from that GPE. BZ 6217 (Zhang Rui) 1184 1185Fixed a problem where NULL package elements were not returned to the 1186AcpiEvaluateObject interface correctly. The element was simply ignored 1187instead of returning a NULL ACPI_OBJECT package element, potentially causing 1188a buffer overflow and/or confusing the caller who expected a fixed number of 1189elements. BZ 10132 (Lin Ming, Bob Moore) 1190 1191Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 1192Qword), Field, BankField, and IndexField operators when invoked from inside 1193an executing control method. In this case, these operators created namespace 1194nodes that were incorrectly left marked as permanent nodes instead of 1195temporary nodes. This could cause a problem if there is race condition 1196between an exiting control method and a running namespace walk. (Reported by 1197Linn Crosetto) 1198 1199Fixed a problem where the CreateField and CreateXXXField operators would 1200incorrectly allow duplicate names (the name of the field) with no exception 1201generated. 1202 1203Implemented several changes for Notify handling. Added support for new Notify 1204values (ACPI 2.0+) and improved the Notify debug output. Notify on 1205PowerResource objects is no longer allowed, as per the ACPI specification. 1206(Bob Moore, Zhang Rui) 1207 1208All Reference Objects returned via the AcpiEvaluateObject interface are now 1209marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 1210NULL objects - either NULL package elements or unresolved named references. 1211 1212Fixed a problem where an extraneous debug message was produced for package 1213objects (when debugging enabled). The message "Package List length larger 1214than NumElements count" is now produced in the correct case, and is now an 1215error message rather than a debug message. Added a debug message for the 1216opposite case, where NumElements is larger than the Package List (the package 1217will be padded out with NULL elements as per the ACPI spec.) 1218 1219Implemented several improvements for the output of the ASL "Debug" object to 1220clarify and keep all data for a given object on one output line. 1221 1222Fixed two size calculation issues with the variable-length Start Dependent 1223resource descriptor. 1224 1225Example Code and Data Size: These are the sizes for the OS-independent 1226acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1227debug version of the code includes the debug output trace mechanism and has 1228a much larger code and data size. 1229 1230 Previous Release: 1231 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1232 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1233 Current Release: 1234 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1235 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1236 12372) iASL Compiler/Disassembler and Tools: 1238 1239Fixed a problem with the use of the Switch operator where execution of the 1240containing method by multiple concurrent threads could cause an 1241AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 1242actual Switch opcode, it must be simulated with local named temporary 1243variables and if/else pairs. The solution chosen was to mark any method that 1244uses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 1245 1246---------------------------------------- 124713 February 2008. Summary of changes for version 20080213: 1248 12491) ACPI CA Core Subsystem: 1250 1251Implemented another MS compatibility design change for GPE/Notify handling. 1252GPEs are now cleared/enabled asynchronously to allow all pending notifies to 1253complete first. It is expected that the OSL will queue the enable request 1254behind all pending notify requests (may require changes to the local host OSL 1255in AcpiOsExecute). Alexey Starikovskiy. 1256 1257Fixed a problem where buffer and package objects passed as arguments to a 1258control method via the external AcpiEvaluateObject interface could cause an 1259AE_AML_INTERNAL exception depending on the order and type of operators 1260executed by the target control method. 1261 1262Fixed a problem where resource descriptor size optimization could cause a 1263problem when a _CRS resource template is passed to a _SRS method. The _SRS 1264resource template must use the same descriptors (with the same size) as 1265returned from _CRS. This change affects the following resource descriptors: 1266IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 1267 1268Fixed a problem where a CopyObject to RegionField, BankField, and IndexField 1269objects did not perform an implicit conversion as it should. These types must 1270retain their initial type permanently as per the ACPI specification. However, 1271a CopyObject to all other object types should not perform an implicit 1272conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 1273 1274Fixed a problem with the AcpiGetDevices interface where the mechanism to 1275match device CIDs did not examine the entire list of available CIDs, but 1276instead aborted on the first non-matching CID. Andrew Patterson. 1277 1278Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 1279inadvertently changed to return a 16-bit value instead of a 32-bit value, 1280truncating the upper dword of a 64-bit value. This macro is only used to 1281display debug output, so no incorrect calculations were made. Also, 1282reimplemented the macro so that a 64-bit shift is not performed by 1283inefficient compilers. 1284 1285Added missing va_end statements that should correspond with each va_start 1286statement. 1287 1288Example Code and Data Size: These are the sizes for the OS-independent 1289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1290debug version of the code includes the debug output trace mechanism and has 1291a much larger code and data size. 1292 1293 Previous Release: 1294 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1295 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1296 Current Release: 1297 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1298 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1299 13002) iASL Compiler/Disassembler and Tools: 1301 1302Implemented full disassembler support for the following new ACPI tables: 1303BERT, EINJ, and ERST. Implemented partial disassembler support for the 1304complicated HEST table. These tables support the Windows Hardware Error 1305Architecture (WHEA). 1306 1307---------------------------------------- 130823 January 2008. Summary of changes for version 20080123: 1309 13101) ACPI CA Core Subsystem: 1311 1312Added the 2008 copyright to all module headers and signons. This affects 1313virtually every file in the ACPICA core subsystem, the iASL compiler, and 1314the tools/utilities. 1315 1316Fixed a problem with the SizeOf operator when used with Package and Buffer 1317objects. These objects have deferred execution for some arguments, and the 1318execution is now completed before the SizeOf is executed. This problem caused 1319unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 13209558 1321 1322Implemented an enhancement to the interpreter "slack mode". In the absence of 1323an explicit return or an implicitly returned object from the last executed 1324opcode, a control method will now implicitly return an integer of value 0 for 1325Microsoft compatibility. (Lin Ming) BZ 392 1326 1327Fixed a problem with the Load operator where an exception was not returned in 1328the case where the table is already loaded. (Lin Ming) BZ 463 1329 1330Implemented support for the use of DDBHandles as an Indexed Reference, as per 1331the ACPI spec. (Lin Ming) BZ 486 1332 1333Implemented support for UserTerm (Method invocation) for the Unload operator 1334as per the ACPI spec. (Lin Ming) BZ 580 1335 1336Fixed a problem with the LoadTable operator where the OemId and OemTableId 1337input strings could cause unexpected failures if they were shorter than the 1338maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 1339 1340Implemented support for UserTerm (Method invocation) for the Unload operator 1341as per the ACPI spec. (Lin Ming) BZ 580 1342 1343Implemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 1344IBFT, UEFI, WDAT. Disassembler support is forthcoming. 1345 1346Example Code and Data Size: These are the sizes for the OS-independent 1347acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1348debug version of the code includes the debug output trace mechanism and has 1349a much larger code and data size. 1350 1351 Previous Release: 1352 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1353 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1354 Current Release: 1355 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1356 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1357 13582) iASL Compiler/Disassembler and Tools: 1359 1360Implemented support in the disassembler for checksum validation on incoming 1361binary DSDTs and SSDTs. If incorrect, a message is displayed within the table 1362header dump at the start of the disassembly. 1363 1364Implemented additional debugging information in the namespace listing file 1365created during compilation. In addition to the namespace hierarchy, the full 1366pathname to each namespace object is displayed. 1367 1368Fixed a problem with the disassembler where invalid ACPI tables could cause 1369faults or infinite loops. 1370 1371Fixed an unexpected parse error when using the optional "parameter types" 1372list in a control method declaration. (Lin Ming) BZ 397 1373 1374Fixed a problem where two External declarations with the same name did not 1375cause an error (Lin Ming) BZ 509 1376 1377Implemented support for full TermArgs (adding Argx, Localx and method 1378invocation) for the ParameterData parameter to the LoadTable operator. (Lin 1379Ming) BZ 583,587 1380 1381---------------------------------------- 138219 December 2007. Summary of changes for version 20071219: 1383 13841) ACPI CA Core Subsystem: 1385 1386Implemented full support for deferred execution for the TermArg string 1387arguments for DataTableRegion. This enables forward references and full 1388operand resolution for the three string arguments. Similar to OperationRegion 1389deferred argument execution.) Lin Ming. BZ 430 1390 1391Implemented full argument resolution support for the BankValue argument to 1392BankField. Previously, only constants were supported, now any TermArg may be 1393used. Lin Ming BZ 387, 393 1394 1395Fixed a problem with AcpiGetDevices where the search of a branch of the 1396device tree could be terminated prematurely. In accordance with the ACPI 1397specification, the search down the current branch is terminated if a device 1398is both not present and not functional (instead of just not present.) Yakui 1399Zhao. 1400 1401Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 1402the underlying AML code changed the GPE enable registers. Now, any unknown 1403incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 1404instead of simply ignored. Rui Zhang. 1405 1406Fixed a problem with Index Fields where the Index register was incorrectly 1407limited to a maximum of 32 bits. Now any size may be used. 1408 1409Fixed a couple memory leaks associated with "implicit return" objects when 1410the AML Interpreter slack mode is enabled. Lin Ming BZ 349 1411 1412Example Code and Data Size: These are the sizes for the OS-independent 1413acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1414debug version of the code includes the debug output trace mechanism and has 1415a much larger code and data size. 1416 1417 Previous Release: 1418 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1419 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1420 Current Release: 1421 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1422 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1423 1424---------------------------------------- 142514 November 2007. Summary of changes for version 20071114: 1426 14271) ACPI CA Core Subsystem: 1428 1429Implemented event counters for each of the Fixed Events, the ACPI SCI 1430(interrupt) itself, and control methods executed. Named 1431AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 1432should be useful for debugging and statistics. 1433 1434Implemented a new external interface, AcpiGetStatistics, to retrieve the 1435contents of the various event counters. Returns the current values for 1436AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 1437AcpiMethodCount. The interface can be expanded in the future if new counters 1438are added. Device drivers should use this interface rather than access the 1439counters directly. 1440 1441Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 1442the ShortDivide function worked incorrectly, causing problems with the BCD 1443functions with large input values. A truncation from 64-bit to 32-bit 1444inadvertently occurred. Internal BZ 435. Lin Ming 1445 1446Fixed a problem with Index references passed as method arguments. References 1447passed as arguments to control methods were dereferenced immediately (before 1448control was passed to the called method). The references are now correctly 1449passed directly to the called method. BZ 5389. Lin Ming 1450 1451Fixed a problem with CopyObject used in conjunction with the Index operator. 1452The reference was incorrectly dereferenced before the copy. The reference is 1453now correctly copied. BZ 5391. Lin Ming 1454 1455Fixed a problem with Control Method references within Package objects. These 1456references are now correctly generated. This completes the package 1457construction overhaul that began in version 20071019. 1458 1459Example Code and Data Size: These are the sizes for the OS-independent 1460acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1461debug version of the code includes the debug output trace mechanism and has 1462a much larger code and data size. 1463 1464 Previous Release: 1465 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1466 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1467 Current Release: 1468 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1469 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1470 1471 14722) iASL Compiler/Disassembler and Tools: 1473 1474The AcpiExec utility now installs handlers for all of the predefined 1475Operation Region types. New types supported are: PCI_Config, CMOS, and 1476PCIBARTarget. 1477 1478Fixed a problem with the 64-bit version of AcpiExec where the extended (64- 1479bit) address fields for the DSDT and FACS within the FADT were not being 1480used, causing truncation of the upper 32-bits of these addresses. Lin Ming 1481and Bob Moore 1482 1483---------------------------------------- 148419 October 2007. Summary of changes for version 20071019: 1485 14861) ACPI CA Core Subsystem: 1487 1488Fixed a problem with the Alias operator when the target of the alias is a 1489named ASL operator that opens a new scope -- Scope, Device, PowerResource, 1490Processor, and ThermalZone. In these cases, any children of the original 1491operator could not be accessed via the alias, potentially causing unexpected 1492AE_NOT_FOUND exceptions. (BZ 9067) 1493 1494Fixed a problem with the Package operator where all named references were 1495created as object references and left otherwise unresolved. According to the 1496ACPI specification, a Package can only contain Data Objects or references to 1497control methods. The implication is that named references to Data Objects 1498(Integer, Buffer, String, Package, BufferField, Field) should be resolved 1499immediately upon package creation. This is the approach taken with this 1500change. References to all other named objects (Methods, Devices, Scopes, 1501etc.) are all now properly created as reference objects. (BZ 5328) 1502 1503Reverted a change to Notify handling that was introduced in version 150420070508. This version changed the Notify handling from asynchronous to 1505fully synchronous (Device driver Notify handling with respect to the Notify 1506ASL operator). It was found that this change caused more problems than it 1507solved and was removed by most users. 1508 1509Fixed a problem with the Increment and Decrement operators where the type of 1510the target object could be unexpectedly and incorrectly changed. (BZ 353) 1511Lin Ming. 1512 1513Fixed a problem with the Load and LoadTable operators where the table 1514location within the namespace was ignored. Instead, the table was always 1515loaded into the root or current scope. Lin Ming. 1516 1517Fixed a problem with the Load operator when loading a table from a buffer 1518object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 1519 1520Fixed a problem with the Debug object where a store of a DdbHandle reference 1521object to the Debug object could cause a fault. 1522 1523Added a table checksum verification for the Load operator, in the case where 1524the load is from a buffer. (BZ 578). 1525 1526Implemented additional parameter validation for the LoadTable operator. The 1527length of the input strings SignatureString, OemIdString, and OemTableId are 1528now checked for maximum lengths. (BZ 582) Lin Ming. 1529 1530Example Code and Data Size: These are the sizes for the OS-independent 1531acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1532debug version of the code includes the debug output trace mechanism and has 1533a much larger code and data size. 1534 1535 Previous Release: 1536 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1537 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1538 Current Release: 1539 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1540 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1541 1542 15432) iASL Compiler/Disassembler: 1544 1545Fixed a problem where if a single file was specified and the file did not 1546exist, no error message was emitted. (Introduced with wildcard support in 1547version 20070917.) 1548 1549---------------------------------------- 155019 September 2007. Summary of changes for version 20070919: 1551 15521) ACPI CA Core Subsystem: 1553 1554Designed and implemented new external interfaces to install and remove 1555handlers for ACPI table-related events. Current events that are defined are 1556LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 1557they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 1558AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 1559 1560Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 1561(acpi_serialized option on Linux) could cause some systems to hang during 1562initialization. (Bob Moore) BZ 8171 1563 1564Fixed a problem where objects of certain types (Device, ThermalZone, 1565Processor, PowerResource) can be not found if they are declared and 1566referenced from within the same control method (Lin Ming) BZ 341 1567 1568Example Code and Data Size: These are the sizes for the OS-independent 1569acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1570debug version of the code includes the debug output trace mechanism and has 1571a much larger code and data size. 1572 1573 Previous Release: 1574 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1575 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1576 Current Release: 1577 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1578 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1579 1580 15812) iASL Compiler/Disassembler: 1582 1583Implemented support to allow multiple files to be compiled/disassembled in a 1584single invocation. This includes command line wildcard support for both the 1585Windows and Unix versions of the compiler. This feature simplifies the 1586disassembly and compilation of multiple ACPI tables in a single directory. 1587 1588---------------------------------------- 158908 May 2007. Summary of changes for version 20070508: 1590 15911) ACPI CA Core Subsystem: 1592 1593Implemented a Microsoft compatibility design change for the handling of the 1594Notify AML operator. Previously, notify handlers were dispatched and 1595executed completely asynchronously in a deferred thread. The new design 1596still executes the notify handlers in a different thread, but the original 1597thread that executed the Notify() now waits at a synchronization point for 1598the notify handler to complete. Some machines depend on a synchronous Notify 1599operator in order to operate correctly. 1600 1601Implemented support to allow Package objects to be passed as method 1602arguments to the external AcpiEvaluateObject interface. Previously, this 1603would return the AE_NOT_IMPLEMENTED exception. This feature had not been 1604implemented since there were no reserved control methods that required it 1605until recently. 1606 1607Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 1608contained invalid non-zero values in reserved fields could cause later 1609failures because these fields have meaning in later revisions of the FADT. 1610For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 1611are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 1612 1613Fixed a problem where the Global Lock handle was not properly updated if a 1614thread that acquired the Global Lock via executing AML code then attempted 1615to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 1616Liu. 1617 1618Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 1619could be corrupted if the interrupt being removed was at the head of the 1620list. Reported by Linn Crosetto. 1621 1622Example Code and Data Size: These are the sizes for the OS-independent 1623acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1624debug version of the code includes the debug output trace mechanism and has 1625a much larger code and data size. 1626 1627 Previous Release: 1628 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1629 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1630 Current Release: 1631 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1632 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1633 1634---------------------------------------- 163520 March 2007. Summary of changes for version 20070320: 1636 16371) ACPI CA Core Subsystem: 1638 1639Implemented a change to the order of interpretation and evaluation of AML 1640operand objects within the AML interpreter. The interpreter now evaluates 1641operands in the order that they appear in the AML stream (and the 1642corresponding ASL code), instead of in the reverse order (after the entire 1643operand list has been parsed). The previous behavior caused several subtle 1644incompatibilities with the Microsoft AML interpreter as well as being 1645somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 1646 1647Implemented a change to the ACPI Global Lock support. All interfaces to the 1648global lock now allow the same thread to acquire the lock multiple times. 1649This affects the AcpiAcquireGlobalLock external interface to the global lock 1650as well as the internal use of the global lock to support AML fields -- a 1651control method that is holding the global lock can now simultaneously access 1652AML fields that require global lock protection. Previously, in both cases, 1653this would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 1654AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 1655Controller. There is no change to the behavior of the AML Acquire operator, 1656as this can already be used to acquire a mutex multiple times by the same 1657thread. BZ 8066. With assistance from Alexey Starikovskiy. 1658 1659Fixed a problem where invalid objects could be referenced in the AML 1660Interpreter after error conditions. During operand evaluation, ensure that 1661the internal "Return Object" field is cleared on error and only valid 1662pointers are stored there. Caused occasional access to deleted objects that 1663resulted in "large reference count" warning messages. Valery Podrezov. 1664 1665Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 1666deeply nested control method invocations. BZ 7873, local BZ 487. Valery 1667Podrezov. 1668 1669Fixed an internal problem with the handling of result objects on the 1670interpreter result stack. BZ 7872. Valery Podrezov. 1671 1672Removed obsolete code that handled the case where AML_NAME_OP is the target 1673of a reference (Reference.Opcode). This code was no longer necessary. BZ 16747874. Valery Podrezov. 1675 1676Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 1677remnant from the previously discontinued 16-bit support. 1678 1679Example Code and Data Size: These are the sizes for the OS-independent 1680acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1681debug version of the code includes the debug output trace mechanism and has 1682a much larger code and data size. 1683 1684 Previous Release: 1685 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1686 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1687 Current Release: 1688 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1689 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1690 1691---------------------------------------- 169226 January 2007. Summary of changes for version 20070126: 1693 16941) ACPI CA Core Subsystem: 1695 1696Added the 2007 copyright to all module headers and signons. This affects 1697virtually every file in the ACPICA core subsystem, the iASL compiler, and 1698the utilities. 1699 1700Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 1701during a table load. A bad pointer was passed in the case where the DSDT is 1702overridden, causing a fault in this case. 1703 1704Example Code and Data Size: These are the sizes for the OS-independent 1705acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1706debug version of the code includes the debug output trace mechanism and has 1707a much larger code and data size. 1708 1709 Previous Release: 1710 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1711 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1712 Current Release: 1713 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1714 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1715 1716---------------------------------------- 171715 December 2006. Summary of changes for version 20061215: 1718 17191) ACPI CA Core Subsystem: 1720 1721Support for 16-bit ACPICA has been completely removed since it is no longer 1722necessary and it clutters the code. All 16-bit macros, types, and 1723conditional compiles have been removed, cleaning up and simplifying the code 1724across the entire subsystem. DOS support is no longer needed since the 1725bootable Linux firmware kit is now available. 1726 1727The handler for the Global Lock is now removed during AcpiTerminate to 1728enable a clean subsystem restart, via the implementation of the 1729AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 1730HP) 1731 1732Implemented enhancements to the multithreading support within the debugger 1733to enable improved multithreading debugging and evaluation of the subsystem. 1734(Valery Podrezov) 1735 1736Debugger: Enhanced the Statistics/Memory command to emit the total (maximum) 1737memory used during the execution, as well as the maximum memory consumed by 1738each of the various object types. (Valery Podrezov) 1739 1740Example Code and Data Size: These are the sizes for the OS-independent 1741acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1742debug version of the code includes the debug output trace mechanism and has 1743a much larger code and data size. 1744 1745 Previous Release: 1746 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1747 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1748 Current Release: 1749 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1750 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1751 1752 17532) iASL Compiler/Disassembler and Tools: 1754 1755AcpiExec: Implemented a new option (-m) to display full memory use 1756statistics upon subsystem/program termination. (Valery Podrezov) 1757 1758---------------------------------------- 175909 November 2006. Summary of changes for version 20061109: 1760 17611) ACPI CA Core Subsystem: 1762 1763Optimized the Load ASL operator in the case where the source operand is an 1764operation region. Simply map the operation region memory, instead of 1765performing a bytewise read. (Region must be of type SystemMemory, see 1766below.) 1767 1768Fixed the Load ASL operator for the case where the source operand is a 1769region field. A buffer object is also allowed as the source operand. BZ 480 1770 1771Fixed a problem where the Load ASL operator allowed the source operand to be 1772an operation region of any type. It is now restricted to regions of type 1773SystemMemory, as per the ACPI specification. BZ 481 1774 1775Additional cleanup and optimizations for the new Table Manager code. 1776 1777AcpiEnable will now fail if all of the required ACPI tables are not loaded 1778(FADT, FACS, DSDT). BZ 477 1779 1780Added #pragma pack(8/4) to acobject.h to ensure that the structures in this 1781header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 1782manually optimized to be aligned and will not work if it is byte-packed. 1783 1784Example Code and Data Size: These are the sizes for the OS-independent 1785acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1786debug version of the code includes the debug output trace mechanism and has 1787a much larger code and data size. 1788 1789 Previous Release: 1790 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1791 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1792 Current Release: 1793 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1794 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1795 1796 17972) iASL Compiler/Disassembler and Tools: 1798 1799Fixed a problem where the presence of the _OSI predefined control method 1800within complex expressions could cause an internal compiler error. 1801 1802AcpiExec: Implemented full region support for multiple address spaces. 1803SpaceId is now part of the REGION object. BZ 429 1804 1805---------------------------------------- 180611 October 2006. Summary of changes for version 20061011: 1807 18081) ACPI CA Core Subsystem: 1809 1810Completed an AML interpreter performance enhancement for control method 1811execution. Previously a 2-pass parse/execution, control methods are now 1812completely parsed and executed in a single pass. This improves overall 1813interpreter performance by ~25%, reduces code size, and reduces CPU stack 1814use. (Valery Podrezov + interpreter changes in version 20051202 that 1815eliminated namespace loading during the pass one parse.) 1816 1817Implemented _CID support for PCI Root Bridge detection. If the _HID does not 1818match the predefined PCI Root Bridge IDs, the _CID list (if present) is now 1819obtained and also checked for an ID match. 1820 1821Implemented additional support for the PCI _ADR execution: upsearch until a 1822device scope is found before executing _ADR. This allows PCI_Config 1823operation regions to be declared locally within control methods underneath 1824PCI device objects. 1825 1826Fixed a problem with a possible race condition between threads executing 1827AcpiWalkNamespace and the AML interpreter. This condition was removed by 1828modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 1829entries created during any concurrent control method execution. An 1830additional namespace race condition is known to exist between 1831AcpiWalkNamespace and the Load/Unload ASL operators and is still under 1832investigation. 1833 1834Restructured the AML ParseLoop function, breaking it into several 1835subfunctions in order to reduce CPU stack use and improve maintainability. 1836(Mikhail Kouzmich) 1837 1838AcpiGetHandle: Fix for parameter validation to detect invalid combinations 1839of prefix handle and pathname. BZ 478 1840 1841Example Code and Data Size: These are the sizes for the OS-independent 1842acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1843debug version of the code includes the debug output trace mechanism and has 1844a much larger code and data size. 1845 1846 Previous Release: 1847 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1848 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 1849 Current Release: 1850 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1851 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1852 18532) iASL Compiler/Disassembler and Tools: 1854 1855Ported the -g option (get local ACPI tables) to the new ACPICA Table Manager 1856to restore original behavior. 1857 1858---------------------------------------- 185927 September 2006. Summary of changes for version 20060927: 1860 18611) ACPI CA Core Subsystem: 1862 1863Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 1864These functions now use a spinlock for mutual exclusion and the interrupt 1865level indication flag is not needed. 1866 1867Fixed a problem with the Global Lock where the lock could appear to be 1868obtained before it is actually obtained. The global lock semaphore was 1869inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 1870Suietov. 1871 1872Fixed a possible memory leak and fault in AcpiExResolveObjectToValue during 1873a read from a buffer or region field. (BZ 458) Fiodor Suietov. 1874 1875Example Code and Data Size: These are the sizes for the OS-independent 1876acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1877debug version of the code includes the debug output trace mechanism and has 1878a much larger code and data size. 1879 1880 Previous Release: 1881 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1882 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 1883 Current Release: 1884 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1885 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 1886 1887 18882) iASL Compiler/Disassembler and Tools: 1889 1890Fixed a compilation problem with the pre-defined Resource Descriptor field 1891names where an "object does not exist" error could be incorrectly generated 1892if the parent ResourceTemplate pathname places the template within a 1893different namespace scope than the current scope. (BZ 7212) 1894 1895Fixed a problem where the compiler could hang after syntax errors detected 1896in an ElseIf construct. (BZ 453) 1897 1898Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 1899operator. An incorrect output filename was produced when this parameter was 1900a null string (""). Now, the original input filename is used as the AML 1901output filename, with an ".aml" extension. 1902 1903Implemented a generic batch command mode for the AcpiExec utility (execute 1904any AML debugger command) (Valery Podrezov). 1905 1906---------------------------------------- 190712 September 2006. Summary of changes for version 20060912: 1908 19091) ACPI CA Core Subsystem: 1910 1911Enhanced the implementation of the "serialized mode" of the interpreter 1912(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 1913specified, instead of creating a serialization semaphore per control method, 1914the interpreter lock is simply no longer released before a blocking 1915operation during control method execution. This effectively makes the AML 1916Interpreter single-threaded. The overhead of a semaphore per-method is 1917eliminated. 1918 1919Fixed a regression where an error was no longer emitted if a control method 1920attempts to create 2 objects of the same name. This once again returns 1921AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 1922will dynamically serialize the control method to possible prevent future 1923errors. (BZ 440) 1924 1925Integrated a fix for a problem with PCI Express HID detection in the PCI 1926Config Space setup procedure. (BZ 7145) 1927 1928Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 1929AcpiHwInitialize function - the FADT registers are now validated when the 1930table is loaded. 1931 1932Added two new warnings during FADT verification - 1) if the FADT is larger 1933than the largest known FADT version, and 2) if there is a mismatch between a 193432-bit block address and the 64-bit X counterpart (when both are non-zero.) 1935 1936Example Code and Data Size: These are the sizes for the OS-independent 1937acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1938debug version of the code includes the debug output trace mechanism and has 1939a much larger code and data size. 1940 1941 Previous Release: 1942 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 1943 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 1944 Current Release: 1945 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1946 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 1947 1948 19492) iASL Compiler/Disassembler and Tools: 1950 1951Fixed a problem with the implementation of the Switch() operator where the 1952temporary variable was declared too close to the actual Switch, instead of 1953at method level. This could cause a problem if the Switch() operator is 1954within a while loop, causing an error on the second iteration. (BZ 460) 1955 1956Disassembler - fix for error emitted for unknown type for target of scope 1957operator. Now, ignore it and continue. 1958 1959Disassembly of an FADT now verifies the input FADT and reports any errors 1960found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 1961 1962Disassembly of raw data buffers with byte initialization data now prefixes 1963each output line with the current buffer offset. 1964 1965Disassembly of ASF! table now includes all variable-length data fields at 1966the end of some of the subtables. 1967 1968The disassembler now emits a comment if a buffer appears to be a 1969ResourceTemplate, but cannot be disassembled as such because the EndTag does 1970not appear at the very end of the buffer. 1971 1972AcpiExec - Added the "-t" command line option to enable the serialized mode 1973of the AML interpreter. 1974 1975---------------------------------------- 197631 August 2006. Summary of changes for version 20060831: 1977 19781) ACPI CA Core Subsystem: 1979 1980Miscellaneous fixes for the Table Manager: 1981- Correctly initialize internal common FADT for all 64-bit "X" fields 1982- Fixed a couple table mapping issues during table load 1983- Fixed a couple alignment issues for IA64 1984- Initialize input array to zero in AcpiInitializeTables 1985- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 1986AcpiGetTableByIndex 1987 1988Change for GPE support: when a "wake" GPE is received, all wake GPEs are now 1989immediately disabled to prevent the waking GPE from firing again and to 1990prevent other wake GPEs from interrupting the wake process. 1991 1992Added the AcpiGpeCount global that tracks the number of processed GPEs, to 1993be used for debugging systems with a large number of ACPI interrupts. 1994 1995Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 1996both the ACPICA headers and the disassembler. 1997 1998Example Code and Data Size: These are the sizes for the OS-independent 1999acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2000debug version of the code includes the debug output trace mechanism and has 2001a much larger code and data size. 2002 2003 Previous Release: 2004 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2005 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2006 Current Release: 2007 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2008 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2009 2010 20112) iASL Compiler/Disassembler and Tools: 2012 2013Disassembler support for the DMAR ACPI table. 2014 2015---------------------------------------- 201623 August 2006. Summary of changes for version 20060823: 2017 20181) ACPI CA Core Subsystem: 2019 2020The Table Manager component has been completely redesigned and 2021reimplemented. The new design is much simpler, and reduces the overall code 2022and data size of the kernel-resident ACPICA by approximately 5%. Also, it is 2023now possible to obtain the ACPI tables very early during kernel 2024initialization, even before dynamic memory management is initialized. 2025(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 2026 2027Obsolete ACPICA interfaces: 2028 2029- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 2030time). 2031- AcpiLoadTable: Not needed. 2032- AcpiUnloadTable: Not needed. 2033 2034New ACPICA interfaces: 2035 2036- AcpiInitializeTables: Must be called before the table manager can be used. 2037- AcpiReallocateRootTable: Used to transfer the root table to dynamically 2038allocated memory after it becomes available. 2039- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 2040in the RSDT/XSDT. 2041 2042Other ACPICA changes: 2043 2044- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 2045AcpiOsUnmapMemory to free this mapping. 2046- AcpiGetTable returns the actual mapped table. The mapping is managed 2047internally and must not be deleted by the caller. Use of this interface 2048causes no additional dynamic memory allocation. 2049- AcpiFindRootPointer: Support for physical addressing has been eliminated, 2050it appeared to be unused. 2051- The interface to AcpiOsMapMemory has changed to be consistent with the 2052other allocation interfaces. 2053- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 2054parameters. 2055- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 2056bit platforms. Was previously 64 bits on all platforms. 2057- The interface to the ACPI Global Lock acquire/release macros have changed 2058slightly since ACPICA no longer keeps a local copy of the FACS with a 2059constructed pointer to the actual global lock. 2060 2061Porting to the new table manager: 2062 2063- AcpiInitializeTables: Must be called once, and can be called anytime 2064during the OS initialization process. It allows the host to specify an area 2065of memory to be used to store the internal version of the RSDT/XSDT (root 2066table). This allows the host to access ACPI tables before memory management 2067is initialized and running. 2068- AcpiReallocateRootTable: Can be called after memory management is running 2069to copy the root table to a dynamically allocated array, freeing up the 2070scratch memory specified in the call to AcpiInitializeTables. 2071- AcpiSubsystemInitialize: This existing interface is independent of the 2072Table Manager, and does not have to be called before the Table Manager can 2073be used, it only must be called before the rest of ACPICA can be used. 2074- ACPI Tables: Some changes have been made to the names and structure of the 2075actbl.h and actbl1.h header files and may require changes to existing code. 2076For example, bitfields have been completely removed because of their lack of 2077portability across C compilers. 2078- Update interfaces to the Global Lock acquire/release macros if local 2079versions are used. (see acwin.h) 2080 2081Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 2082 2083New files: tbfind.c 2084 2085Example Code and Data Size: These are the sizes for the OS-independent 2086acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2087debug version of the code includes the debug output trace mechanism and has 2088a much larger code and data size. 2089 2090 Previous Release: 2091 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2092 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2093 Current Release: 2094 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2095 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2096 2097 20982) iASL Compiler/Disassembler and Tools: 2099 2100No changes for this release. 2101 2102---------------------------------------- 210321 July 2006. Summary of changes for version 20060721: 2104 21051) ACPI CA Core Subsystem: 2106 2107The full source code for the ASL test suite used to validate the iASL 2108compiler and the ACPICA core subsystem is being released with the ACPICA 2109source for the first time. The source is contained in a separate package and 2110consists of over 1100 files that exercise all ASL/AML operators. The package 2111should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 2112Suietov) 2113 2114Completed a new design and implementation for support of the ACPI Global 2115Lock. On the OS side, the global lock is now treated as a standard AML 2116mutex. Previously, multiple OS threads could "acquire" the global lock 2117simultaneously. However, this could cause the BIOS to be starved out of the 2118lock - especially in cases such as the Embedded Controller driver where 2119there is a tight coupling between the OS and the BIOS. 2120 2121Implemented an optimization for the ACPI Global Lock interrupt mechanism. 2122The Global Lock interrupt handler no longer queues the execution of a 2123separate thread to signal the global lock semaphore. Instead, the semaphore 2124is signaled directly from the interrupt handler. 2125 2126Implemented support within the AML interpreter for package objects that 2127contain a larger AML length (package list length) than the package element 2128count. In this case, the length of the package is truncated to match the 2129package element count. Some BIOS code apparently modifies the package length 2130on the fly, and this change supports this behavior. Provides compatibility 2131with the MS AML interpreter. (With assistance from Fiodor Suietov) 2132 2133Implemented a temporary fix for the BankValue parameter of a Bank Field to 2134support all constant values, now including the Zero and One opcodes. 2135Evaluation of this parameter must eventually be converted to a full TermArg 2136evaluation. A not-implemented error is now returned (temporarily) for non- 2137constant values for this parameter. 2138 2139Fixed problem reports (Fiodor Suietov) integrated: 2140- Fix for premature object deletion after CopyObject on Operation Region (BZ 2141350) 2142 2143Example Code and Data Size: These are the sizes for the OS-independent 2144acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2145debug version of the code includes the debug output trace mechanism and has 2146a much larger code and data size. 2147 2148 Previous Release: 2149 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 2150 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 2151 Current Release: 2152 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2153 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2154 2155 21562) iASL Compiler/Disassembler and Tools: 2157 2158No changes for this release. 2159 2160---------------------------------------- 216107 July 2006. Summary of changes for version 20060707: 2162 21631) ACPI CA Core Subsystem: 2164 2165Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 2166that do not allow the initialization of address pointers within packed 2167structures - even though the hardware itself may support misaligned 2168transfers. Some of the debug data structures are packed by default to 2169minimize size. 2170 2171Added an error message for the case where AcpiOsGetThreadId() returns zero. 2172A non-zero value is required by the core ACPICA code to ensure the proper 2173operation of AML mutexes and recursive control methods. 2174 2175The DSDT is now the only ACPI table that determines whether the AML 2176interpreter is in 32-bit or 64-bit mode. Not really a functional change, but 2177the hooks for per-table 32/64 switching have been removed from the code. A 2178clarification to the ACPI specification is forthcoming in ACPI 3.0B. 2179 2180Fixed a possible leak of an OwnerID in the error path of 2181AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 2182deletion to a single place in AcpiTbUninstallTable to correct possible leaks 2183when using the AcpiTbDeleteTablesByType interface (with assistance from 2184Lance Ortiz.) 2185 2186Fixed a problem with Serialized control methods where the semaphore 2187associated with the method could be over-signaled after multiple method 2188invocations. 2189 2190Fixed two issues with the locking of the internal namespace data structure. 2191Both the Unload() operator and AcpiUnloadTable interface now lock the 2192namespace during the namespace deletion associated with the table unload 2193(with assistance from Linn Crosetto.) 2194 2195Fixed problem reports (Valery Podrezov) integrated: 2196- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 2197 2198Fixed problem reports (Fiodor Suietov) integrated: 2199- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 2200- On Address Space handler deletion, needless deactivation call (BZ 374) 2201- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 2202- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 2203(BZ 376) 2204- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 2205- Minimum Length of RSDT should be validated (BZ 379) 2206- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 2207Handler (BZ (380) 2208- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 2209(BZ 381) 2210 2211Example Code and Data Size: These are the sizes for the OS-independent 2212acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2213debug version of the code includes the debug output trace mechanism and has 2214a much larger code and data size. 2215 2216 Previous Release: 2217 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2218 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2219 Current Release: 2220 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2221 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2222 2223 22242) iASL Compiler/Disassembler and Tools: 2225 2226Fixed problem reports: 2227Compiler segfault when ASL contains a long (>1024) String declaration (BZ 2228436) 2229 2230---------------------------------------- 223123 June 2006. Summary of changes for version 20060623: 2232 22331) ACPI CA Core Subsystem: 2234 2235Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 2236allows the type to be customized to the host OS for improved efficiency 2237(since a spinlock is usually a very small object.) 2238 2239Implemented support for "ignored" bits in the ACPI registers. According to 2240the ACPI specification, these bits should be preserved when writing the 2241registers via a read/modify/write cycle. There are 3 bits preserved in this 2242manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 2243 2244Implemented the initial deployment of new OSL mutex interfaces. Since some 2245host operating systems have separate mutex and semaphore objects, this 2246feature was requested. The base code now uses mutexes (and the new mutex 2247interfaces) wherever a binary semaphore was used previously. However, for 2248the current release, the mutex interfaces are defined as macros to map them 2249to the existing semaphore interfaces. Therefore, no OSL changes are required 2250at this time. (See acpiosxf.h) 2251 2252Fixed several problems with the support for the control method SyncLevel 2253parameter. The SyncLevel now works according to the ACPI specification and 2254in concert with the Mutex SyncLevel parameter, since the current SyncLevel 2255is a property of the executing thread. Mutual exclusion for control methods 2256is now implemented with a mutex instead of a semaphore. 2257 2258Fixed three instances of the use of the C shift operator in the bitfield 2259support code (exfldio.c) to avoid the use of a shift value larger than the 2260target data width. The behavior of C compilers is undefined in this case and 2261can cause unpredictable results, and therefore the case must be detected and 2262avoided. (Fiodor Suietov) 2263 2264Added an info message whenever an SSDT or OEM table is loaded dynamically 2265via the Load() or LoadTable() ASL operators. This should improve debugging 2266capability since it will show exactly what tables have been loaded (beyond 2267the tables present in the RSDT/XSDT.) 2268 2269Example Code and Data Size: These are the sizes for the OS-independent 2270acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2271debug version of the code includes the debug output trace mechanism and has 2272a much larger code and data size. 2273 2274 Previous Release: 2275 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2276 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2277 Current Release: 2278 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2279 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2280 2281 22822) iASL Compiler/Disassembler and Tools: 2283 2284No changes for this release. 2285 2286---------------------------------------- 228708 June 2006. Summary of changes for version 20060608: 2288 22891) ACPI CA Core Subsystem: 2290 2291Converted the locking mutex used for the ACPI hardware to a spinlock. This 2292change should eliminate all problems caused by attempting to acquire a 2293semaphore at interrupt level, and it means that all ACPICA external 2294interfaces that directly access the ACPI hardware can be safely called from 2295interrupt level. OSL code that implements the semaphore interfaces should be 2296able to eliminate any workarounds for being called at interrupt level. 2297 2298Fixed a regression introduced in 20060526 where the ACPI device 2299initialization could be prematurely aborted with an AE_NOT_FOUND if a device 2300did not have an optional _INI method. 2301 2302Fixed an IndexField issue where a write to the Data Register should be 2303limited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 2304Fiodor Suietov) 2305 2306Fixed problem reports (Valery Podrezov) integrated: 2307- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 2308 2309Fixed problem reports (Fiodor Suietov) integrated: 2310- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 2311 2312Removed four global mutexes that were obsolete and were no longer being 2313used. 2314 2315Example Code and Data Size: These are the sizes for the OS-independent 2316acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2317debug version of the code includes the debug output trace mechanism and has 2318a much larger code and data size. 2319 2320 Previous Release: 2321 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2322 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2323 Current Release: 2324 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2325 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2326 2327 23282) iASL Compiler/Disassembler and Tools: 2329 2330Fixed a fault when using -g option (get tables from registry) on Windows 2331machines. 2332 2333Fixed problem reports integrated: 2334- Generate error if CreateField NumBits parameter is zero. (BZ 405) 2335- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 2336Suietov) 2337- Global table revision override (-r) is ignored (BZ 413) 2338 2339---------------------------------------- 234026 May 2006. Summary of changes for version 20060526: 2341 23421) ACPI CA Core Subsystem: 2343 2344Restructured, flattened, and simplified the internal interfaces for 2345namespace object evaluation - resulting in smaller code, less CPU stack use, 2346and fewer interfaces. (With assistance from Mikhail Kouzmich) 2347 2348Fixed a problem with the CopyObject operator where the first parameter was 2349not typed correctly for the parser, interpreter, compiler, and disassembler. 2350Caused various errors and unexpected behavior. 2351 2352Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 2353produced incorrect results with some C compilers. Since the behavior of C 2354compilers when the shift value is larger than the datatype width is 2355apparently not well defined, the interpreter now detects this condition and 2356simply returns zero as expected in all such cases. (BZ 395) 2357 2358Fixed problem reports (Valery Podrezov) integrated: 2359- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 2360- Allow interpreter to handle nested method declarations (BZ 5361) 2361 2362Fixed problem reports (Fiodor Suietov) integrated: 2363- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 2364- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 2365- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 2366- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 2367- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 2368- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 2369- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 2370- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 2371- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 2372- Status of the Global Initialization Handler call not used (BZ 366) 2373- Incorrect object parameter to Global Initialization Handler (BZ 367) 2374 2375Example Code and Data Size: These are the sizes for the OS-independent 2376acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2377debug version of the code includes the debug output trace mechanism and has 2378a much larger code and data size. 2379 2380 Previous Release: 2381 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2382 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2383 Current Release: 2384 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2385 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2386 2387 23882) iASL Compiler/Disassembler and Tools: 2389 2390Modified the parser to allow the names IO, DMA, and IRQ to be used as 2391namespace identifiers with no collision with existing resource descriptor 2392macro names. This provides compatibility with other ASL compilers and is 2393most useful for disassembly/recompilation of existing tables without parse 2394errors. (With assistance from Thomas Renninger) 2395 2396Disassembler: fixed an incorrect disassembly problem with the 2397DataTableRegion and CopyObject operators. Fixed a possible fault during 2398disassembly of some Alias operators. 2399 2400---------------------------------------- 240112 May 2006. Summary of changes for version 20060512: 2402 24031) ACPI CA Core Subsystem: 2404 2405Replaced the AcpiOsQueueForExecution interface with a new interface named 2406AcpiOsExecute. The major difference is that the new interface does not have 2407a Priority parameter, this appeared to be useless and has been replaced by a 2408Type parameter. The Type tells the host what type of execution is being 2409requested, such as global lock handler, notify handler, GPE handler, etc. 2410This allows the host to queue and execute the request as appropriate for the 2411request type, possibly using different work queues and different priorities 2412for the various request types. This enables fixes for multithreading 2413deadlock problems such as BZ #5534, and will require changes to all existing 2414OS interface layers. (Alexey Starikovskiy and Bob Moore) 2415 2416Fixed a possible memory leak associated with the support for the so-called 2417"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 2418Suietov) 2419 2420Fixed a problem with the Load() operator where a table load from an 2421operation region could overwrite an internal table buffer by up to 7 bytes 2422and cause alignment faults on IPF systems. (With assistance from Luming Yu) 2423 2424Example Code and Data Size: These are the sizes for the OS-independent 2425acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2426debug version of the code includes the debug output trace mechanism and has 2427a much larger code and data size. 2428 2429 Previous Release: 2430 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2431 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2432 Current Release: 2433 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2434 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2435 2436 2437 24382) iASL Compiler/Disassembler and Tools: 2439 2440Disassembler: Implemented support to cross reference the internal namespace 2441and automatically generate ASL External() statements for symbols not defined 2442within the current table being disassembled. This will simplify the 2443disassembly and recompilation of interdependent tables such as SSDTs since 2444these statements will no longer have to be added manually. 2445 2446Disassembler: Implemented experimental support to automatically detect 2447invocations of external control methods and generate appropriate External() 2448statements. This is problematic because the AML cannot be correctly parsed 2449until the number of arguments for each control method is known. Currently, 2450standalone method invocations and invocations as the source operand of a 2451Store() statement are supported. 2452 2453Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 2454LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 2455LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 2456more readable and likely closer to the original ASL source. 2457 2458---------------------------------------- 245921 April 2006. Summary of changes for version 20060421: 2460 24611) ACPI CA Core Subsystem: 2462 2463Removed a device initialization optimization introduced in 20051216 where 2464the _STA method was not run unless an _INI was also present for the same 2465device. This optimization could cause problems because it could allow _INI 2466methods to be run within a not-present device subtree. (If a not-present 2467device had no _INI, _STA would not be run, the not-present status would not 2468be discovered, and the children of the device would be incorrectly 2469traversed.) 2470 2471Implemented a new _STA optimization where namespace subtrees that do not 2472contain _INI are identified and ignored during device initialization. 2473Selectively running _STA can significantly improve boot time on large 2474machines (with assistance from Len Brown.) 2475 2476Implemented support for the device initialization case where the returned 2477_STA flags indicate a device not-present but functioning. In this case, _INI 2478is not run, but the device children are examined for presence, as per the 2479ACPI specification. 2480 2481Implemented an additional change to the IndexField support in order to 2482conform to MS behavior. The value written to the Index Register is not 2483simply a byte offset, it is a byte offset in units of the access width of 2484the parent Index Field. (Fiodor Suietov) 2485 2486Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 2487interface is called during the creation of all AML operation regions, and 2488allows the host OS to exert control over what addresses it will allow the 2489AML code to access. Operation Regions whose addresses are disallowed will 2490cause a runtime exception when they are actually accessed (will not affect 2491or abort table loading.) See oswinxf or osunixxf for an example 2492implementation. 2493 2494Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 2495interface allows the host OS to match the various "optional" 2496interface/behavior strings for the _OSI predefined control method as 2497appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 2498for an example implementation. 2499 2500Restructured and corrected various problems in the exception handling code 2501paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 2502(with assistance from Takayoshi Kochi.) 2503 2504Modified the Linux source converter to ignore quoted string literals while 2505converting identifiers from mixed to lower case. This will correct problems 2506with the disassembler and other areas where such strings must not be 2507modified. 2508 2509The ACPI_FUNCTION_* macros no longer require quotes around the function 2510name. This allows the Linux source converter to convert the names, now that 2511the converter ignores quoted strings. 2512 2513Example Code and Data Size: These are the sizes for the OS-independent 2514acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2515debug version of the code includes the debug output trace mechanism and has 2516a much larger code and data size. 2517 2518 Previous Release: 2519 2520 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2521 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2522 Current Release: 2523 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2524 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2525 2526 25272) iASL Compiler/Disassembler and Tools: 2528 2529Implemented 3 new warnings for iASL, and implemented multiple warning levels 2530(w2 flag). 2531 25321) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 2533WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 2534check for the possible timeout, a warning is issued. 2535 25362) Useless operators: If an ASL operator does not specify an optional target 2537operand and it also does not use the function return value from the 2538operator, a warning is issued since the operator effectively does nothing. 2539 25403) Unreferenced objects: If a namespace object is created, but never 2541referenced, a warning is issued. This is a warning level 2 since there are 2542cases where this is ok, such as when a secondary table is loaded that uses 2543the unreferenced objects. Even so, care is taken to only flag objects that 2544don't look like they will ever be used. For example, the reserved methods 2545(starting with an underscore) are usually not referenced because it is 2546expected that the OS will invoke them. 2547 2548---------------------------------------- 254931 March 2006. Summary of changes for version 20060331: 2550 25511) ACPI CA Core Subsystem: 2552 2553Implemented header file support for the following additional ACPI tables: 2554ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 2555all current and known ACPI tables are now defined in the ACPICA headers and 2556are available for use by device drivers and other software. 2557 2558Implemented support to allow tables that contain ACPI names with invalid 2559characters to be loaded. Previously, this would cause the table load to 2560fail, but since there are several known cases of such tables on existing 2561machines, this change was made to enable ACPI support for them. Also, this 2562matches the behavior of the Microsoft ACPI implementation. 2563 2564Fixed a couple regressions introduced during the memory optimization in the 256520060317 release. The namespace node definition required additional 2566reorganization and an internal datatype that had been changed to 8-bit was 2567restored to 32-bit. (Valery Podrezov) 2568 2569Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 2570could be passed through to AcpiOsReleaseObject which is unexpected. Such 2571null pointers are now trapped and ignored, matching the behavior of the 2572previous implementation before the deployment of AcpiOsReleaseObject. 2573(Valery Podrezov, Fiodor Suietov) 2574 2575Fixed a memory mapping leak during the deletion of a SystemMemory operation 2576region where a cached memory mapping was not deleted. This became a 2577noticeable problem for operation regions that are defined within frequently 2578used control methods. (Dana Meyers) 2579 2580Reorganized the ACPI table header files into two main files: one for the 2581ACPI tables consumed by the ACPICA core, and another for the miscellaneous 2582ACPI tables that are consumed by the drivers and other software. The various 2583FADT definitions were merged into one common section and three different 2584tables (ACPI 1.0, 1.0+, and 2.0) 2585 2586Example Code and Data Size: These are the sizes for the OS-independent 2587acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2588debug version of the code includes the debug output trace mechanism and has 2589a much larger code and data size. 2590 2591 Previous Release: 2592 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2593 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2594 Current Release: 2595 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2596 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2597 2598 25992) iASL Compiler/Disassembler and Tools: 2600 2601Disassembler: Implemented support to decode and format all non-AML ACPI 2602tables (tables other than DSDTs and SSDTs.) This includes the new tables 2603added to the ACPICA headers, therefore all current and known ACPI tables are 2604supported. 2605 2606Disassembler: The change to allow ACPI names with invalid characters also 2607enables the disassembly of such tables. Invalid characters within names are 2608changed to '*' to make the name printable; the iASL compiler will still 2609generate an error for such names, however, since this is an invalid ACPI 2610character. 2611 2612Implemented an option for AcpiXtract (-a) to extract all tables found in the 2613input file. The default invocation extracts only the DSDTs and SSDTs. 2614 2615Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 2616makefile for the AcpiXtract utility. 2617 2618---------------------------------------- 261917 March 2006. Summary of changes for version 20060317: 2620 26211) ACPI CA Core Subsystem: 2622 2623Implemented the use of a cache object for all internal namespace nodes. 2624Since there are about 1000 static nodes in a typical system, this will 2625decrease memory use for cache implementations that minimize per-allocation 2626overhead (such as a slab allocator.) 2627 2628Removed the reference count mechanism for internal namespace nodes, since it 2629was deemed unnecessary. This reduces the size of each namespace node by 2630about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 2631and 32 bytes for the 64-bit case. 2632 2633Optimized several internal data structures to reduce object size on 64-bit 2634platforms by packing data within the 64-bit alignment. This includes the 2635frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 2636instances corresponding to the namespace objects. 2637 2638Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 2639and "Windows 2006". 2640 2641Split the allocation tracking mechanism out to a separate file, from 2642utalloc.c to uttrack.c. This mechanism appears to be only useful for 2643application-level code. Kernels may wish to not include uttrack.c in 2644distributions. 2645 2646Removed all remnants of the obsolete ACPI_REPORT_* macros and the associated 2647code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 2648macros.) 2649 2650Code and Data Size: These are the sizes for the acpica.lib produced by the 2651Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2652driver or OSPM code. The debug version of the code includes the debug output 2653trace mechanism and has a much larger code and data size. Note that these 2654values will vary depending on the efficiency of the compiler and the 2655compiler options used during generation. 2656 2657 Previous Release: 2658 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2659 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2660 Current Release: 2661 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2662 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2663 2664 26652) iASL Compiler/Disassembler and Tools: 2666 2667Implemented an ANSI C version of the acpixtract utility. This version will 2668automatically extract the DSDT and all SSDTs from the input acpidump text 2669file and dump the binary output to separate files. It can also display a 2670summary of the input file including the headers for each table found and 2671will extract any single ACPI table, with any signature. (See 2672source/tools/acpixtract) 2673 2674---------------------------------------- 267510 March 2006. Summary of changes for version 20060310: 2676 26771) ACPI CA Core Subsystem: 2678 2679Tagged all external interfaces to the subsystem with the new 2680ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 2681kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 2682macro. The default definition is NULL. 2683 2684Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 2685This allows the host to define this as necessary to simplify kernel 2686integration. The default definition is ACPI_NATIVE_UINT. 2687 2688Fixed two interpreter problems related to error processing, the deletion of 2689objects, and placing invalid pointers onto the internal operator result 2690stack. BZ 6028, 6151 (Valery Podrezov) 2691 2692Increased the reference count threshold where a warning is emitted for large 2693reference counts in order to eliminate unnecessary warnings on systems with 2694large namespaces (especially 64-bit.) Increased the value from 0x400 to 26950x800. 2696 2697Due to universal disagreement as to the meaning of the 'c' in the calloc() 2698function, the ACPI_MEM_CALLOCATE macro has been renamed to 2699ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 2700ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 2701ACPI_FREE. 2702 2703Code and Data Size: These are the sizes for the acpica.lib produced by the 2704Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2705driver or OSPM code. The debug version of the code includes the debug output 2706trace mechanism and has a much larger code and data size. Note that these 2707values will vary depending on the efficiency of the compiler and the 2708compiler options used during generation. 2709 2710 Previous Release: 2711 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2712 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2713 Current Release: 2714 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2715 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2716 2717 27182) iASL Compiler/Disassembler: 2719 2720Disassembler: implemented support for symbolic resource descriptor 2721references. If a CreateXxxxField operator references a fixed offset within a 2722resource descriptor, a name is assigned to the descriptor and the offset is 2723translated to the appropriate resource tag and pathname. The addition of 2724this support brings the disassembled code very close to the original ASL 2725source code and helps eliminate run-time errors when the disassembled code 2726is modified (and recompiled) in such a way as to invalidate the original 2727fixed offsets. 2728 2729Implemented support for a Descriptor Name as the last parameter to the ASL 2730Register() macro. This parameter was inadvertently left out of the ACPI 2731specification, and will be added for ACPI 3.0b. 2732 2733Fixed a problem where the use of the "_OSI" string (versus the full path 2734"\_OSI") caused an internal compiler error. ("No back ptr to op") 2735 2736Fixed a problem with the error message that occurs when an invalid string is 2737used for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 2738The correct message is now displayed. 2739 2740---------------------------------------- 274117 February 2006. Summary of changes for version 20060217: 2742 27431) ACPI CA Core Subsystem: 2744 2745Implemented a change to the IndexField support to match the behavior of the 2746Microsoft AML interpreter. The value written to the Index register is now a 2747byte offset, no longer an index based upon the width of the Data register. 2748This should fix IndexField problems seen on some machines where the Data 2749register is not exactly one byte wide. The ACPI specification will be 2750clarified on this point. 2751 2752Fixed a problem where several resource descriptor types could overrun the 2753internal descriptor buffer due to size miscalculation: VendorShort, 2754VendorLong, and Interrupt. This was noticed on IA64 machines, but could 2755affect all platforms. 2756 2757Fixed a problem where individual resource descriptors were misaligned within 2758the internal buffer, causing alignment faults on IA64 platforms. 2759 2760Code and Data Size: These are the sizes for the acpica.lib produced by the 2761Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2762driver or OSPM code. The debug version of the code includes the debug output 2763trace mechanism and has a much larger code and data size. Note that these 2764values will vary depending on the efficiency of the compiler and the 2765compiler options used during generation. 2766 2767 Previous Release: 2768 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2769 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2770 Current Release: 2771 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2772 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2773 2774 27752) iASL Compiler/Disassembler: 2776 2777Implemented support for new reserved names: _WDG and _WED are Microsoft 2778extensions for Windows Instrumentation Management, _TDL is a new ACPI- 2779defined method (Throttling Depth Limit.) 2780 2781Fixed a problem where a zero-length VendorShort or VendorLong resource 2782descriptor was incorrectly emitted as a descriptor of length one. 2783 2784---------------------------------------- 278510 February 2006. Summary of changes for version 20060210: 2786 27871) ACPI CA Core Subsystem: 2788 2789Removed a couple of extraneous ACPI_ERROR messages that appeared during 2790normal execution. These became apparent after the conversion from 2791ACPI_DEBUG_PRINT. 2792 2793Fixed a problem where the CreateField operator could hang if the BitIndex or 2794NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 2795 2796Fixed a problem where a DeRefOf operation on a buffer object incorrectly 2797failed with an exception. This also fixes a couple of related RefOf and 2798DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 2799 2800Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 2801AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 28025480) 2803 2804Implemented a memory cleanup at the end of the execution of each iteration 2805of an AML While() loop, preventing the accumulation of outstanding objects. 2806(Valery Podrezov, BZ 5427) 2807 2808Eliminated a chunk of duplicate code in the object resolution code. (Valery 2809Podrezov, BZ 5336) 2810 2811Fixed several warnings during the 64-bit code generation. 2812 2813The AcpiSrc source code conversion tool now inserts one line of whitespace 2814after an if() statement that is followed immediately by a comment, improving 2815readability of the Linux code. 2816 2817Code and Data Size: The current and previous library sizes for the core 2818subsystem are shown below. These are the code and data sizes for the 2819acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2820values do not include any ACPI driver or OSPM code. The debug version of the 2821code includes the debug output trace mechanism and has a much larger code 2822and data size. Note that these values will vary depending on the efficiency 2823of the compiler and the compiler options used during generation. 2824 2825 Previous Release: 2826 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 2827 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2828 Current Release: 2829 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2830 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2831 2832 28332) iASL Compiler/Disassembler: 2834 2835Fixed a problem with the disassembly of a BankField operator with a complex 2836expression for the BankValue parameter. 2837 2838---------------------------------------- 283927 January 2006. Summary of changes for version 20060127: 2840 28411) ACPI CA Core Subsystem: 2842 2843Implemented support in the Resource Manager to allow unresolved namestring 2844references within resource package objects for the _PRT method. This support 2845is in addition to the previously implemented unresolved reference support 2846within the AML parser. If the interpreter slack mode is enabled, these 2847unresolved references will be passed through to the caller as a NULL package 2848entry. 2849 2850Implemented and deployed new macros and functions for error and warning 2851messages across the subsystem. These macros are simpler and generate less 2852code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 2853ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 2854macros remain defined to allow ACPI drivers time to migrate to the new 2855macros. 2856 2857Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 2858Acquire/Release Lock OSL interfaces. 2859 2860Fixed a problem where Alias ASL operators are sometimes not correctly 2861resolved, in both the interpreter and the iASL compiler. 2862 2863Fixed several problems with the implementation of the ConcatenateResTemplate 2864ASL operator. As per the ACPI specification, zero length buffers are now 2865treated as a single EndTag. One-length buffers always cause a fatal 2866exception. Non-zero length buffers that do not end with a full 2-byte EndTag 2867cause a fatal exception. 2868 2869Fixed a possible structure overwrite in the AcpiGetObjectInfo external 2870interface. (With assistance from Thomas Renninger) 2871 2872Code and Data Size: The current and previous library sizes for the core 2873subsystem are shown below. These are the code and data sizes for the 2874acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2875values do not include any ACPI driver or OSPM code. The debug version of the 2876code includes the debug output trace mechanism and has a much larger code 2877and data size. Note that these values will vary depending on the efficiency 2878of the compiler and the compiler options used during generation. 2879 2880 Previous Release: 2881 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 2882 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 2883 Current Release: 2884 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 2885 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2886 2887 28882) iASL Compiler/Disassembler: 2889 2890Fixed an internal error that was generated for any forward references to ASL 2891Alias objects. 2892 2893---------------------------------------- 289413 January 2006. Summary of changes for version 20060113: 2895 28961) ACPI CA Core Subsystem: 2897 2898Added 2006 copyright to all module headers and signons. This affects 2899virtually every file in the ACPICA core subsystem, iASL compiler, and the 2900utilities. 2901 2902Enhanced the ACPICA error reporting in order to simplify user migration to 2903the non-debug version of ACPICA. Replaced all instances of the 2904ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 2905levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 2906respectively. This preserves all error and warning messages in the non-debug 2907version of the ACPICA code (this has been referred to as the "debug lite" 2908option.) Over 200 cases were converted to create a total of over 380 2909error/warning messages across the ACPICA code. This increases the code and 2910data size of the default non-debug version of the code somewhat (about 13K), 2911but all error/warning reporting may be disabled if desired (and code 2912eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 2913configuration option. The size of the debug version of ACPICA remains about 2914the same. 2915 2916Fixed a memory leak within the AML Debugger "Set" command. One object was 2917not properly deleted for every successful invocation of the command. 2918 2919Code and Data Size: The current and previous library sizes for the core 2920subsystem are shown below. These are the code and data sizes for the 2921acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2922values do not include any ACPI driver or OSPM code. The debug version of the 2923code includes the debug output trace mechanism and has a much larger code 2924and data size. Note that these values will vary depending on the efficiency 2925of the compiler and the compiler options used during generation. 2926 2927 Previous Release: 2928 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 2929 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 2930 Current Release: 2931 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 2932 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 2933 2934 29352) iASL Compiler/Disassembler: 2936 2937The compiler now officially supports the ACPI 3.0a specification that was 2938released on December 30, 2005. (Specification is available at www.acpi.info) 2939 2940---------------------------------------- 294116 December 2005. Summary of changes for version 20051216: 2942 29431) ACPI CA Core Subsystem: 2944 2945Implemented optional support to allow unresolved names within ASL Package 2946objects. A null object is inserted in the package when a named reference 2947cannot be located in the current namespace. Enabled via the interpreter 2948slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 2949that contain such code. 2950 2951Implemented an optimization to the initialization sequence that can improve 2952boot time. During ACPI device initialization, the _STA method is now run if 2953and only if the _INI method exists. The _STA method is used to determine if 2954the device is present; An _INI can only be run if _STA returns present, but 2955it is a waste of time to run the _STA method if the _INI does not exist. 2956(Prototype and assistance from Dong Wei) 2957 2958Implemented use of the C99 uintptr_t for the pointer casting macros if it is 2959available in the current compiler. Otherwise, the default (void *) cast is 2960used as before. 2961 2962Fixed some possible memory leaks found within the execution path of the 2963Break, Continue, If, and CreateField operators. (Valery Podrezov) 2964 2965Fixed a problem introduced in the 20051202 release where an exception is 2966generated during method execution if a control method attempts to declare 2967another method. 2968 2969Moved resource descriptor string constants that are used by both the AML 2970disassembler and AML debugger to the common utilities directory so that 2971these components are independent. 2972 2973Implemented support in the AcpiExec utility (-e switch) to globally ignore 2974exceptions during control method execution (method is not aborted.) 2975 2976Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 2977generation. 2978 2979Code and Data Size: The current and previous library sizes for the core 2980subsystem are shown below. These are the code and data sizes for the 2981acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2982values do not include any ACPI driver or OSPM code. The debug version of the 2983code includes the debug output trace mechanism and has a much larger code 2984and data size. Note that these values will vary depending on the efficiency 2985of the compiler and the compiler options used during generation. 2986 2987 Previous Release: 2988 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 2989 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 2990 Current Release: 2991 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 2992 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 2993 2994 29952) iASL Compiler/Disassembler: 2996 2997Fixed a problem where a CPU stack overflow fault could occur if a recursive 2998method call was made from within a Return statement. 2999 3000---------------------------------------- 300102 December 2005. Summary of changes for version 20051202: 3002 30031) ACPI CA Core Subsystem: 3004 3005Modified the parsing of control methods to no longer create namespace 3006objects during the first pass of the parse. Objects are now created only 3007during the execute phase, at the moment the namespace creation operator is 3008encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 3009should eliminate ALREADY_EXISTS exceptions seen on some machines where 3010reentrant control methods are protected by an AML mutex. The mutex will now 3011correctly block multiple threads from attempting to create the same object 3012more than once. 3013 3014Increased the number of available Owner Ids for namespace object tracking 3015from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 3016some machines with a large number of ACPI tables (either static or dynamic). 3017 3018Fixed a problem with the AcpiExec utility where a fault could occur when the 3019-b switch (batch mode) is used. 3020 3021Enhanced the namespace dump routine to output the owner ID for each 3022namespace object. 3023 3024Code and Data Size: The current and previous library sizes for the core 3025subsystem are shown below. These are the code and data sizes for the 3026acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3027values do not include any ACPI driver or OSPM code. The debug version of the 3028code includes the debug output trace mechanism and has a much larger code 3029and data size. Note that these values will vary depending on the efficiency 3030of the compiler and the compiler options used during generation. 3031 3032 Previous Release: 3033 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3034 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3035 Current Release: 3036 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3037 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3038 3039 30402) iASL Compiler/Disassembler: 3041 3042Fixed a parse error during compilation of certain Switch/Case constructs. To 3043simplify the parse, the grammar now allows for multiple Default statements 3044and this error is now detected and flagged during the analysis phase. 3045 3046Disassembler: The disassembly now includes the contents of the original 3047table header within a comment at the start of the file. This includes the 3048name and version of the original ASL compiler. 3049 3050---------------------------------------- 305117 November 2005. Summary of changes for version 20051117: 3052 30531) ACPI CA Core Subsystem: 3054 3055Fixed a problem in the AML parser where the method thread count could be 3056decremented below zero if any errors occurred during the method parse phase. 3057This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 3058This also fixed a related regression with the mechanism that detects and 3059corrects methods that cannot properly handle reentrancy (related to the 3060deployment of the new OwnerId mechanism.) 3061 3062Eliminated the pre-parsing of control methods (to detect errors) during 3063table load. Related to the problem above, this was causing unwind issues if 3064any errors occurred during the parse, and it seemed to be overkill. A table 3065load should not be aborted if there are problems with any single control 3066method, thus rendering this feature rather pointless. 3067 3068Fixed a problem with the new table-driven resource manager where an internal 3069buffer overflow could occur for small resource templates. 3070 3071Implemented a new external interface, AcpiGetVendorResource. This interface 3072will find and return a vendor-defined resource descriptor within a _CRS or 3073_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 3074 3075Removed the length limit (200) on string objects as per the upcoming ACPI 30763.0A specification. This affects the following areas of the interpreter: 1) 3077any implicit conversion of a Buffer to a String, 2) a String object result 3078of the ASL Concatentate operator, 3) the String object result of the ASL 3079ToString operator. 3080 3081Fixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 3082on a semaphore object would incorrectly timeout. This allows the 3083multithreading features of the AcpiExec utility to work properly under 3084Windows. 3085 3086Updated the Linux makefiles for the iASL compiler and AcpiExec to include 3087the recently added file named "utresrc.c". 3088 3089Code and Data Size: The current and previous library sizes for the core 3090subsystem are shown below. These are the code and data sizes for the 3091acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3092values do not include any ACPI driver or OSPM code. The debug version of the 3093code includes the debug output trace mechanism and has a much larger code 3094and data size. Note that these values will vary depending on the efficiency 3095of the compiler and the compiler options used during generation. 3096 3097 Previous Release: 3098 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3099 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3100 Current Release: 3101 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3102 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3103 3104 31052) iASL Compiler/Disassembler: 3106 3107Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 3108specification. For the iASL compiler, this means that string literals within 3109the source ASL can be of any length. 3110 3111Enhanced the listing output to dump the AML code for resource descriptors 3112immediately after the ASL code for each descriptor, instead of in a block at 3113the end of the entire resource template. 3114 3115Enhanced the compiler debug output to dump the entire original parse tree 3116constructed during the parse phase, before any transforms are applied to the 3117tree. The transformed tree is dumped also. 3118 3119---------------------------------------- 312002 November 2005. Summary of changes for version 20051102: 3121 31221) ACPI CA Core Subsystem: 3123 3124Modified the subsystem initialization sequence to improve GPE support. The 3125GPE initialization has been split into two parts in order to defer execution 3126of the _PRW methods (Power Resources for Wake) until after the hardware is 3127fully initialized and the SCI handler is installed. This allows the _PRW 3128methods to access fields protected by the Global Lock. This will fix systems 3129where a NO_GLOBAL_LOCK exception has been seen during initialization. 3130 3131Converted the ACPI internal object disassemble and display code within the 3132AML debugger to fully table-driven operation, reducing code size and 3133increasing maintainability. 3134 3135Fixed a regression with the ConcatenateResTemplate() ASL operator introduced 3136in the 20051021 release. 3137 3138Implemented support for "local" internal ACPI object types within the 3139debugger "Object" command and the AcpiWalkNamespace external interfaces. 3140These local types include RegionFields, BankFields, IndexFields, Alias, and 3141reference objects. 3142 3143Moved common AML resource handling code into a new file, "utresrc.c". This 3144code is shared by both the Resource Manager and the AML Debugger. 3145 3146Code and Data Size: The current and previous library sizes for the core 3147subsystem are shown below. These are the code and data sizes for the 3148acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3149values do not include any ACPI driver or OSPM code. The debug version of the 3150code includes the debug output trace mechanism and has a much larger code 3151and data size. Note that these values will vary depending on the efficiency 3152of the compiler and the compiler options used during generation. 3153 3154 Previous Release: 3155 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3156 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3157 Current Release: 3158 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3159 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3160 3161 31622) iASL Compiler/Disassembler: 3163 3164Fixed a problem with very large initializer lists (more than 4000 elements) 3165for both Buffer and Package objects where the parse stack could overflow. 3166 3167Enhanced the pre-compile source code scan for non-ASCII characters to ignore 3168characters within comment fields. The scan is now always performed and is no 3169longer optional, detecting invalid characters within a source file 3170immediately rather than during the parse phase or later. 3171 3172Enhanced the ASL grammar definition to force early reductions on all list- 3173style grammar elements so that the overall parse stack usage is greatly 3174reduced. This should improve performance and reduce the possibility of parse 3175stack overflow. 3176 3177Eliminated all reduce/reduce conflicts in the iASL parser generation. Also, 3178with the addition of a %expected statement, the compiler generates from 3179source with no warnings. 3180 3181Fixed a possible segment fault in the disassembler if the input filename 3182does not contain a "dot" extension (Thomas Renninger). 3183 3184---------------------------------------- 318521 October 2005. Summary of changes for version 20051021: 3186 31871) ACPI CA Core Subsystem: 3188 3189Implemented support for the EM64T and other x86-64 processors. This 3190essentially entails recognizing that these processors support non-aligned 3191memory transfers. Previously, all 64-bit processors were assumed to lack 3192hardware support for non-aligned transfers. 3193 3194Completed conversion of the Resource Manager to nearly full table-driven 3195operation. Specifically, the resource conversion code (convert AML to 3196internal format and the reverse) and the debug code to dump internal 3197resource descriptors are fully table-driven, reducing code and data size and 3198improving maintainability. 3199 3200The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 3201on 64-bit processors instead of a fixed 32-bit word. (With assistance from 3202Alexey Starikovskiy) 3203 3204Implemented support within the resource conversion code for the Type- 3205Specific byte within the various ACPI 3.0 *WordSpace macros. 3206 3207Fixed some issues within the resource conversion code for the type-specific 3208flags for both Memory and I/O address resource descriptors. For Memory, 3209implemented support for the MTP and TTP flags. For I/O, split the TRS and 3210TTP flags into two separate fields. 3211 3212Code and Data Size: The current and previous library sizes for the core 3213subsystem are shown below. These are the code and data sizes for the 3214acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3215values do not include any ACPI driver or OSPM code. The debug version of the 3216code includes the debug output trace mechanism and has a much larger code 3217and data size. Note that these values will vary depending on the efficiency 3218of the compiler and the compiler options used during generation. 3219 3220 Previous Release: 3221 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3222 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3223 Current Release: 3224 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3225 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3226 3227 3228 32292) iASL Compiler/Disassembler: 3230 3231Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 3232corresponding ResourceSource string was not also present in a resource 3233descriptor declaration. This restriction caused problems with existing 3234AML/ASL code that includes the Index byte without the string. When such AML 3235was disassembled, it could not be compiled without modification. Further, 3236the modified code created a resource template with a different size than the 3237original, breaking code that used fixed offsets into the resource template 3238buffer. 3239 3240Removed a recent feature of the disassembler to ignore a lone ResourceIndex 3241byte. This byte is now emitted if present so that the exact AML can be 3242reproduced when the disassembled code is recompiled. 3243 3244Improved comments and text alignment for the resource descriptor code 3245emitted by the disassembler. 3246 3247Implemented disassembler support for the ACPI 3.0 AccessSize field within a 3248Register() resource descriptor. 3249 3250---------------------------------------- 325130 September 2005. Summary of changes for version 20050930: 3252 32531) ACPI CA Core Subsystem: 3254 3255Completed a major overhaul of the Resource Manager code - specifically, 3256optimizations in the area of the AML/internal resource conversion code. The 3257code has been optimized to simplify and eliminate duplicated code, CPU stack 3258use has been decreased by optimizing function parameters and local 3259variables, and naming conventions across the manager have been standardized 3260for clarity and ease of maintenance (this includes function, parameter, 3261variable, and struct/typedef names.) The update may force changes in some 3262driver code, depending on how resources are handled by the host OS. 3263 3264All Resource Manager dispatch and information tables have been moved to a 3265single location for clarity and ease of maintenance. One new file was 3266created, named "rsinfo.c". 3267 3268The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 3269guarantee that the argument is not evaluated twice, making them less prone 3270to macro side-effects. However, since there exists the possibility of 3271additional stack use if a particular compiler cannot optimize them (such as 3272in the debug generation case), the original macros are optionally available. 3273Note that some invocations of the return_VALUE macro may now cause size 3274mismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 3275eliminate these. (From Randy Dunlap) 3276 3277Implemented a new mechanism to enable debug tracing for individual control 3278methods. A new external interface, AcpiDebugTrace, is provided to enable 3279this mechanism. The intent is to allow the host OS to easily enable and 3280disable tracing for problematic control methods. This interface can be 3281easily exposed to a user or debugger interface if desired. See the file 3282psxface.c for details. 3283 3284AcpiUtCallocate will now return a valid pointer if a length of zero is 3285specified - a length of one is used and a warning is issued. This matches 3286the behavior of AcpiUtAllocate. 3287 3288Code and Data Size: The current and previous library sizes for the core 3289subsystem are shown below. These are the code and data sizes for the 3290acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3291values do not include any ACPI driver or OSPM code. The debug version of the 3292code includes the debug output trace mechanism and has a much larger code 3293and data size. Note that these values will vary depending on the efficiency 3294of the compiler and the compiler options used during generation. 3295 3296 Previous Release: 3297 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3298 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3299 Current Release: 3300 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3301 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3302 3303 33042) iASL Compiler/Disassembler: 3305 3306A remark is issued if the effective compile-time length of a package or 3307buffer is zero. Previously, this was a warning. 3308 3309---------------------------------------- 331016 September 2005. Summary of changes for version 20050916: 3311 33121) ACPI CA Core Subsystem: 3313 3314Fixed a problem within the Resource Manager where support for the Generic 3315Register descriptor was not fully implemented. This descriptor is now fully 3316recognized, parsed, disassembled, and displayed. 3317 3318Completely restructured the Resource Manager code to utilize table-driven 3319dispatch and lookup, eliminating many of the large switch() statements. This 3320reduces overall subsystem code size and code complexity. Affects the 3321resource parsing and construction, disassembly, and debug dump output. 3322 3323Cleaned up and restructured the debug dump output for all resource 3324descriptors. Improved readability of the output and reduced code size. 3325 3326Fixed a problem where changes to internal data structures caused the 3327optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 3328 3329Code and Data Size: The current and previous library sizes for the core 3330subsystem are shown below. These are the code and data sizes for the 3331acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3332values do not include any ACPI driver or OSPM code. The debug version of the 3333code includes the debug output trace mechanism and has a much larger code 3334and data size. Note that these values will vary depending on the efficiency 3335of the compiler and the compiler options used during generation. 3336 3337 Previous Release: 3338 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3339 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3340 Current Release: 3341 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3342 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3343 3344 33452) iASL Compiler/Disassembler: 3346 3347Updated the disassembler to automatically insert an EndDependentFn() macro 3348into the ASL stream if this macro is missing in the original AML code, 3349simplifying compilation of the resulting ASL module. 3350 3351Fixed a problem in the disassembler where a disassembled ResourceSource 3352string (within a large resource descriptor) was not surrounded by quotes and 3353not followed by a comma, causing errors when the resulting ASL module was 3354compiled. Also, escape sequences within a ResourceSource string are now 3355handled correctly (especially "\\") 3356 3357---------------------------------------- 335802 September 2005. Summary of changes for version 20050902: 3359 33601) ACPI CA Core Subsystem: 3361 3362Fixed a problem with the internal Owner ID allocation and deallocation 3363mechanisms for control method execution and recursive method invocation. 3364This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 3365messages seen on some systems. Recursive method invocation depth is 3366currently limited to 255. (Alexey Starikovskiy) 3367 3368Completely eliminated all vestiges of support for the "module-level 3369executable code" until this support is fully implemented and debugged. This 3370should eliminate the NO_RETURN_VALUE exceptions seen during table load on 3371some systems that invoke this support. 3372 3373Fixed a problem within the resource manager code where the transaction flags 3374for a 64-bit address descriptor were handled incorrectly in the type- 3375specific flag byte. 3376 3377Consolidated duplicate code within the address descriptor resource manager 3378code, reducing overall subsystem code size. 3379 3380Fixed a fault when using the AML debugger "disassemble" command to 3381disassemble individual control methods. 3382 3383Removed references to the "release_current" directory within the Unix 3384release package. 3385 3386Code and Data Size: The current and previous core subsystem library sizes 3387are shown below. These are the code and data sizes for the acpica.lib 3388produced by the Microsoft Visual C++ 6.0 compiler. These values do not 3389include any ACPI driver or OSPM code. The debug version of the code includes 3390the debug output trace mechanism and has a much larger code and data size. 3391Note that these values will vary depending on the efficiency of the compiler 3392and the compiler options used during generation. 3393 3394 Previous Release: 3395 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3396 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3397 Current Release: 3398 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3399 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3400 3401 34022) iASL Compiler/Disassembler: 3403 3404Implemented an error check for illegal duplicate values in the interrupt and 3405dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 3406Interrupt(). 3407 3408Implemented error checking for the Irq() and IrqNoFlags() macros to detect 3409too many values in the interrupt list (16 max) and invalid values in the 3410list (range 0 - 15) 3411 3412The maximum length string literal within an ASL file is now restricted to 3413200 characters as per the ACPI specification. 3414 3415Fixed a fault when using the -ln option (generate namespace listing). 3416 3417Implemented an error check to determine if a DescriptorName within a 3418resource descriptor has already been used within the current scope. 3419 3420---------------------------------------- 342115 August 2005. Summary of changes for version 20050815: 3422 34231) ACPI CA Core Subsystem: 3424 3425Implemented a full bytewise compare to determine if a table load request is 3426attempting to load a duplicate table. The compare is performed if the table 3427signatures and table lengths match. This will allow different tables with 3428the same OEM Table ID and revision to be loaded - probably against the ACPI 3429specification, but discovered in the field nonetheless. 3430 3431Added the changes.txt logfile to each of the zipped release packages. 3432 3433Code and Data Size: Current and previous core subsystem library sizes are 3434shown below. These are the code and data sizes for the acpica.lib produced 3435by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3436any ACPI driver or OSPM code. The debug version of the code includes the 3437debug output trace mechanism and has a much larger code and data size. Note 3438that these values will vary depending on the efficiency of the compiler and 3439the compiler options used during generation. 3440 3441 Previous Release: 3442 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3443 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3444 Current Release: 3445 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3446 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3447 3448 34492) iASL Compiler/Disassembler: 3450 3451Fixed a problem where incorrect AML code could be generated for Package 3452objects if optimization is disabled (via the -oa switch). 3453 3454Fixed a problem with where incorrect AML code is generated for variable- 3455length packages when the package length is not specified and the number of 3456initializer values is greater than 255. 3457 3458 3459---------------------------------------- 346029 July 2005. Summary of changes for version 20050729: 3461 34621) ACPI CA Core Subsystem: 3463 3464Implemented support to ignore an attempt to install/load a particular ACPI 3465table more than once. Apparently there exists BIOS code that repeatedly 3466attempts to load the same SSDT upon certain events. With assistance from 3467Venkatesh Pallipadi. 3468 3469Restructured the main interface to the AML parser in order to correctly 3470handle all exceptional conditions. This will prevent leakage of the OwnerId 3471resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 3472machines. With assistance from Alexey Starikovskiy. 3473 3474Support for "module level code" has been disabled in this version due to a 3475number of issues that have appeared on various machines. The support can be 3476enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 3477compilation. When the issues are fully resolved, the code will be enabled by 3478default again. 3479 3480Modified the internal functions for debug print support to define the 3481FunctionName parameter as a (const char *) for compatibility with compiler 3482built-in macros such as __FUNCTION__, etc. 3483 3484Linted the entire ACPICA source tree for both 32-bit and 64-bit. 3485 3486Implemented support to display an object count summary for the AML Debugger 3487commands Object and Methods. 3488 3489Code and Data Size: Current and previous core subsystem library sizes are 3490shown below. These are the code and data sizes for the acpica.lib produced 3491by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3492any ACPI driver or OSPM code. The debug version of the code includes the 3493debug output trace mechanism and has a much larger code and data size. Note 3494that these values will vary depending on the efficiency of the compiler and 3495the compiler options used during generation. 3496 3497 Previous Release: 3498 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3499 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3500 Current Release: 3501 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3502 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3503 3504 35052) iASL Compiler/Disassembler: 3506 3507Fixed a regression that appeared in the 20050708 version of the compiler 3508where an error message was inadvertently emitted for invocations of the _OSI 3509reserved control method. 3510 3511---------------------------------------- 351208 July 2005. Summary of changes for version 20050708: 3513 35141) ACPI CA Core Subsystem: 3515 3516The use of the CPU stack in the debug version of the subsystem has been 3517considerably reduced. Previously, a debug structure was declared in every 3518function that used the debug macros. This structure has been removed in 3519favor of declaring the individual elements as parameters to the debug 3520functions. This reduces the cumulative stack use during nested execution of 3521ACPI function calls at the cost of a small increase in the code size of the 3522debug version of the subsystem. With assistance from Alexey Starikovskiy and 3523Len Brown. 3524 3525Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 3526headers to define a macro that will return the current function name at 3527runtime (such as __FUNCTION__ or _func_, etc.) The function name is used by 3528the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 3529compiler-dependent header, the function name is saved on the CPU stack (one 3530pointer per function.) This mechanism is used because apparently there 3531exists no standard ANSI-C defined macro that that returns the function name. 3532 3533Redesigned and reimplemented the "Owner ID" mechanism used to track 3534namespace objects created/deleted by ACPI tables and control method 3535execution. A bitmap is now used to allocate and free the IDs, thus solving 3536the wraparound problem present in the previous implementation. The size of 3537the namespace node descriptor was reduced by 2 bytes as a result (Alexey 3538Starikovskiy). 3539 3540Removed the UINT32_BIT and UINT16_BIT types that were used for the bitfield 3541flag definitions within the headers for the predefined ACPI tables. These 3542have been replaced by UINT8_BIT in order to increase the code portability of 3543the subsystem. If the use of UINT8 remains a problem, we may be forced to 3544eliminate bitfields entirely because of a lack of portability. 3545 3546Enhanced the performance of the AcpiUtUpdateObjectReference procedure. This 3547is a frequently used function and this improvement increases the performance 3548of the entire subsystem (Alexey Starikovskiy). 3549 3550Fixed several possible memory leaks and the inverse - premature object 3551deletion (Alexey Starikovskiy). 3552 3553Code and Data Size: Current and previous core subsystem library sizes are 3554shown below. These are the code and data sizes for the acpica.lib produced 3555by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3556any ACPI driver or OSPM code. The debug version of the code includes the 3557debug output trace mechanism and has a much larger code and data size. Note 3558that these values will vary depending on the efficiency of the compiler and 3559the compiler options used during generation. 3560 3561 Previous Release: 3562 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3563 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3564 Current Release: 3565 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3566 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3567 3568---------------------------------------- 356924 June 2005. Summary of changes for version 20050624: 3570 35711) ACPI CA Core Subsystem: 3572 3573Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 3574the host-defined cache object. This allows the OSL implementation to define 3575and type this object in any manner desired, simplifying the OSL 3576implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 3577Linux, and should be defined in the OS-specific header file for other 3578operating systems as required. 3579 3580Changed the interface to AcpiOsAcquireObject to directly return the 3581requested object as the function return (instead of ACPI_STATUS.) This 3582change was made for performance reasons, since this is the purpose of the 3583interface in the first place. AcpiOsAcquireObject is now similar to the 3584AcpiOsAllocate interface. 3585 3586Implemented a new AML debugger command named Businfo. This command displays 3587information about all devices that have an associate _PRT object. The _ADR, 3588_HID, _UID, and _CID are displayed for these devices. 3589 3590Modified the initialization sequence in AcpiInitializeSubsystem to call the 3591OSL interface AcpiOslInitialize first, before any local initialization. This 3592change was required because the global initialization now calls OSL 3593interfaces. 3594 3595Enhanced the Dump command to display the entire contents of Package objects 3596(including all sub-objects and their values.) 3597 3598Restructured the code base to split some files because of size and/or 3599because the code logically belonged in a separate file. New files are listed 3600below. All makefiles and project files included in the ACPI CA release have 3601been updated. 3602 utilities/utcache.c /* Local cache interfaces */ 3603 utilities/utmutex.c /* Local mutex support */ 3604 utilities/utstate.c /* State object support */ 3605 interpreter/parser/psloop.c /* Main AML parse loop */ 3606 3607Code and Data Size: Current and previous core subsystem library sizes are 3608shown below. These are the code and data sizes for the acpica.lib produced 3609by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3610any ACPI driver or OSPM code. The debug version of the code includes the 3611debug output trace mechanism and has a much larger code and data size. Note 3612that these values will vary depending on the efficiency of the compiler and 3613the compiler options used during generation. 3614 3615 Previous Release: 3616 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3617 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3618 Current Release: 3619 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3620 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3621 3622 36232) iASL Compiler/Disassembler: 3624 3625Fixed a regression introduced in version 20050513 where the use of a Package 3626object within a Case() statement caused a compile time exception. The 3627original behavior has been restored (a Match() operator is emitted.) 3628 3629---------------------------------------- 363017 June 2005. Summary of changes for version 20050617: 3631 36321) ACPI CA Core Subsystem: 3633 3634Moved the object cache operations into the OS interface layer (OSL) to allow 3635the host OS to handle these operations if desired (for example, the Linux 3636OSL will invoke the slab allocator). This support is optional; the compile 3637time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 3638code in the ACPI CA core. The new OSL interfaces are shown below. See 3639utalloc.c for an example implementation, and acpiosxf.h for the exact 3640interface definitions. With assistance from Alexey Starikovskiy. 3641 AcpiOsCreateCache 3642 AcpiOsDeleteCache 3643 AcpiOsPurgeCache 3644 AcpiOsAcquireObject 3645 AcpiOsReleaseObject 3646 3647Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 3648and restore a flags parameter. This fits better with many OS lock models. 3649Note: the current execution state (interrupt handler or not) is no longer 3650passed to these interfaces. If necessary, the OSL must determine this state 3651by itself, a simple and fast operation. With assistance from Alexey 3652Starikovskiy. 3653 3654Fixed a problem in the ACPI table handling where a valid XSDT was assumed 3655present if the revision of the RSDP was 2 or greater. According to the ACPI 3656specification, the XSDT is optional in all cases, and the table manager 3657therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 3658Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 3659only the RSDT. 3660 3661Fixed an interpreter problem with the Mid() operator in the case of an input 3662string where the resulting output string is of zero length. It now correctly 3663returns a valid, null terminated string object instead of a string object 3664with a null pointer. 3665 3666Fixed a problem with the control method argument handling to allow a store 3667to an Arg object that already contains an object of type Device. The Device 3668object is now correctly overwritten. Previously, an error was returned. 3669 3670 3671Enhanced the debugger Find command to emit object values in addition to the 3672found object pathnames. The output format is the same as the dump namespace 3673command. 3674 3675Enhanced the debugger Set command. It now has the ability to set the value 3676of any Named integer object in the namespace (Previously, only method locals 3677and args could be set.) 3678 3679Code and Data Size: Current and previous core subsystem library sizes are 3680shown below. These are the code and data sizes for the acpica.lib produced 3681by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3682any ACPI driver or OSPM code. The debug version of the code includes the 3683debug output trace mechanism and has a much larger code and data size. Note 3684that these values will vary depending on the efficiency of the compiler and 3685the compiler options used during generation. 3686 3687 Previous Release: 3688 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3689 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3690 Current Release: 3691 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3692 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3693 3694 36952) iASL Compiler/Disassembler: 3696 3697Fixed a regression in the disassembler where if/else/while constructs were 3698output incorrectly. This problem was introduced in the previous release 3699(20050526). This problem also affected the single-step disassembly in the 3700debugger. 3701 3702Fixed a problem where compiling the reserved _OSI method would randomly (but 3703rarely) produce compile errors. 3704 3705Enhanced the disassembler to emit compilable code in the face of incorrect 3706AML resource descriptors. If the optional ResourceSourceIndex is present, 3707but the ResourceSource is not, do not emit the ResourceSourceIndex in the 3708disassembly. Otherwise, the resulting code cannot be compiled without 3709errors. 3710 3711---------------------------------------- 371226 May 2005. Summary of changes for version 20050526: 3713 37141) ACPI CA Core Subsystem: 3715 3716Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 3717the module level (not within a control method.) These opcodes are executed 3718exactly once at the time the table is loaded. This type of code was legal up 3719until the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 3720order to provide backwards compatibility with earlier BIOS implementations. 3721This eliminates the "Encountered executable code at module level" warning 3722that was previously generated upon detection of such code. 3723 3724Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 3725inadvertently be generated during the lookup of namespace objects in the 3726second pass parse of ACPI tables and control methods. It appears that this 3727problem could occur during the resolution of forward references to namespace 3728objects. 3729 3730Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 3731corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 3732allows the deadlock detection debug code to be compiled out in the normal 3733case, improving mutex performance (and overall subsystem performance) 3734considerably. 3735 3736Implemented a handful of miscellaneous fixes for possible memory leaks on 3737error conditions and error handling control paths. These fixes were 3738suggested by FreeBSD and the Coverity Prevent source code analysis tool. 3739 3740Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 3741to prevent a fault in this error case. 3742 3743Code and Data Size: Current and previous core subsystem library sizes are 3744shown below. These are the code and data sizes for the acpica.lib produced 3745by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3746any ACPI driver or OSPM code. The debug version of the code includes the 3747debug output trace mechanism and has a much larger code and data size. Note 3748that these values will vary depending on the efficiency of the compiler and 3749the compiler options used during generation. 3750 3751 Previous Release: 3752 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3753 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3754 Current Release: 3755 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3756 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3757 3758 37592) iASL Compiler/Disassembler: 3760 3761Implemented support to allow Type 1 and Type 2 ASL operators to appear at 3762the module level (not within a control method.) These operators will be 3763executed once at the time the table is loaded. This type of code was legal 3764up until the release of ACPI 2.0B (2002) and is now supported by the iASL 3765compiler in order to provide backwards compatibility with earlier BIOS ASL 3766code. 3767 3768The ACPI integer width (specified via the table revision ID or the -r 3769override, 32 or 64 bits) is now used internally during compile-time constant 3770folding to ensure that constants are truncated to 32 bits if necessary. 3771Previously, the revision ID value was only emitted in the AML table header. 3772 3773An error message is now generated for the Mutex and Method operators if the 3774SyncLevel parameter is outside the legal range of 0 through 15. 3775 3776Fixed a problem with the Method operator ParameterTypes list handling (ACPI 37773.0). Previously, more than 2 types or 2 arguments generated a syntax error. 3778The actual underlying implementation of method argument typechecking is 3779still under development, however. 3780 3781---------------------------------------- 378213 May 2005. Summary of changes for version 20050513: 3783 37841) ACPI CA Core Subsystem: 3785 3786Implemented support for PCI Express root bridges -- added support for device 3787PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 3788 3789The interpreter now automatically truncates incoming 64-bit constants to 32 3790bits if currently executing out of a 32-bit ACPI table (Revision < 2). This 3791also affects the iASL compiler constant folding. (Note: as per below, the 3792iASL compiler no longer allows 64-bit constants within 32-bit tables.) 3793 3794Fixed a problem where string and buffer objects with "static" pointers 3795(pointers to initialization data within an ACPI table) were not handled 3796consistently. The internal object copy operation now always copies the data 3797to a newly allocated buffer, regardless of whether the source object is 3798static or not. 3799 3800Fixed a problem with the FromBCD operator where an implicit result 3801conversion was improperly performed while storing the result to the target 3802operand. Since this is an "explicit conversion" operator, the implicit 3803conversion should never be performed on the output. 3804 3805Fixed a problem with the CopyObject operator where a copy to an existing 3806named object did not always completely overwrite the existing object stored 3807at name. Specifically, a buffer-to-buffer copy did not delete the existing 3808buffer. 3809 3810Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 3811structs for consistency. 3812 3813Code and Data Size: Current and previous core subsystem library sizes are 3814shown below. These are the code and data sizes for the acpica.lib produced 3815by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3816any ACPI driver or OSPM code. The debug version of the code includes the 3817debug output trace mechanism and has a much larger code and data size. Note 3818that these values will vary depending on the efficiency of the compiler and 3819the compiler options used during generation. 3820 3821 Previous Release: 3822 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3823 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3824 Current Release: (Same sizes) 3825 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3826 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3827 3828 38292) iASL Compiler/Disassembler: 3830 3831The compiler now emits a warning if an attempt is made to generate a 64-bit 3832integer constant from within a 32-bit ACPI table (Revision < 2). The integer 3833is truncated to 32 bits. 3834 3835Fixed a problem with large package objects: if the static length of the 3836package is greater than 255, the "variable length package" opcode is 3837emitted. Previously, this caused an error. This requires an update to the 3838ACPI spec, since it currently (incorrectly) states that packages larger than 3839255 elements are not allowed. 3840 3841The disassembler now correctly handles variable length packages and packages 3842larger than 255 elements. 3843 3844---------------------------------------- 384508 April 2005. Summary of changes for version 20050408: 3846 38471) ACPI CA Core Subsystem: 3848 3849Fixed three cases in the interpreter where an "index" argument to an ASL 3850function was still (internally) 32 bits instead of the required 64 bits. 3851This was the Index argument to the Index, Mid, and Match operators. 3852 3853The "strupr" function is now permanently local (AcpiUtStrupr), since this is 3854not a POSIX-defined function and not present in most kernel-level C 3855libraries. All references to the C library strupr function have been removed 3856from the headers. 3857 3858Completed the deployment of static functions/prototypes. All prototypes with 3859the static attribute have been moved from the headers to the owning C file. 3860 3861Implemented an extract option (-e) for the AcpiBin utility (AML binary 3862utility). This option allows the utility to extract individual ACPI tables 3863from the output of AcpiDmp. It provides the same functionality of the 3864acpixtract.pl perl script without the worry of setting the correct perl 3865options. AcpiBin runs on Windows and has not yet been generated/validated in 3866the Linux/Unix environment (but should be soon). 3867 3868Updated and fixed the table dump option for AcpiBin (-d). This option 3869converts a single ACPI table to a hex/ascii file, similar to the output of 3870AcpiDmp. 3871 3872Code and Data Size: Current and previous core subsystem library sizes are 3873shown below. These are the code and data sizes for the acpica.lib produced 3874by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3875any ACPI driver or OSPM code. The debug version of the code includes the 3876debug output trace mechanism and has a much larger code and data size. Note 3877that these values will vary depending on the efficiency of the compiler and 3878the compiler options used during generation. 3879 3880 Previous Release: 3881 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 3882 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 3883 Current Release: 3884 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3885 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3886 3887 38882) iASL Compiler/Disassembler: 3889 3890Disassembler fix: Added a check to ensure that the table length found in the 3891ACPI table header within the input file is not longer than the actual input 3892file size. This indicates some kind of file or table corruption. 3893 3894---------------------------------------- 389529 March 2005. Summary of changes for version 20050329: 3896 38971) ACPI CA Core Subsystem: 3898 3899An error is now generated if an attempt is made to create a Buffer Field of 3900length zero (A CreateField with a length operand of zero.) 3901 3902The interpreter now issues a warning whenever executable code at the module 3903level is detected during ACPI table load. This will give some idea of the 3904prevalence of this type of code. 3905 3906Implemented support for references to named objects (other than control 3907methods) within package objects. 3908 3909Enhanced package object output for the debug object. Package objects are now 3910completely dumped, showing all elements. 3911 3912Enhanced miscellaneous object output for the debug object. Any object can 3913now be written to the debug object (for example, a device object can be 3914written, and the type of the object will be displayed.) 3915 3916The "static" qualifier has been added to all local functions across both the 3917core subsystem and the iASL compiler. 3918 3919The number of "long" lines (> 80 chars) within the source has been 3920significantly reduced, by about 1/3. 3921 3922Cleaned up all header files to ensure that all CA/iASL functions are 3923prototyped (even static functions) and the formatting is consistent. 3924 3925Two new header files have been added, acopcode.h and acnames.h. 3926 3927Removed several obsolete functions that were no longer used. 3928 3929Code and Data Size: Current and previous core subsystem library sizes are 3930shown below. These are the code and data sizes for the acpica.lib produced 3931by the Microsoft Visual C++ 6.0 compiler, and these values do not include 3932any ACPI driver or OSPM code. The debug version of the code includes the 3933debug output trace mechanism and has a much larger code and data size. Note 3934that these values will vary depending on the efficiency of the compiler and 3935the compiler options used during generation. 3936 3937 Previous Release: 3938 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 3939 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 3940 Current Release: 3941 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 3942 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 3943 3944 3945 39462) iASL Compiler/Disassembler: 3947 3948Fixed a problem with the resource descriptor generation/support. For the 3949ResourceSourceIndex and the ResourceSource fields, both must be present, or 3950both must be not present - can't have one without the other. 3951 3952The compiler now returns non-zero from the main procedure if any errors have 3953occurred during the compilation. 3954 3955 3956---------------------------------------- 395709 March 2005. Summary of changes for version 20050309: 3958 39591) ACPI CA Core Subsystem: 3960 3961The string-to-buffer implicit conversion code has been modified again after 3962a change to the ACPI specification. In order to match the behavior of the 3963other major ACPI implementation, the target buffer is no longer truncated if 3964the source string is smaller than an existing target buffer. This change 3965requires an update to the ACPI spec, and should eliminate the recent 3966AE_AML_BUFFER_LIMIT issues. 3967 3968The "implicit return" support was rewritten to a new algorithm that solves 3969the general case. Rather than attempt to determine when a method is about to 3970exit, the result of every ASL operator is saved momentarily until the very 3971next ASL operator is executed. Therefore, no matter how the method exits, 3972there will always be a saved implicit return value. This feature is only 3973enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 3974AE_AML_NO_RETURN_VALUE errors when enabled. 3975 3976Implemented implicit conversion support for the predicate (operand) of the 3977If, Else, and While operators. String and Buffer arguments are automatically 3978converted to Integers. 3979 3980Changed the string-to-integer conversion behavior to match the new ACPI 3981errata: "If no integer object exists, a new integer is created. The ASCII 3982string is interpreted as a hexadecimal constant. Each string character is 3983interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 3984with the first character as the most significant digit, and ending with the 3985first non-hexadecimal character or end-of-string." This means that the first 3986non-hex character terminates the conversion and this is the code that was 3987changed. 3988 3989Fixed a problem where the ObjectType operator would fail (fault) when used 3990on an Index of a Package which pointed to a null package element. The 3991operator now properly returns zero (Uninitialized) in this case. 3992 3993Fixed a problem where the While operator used excessive memory by not 3994properly popping the result stack during execution. There was no memory leak 3995after execution, however. (Code provided by Valery Podrezov.) 3996 3997Fixed a problem where references to control methods within Package objects 3998caused the method to be invoked, instead of producing a reference object 3999pointing to the method. 4000 4001Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 4002improve performance and reduce code size. (Code provided by Alexey 4003Starikovskiy.) 4004 4005Code and Data Size: Current and previous core subsystem library sizes are 4006shown below. These are the code and data sizes for the acpica.lib produced 4007by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4008any ACPI driver or OSPM code. The debug version of the code includes the 4009debug output trace mechanism and has a much larger code and data size. Note 4010that these values will vary depending on the efficiency of the compiler and 4011the compiler options used during generation. 4012 4013 Previous Release: 4014 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4015 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4016 Current Release: 4017 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4018 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4019 4020 40212) iASL Compiler/Disassembler: 4022 4023Fixed a problem with the Return operator with no arguments. Since the AML 4024grammar for the byte encoding requires an operand for the Return opcode, the 4025compiler now emits a Return(Zero) for this case. An ACPI specification 4026update has been written for this case. 4027 4028For tables other than the DSDT, namepath optimization is automatically 4029disabled. This is because SSDTs can be loaded anywhere in the namespace, the 4030compiler has no knowledge of where, and thus cannot optimize namepaths. 4031 4032Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 4033inadvertently omitted from the ACPI specification, and will require an 4034update to the spec. 4035 4036The source file scan for ASCII characters is now optional (-a). This change 4037was made because some vendors place non-ascii characters within comments. 4038However, the scan is simply a brute-force byte compare to ensure all 4039characters in the file are in the range 0x00 to 0x7F. 4040 4041Fixed a problem with the CondRefOf operator where the compiler was 4042inappropriately checking for the existence of the target. Since the point of 4043the operator is to check for the existence of the target at run-time, the 4044compiler no longer checks for the target existence. 4045 4046Fixed a problem where errors generated from the internal AML interpreter 4047during constant folding were not handled properly, causing a fault. 4048 4049Fixed a problem with overly aggressive range checking for the Stall 4050operator. The valid range (max 255) is now only checked if the operand is of 4051type Integer. All other operand types cannot be statically checked. 4052 4053Fixed a problem where control method references within the RefOf, DeRefOf, 4054and ObjectType operators were not treated properly. They are now treated as 4055actual references, not method invocations. 4056 4057Fixed and enhanced the "list namespace" option (-ln). This option was broken 4058a number of releases ago. 4059 4060Improved error handling for the Field, IndexField, and BankField operators. 4061The compiler now cleanly reports and recovers from errors in the field 4062component (FieldUnit) list. 4063 4064Fixed a disassembler problem where the optional ResourceDescriptor fields 4065TRS and TTP were not always handled correctly. 4066 4067Disassembler - Comments in output now use "//" instead of "/*" 4068 4069---------------------------------------- 407028 February 2005. Summary of changes for version 20050228: 4071 40721) ACPI CA Core Subsystem: 4073 4074Fixed a problem where the result of an Index() operator (an object 4075reference) must increment the reference count on the target object for the 4076life of the object reference. 4077 4078Implemented AML Interpreter and Debugger support for the new ACPI 3.0 4079Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 4080resource descriptors. 4081 4082Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 4083Space Descriptor" string, indicating interpreter support for the descriptors 4084above. 4085 4086Implemented header support for the new ACPI 3.0 FADT flag bits. 4087 4088Implemented header support for the new ACPI 3.0 PCI Express bits for the PM1 4089status/enable registers. 4090 4091Updated header support for the MADT processor local Apic struct and MADT 4092platform interrupt source struct for new ACPI 3.0 fields. 4093 4094Implemented header support for the SRAT and SLIT ACPI tables. 4095 4096Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 4097at runtime. 4098 4099Code and Data Size: Current and previous core subsystem library sizes are 4100shown below. These are the code and data sizes for the acpica.lib produced 4101by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4102any ACPI driver or OSPM code. The debug version of the code includes the 4103debug output trace mechanism and has a much larger code and data size. Note 4104that these values will vary depending on the efficiency of the compiler and 4105the compiler options used during generation. 4106 4107 Previous Release: 4108 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4109 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4110 Current Release: 4111 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4112 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4113 4114 41152) iASL Compiler/Disassembler: 4116 4117Fixed a problem with the internal 64-bit String-to-integer conversion with 4118strings less than two characters long. 4119 4120Fixed a problem with constant folding where the result of the Index() 4121operator can not be considered a constant. This means that Index() cannot be 4122a type3 opcode and this will require an update to the ACPI specification. 4123 4124Disassembler: Implemented support for the TTP, MTP, and TRS resource 4125descriptor fields. These fields were inadvertently ignored and not output in 4126the disassembly of the resource descriptor. 4127 4128 4129 ---------------------------------------- 413011 February 2005. Summary of changes for version 20050211: 4131 41321) ACPI CA Core Subsystem: 4133 4134Implemented ACPI 3.0 support for implicit conversion within the Match() 4135operator. MatchObjects can now be of type integer, buffer, or string instead 4136of just type integer. Package elements are implicitly converted to the type 4137of the MatchObject. This change aligns the behavior of Match() with the 4138behavior of the other logical operators (LLess(), etc.) It also requires an 4139errata change to the ACPI specification as this support was intended for 4140ACPI 3.0, but was inadvertently omitted. 4141 4142Fixed a problem with the internal implicit "to buffer" conversion. Strings 4143that are converted to buffers will cause buffer truncation if the string is 4144smaller than the target buffer. Integers that are converted to buffers will 4145not cause buffer truncation, only zero extension (both as per the ACPI 4146spec.) The problem was introduced when code was added to truncate the 4147buffer, but this should not be performed in all cases, only the string case. 4148 4149Fixed a problem with the Buffer and Package operators where the interpreter 4150would get confused if two such operators were used as operands to an ASL 4151operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 4152stack was not being popped after the execution of these operators, resulting 4153in an AE_NO_RETURN_VALUE exception. 4154 4155Fixed a problem with constructs of the form Store(Index(...),...). The 4156reference object returned from Index was inadvertently resolved to an actual 4157value. This problem was introduced in version 20050114 when the behavior of 4158Store() was modified to restrict the object types that can be used as the 4159source operand (to match the ACPI specification.) 4160 4161Reduced excessive stack use within the AcpiGetObjectInfo procedure. 4162 4163Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 4164 4165Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 4166 4167Code and Data Size: Current and previous core subsystem library sizes are 4168shown below. These are the code and data sizes for the acpica.lib produced 4169by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4170any ACPI driver or OSPM code. The debug version of the code includes the 4171debug output trace mechanism and has a much larger code and data size. Note 4172that these values will vary depending on the efficiency of the compiler and 4173the compiler options used during generation. 4174 4175 Previous Release: 4176 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4177 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4178 Current Release: 4179 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4180 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4181 4182 41832) iASL Compiler/Disassembler: 4184 4185Fixed a code generation problem in the constant folding optimization code 4186where incorrect code was generated if a constant was reduced to a buffer 4187object (i.e., a reduced type 5 opcode.) 4188 4189Fixed a typechecking problem for the ToBuffer operator. Caused by an 4190incorrect return type in the internal opcode information table. 4191 4192---------------------------------------- 419325 January 2005. Summary of changes for version 20050125: 4194 41951) ACPI CA Core Subsystem: 4196 4197Fixed a recently introduced problem with the Global Lock where the 4198underlying semaphore was not created. This problem was introduced in 4199version 20050114, and caused an AE_AML_NO_OPERAND exception during an 4200Acquire() operation on _GL. 4201 4202The local object cache is now optional, and is disabled by default. Both 4203AcpiExec and the iASL compiler enable the cache because they run in user 4204mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 4205to enable the local cache. 4206 4207Fixed an issue in the internal function AcpiUtEvaluateObject concerning the 4208optional "implicit return" support where an error was returned if no return 4209object was expected, but one was implicitly returned. AE_OK is now returned 4210in this case and the implicitly returned object is deleted. 4211AcpiUtEvaluateObject is only occasionally used, and only to execute reserved 4212methods such as _STA and _INI where the return type is known up front. 4213 4214Fixed a few issues with the internal convert-to-integer code. It now returns 4215an error if an attempt is made to convert a null string, a string of only 4216blanks/tabs, or a zero-length buffer. This affects both implicit conversion 4217and explicit conversion via the ToInteger() operator. 4218 4219The internal debug code in AcpiUtAcquireMutex has been commented out. It is 4220not needed for normal operation and should increase the performance of the 4221entire subsystem. The code remains in case it is needed for debug purposes 4222again. 4223 4224The AcpiExec source and makefile are included in the Unix/Linux package for 4225the first time. 4226 4227Code and Data Size: Current and previous core subsystem library sizes are 4228shown below. These are the code and data sizes for the acpica.lib produced 4229by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4230any ACPI driver or OSPM code. The debug version of the code includes the 4231debug output trace mechanism and has a much larger code and data size. Note 4232that these values will vary depending on the efficiency of the compiler and 4233the compiler options used during generation. 4234 4235 Previous Release: 4236 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4237 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4238 Current Release: 4239 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4240 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4241 42422) iASL Compiler/Disassembler: 4243 4244Switch/Case support: A warning is now issued if the type of the Switch value 4245cannot be determined at compile time. For example, Switch(Arg0) will 4246generate the warning, and the type is assumed to be an integer. As per the 4247ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 4248warning. 4249 4250Switch/Case support: Implemented support for buffer and string objects as 4251the switch value. This is an ACPI 3.0 feature, now that LEqual supports 4252buffers and strings. 4253 4254Switch/Case support: The emitted code for the LEqual() comparisons now uses 4255the switch value as the first operand, not the second. The case value is now 4256the second operand, and this allows the case value to be implicitly 4257converted to the type of the switch value, not the other way around. 4258 4259Switch/Case support: Temporary variables are now emitted immediately within 4260the control method, not at the global level. This means that there are now 426136 temps available per-method, not 36 temps per-module as was the case with 4262the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 4263 4264---------------------------------------- 426514 January 2005. Summary of changes for version 20050114: 4266 4267Added 2005 copyright to all module headers. This affects every module in 4268the core subsystem, iASL compiler, and the utilities. 4269 42701) ACPI CA Core Subsystem: 4271 4272Fixed an issue with the String-to-Buffer conversion code where the string 4273null terminator was not included in the buffer after conversion, but there 4274is existing ASL that assumes the string null terminator is included. This is 4275the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 4276introduced in the previous version when the code was updated to correctly 4277set the converted buffer size as per the ACPI specification. The ACPI spec 4278is ambiguous and will be updated to specify that the null terminator must be 4279included in the converted buffer. This also affects the ToBuffer() ASL 4280operator. 4281 4282Fixed a problem with the Mid() ASL/AML operator where it did not work 4283correctly on Buffer objects. Newly created sub-buffers were not being marked 4284as initialized. 4285 4286 4287Fixed a problem in AcpiTbFindTable where incorrect string compares were 4288performed on the OemId and OemTableId table header fields. These fields are 4289not null terminated, so strncmp is now used instead of strcmp. 4290 4291Implemented a restriction on the Store() ASL/AML operator to align the 4292behavior with the ACPI specification. Previously, any object could be used 4293as the source operand. Now, the only objects that may be used are Integers, 4294Buffers, Strings, Packages, Object References, and DDB Handles. If 4295necessary, the original behavior can be restored by enabling the 4296EnableInterpreterSlack flag. 4297 4298Enhanced the optional "implicit return" support to allow an implicit return 4299value from methods that are invoked externally via the AcpiEvaluateObject 4300interface. This enables implicit returns from the _STA and _INI methods, 4301for example. 4302 4303Changed the Revision() ASL/AML operator to return the current version of the 4304AML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 4305the supported ACPI version (This is the function of the _REV method). 4306 4307Updated the _REV predefined method to return the currently supported version 4308of ACPI, now 3. 4309 4310Implemented batch mode option for the AcpiExec utility (-b). 4311 4312Code and Data Size: Current and previous core subsystem library sizes are 4313shown below. These are the code and data sizes for the acpica.lib produced 4314by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4315any ACPI driver or OSPM code. The debug version of the code includes the 4316debug output trace mechanism and has a much larger code and data size. Note 4317that these values will vary depending on the efficiency of the compiler and 4318the compiler options used during generation. 4319 4320 Previous Release: 4321 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4322 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4323 Current Release: 4324 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4325 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4326 4327---------------------------------------- 432810 December 2004. Summary of changes for version 20041210: 4329 4330ACPI 3.0 support is nearing completion in both the iASL compiler and the 4331ACPI CA core subsystem. 4332 43331) ACPI CA Core Subsystem: 4334 4335Fixed a problem in the ToDecimalString operator where the resulting string 4336length was incorrectly calculated. The length is now calculated exactly, 4337eliminating incorrect AE_STRING_LIMIT exceptions. 4338 4339Fixed a problem in the ToHexString operator to allow a maximum 200 character 4340string to be produced. 4341 4342Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 4343routine where the length of the resulting buffer was not truncated to the 4344new size (if the target buffer already existed). 4345 4346Code and Data Size: Current and previous core subsystem library sizes are 4347shown below. These are the code and data sizes for the acpica.lib produced 4348by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4349any ACPI driver or OSPM code. The debug version of the code includes the 4350debug output trace mechanism and has a much larger code and data size. Note 4351that these values will vary depending on the efficiency of the compiler and 4352the compiler options used during generation. 4353 4354 Previous Release: 4355 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4356 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4357 Current Release: 4358 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4359 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4360 4361 43622) iASL Compiler/Disassembler: 4363 4364Implemented the new ACPI 3.0 resource template macros - DWordSpace, 4365ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 4366Includes support in the disassembler. 4367 4368Implemented support for the new (ACPI 3.0) parameter to the Register macro, 4369AccessSize. 4370 4371Fixed a problem where the _HE resource name for the Interrupt macro was 4372referencing bit 0 instead of bit 1. 4373 4374Implemented check for maximum 255 interrupts in the Interrupt macro. 4375 4376Fixed a problem with the predefined resource descriptor names where 4377incorrect AML code was generated if the offset within the resource buffer 4378was 0 or 1. The optimizer shortened the AML code to a single byte opcode 4379but did not update the surrounding package lengths. 4380 4381Changes to the Dma macro: All channels within the channel list must be in 4382the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 4383optional (default is BusMaster). 4384 4385Implemented check for maximum 7 data bytes for the VendorShort macro. 4386 4387The ReadWrite parameter is now optional for the Memory32 and similar macros. 4388 4389---------------------------------------- 439003 December 2004. Summary of changes for version 20041203: 4391 43921) ACPI CA Core Subsystem: 4393 4394The low-level field insertion/extraction code (exfldio) has been completely 4395rewritten to eliminate unnecessary complexity, bugs, and boundary 4396conditions. 4397 4398Fixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 4399operators where the input operand could be inadvertently deleted if no 4400conversion was necessary (e.g., if the input to ToInteger was an Integer 4401object.) 4402 4403Fixed a problem with the ToDecimalString and ToHexString where an incorrect 4404exception code was returned if the resulting string would be > 200 chars. 4405AE_STRING_LIMIT is now returned. 4406 4407Fixed a problem with the Concatenate operator where AE_OK was always 4408returned, even if the operation failed. 4409 4410Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 4411semaphores to be allocated. 4412 4413Code and Data Size: Current and previous core subsystem library sizes are 4414shown below. These are the code and data sizes for the acpica.lib produced 4415by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4416any ACPI driver or OSPM code. The debug version of the code includes the 4417debug output trace mechanism and has a much larger code and data size. Note 4418that these values will vary depending on the efficiency of the compiler and 4419the compiler options used during generation. 4420 4421 Previous Release: 4422 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4423 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4424 Current Release: 4425 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4426 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4427 4428 44292) iASL Compiler/Disassembler: 4430 4431Fixed typechecking for the ObjectType and SizeOf operators. Problem was 4432recently introduced in 20041119. 4433 4434Fixed a problem with the ToUUID macro where the upper nybble of each buffer 4435byte was inadvertently set to zero. 4436 4437---------------------------------------- 443819 November 2004. Summary of changes for version 20041119: 4439 44401) ACPI CA Core Subsystem: 4441 4442Fixed a problem in the internal ConvertToInteger routine where new integers 4443were not truncated to 32 bits for 32-bit ACPI tables. This routine converts 4444buffers and strings to integers. 4445 4446Implemented support to store a value to an Index() on a String object. This 4447is an ACPI 2.0 feature that had not yet been implemented. 4448 4449Implemented new behavior for storing objects to individual package elements 4450(via the Index() operator). The previous behavior was to invoke the implicit 4451conversion rules if an object was already present at the index. The new 4452behavior is to simply delete any existing object and directly store the new 4453object. Although the ACPI specification seems unclear on this subject, other 4454ACPI implementations behave in this manner. (This is the root of the 4455AE_BAD_HEX_CONSTANT issue.) 4456 4457Modified the RSDP memory scan mechanism to support the extended checksum for 4458ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 4459RSDP signature is found with a valid checksum. 4460 4461Code and Data Size: Current and previous core subsystem library sizes are 4462shown below. These are the code and data sizes for the acpica.lib produced 4463by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4464any ACPI driver or OSPM code. The debug version of the code includes the 4465debug output trace mechanism and has a much larger code and data size. Note 4466that these values will vary depending on the efficiency of the compiler and 4467the compiler options used during generation. 4468 4469 Previous Release: 4470 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4471 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4472 Current Release: 4473 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4474 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4475 4476 44772) iASL Compiler/Disassembler: 4478 4479Fixed a missing semicolon in the aslcompiler.y file. 4480 4481---------------------------------------- 448205 November 2004. Summary of changes for version 20041105: 4483 44841) ACPI CA Core Subsystem: 4485 4486Implemented support for FADT revision 2. This was an interim table (between 4487ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 4488 4489Implemented optional support to allow uninitialized LocalX and ArgX 4490variables in a control method. The variables are initialized to an Integer 4491object with a value of zero. This support is enabled by setting the 4492AcpiGbl_EnableInterpreterSlack flag to TRUE. 4493 4494Implemented support for Integer objects for the SizeOf operator. Either 4 4495or 8 is returned, depending on the current integer size (32-bit or 64-bit, 4496depending on the parent table revision). 4497 4498Fixed a problem in the implementation of the SizeOf and ObjectType operators 4499where the operand was resolved to a value too early, causing incorrect 4500return values for some objects. 4501 4502Fixed some possible memory leaks during exceptional conditions. 4503 4504Code and Data Size: Current and previous core subsystem library sizes are 4505shown below. These are the code and data sizes for the acpica.lib produced 4506by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4507any ACPI driver or OSPM code. The debug version of the code includes the 4508debug output trace mechanism and has a much larger code and data size. Note 4509that these values will vary depending on the efficiency of the compiler and 4510the compiler options used during generation. 4511 4512 Previous Release: 4513 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4514 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4515 Current Release: 4516 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4517 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4518 4519 45202) iASL Compiler/Disassembler: 4521 4522Implemented support for all ACPI 3.0 reserved names and methods. 4523 4524Implemented all ACPI 3.0 grammar elements in the front-end, including 4525support for semicolons. 4526 4527Implemented the ACPI 3.0 Function() and ToUUID() macros 4528 4529Fixed a problem in the disassembler where a Scope() operator would not be 4530emitted properly if the target of the scope was in another table. 4531 4532---------------------------------------- 453315 October 2004. Summary of changes for version 20041015: 4534 4535Note: ACPI CA is currently undergoing an in-depth and complete formal 4536evaluation to test/verify the following areas. Other suggestions are 4537welcome. This will result in an increase in the frequency of releases and 4538the number of bug fixes in the next few months. 4539 - Functional tests for all ASL/AML operators 4540 - All implicit/explicit type conversions 4541 - Bit fields and operation regions 4542 - 64-bit math support and 32-bit-only "truncated" math support 4543 - Exceptional conditions, both compiler and interpreter 4544 - Dynamic object deletion and memory leaks 4545 - ACPI 3.0 support when implemented 4546 - External interfaces to the ACPI subsystem 4547 4548 45491) ACPI CA Core Subsystem: 4550 4551Fixed two alignment issues on 64-bit platforms - within debug statements in 4552AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 4553field within the non-aligned ACPI generic address structure. 4554 4555Fixed a problem in the Increment and Decrement operators where incorrect 4556operand resolution could result in the inadvertent modification of the 4557original integer when the integer is passed into another method as an 4558argument and the arg is then incremented/decremented. 4559 4560Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 4561BCD number were truncated during conversion. 4562 4563Fixed a problem in the ToDecimal operator where the length of the resulting 4564string could be set incorrectly too long if the input operand was a Buffer 4565object. 4566 4567Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 4568within a buffer would prematurely terminate a compare between buffer 4569objects. 4570 4571Added a check for string overflow (>200 characters as per the ACPI 4572specification) during the Concatenate operator with two string operands. 4573 4574Code and Data Size: Current and previous core subsystem library sizes are 4575shown below. These are the code and data sizes for the acpica.lib produced 4576by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4577any ACPI driver or OSPM code. The debug version of the code includes the 4578debug output trace mechanism and has a much larger code and data size. Note 4579that these values will vary depending on the efficiency of the compiler and 4580the compiler options used during generation. 4581 4582 Previous Release: 4583 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4584 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4585 Current Release: 4586 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4587 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4588 4589 4590 45912) iASL Compiler/Disassembler: 4592 4593Allow the use of the ObjectType operator on uninitialized Locals and Args 4594(returns 0 as per the ACPI specification). 4595 4596Fixed a problem where the compiler would fault if there was a syntax error 4597in the FieldName of all of the various CreateXXXField operators. 4598 4599Disallow the use of lower case letters within the EISAID macro, as per the 4600ACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 4601U is an uppercase letter and N is a hex digit. 4602 4603 4604---------------------------------------- 460506 October 2004. Summary of changes for version 20041006: 4606 46071) ACPI CA Core Subsystem: 4608 4609Implemented support for the ACPI 3.0 Timer operator. This ASL function 4610implements a 64-bit timer with 100 nanosecond granularity. 4611 4612Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 4613implement the ACPI 3.0 Timer operator. This allows the host OS to implement 4614the timer with the best clock available. Also, it keeps the core subsystem 4615out of the clock handling business, since the host OS (usually) performs 4616this function. 4617 4618Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 4619functions use a 64-bit address which is part of the packed ACPI Generic 4620Address Structure. Since the structure is non-aligned, the alignment macros 4621are now used to extract the address to a local variable before use. 4622 4623Fixed a problem where the ToInteger operator assumed all input strings were 4624hexadecimal. The operator now handles both decimal strings and hex strings 4625(prefixed with "0x"). 4626 4627Fixed a problem where the string length in the string object created as a 4628result of the internal ConvertToString procedure could be incorrect. This 4629potentially affected all implicit conversions and also the ToDecimalString 4630and ToHexString operators. 4631 4632Fixed two problems in the ToString operator. If the length parameter was 4633zero, an incorrect string object was created and the value of the input 4634length parameter was inadvertently changed from zero to Ones. 4635 4636Fixed a problem where the optional ResourceSource string in the ExtendedIRQ 4637resource macro was ignored. 4638 4639Simplified the interfaces to the internal division functions, reducing code 4640size and complexity. 4641 4642Code and Data Size: Current and previous core subsystem library sizes are 4643shown below. These are the code and data sizes for the acpica.lib produced 4644by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4645any ACPI driver or OSPM code. The debug version of the code includes the 4646debug output trace mechanism and has a much larger code and data size. Note 4647that these values will vary depending on the efficiency of the compiler and 4648the compiler options used during generation. 4649 4650 Previous Release: 4651 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4652 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4653 Current Release: 4654 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4655 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4656 4657 46582) iASL Compiler/Disassembler: 4659 4660Implemented support for the ACPI 3.0 Timer operator. 4661 4662Fixed a problem where the Default() operator was inadvertently ignored in a 4663Switch/Case block. This was a problem in the translation of the Switch 4664statement to If...Else pairs. 4665 4666Added support to allow a standalone Return operator, with no parentheses (or 4667operands). 4668 4669Fixed a problem with code generation for the ElseIf operator where the 4670translated Else...If parse tree was improperly constructed leading to the 4671loss of some code. 4672 4673---------------------------------------- 467422 September 2004. Summary of changes for version 20040922: 4675 46761) ACPI CA Core Subsystem: 4677 4678Fixed a problem with the implementation of the LNot() operator where "Ones" 4679was not returned for the TRUE case. Changed the code to return Ones instead 4680of (!Arg) which was usually 1. This change affects iASL constant folding for 4681this operator also. 4682 4683Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 4684initialized properly -- Now zero the entire buffer in this case where the 4685buffer already exists. 4686 4687Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 4688Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 4689related code considerably. This will require changes/updates to all OS 4690interface layers (OSLs.) 4691 4692Implemented a new external interface, AcpiInstallExceptionHandler, to allow 4693a system exception handler to be installed. This handler is invoked upon any 4694run-time exception that occurs during control method execution. 4695 4696Added support for the DSDT in AcpiTbFindTable. This allows the 4697DataTableRegion() operator to access the local copy of the DSDT. 4698 4699Code and Data Size: Current and previous core subsystem library sizes are 4700shown below. These are the code and data sizes for the acpica.lib produced 4701by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4702any ACPI driver or OSPM code. The debug version of the code includes the 4703debug output trace mechanism and has a much larger code and data size. Note 4704that these values will vary depending on the efficiency of the compiler and 4705the compiler options used during generation. 4706 4707 Previous Release: 4708 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4709 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4710 Current Release: 4711 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4712 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4713 4714 47152) iASL Compiler/Disassembler: 4716 4717Fixed a problem with constant folding and the LNot operator. LNot was 4718returning 1 in the TRUE case, not Ones as per the ACPI specification. This 4719could result in the generation of an incorrect folded/reduced constant. 4720 4721End-Of-File is now allowed within a "//"-style comment. A parse error no 4722longer occurs if such a comment is at the very end of the input ASL source 4723file. 4724 4725Implemented the "-r" option to override the Revision in the table header. 4726The initial use of this option will be to simplify the evaluation of the AML 4727interpreter by allowing a single ASL source module to be compiled for either 472832-bit or 64-bit integers. 4729 4730 4731---------------------------------------- 473227 August 2004. Summary of changes for version 20040827: 4733 47341) ACPI CA Core Subsystem: 4735 4736- Implemented support for implicit object conversion in the non-numeric 4737logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 4738LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 4739the second operand is implicitly converted on the fly to match the type of 4740the first operand. For example: 4741 4742 LEqual (Source1, Source2) 4743 4744Source1 and Source2 must each evaluate to an integer, a string, or a buffer. 4745The data type of Source1 dictates the required type of Source2. Source2 is 4746implicitly converted if necessary to match the type of Source1. 4747 4748- Updated and corrected the behavior of the string conversion support. The 4749rules concerning conversion of buffers to strings (according to the ACPI 4750specification) are as follows: 4751 4752ToDecimalString - explicit byte-wise conversion of buffer to string of 4753decimal values (0-255) separated by commas. ToHexString - explicit byte-wise 4754conversion of buffer to string of hex values (0-FF) separated by commas. 4755ToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 4756copy with no transform except NULL terminated. Any other implicit buffer-to- 4757string conversion - byte-wise conversion of buffer to string of hex values 4758(0-FF) separated by spaces. 4759 4760- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 4761 4762- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 4763one byte too short in the case of a node in the root scope. This could 4764cause a fault during debug output. 4765 4766- Code and Data Size: Current and previous core subsystem library sizes are 4767shown below. These are the code and data sizes for the acpica.lib produced 4768by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4769any ACPI driver or OSPM code. The debug version of the code includes the 4770debug output trace mechanism and has a much larger code and data size. Note 4771that these values will vary depending on the efficiency of the compiler and 4772the compiler options used during generation. 4773 4774 Previous Release: 4775 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4776 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4777 Current Release: 4778 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4779 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4780 4781 47822) iASL Compiler/Disassembler: 4783 4784- Fixed a Linux generation error. 4785 4786 4787---------------------------------------- 478816 August 2004. Summary of changes for version 20040816: 4789 47901) ACPI CA Core Subsystem: 4791 4792Designed and implemented support within the AML interpreter for the so- 4793called "implicit return". This support returns the result of the last ASL 4794operation within a control method, in the absence of an explicit Return() 4795operator. A few machines depend on this behavior, even though it is not 4796explicitly supported by the ASL language. It is optional support that can 4797be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 4798 4799Removed support for the PCI_Config address space from the internal low level 4800hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 4801support was not used internally, and would not work correctly anyway because 4802the PCI bus number and segment number were not supported. There are 4803separate interfaces for PCI configuration space access because of the unique 4804interface. 4805 4806Code and Data Size: Current and previous core subsystem library sizes are 4807shown below. These are the code and data sizes for the acpica.lib produced 4808by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4809any ACPI driver or OSPM code. The debug version of the code includes the 4810debug output trace mechanism and has a much larger code and data size. Note 4811that these values will vary depending on the efficiency of the compiler and 4812the compiler options used during generation. 4813 4814 Previous Release: 4815 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4816 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 4817 Current Release: 4818 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4819 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4820 4821 48222) iASL Compiler/Disassembler: 4823 4824Fixed a problem where constants in ASL expressions at the root level (not 4825within a control method) could be inadvertently truncated during code 4826generation. This problem was introduced in the 20040715 release. 4827 4828 4829---------------------------------------- 483015 July 2004. Summary of changes for version 20040715: 4831 48321) ACPI CA Core Subsystem: 4833 4834Restructured the internal HW GPE interfaces to pass/track the current state 4835of interrupts (enabled/disabled) in order to avoid possible deadlock and 4836increase flexibility of the interfaces. 4837 4838Implemented a "lexicographical compare" for String and Buffer objects within 4839the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 4840as per further clarification to the ACPI specification. Behavior is similar 4841to C library "strcmp". 4842 4843Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 4844external function. In the 32-bit non-debug case, the stack use has been 4845reduced from 168 bytes to 32 bytes. 4846 4847Deployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 4848whose purpose is to allow the AML interpreter to forgive certain bad AML 4849constructs. Default setting is FALSE. 4850 4851Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 4852support code. If enabled, it allows field access to go beyond the end of a 4853region definition if the field is within the region length rounded up to the 4854next access width boundary (a common coding error.) 4855 4856Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 4857ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 4858symbols are lowercased by the latest version of the AcpiSrc tool. 4859 4860The prototypes for the PCI interfaces in acpiosxf.h have been updated to 4861rename "Register" to simply "Reg" to prevent certain compilers from 4862complaining. 4863 4864Code and Data Size: Current and previous core subsystem library sizes are 4865shown below. These are the code and data sizes for the acpica.lib produced 4866by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4867any ACPI driver or OSPM code. The debug version of the code includes the 4868debug output trace mechanism and has a much larger code and data size. Note 4869that these values will vary depending on the efficiency of the compiler and 4870the compiler options used during generation. 4871 4872 Previous Release: 4873 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4874 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 4875 Current Release: 4876 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4877 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 4878 4879 48802) iASL Compiler/Disassembler: 4881 4882Implemented full support for Package objects within the Case() operator. 4883Note: The Break() operator is currently not supported within Case blocks 4884(TermLists) as there is some question about backward compatibility with ACPI 48851.0 interpreters. 4886 4887 4888Fixed a problem where complex terms were not supported properly within the 4889Switch() operator. 4890 4891Eliminated extraneous warning for compiler-emitted reserved names of the 4892form "_T_x". (Used in Switch/Case operators.) 4893 4894Eliminated optimization messages for "_T_x" objects and small constants 4895within the DefinitionBlock operator. 4896 4897 4898---------------------------------------- 489915 June 2004. Summary of changes for version 20040615: 4900 49011) ACPI CA Core Subsystem: 4902 4903Implemented support for Buffer and String objects (as per ACPI 2.0) for the 4904following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 4905LLessEqual. 4906 4907All directory names in the entire source package are lower case, as they 4908were in earlier releases. 4909 4910Implemented "Disassemble" command in the AML debugger that will disassemble 4911a single control method. 4912 4913Code and Data Size: Current and previous core subsystem library sizes are 4914shown below. These are the code and data sizes for the acpica.lib produced 4915by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4916any ACPI driver or OSPM code. The debug version of the code includes the 4917debug output trace mechanism and has a much larger code and data size. Note 4918that these values will vary depending on the efficiency of the compiler and 4919the compiler options used during generation. 4920 4921 Previous Release: 4922 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 4923 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 4924 4925 Current Release: 4926 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4927 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 4928 4929 49302) iASL Compiler/Disassembler: 4931 4932Implemented support for Buffer and String objects (as per ACPI 2.0) for the 4933following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 4934LLessEqual. 4935 4936All directory names in the entire source package are lower case, as they 4937were in earlier releases. 4938 4939Fixed a fault when using the -g or -d<nofilename> options if the FADT was 4940not found. 4941 4942Fixed an issue with the Windows version of the compiler where later versions 4943of Windows place the FADT in the registry under the name "FADT" and not 4944"FACP" as earlier versions did. This applies when using the -g or - 4945d<nofilename> options. The compiler now looks for both strings as 4946necessary. 4947 4948Fixed a problem with compiler namepath optimization where a namepath within 4949the Scope() operator could not be optimized if the namepath was a subpath of 4950the current scope path. 4951 4952---------------------------------------- 495327 May 2004. Summary of changes for version 20040527: 4954 49551) ACPI CA Core Subsystem: 4956 4957Completed a new design and implementation for EBDA (Extended BIOS Data Area) 4958support in the RSDP scan code. The original code improperly scanned for the 4959EBDA by simply scanning from memory location 0 to 0x400. The correct method 4960is to first obtain the EBDA pointer from within the BIOS data area, then 4961scan 1K of memory starting at the EBDA pointer. There appear to be few if 4962any machines that place the RSDP in the EBDA, however. 4963 4964Integrated a fix for a possible fault during evaluation of BufferField 4965arguments. Obsolete code that was causing the problem was removed. 4966 4967Found and fixed a problem in the Field Support Code where data could be 4968corrupted on a bit field read that starts on an aligned boundary but does 4969not end on an aligned boundary. Merged the read/write "datum length" 4970calculation code into a common procedure. 4971 4972Rolled in a couple of changes to the FreeBSD-specific header. 4973 4974 4975Code and Data Size: Current and previous core subsystem library sizes are 4976shown below. These are the code and data sizes for the acpica.lib produced 4977by the Microsoft Visual C++ 6.0 compiler, and these values do not include 4978any ACPI driver or OSPM code. The debug version of the code includes the 4979debug output trace mechanism and has a much larger code and data size. Note 4980that these values will vary depending on the efficiency of the compiler and 4981the compiler options used during generation. 4982 4983 Previous Release: 4984 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 4985 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 4986 Current Release: 4987 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 4988 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 4989 4990 49912) iASL Compiler/Disassembler: 4992 4993Fixed a generation warning produced by some overly-verbose compilers for a 499464-bit constant. 4995 4996---------------------------------------- 499714 May 2004. Summary of changes for version 20040514: 4998 49991) ACPI CA Core Subsystem: 5000 5001Fixed a problem where hardware GPE enable bits sometimes not set properly 5002during and after GPE method execution. Result of 04/27 changes. 5003 5004Removed extra "clear all GPEs" when sleeping/waking. 5005 5006Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 5007AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 5008the new AcpiEv* calls as appropriate. 5009 5010ACPI_OS_NAME was removed from the OS-specific headers. The default name is 5011now "Microsoft Windows NT" for maximum compatibility. However this can be 5012changed by modifying the acconfig.h file. 5013 5014Allow a single invocation of AcpiInstallNotifyHandler for a handler that 5015traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 5016 5017Run _INI methods on ThermalZone objects. This is against the ACPI 5018specification, but there is apparently ASL code in the field that has these 5019_INI methods, and apparently "other" AML interpreters execute them. 5020 5021Performed a full 16/32/64 bit lint that resulted in some small changes. 5022 5023Added a sleep simulation command to the AML debugger to test sleep code. 5024 5025Code and Data Size: Current and previous core subsystem library sizes are 5026shown below. These are the code and data sizes for the acpica.lib produced 5027by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5028any ACPI driver or OSPM code. The debug version of the code includes the 5029debug output trace mechanism and has a much larger code and data size. Note 5030that these values will vary depending on the efficiency of the compiler and 5031the compiler options used during generation. 5032 5033 Previous Release: 5034 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5035 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5036 Current Release: 5037 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5038 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5039 5040---------------------------------------- 504127 April 2004. Summary of changes for version 20040427: 5042 50431) ACPI CA Core Subsystem: 5044 5045Completed a major overhaul of the GPE handling within ACPI CA. There are 5046now three types of GPEs: wake-only, runtime-only, and combination wake/run. 5047The only GPEs allowed to be combination wake/run are for button-style 5048devices such as a control-method power button, control-method sleep button, 5049or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 5050referenced by any _PRW methods are marked for "runtime" and hardware 5051enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 5052(and disabled at runtime). However, at sleep time, only those GPEs that 5053have been specifically enabled for wake via the AcpiEnableGpe interface will 5054actually be hardware enabled. 5055 5056A new external interface has been added, AcpiSetGpeType(), that is meant to 5057be used by device drivers to force a GPE to a particular type. It will be 5058especially useful for the drivers for the button devices mentioned above. 5059 5060Completed restructuring of the ACPI CA initialization sequence so that 5061default operation region handlers are installed before GPEs are initialized 5062and the _PRW methods are executed. This will prevent errors when the _PRW 5063methods attempt to access system memory or I/O space. 5064 5065GPE enable/disable no longer reads the GPE enable register. We now keep the 5066enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 5067thus no longer depend on the hardware to maintain these bits. 5068 5069Always clear the wake status and fixed/GPE status bits before sleep, even 5070for state S5. 5071 5072Improved the AML debugger output for displaying the GPE blocks and their 5073current status. 5074 5075Added new strings for the _OSI method, of the form "Windows 2001 SPx" where 5076x = 0,1,2,3,4. 5077 5078Fixed a problem where the physical address was incorrectly calculated when 5079the Load() operator was used to directly load from an Operation Region (vs. 5080loading from a Field object.) Also added check for minimum table length for 5081this case. 5082 5083Fix for multiple mutex acquisition. Restore original thread SyncLevel on 5084mutex release. 5085 5086Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 5087consistency with the other fields returned. 5088 5089Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 5090structure for each GPE in the system, so the size of this structure is 5091important. 5092 5093CPU stack requirement reduction: Cleaned up the method execution and object 5094evaluation paths so that now a parameter structure is passed, instead of 5095copying the various method parameters over and over again. 5096 5097In evregion.c: Correctly exit and reenter the interpreter region if and 5098only if dispatching an operation region request to a user-installed handler. 5099Do not exit/reenter when dispatching to a default handler (e.g., default 5100system memory or I/O handlers) 5101 5102 5103Notes for updating drivers for the new GPE support. The following changes 5104must be made to ACPI-related device drivers that are attached to one or more 5105GPEs: (This information will be added to the ACPI CA Programmer Reference.) 5106 51071) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 5108explicitly call AcpiEnableGpe. 51092) There is a new interface called AcpiSetGpeType. This should be called 5110before enabling the GPE. Also, this interface will automatically disable 5111the GPE if it is currently enabled. 51123) AcpiEnableGpe no longer supports a GPE type flag. 5113 5114Specific drivers that must be changed: 51151) EC driver: 5116 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 5117AeGpeHandler, NULL); 5118 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 5119 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 5120 51212) Button Drivers (Power, Lid, Sleep): 5122Run _PRW method under parent device 5123If _PRW exists: /* This is a control-method button */ 5124 Extract GPE number and possibly GpeDevice 5125 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 5126 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 5127 5128For all other devices that have _PRWs, we automatically set the GPE type to 5129ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 5130must be done on a selective basis, usually requiring some kind of user app 5131to allow the user to pick the wake devices. 5132 5133 5134Code and Data Size: Current and previous core subsystem library sizes are 5135shown below. These are the code and data sizes for the acpica.lib produced 5136by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5137any ACPI driver or OSPM code. The debug version of the code includes the 5138debug output trace mechanism and has a much larger code and data size. Note 5139that these values will vary depending on the efficiency of the compiler and 5140the compiler options used during generation. 5141 5142 Previous Release: 5143 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5144 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5145 Current Release: 5146 5147 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5148 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5149 5150 5151 5152---------------------------------------- 515302 April 2004. Summary of changes for version 20040402: 5154 51551) ACPI CA Core Subsystem: 5156 5157Fixed an interpreter problem where an indirect store through an ArgX 5158parameter was incorrectly applying the "implicit conversion rules" during 5159the store. From the ACPI specification: "If the target is a method local or 5160argument (LocalX or ArgX), no conversion is performed and the result is 5161stored directly to the target". The new behavior is to disable implicit 5162conversion during ALL stores to an ArgX. 5163 5164Changed the behavior of the _PRW method scan to ignore any and all errors 5165returned by a given _PRW. This prevents the scan from aborting from the 5166failure of any single _PRW. 5167 5168Moved the runtime configuration parameters from the global init procedure to 5169static variables in acglobal.h. This will allow the host to override the 5170default values easily. 5171 5172Code and Data Size: Current and previous core subsystem library sizes are 5173shown below. These are the code and data sizes for the acpica.lib produced 5174by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5175any ACPI driver or OSPM code. The debug version of the code includes the 5176debug output trace mechanism and has a much larger code and data size. Note 5177that these values will vary depending on the efficiency of the compiler and 5178the compiler options used during generation. 5179 5180 Previous Release: 5181 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5182 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5183 Current Release: 5184 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5185 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5186 5187 51882) iASL Compiler/Disassembler: 5189 5190iASL now fully disassembles SSDTs. However, External() statements are not 5191generated automatically for unresolved symbols at this time. This is a 5192planned feature for future implementation. 5193 5194Fixed a scoping problem in the disassembler that occurs when the type of the 5195target of a Scope() operator is overridden. This problem caused an 5196incorrectly nested internal namespace to be constructed. 5197 5198Any warnings or errors that are emitted during disassembly are now commented 5199out automatically so that the resulting file can be recompiled without any 5200hand editing. 5201 5202---------------------------------------- 520326 March 2004. Summary of changes for version 20040326: 5204 52051) ACPI CA Core Subsystem: 5206 5207Implemented support for "wake" GPEs via interaction between GPEs and the 5208_PRW methods. Every GPE that is pointed to by one or more _PRWs is 5209identified as a WAKE GPE and by default will no longer be enabled at 5210runtime. Previously, we were blindly enabling all GPEs with a corresponding 5211_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 5212believe this has been the cause of thousands of "spurious" GPEs on some 5213systems. 5214 5215This new GPE behavior is can be reverted to the original behavior (enable 5216ALL GPEs at runtime) via a runtime flag. 5217 5218Fixed a problem where aliased control methods could not access objects 5219properly. The proper scope within the namespace was not initialized 5220(transferred to the target of the aliased method) before executing the 5221target method. 5222 5223Fixed a potential race condition on internal object deletion on the return 5224object in AcpiEvaluateObject. 5225 5226Integrated a fix for resource descriptors where both _MEM and _MTP were 5227being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 5228wide, 0x0F instead of 0x03.) 5229 5230Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 5231fault in some cases. 5232 5233Updated Notify() values for debug statements in evmisc.c 5234 5235Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 5236 5237Code and Data Size: Current and previous core subsystem library sizes are 5238shown below. These are the code and data sizes for the acpica.lib produced 5239by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5240any ACPI driver or OSPM code. The debug version of the code includes the 5241debug output trace mechanism and has a much larger code and data size. Note 5242that these values will vary depending on the efficiency of the compiler and 5243the compiler options used during generation. 5244 5245 Previous Release: 5246 5247 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5248 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5249 Current Release: 5250 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5251 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5252 5253---------------------------------------- 525411 March 2004. Summary of changes for version 20040311: 5255 52561) ACPI CA Core Subsystem: 5257 5258Fixed a problem where errors occurring during the parse phase of control 5259method execution did not abort cleanly. For example, objects created and 5260installed in the namespace were not deleted. This caused all subsequent 5261invocations of the method to return the AE_ALREADY_EXISTS exception. 5262 5263Implemented a mechanism to force a control method to "Serialized" execution 5264if the method attempts to create namespace objects. (The root of the 5265AE_ALREADY_EXISTS problem.) 5266 5267Implemented support for the predefined _OSI "internal" control method. 5268Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 5269"Windows 2001.1", and can be easily upgraded for new strings as necessary. 5270This feature will allow "other" operating systems to execute the fully 5271tested, "Windows" code path through the ASL code 5272 5273Global Lock Support: Now allows multiple acquires and releases with any 5274internal thread. Removed concept of "owning thread" for this special mutex. 5275 5276Fixed two functions that were inappropriately declaring large objects on the 5277CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 5278method execution considerably. 5279 5280Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 5281S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 5282 5283Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 5284defined on the machine. 5285 5286Implemented two runtime options: One to force all control method execution 5287to "Serialized" to mimic Windows behavior, another to disable _OSI support 5288if it causes problems on a given machine. 5289 5290Code and Data Size: Current and previous core subsystem library sizes are 5291shown below. These are the code and data sizes for the acpica.lib produced 5292by the Microsoft Visual C++ 6.0 compiler, and these values do not include 5293any ACPI driver or OSPM code. The debug version of the code includes the 5294debug output trace mechanism and has a much larger code and data size. Note 5295that these values will vary depending on the efficiency of the compiler and 5296the compiler options used during generation. 5297 5298 Previous Release: 5299 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5300 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5301 Current Release: 5302 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5303 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5304 53052) iASL Compiler/Disassembler: 5306 5307Fixed an array size problem for FreeBSD that would cause the compiler to 5308fault. 5309 5310---------------------------------------- 531120 February 2004. Summary of changes for version 20040220: 5312 5313 53141) ACPI CA Core Subsystem: 5315 5316Implemented execution of _SxD methods for Device objects in the 5317GetObjectInfo interface. 5318 5319Fixed calls to _SST method to pass the correct arguments. 5320 5321Added a call to _SST on wake to restore to "working" state. 5322 5323Check for End-Of-Buffer failure case in the WalkResources interface. 5324 5325Integrated fix for 64-bit alignment issue in acglobal.h by moving two 5326structures to the beginning of the file. 5327 5328After wake, clear GPE status register(s) before enabling GPEs. 5329 5330After wake, clear/enable power button. (Perhaps we should clear/enable all 5331fixed events upon wake.) 5332 5333Fixed a couple of possible memory leaks in the Namespace manager. 5334 5335Integrated latest acnetbsd.h file. 5336 5337---------------------------------------- 533811 February 2004. Summary of changes for version 20040211: 5339 5340 53411) ACPI CA Core Subsystem: 5342 5343Completed investigation and implementation of the call-by-reference 5344mechanism for control method arguments. 5345 5346Fixed a problem where a store of an object into an indexed package could 5347fail if the store occurs within a different method than the method that 5348created the package. 5349 5350Fixed a problem where the ToDecimal operator could return incorrect results. 5351 5352Fixed a problem where the CopyObject operator could fail on some of the more 5353obscure objects (e.g., Reference objects.) 5354 5355Improved the output of the Debug object to display buffer, package, and 5356index objects. 5357 5358Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 5359the expected result. 5360 5361Added permanent ACPI_REPORT_ERROR macros for all instances of the 5362ACPI_AML_INTERNAL exception. 5363 5364Integrated latest version of acfreebsd.h 5365 5366---------------------------------------- 536716 January 2004. Summary of changes for version 20040116: 5368 5369The purpose of this release is primarily to update the copyright years in 5370each module, thus causing a huge number of diffs. There are a few small 5371functional changes, however. 5372 53731) ACPI CA Core Subsystem: 5374 5375Improved error messages when there is a problem finding one or more of the 5376required base ACPI tables 5377 5378Reintroduced the definition of APIC_HEADER in actbl.h 5379 5380Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 5381 5382Removed extraneous reference to NewObj in dsmthdat.c 5383 53842) iASL compiler 5385 5386Fixed a problem introduced in December that disabled the correct disassembly 5387of Resource Templates 5388 5389 5390---------------------------------------- 539103 December 2003. Summary of changes for version 20031203: 5392 53931) ACPI CA Core Subsystem: 5394 5395Changed the initialization of Operation Regions during subsystem 5396init to perform two entire walks of the ACPI namespace; The first 5397to initialize the regions themselves, the second to execute the 5398_REG methods. This fixed some interdependencies across _REG 5399methods found on some machines. 5400 5401Fixed a problem where a Store(Local0, Local1) could simply update 5402the object reference count, and not create a new copy of the 5403object if the Local1 is uninitialized. 5404 5405Implemented support for the _SST reserved method during sleep 5406transitions. 5407 5408Implemented support to clear the SLP_TYP and SLP_EN bits when 5409waking up, this is apparently required by some machines. 5410 5411When sleeping, clear the wake status only if SleepState is not S5. 5412 5413Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 5414pointer arithmetic advanced a string pointer too far. 5415 5416Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 5417could be returned if the requested table has not been loaded. 5418 5419Within the support for IRQ resources, restructured the handling of 5420the active and edge/level bits. 5421 5422Fixed a few problems in AcpiPsxExecute() where memory could be 5423leaked under certain error conditions. 5424 5425Improved error messages for the cases where the ACPI mode could 5426not be entered. 5427 5428Code and Data Size: Current and previous core subsystem library 5429sizes are shown below. These are the code and data sizes for the 5430acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5431these values do not include any ACPI driver or OSPM code. The 5432debug version of the code includes the debug output trace 5433mechanism and has a much larger code and data size. Note that 5434these values will vary depending on the efficiency of the compiler 5435and the compiler options used during generation. 5436 5437 Previous Release (20031029): 5438 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5439 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5440 Current Release: 5441 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5442 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5443 54442) iASL Compiler/Disassembler: 5445 5446Implemented a fix for the iASL disassembler where a bad index was 5447generated. This was most noticeable on 64-bit platforms 5448 5449 5450---------------------------------------- 545129 October 2003. Summary of changes for version 20031029: 5452 54531) ACPI CA Core Subsystem: 5454 5455 5456Fixed a problem where a level-triggered GPE with an associated 5457_Lxx control method was incorrectly cleared twice. 5458 5459Fixed a problem with the Field support code where an access can 5460occur beyond the end-of-region if the field is non-aligned but 5461extends to the very end of the parent region (resulted in an 5462AE_AML_REGION_LIMIT exception.) 5463 5464Fixed a problem with ACPI Fixed Events where an RT Clock handler 5465would not get invoked on an RTC event. The RTC event bitmasks for 5466the PM1 registers were not being initialized properly. 5467 5468Implemented support for executing _STA and _INI methods for 5469Processor objects. Although this is currently not part of the 5470ACPI specification, there is existing ASL code that depends on the 5471init-time execution of these methods. 5472 5473Implemented and deployed a GetDescriptorName function to decode 5474the various types of internal descriptors. Guards against null 5475descriptors during debug output also. 5476 5477Implemented and deployed a GetNodeName function to extract the 4- 5478character namespace node name. This function simplifies the debug 5479and error output, as well as guarding against null pointers during 5480output. 5481 5482Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 5483simplify the debug and error output of 64-bit integers. This 5484macro replaces the HIDWORD and LODWORD macros for dumping these 5485integers. 5486 5487Updated the implementation of the Stall() operator to only call 5488AcpiOsStall(), and also return an error if the operand is larger 5489than 255. This preserves the required behavior of not 5490relinquishing the processor, as would happen if AcpiOsSleep() was 5491called for "long stalls". 5492 5493Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 5494initialized are now treated as NOOPs. 5495 5496Cleaned up a handful of warnings during 64-bit generation. 5497 5498Fixed a reported error where and incorrect GPE number was passed 5499to the GPE dispatch handler. This value is only used for error 5500output, however. Used this opportunity to clean up and streamline 5501the GPE dispatch code. 5502 5503Code and Data Size: Current and previous core subsystem library 5504sizes are shown below. These are the code and data sizes for the 5505acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5506these values do not include any ACPI driver or OSPM code. The 5507 5508debug version of the code includes the debug output trace 5509mechanism and has a much larger code and data size. Note that 5510these values will vary depending on the efficiency of the compiler 5511and the compiler options used during generation. 5512 5513 Previous Release (20031002): 5514 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5515 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5516 Current Release: 5517 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5518 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5519 5520 55212) iASL Compiler/Disassembler: 5522 5523Updated the iASL compiler to return an error if the operand to the 5524Stall() operator is larger than 255. 5525 5526 5527---------------------------------------- 552802 October 2003. Summary of changes for version 20031002: 5529 5530 55311) ACPI CA Core Subsystem: 5532 5533Fixed a problem with Index Fields where the index was not 5534incremented for fields that require multiple writes to the 5535index/data registers (Fields that are wider than the data 5536register.) 5537 5538Fixed a problem with all Field objects where a write could go 5539beyond the end-of-field if the field was larger than the access 5540granularity and therefore required multiple writes to complete the 5541request. An extra write beyond the end of the field could happen 5542inadvertently. 5543 5544Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 5545would incorrectly be returned if the width of the Data Register 5546was larger than the specified field access width. 5547 5548Completed fixes for LoadTable() and Unload() and verified their 5549operation. Implemented full support for the "DdbHandle" object 5550throughout the ACPI CA subsystem. 5551 5552Implemented full support for the MADT and ECDT tables in the ACPI 5553CA header files. Even though these tables are not directly 5554consumed by ACPI CA, the header definitions are useful for ACPI 5555device drivers. 5556 5557Integrated resource descriptor fixes posted to the Linux ACPI 5558list. This included checks for minimum descriptor length, and 5559support for trailing NULL strings within descriptors that have 5560optional string elements. 5561 5562Code and Data Size: Current and previous core subsystem library 5563sizes are shown below. These are the code and data sizes for the 5564acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5565these values do not include any ACPI driver or OSPM code. The 5566debug version of the code includes the debug output trace 5567mechanism and has a much larger code and data size. Note that 5568these values will vary depending on the efficiency of the compiler 5569and the compiler options used during generation. 5570 5571 Previous Release (20030918): 5572 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5573 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5574 Current Release: 5575 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5576 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5577 5578 55792) iASL Compiler: 5580 5581Implemented detection of non-ASCII characters within the input 5582source ASL file. This catches attempts to compile binary (AML) 5583files early in the compile, with an informative error message. 5584 5585Fixed a problem where the disassembler would fault if the output 5586filename could not be generated or if the output file could not be 5587opened. 5588 5589---------------------------------------- 559018 September 2003. Summary of changes for version 20030918: 5591 5592 55931) ACPI CA Core Subsystem: 5594 5595Found and fixed a longstanding problem with the late execution of 5596the various deferred AML opcodes (such as Operation Regions, 5597Buffer Fields, Buffers, and Packages). If the name string 5598specified for the name of the new object placed the object in a 5599scope other than the current scope, the initialization/execution 5600of the opcode failed. The solution to this problem was to 5601implement a mechanism where the late execution of such opcodes 5602does not attempt to lookup/create the name a second time in an 5603incorrect scope. This fixes the "region size computed 5604incorrectly" problem. 5605 5606Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 5607Global Lock AE_BAD_PARAMETER error. 5608 5609Fixed several 64-bit issues with prototypes, casting and data 5610types. 5611 5612Removed duplicate prototype from acdisasm.h 5613 5614Fixed an issue involving EC Operation Region Detach (Shaohua Li) 5615 5616Code and Data Size: Current and previous core subsystem library 5617sizes are shown below. These are the code and data sizes for the 5618acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5619these values do not include any ACPI driver or OSPM code. The 5620debug version of the code includes the debug output trace 5621mechanism and has a much larger code and data size. Note that 5622these values will vary depending on the efficiency of the compiler 5623and the compiler options used during generation. 5624 5625 Previous Release: 5626 5627 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5628 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5629 Current Release: 5630 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5631 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5632 5633 56342) Linux: 5635 5636Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 5637correct sleep time in seconds. 5638 5639---------------------------------------- 564014 July 2003. Summary of changes for version 20030619: 5641 56421) ACPI CA Core Subsystem: 5643 5644Parse SSDTs in order discovered, as opposed to reverse order 5645(Hrvoje Habjanic) 5646 5647Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 5648Klausner, 5649 Nate Lawson) 5650 5651 56522) Linux: 5653 5654Dynamically allocate SDT list (suggested by Andi Kleen) 5655 5656proc function return value cleanups (Andi Kleen) 5657 5658Correctly handle NMI watchdog during long stalls (Andrew Morton) 5659 5660Make it so acpismp=force works (reported by Andrew Morton) 5661 5662 5663---------------------------------------- 566419 June 2003. Summary of changes for version 20030619: 5665 56661) ACPI CA Core Subsystem: 5667 5668Fix To/FromBCD, eliminating the need for an arch-specific #define. 5669 5670Do not acquire a semaphore in the S5 shutdown path. 5671 5672Fix ex_digits_needed for 0. (Takayoshi Kochi) 5673 5674Fix sleep/stall code reversal. (Andi Kleen) 5675 5676Revert a change having to do with control method calling 5677semantics. 5678 56792) Linux: 5680 5681acpiphp update (Takayoshi Kochi) 5682 5683Export acpi_disabled for sonypi (Stelian Pop) 5684 5685Mention acpismp=force in config help 5686 5687Re-add acpitable.c and acpismp=force. This improves backwards 5688 5689compatibility and also cleans up the code to a significant degree. 5690 5691Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 5692 5693---------------------------------------- 569422 May 2003. Summary of changes for version 20030522: 5695 56961) ACPI CA Core Subsystem: 5697 5698Found and fixed a reported problem where an AE_NOT_FOUND error 5699occurred occasionally during _BST evaluation. This turned out to 5700be an Owner ID allocation issue where a called method did not get 5701a new ID assigned to it. Eventually, (after 64k calls), the Owner 5702ID UINT16 would wraparound so that the ID would be the same as the 5703caller's and the called method would delete the caller's 5704namespace. 5705 5706Implemented extended error reporting for control methods that are 5707aborted due to a run-time exception. Output includes the exact 5708AML instruction that caused the method abort, a dump of the method 5709locals and arguments at the time of the abort, and a trace of all 5710nested control method calls. 5711 5712Modified the interpreter to allow the creation of buffers of zero 5713length from the AML code. Implemented new code to ensure that no 5714attempt is made to actually allocate a memory buffer (of length 5715zero) - instead, a simple buffer object with a NULL buffer pointer 5716and length zero is created. A warning is no longer issued when 5717the AML attempts to create a zero-length buffer. 5718 5719Implemented a workaround for the "leading asterisk issue" in 5720_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 5721asterisk is automatically removed if present in any HID, UID, or 5722CID strings. The iASL compiler will still flag this asterisk as 5723an error, however. 5724 5725Implemented full support for _CID methods that return a package of 5726multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 5727now additionally returns a device _CID list if present. This 5728required a change to the external interface in order to pass an 5729ACPI_BUFFER object as a parameter since the _CID list is of 5730variable length. 5731 5732Fixed a problem with the new AE_SAME_HANDLER exception where 5733handler initialization code did not know about this exception. 5734 5735Code and Data Size: Current and previous core subsystem library 5736sizes are shown below. These are the code and data sizes for the 5737acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5738these values do not include any ACPI driver or OSPM code. The 5739debug version of the code includes the debug output trace 5740mechanism and has a much larger code and data size. Note that 5741these values will vary depending on the efficiency of the compiler 5742and the compiler options used during generation. 5743 5744 Previous Release (20030509): 5745 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5746 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5747 Current Release: 5748 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5749 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5750 5751 57522) Linux: 5753 5754Fixed a bug in which we would reinitialize the ACPI interrupt 5755after it was already working, thus disabling all ACPI and the IRQs 5756for any other device sharing the interrupt. (Thanks to Stian 5757Jordet) 5758 5759Toshiba driver update (John Belmonte) 5760 5761Return only 0 or 1 for our interrupt handler status (Andrew 5762Morton) 5763 5764 57653) iASL Compiler: 5766 5767Fixed a reported problem where multiple (nested) ElseIf() 5768statements were not handled correctly by the compiler, resulting 5769in incorrect warnings and incorrect AML code. This was a problem 5770in both the ASL parser and the code generator. 5771 5772 57734) Documentation: 5774 5775Added changes to existing interfaces, new exception codes, and new 5776text concerning reference count object management versus garbage 5777collection. 5778 5779---------------------------------------- 578009 May 2003. Summary of changes for version 20030509. 5781 5782 57831) ACPI CA Core Subsystem: 5784 5785Changed the subsystem initialization sequence to hold off 5786installation of address space handlers until the hardware has been 5787initialized and the system has entered ACPI mode. This is because 5788the installation of space handlers can cause _REG methods to be 5789run. Previously, the _REG methods could potentially be run before 5790ACPI mode was enabled. 5791 5792Fixed some memory leak issues related to address space handler and 5793notify handler installation. There were some problems with the 5794reference count mechanism caused by the fact that the handler 5795objects are shared across several namespace objects. 5796 5797Fixed a reported problem where reference counts within the 5798namespace were not properly updated when named objects created by 5799method execution were deleted. 5800 5801Fixed a reported problem where multiple SSDTs caused a deletion 5802issue during subsystem termination. Restructured the table data 5803structures to simplify the linked lists and the related code. 5804 5805Fixed a problem where the table ID associated with secondary 5806tables (SSDTs) was not being propagated into the namespace objects 5807created by those tables. This would only present a problem for 5808tables that are unloaded at run-time, however. 5809 5810Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 5811type as the length parameter (instead of UINT32). 5812 5813Solved a long-standing problem where an ALREADY_EXISTS error 5814appears on various systems. This problem could happen when there 5815are multiple PCI_Config operation regions under a single PCI root 5816bus. This doesn't happen very frequently, but there are some 5817systems that do this in the ASL. 5818 5819Fixed a reported problem where the internal DeleteNode function 5820was incorrectly handling the case where a namespace node was the 5821first in the parent's child list, and had additional peers (not 5822the only child, but first in the list of children.) 5823 5824Code and Data Size: Current core subsystem library sizes are shown 5825below. These are the code and data sizes for the acpica.lib 5826produced by the Microsoft Visual C++ 6.0 compiler, and these 5827values do not include any ACPI driver or OSPM code. The debug 5828version of the code includes the debug output trace mechanism and 5829has a much larger code and data size. Note that these values will 5830vary depending on the efficiency of the compiler and the compiler 5831options used during generation. 5832 5833 Previous Release 5834 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 5835 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 5836 Current Release: 5837 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5838 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5839 5840 58412) Linux: 5842 5843Allow ":" in OS override string (Ducrot Bruno) 5844 5845Kobject fix (Greg KH) 5846 5847 58483 iASL Compiler/Disassembler: 5849 5850Fixed a problem in the generation of the C source code files (AML 5851is emitted in C source statements for BIOS inclusion) where the 5852Ascii dump that appears within a C comment at the end of each line 5853could cause a compile time error if the AML sequence happens to 5854have an open comment or close comment sequence embedded. 5855 5856 5857---------------------------------------- 585824 April 2003. Summary of changes for version 20030424. 5859 5860 58611) ACPI CA Core Subsystem: 5862 5863Support for big-endian systems has been implemented. Most of the 5864support has been invisibly added behind big-endian versions of the 5865ACPI_MOVE_* macros. 5866 5867Fixed a problem in AcpiHwDisableGpeBlock() and 5868AcpiHwClearGpeBlock() where an incorrect offset was passed to the 5869low level hardware write routine. The offset parameter was 5870actually eliminated from the low level read/write routines because 5871they had become obsolete. 5872 5873Fixed a problem where a handler object was deleted twice during 5874the removal of a fixed event handler. 5875 5876 58772) Linux: 5878 5879A fix for SMP systems with link devices was contributed by 5880 5881Compaq's Dan Zink. 5882 5883(2.5) Return whether we handled the interrupt in our IRQ handler. 5884(Linux ISRs no longer return void, so we can propagate the handler 5885return value from the ACPI CA core back to the OS.) 5886 5887 5888 58893) Documentation: 5890 5891The ACPI CA Programmer Reference has been updated to reflect new 5892interfaces and changes to existing interfaces. 5893 5894---------------------------------------- 589528 March 2003. Summary of changes for version 20030328. 5896 58971) ACPI CA Core Subsystem: 5898 5899The GPE Block Device support has been completed. New interfaces 5900are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 5901interfaces (enable, disable, clear, getstatus) have been split 5902into separate interfaces for Fixed Events and General Purpose 5903Events (GPEs) in order to support GPE Block Devices properly. 5904 5905Fixed a problem where the error message "Failed to acquire 5906semaphore" would appear during operations on the embedded 5907controller (EC). 5908 5909Code and Data Size: Current core subsystem library sizes are shown 5910below. These are the code and data sizes for the acpica.lib 5911produced by the Microsoft Visual C++ 6.0 compiler, and these 5912values do not include any ACPI driver or OSPM code. The debug 5913version of the code includes the debug output trace mechanism and 5914has a much larger code and data size. Note that these values will 5915vary depending on the efficiency of the compiler and the compiler 5916options used during generation. 5917 5918 Previous Release 5919 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 5920 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 5921 Current Release: 5922 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 5923 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 5924 5925 5926---------------------------------------- 592728 February 2003. Summary of changes for version 20030228. 5928 5929 59301) ACPI CA Core Subsystem: 5931 5932The GPE handling and dispatch code has been completely overhauled 5933in preparation for support of GPE Block Devices (ID ACPI0006). 5934This affects internal data structures and code only; there should 5935be no differences visible externally. One new file has been 5936added, evgpeblk.c 5937 5938The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 5939fields that are used to determine the GPE block lengths. The 5940REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 5941structures are ignored. This is per the ACPI specification but it 5942isn't very clear. The full 256 Block 0/1 GPEs are now supported 5943(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 5944 5945In the SCI interrupt handler, removed the read of the PM1_CONTROL 5946register to look at the SCI_EN bit. On some machines, this read 5947causes an SMI event and greatly slows down SCI events. (This may 5948in fact be the cause of slow battery status response on some 5949systems.) 5950 5951Fixed a problem where a store of a NULL string to a package object 5952could cause the premature deletion of the object. This was seen 5953during execution of the battery _BIF method on some systems, 5954resulting in no battery data being returned. 5955 5956Added AcpiWalkResources interface to simplify parsing of resource 5957lists. 5958 5959Code and Data Size: Current core subsystem library sizes are shown 5960below. These are the code and data sizes for the acpica.lib 5961produced by the Microsoft Visual C++ 6.0 compiler, and these 5962values do not include any ACPI driver or OSPM code. The debug 5963version of the code includes the debug output trace mechanism and 5964has a much larger code and data size. Note that these values will 5965vary depending on the efficiency of the compiler and the compiler 5966options used during generation. 5967 5968 Previous Release 5969 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 5970 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 5971 Current Release: 5972 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 5973 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 5974 5975 59762) Linux 5977 5978S3 fixes (Ole Rohne) 5979 5980Update ACPI PHP driver with to use new acpi_walk_resource API 5981(Bjorn Helgaas) 5982 5983Add S4BIOS support (Pavel Machek) 5984 5985Map in entire table before performing checksum (John Stultz) 5986 5987Expand the mem= cmdline to allow the specification of reserved and 5988ACPI DATA blocks (Pavel Machek) 5989 5990Never use ACPI on VISWS 5991 5992Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 5993 5994Revert a change that allowed P_BLK lengths to be 4 or 5. This is 5995causing us to think that some systems support C2 when they really 5996don't. 5997 5998Do not count processor objects for non-present CPUs (Thanks to 5999Dominik Brodowski) 6000 6001 60023) iASL Compiler: 6003 6004Fixed a problem where ASL include files could not be found and 6005opened. 6006 6007Added support for the _PDC reserved name. 6008 6009 6010---------------------------------------- 601122 January 2003. Summary of changes for version 20030122. 6012 6013 60141) ACPI CA Core Subsystem: 6015 6016Added a check for constructs of the form: Store (Local0, Local0) 6017where Local0 is not initialized. Apparently, some BIOS 6018programmers believe that this is a NOOP. Since this store doesn't 6019do anything anyway, the new prototype behavior will ignore this 6020error. This is a case where we can relax the strict checking in 6021the interpreter in the name of compatibility. 6022 6023 60242) Linux 6025 6026The AcpiSrc Source Conversion Utility has been released with the 6027Linux package for the first time. This is the utility that is 6028used to convert the ACPI CA base source code to the Linux version. 6029 6030(Both) Handle P_BLK lengths shorter than 6 more gracefully 6031 6032(Both) Move more headers to include/acpi, and delete an unused 6033header. 6034 6035(Both) Move drivers/acpi/include directory to include/acpi 6036 6037(Both) Boot functions don't use cmdline, so don't pass it around 6038 6039(Both) Remove include of unused header (Adrian Bunk) 6040 6041(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 6042the 6043former now also includes the latter, acpiphp.h only needs the one, 6044now. 6045 6046(2.5) Make it possible to select method of bios restoring after S3 6047resume. [=> no more ugly ifdefs] (Pavel Machek) 6048 6049(2.5) Make proc write interfaces work (Pavel Machek) 6050 6051(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 6052 6053(2.5) Break out ACPI Perf code into its own module, under cpufreq 6054(Dominik Brodowski) 6055 6056(2.4) S4BIOS support (Ducrot Bruno) 6057 6058(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 6059Visinoni) 6060 6061 60623) iASL Compiler: 6063 6064Added support to disassemble SSDT and PSDTs. 6065 6066Implemented support to obtain SSDTs from the Windows registry if 6067available. 6068 6069 6070---------------------------------------- 607109 January 2003. Summary of changes for version 20030109. 6072 60731) ACPI CA Core Subsystem: 6074 6075Changed the behavior of the internal Buffer-to-String conversion 6076function. The current ACPI specification states that the contents 6077of the buffer are "converted to a string of two-character 6078hexadecimal numbers, each separated by a space". Unfortunately, 6079this definition is not backwards compatible with existing ACPI 1.0 6080implementations (although the behavior was not defined in the ACPI 60811.0 specification). The new behavior simply copies data from the 6082buffer to the string until a null character is found or the end of 6083the buffer is reached. The new String object is always null 6084terminated. This problem was seen during the generation of _BIF 6085battery data where incorrect strings were returned for battery 6086type, etc. This will also require an errata to the ACPI 6087specification. 6088 6089Renamed all instances of NATIVE_UINT and NATIVE_INT to 6090ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 6091 6092Copyright in all module headers (both Linux and non-Linux) has be 6093updated to 2003. 6094 6095Code and Data Size: Current core subsystem library sizes are shown 6096below. These are the code and data sizes for the acpica.lib 6097produced by the Microsoft Visual C++ 6.0 compiler, and these 6098values do not include any ACPI driver or OSPM code. The debug 6099version of the code includes the debug output trace mechanism and 6100has a much larger code and data size. Note that these values will 6101vary depending on the efficiency of the compiler and the compiler 6102options used during generation. 6103 6104 Previous Release 6105 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6106 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6107 Current Release: 6108 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6109 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6110 6111 61122) Linux 6113 6114Fixed an oops on module insertion/removal (Matthew Tippett) 6115 6116(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 6117 6118(2.5) Replace pr_debug (Randy Dunlap) 6119 6120(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 6121 6122(Both) Eliminate spawning of thread from timer callback, in favor 6123of schedule_work() 6124 6125(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 6126 6127(Both) Added define for Fixed Function HW region (Matthew Wilcox) 6128 6129(Both) Add missing statics to button.c (Pavel Machek) 6130 6131Several changes have been made to the source code translation 6132utility that generates the Linux Code in order to make the code 6133more "Linux-like": 6134 6135All typedefs on structs and unions have been removed in keeping 6136with the Linux coding style. 6137 6138Removed the non-Linux SourceSafe module revision number from each 6139module header. 6140 6141Completed major overhaul of symbols to be lowercased for linux. 6142Doubled the number of symbols that are lowercased. 6143 6144Fixed a problem where identifiers within procedure headers and 6145within quotes were not fully lower cased (they were left with a 6146starting capital.) 6147 6148Some C macros whose only purpose is to allow the generation of 16- 6149bit code are now completely removed in the Linux code, increasing 6150readability and maintainability. 6151 6152---------------------------------------- 6153 615412 December 2002. Summary of changes for version 20021212. 6155 6156 61571) ACPI CA Core Subsystem: 6158 6159Fixed a problem where the creation of a zero-length AML Buffer 6160would cause a fault. 6161 6162Fixed a problem where a Buffer object that pointed to a static AML 6163buffer (in an ACPI table) could inadvertently be deleted, causing 6164memory corruption. 6165 6166Fixed a problem where a user buffer (passed in to the external 6167ACPI CA interfaces) could be overwritten if the buffer was too 6168small to complete the operation, causing memory corruption. 6169 6170Fixed a problem in the Buffer-to-String conversion code where a 6171string of length one was always returned, regardless of the size 6172of the input Buffer object. 6173 6174Removed the NATIVE_CHAR data type across the entire source due to 6175lack of need and lack of consistent use. 6176 6177Code and Data Size: Current core subsystem library sizes are shown 6178below. These are the code and data sizes for the acpica.lib 6179produced by the Microsoft Visual C++ 6.0 compiler, and these 6180values do not include any ACPI driver or OSPM code. The debug 6181version of the code includes the debug output trace mechanism and 6182has a much larger code and data size. Note that these values will 6183vary depending on the efficiency of the compiler and the compiler 6184options used during generation. 6185 6186 Previous Release 6187 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6188 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6189 Current Release: 6190 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6191 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6192 6193 6194---------------------------------------- 619505 December 2002. Summary of changes for version 20021205. 6196 61971) ACPI CA Core Subsystem: 6198 6199Fixed a problem where a store to a String or Buffer object could 6200cause corruption of the DSDT if the object type being stored was 6201the same as the target object type and the length of the object 6202being stored was equal to or smaller than the original (existing) 6203target object. This was seen to cause corruption of battery _BIF 6204buffers if the _BIF method modified the buffer on the fly. 6205 6206Fixed a problem where an internal error was generated if a control 6207method invocation was used in an OperationRegion, Buffer, or 6208Package declaration. This was caused by the deferred parsing of 6209the control method and thus the deferred creation of the internal 6210method object. The solution to this problem was to create the 6211internal method object at the moment the method is encountered in 6212the first pass - so that subsequent references to the method will 6213able to obtain the required parameter count and thus properly 6214parse the method invocation. This problem presented itself as an 6215AE_AML_INTERNAL during the pass 1 parse phase during table load. 6216 6217Fixed a problem where the internal String object copy routine did 6218not always allocate sufficient memory for the target String object 6219and caused memory corruption. This problem was seen to cause 6220"Allocation already present in list!" errors as memory allocation 6221became corrupted. 6222 6223Implemented a new function for the evaluation of namespace objects 6224that allows the specification of the allowable return object 6225types. This simplifies a lot of code that checks for a return 6226object of one or more specific objects returned from the 6227evaluation (such as _STA, etc.) This may become and external 6228function if it would be useful to ACPI-related drivers. 6229 6230Completed another round of prefixing #defines with "ACPI_" for 6231clarity. 6232 6233Completed additional code restructuring to allow more modular 6234linking for iASL compiler and AcpiExec. Several files were split 6235creating new files. New files: nsparse.c dsinit.c evgpe.c 6236 6237Implemented an abort mechanism to terminate an executing control 6238method via the AML debugger. This feature is useful for debugging 6239control methods that depend (wait) for specific hardware 6240responses. 6241 6242Code and Data Size: Current core subsystem library sizes are shown 6243below. These are the code and data sizes for the acpica.lib 6244produced by the Microsoft Visual C++ 6.0 compiler, and these 6245values do not include any ACPI driver or OSPM code. The debug 6246version of the code includes the debug output trace mechanism and 6247has a much larger code and data size. Note that these values will 6248vary depending on the efficiency of the compiler and the compiler 6249options used during generation. 6250 6251 Previous Release 6252 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6253 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6254 Current Release: 6255 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6256 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6257 6258 62592) iASL Compiler/Disassembler 6260 6261Fixed a compiler code generation problem for "Interrupt" Resource 6262Descriptors. If specified in the ASL, the optional "Resource 6263Source Index" and "Resource Source" fields were not inserted into 6264the correct location within the AML resource descriptor, creating 6265an invalid descriptor. 6266 6267Fixed a disassembler problem for "Interrupt" resource descriptors. 6268The optional "Resource Source Index" and "Resource Source" fields 6269were ignored. 6270 6271 6272---------------------------------------- 627322 November 2002. Summary of changes for version 20021122. 6274 6275 62761) ACPI CA Core Subsystem: 6277 6278Fixed a reported problem where an object stored to a Method Local 6279or Arg was not copied to a new object during the store - the 6280object pointer was simply copied to the Local/Arg. This caused 6281all subsequent operations on the Local/Arg to also affect the 6282original source of the store operation. 6283 6284Fixed a problem where a store operation to a Method Local or Arg 6285was not completed properly if the Local/Arg contained a reference 6286(from RefOf) to a named field. The general-purpose store-to- 6287namespace-node code is now used so that this case is handled 6288automatically. 6289 6290Fixed a problem where the internal object copy routine would cause 6291a protection fault if the object being copied was a Package and 6292contained either 1) a NULL package element or 2) a nested sub- 6293package. 6294 6295Fixed a problem with the GPE initialization that resulted from an 6296ambiguity in the ACPI specification. One section of the 6297specification states that both the address and length of the GPE 6298block must be zero if the block is not supported. Another section 6299implies that only the address need be zero if the block is not 6300supported. The code has been changed so that both the address and 6301the length must be non-zero to indicate a valid GPE block (i.e., 6302if either the address or the length is zero, the GPE block is 6303invalid.) 6304 6305Code and Data Size: Current core subsystem library sizes are shown 6306below. These are the code and data sizes for the acpica.lib 6307produced by the Microsoft Visual C++ 6.0 compiler, and these 6308values do not include any ACPI driver or OSPM code. The debug 6309version of the code includes the debug output trace mechanism and 6310has a much larger code and data size. Note that these values will 6311vary depending on the efficiency of the compiler and the compiler 6312options used during generation. 6313 6314 Previous Release 6315 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6316 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6317 Current Release: 6318 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6319 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6320 6321 63222) Linux 6323 6324Cleaned up EC driver. Exported an external EC read/write 6325interface. By going through this, other drivers (most notably 6326sonypi) will be able to serialize access to the EC. 6327 6328 63293) iASL Compiler/Disassembler 6330 6331Implemented support to optionally generate include files for both 6332ASM and C (the -i switch). This simplifies BIOS development by 6333automatically creating include files that contain external 6334declarations for the symbols that are created within the 6335 6336(optionally generated) ASM and C AML source files. 6337 6338 6339---------------------------------------- 634015 November 2002. Summary of changes for version 20021115. 6341 63421) ACPI CA Core Subsystem: 6343 6344Fixed a memory leak problem where an error during resolution of 6345 6346method arguments during a method invocation from another method 6347failed to cleanup properly by deleting all successfully resolved 6348argument objects. 6349 6350Fixed a problem where the target of the Index() operator was not 6351correctly constructed if the source object was a package. This 6352problem has not been detected because the use of a target operand 6353with Index() is very rare. 6354 6355Fixed a problem with the Index() operator where an attempt was 6356made to delete the operand objects twice. 6357 6358Fixed a problem where an attempt was made to delete an operand 6359twice during execution of the CondRefOf() operator if the target 6360did not exist. 6361 6362Implemented the first of perhaps several internal create object 6363functions that create and initialize a specific object type. This 6364consolidates duplicated code wherever the object is created, thus 6365shrinking the size of the subsystem. 6366 6367Implemented improved debug/error messages for errors that occur 6368during nested method invocations. All executing method pathnames 6369are displayed (with the error) as the call stack is unwound - thus 6370simplifying debug. 6371 6372Fixed a problem introduced in the 10/02 release that caused 6373premature deletion of a buffer object if a buffer was used as an 6374ASL operand where an integer operand is required (Thus causing an 6375implicit object conversion from Buffer to Integer.) The change in 6376the 10/02 release was attempting to fix a memory leak (albeit 6377incorrectly.) 6378 6379Code and Data Size: Current core subsystem library sizes are shown 6380below. These are the code and data sizes for the acpica.lib 6381produced by the Microsoft Visual C++ 6.0 compiler, and these 6382values do not include any ACPI driver or OSPM code. The debug 6383version of the code includes the debug output trace mechanism and 6384has a much larger code and data size. Note that these values will 6385vary depending on the efficiency of the compiler and the compiler 6386options used during generation. 6387 6388 Previous Release 6389 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6390 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6391 Current Release: 6392 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6393 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6394 6395 63962) Linux 6397 6398Changed the implementation of the ACPI semaphores to use down() 6399instead of down_interruptable(). It is important that the 6400execution of ACPI control methods not be interrupted by signals. 6401Methods must run to completion, or the system may be left in an 6402unknown/unstable state. 6403 6404Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 6405(Shawn Starr) 6406 6407 64083) iASL Compiler/Disassembler 6409 6410 6411Changed the default location of output files. All output files 6412are now placed in the current directory by default instead of in 6413the directory of the source file. This change may affect some 6414existing makefiles, but it brings the behavior of the compiler in 6415line with other similar tools. The location of the output files 6416can be overridden with the -p command line switch. 6417 6418 6419---------------------------------------- 642011 November 2002. Summary of changes for version 20021111. 6421 6422 64230) ACPI Specification 2.0B is released and is now available at: 6424http://www.acpi.info/index.html 6425 6426 64271) ACPI CA Core Subsystem: 6428 6429Implemented support for the ACPI 2.0 SMBus Operation Regions. 6430This includes the early detection and handoff of the request to 6431the SMBus region handler (avoiding all of the complex field 6432support code), and support for the bidirectional return packet 6433from an SMBus write operation. This paves the way for the 6434development of SMBus drivers in each host operating system. 6435 6436Fixed a problem where the semaphore WAIT_FOREVER constant was 6437defined as 32 bits, but must be 16 bits according to the ACPI 6438specification. This had the side effect of causing ASL 6439Mutex/Event timeouts even though the ASL code requested a wait 6440forever. Changed all internal references to the ACPI timeout 6441parameter to 16 bits to prevent future problems. Changed the name 6442of WAIT_FOREVER to ACPI_WAIT_FOREVER. 6443 6444Code and Data Size: Current core subsystem library sizes are shown 6445below. These are the code and data sizes for the acpica.lib 6446produced by the Microsoft Visual C++ 6.0 compiler, and these 6447values do not include any ACPI driver or OSPM code. The debug 6448version of the code includes the debug output trace mechanism and 6449has a much larger code and data size. Note that these values will 6450vary depending on the efficiency of the compiler and the compiler 6451options used during generation. 6452 6453 Previous Release 6454 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6455 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6456 Current Release: 6457 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6458 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6459 6460 64612) Linux 6462 6463Module loading/unloading fixes (John Cagle) 6464 6465 64663) iASL Compiler/Disassembler 6467 6468Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 6469 6470Implemented support for the disassembly of all SMBus protocol 6471keywords (SMBQuick, SMBWord, etc.) 6472 6473---------------------------------------- 647401 November 2002. Summary of changes for version 20021101. 6475 6476 64771) ACPI CA Core Subsystem: 6478 6479Fixed a problem where platforms that have a GPE1 block but no GPE0 6480block were not handled correctly. This resulted in a "GPE 6481overlap" error message. GPE0 is no longer required. 6482 6483Removed code added in the previous release that inserted nodes 6484into the namespace in alphabetical order. This caused some side- 6485effects on various machines. The root cause of the problem is 6486still under investigation since in theory, the internal ordering 6487of the namespace nodes should not matter. 6488 6489 6490Enhanced error reporting for the case where a named object is not 6491found during control method execution. The full ACPI namepath 6492(name reference) of the object that was not found is displayed in 6493this case. 6494 6495Note: as a result of the overhaul of the namespace object types in 6496the previous release, the namespace nodes for the predefined 6497scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 6498instead of ACPI_TYPE_ANY. This simplifies the namespace 6499management code but may affect code that walks the namespace tree 6500looking for specific object types. 6501 6502Code and Data Size: Current core subsystem library sizes are shown 6503below. These are the code and data sizes for the acpica.lib 6504produced by the Microsoft Visual C++ 6.0 compiler, and these 6505values do not include any ACPI driver or OSPM code. The debug 6506version of the code includes the debug output trace mechanism and 6507has a much larger code and data size. Note that these values will 6508vary depending on the efficiency of the compiler and the compiler 6509options used during generation. 6510 6511 Previous Release 6512 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6513 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6514 Current Release: 6515 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6516 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6517 6518 65192) Linux 6520 6521Fixed a problem introduced in the previous release where the 6522Processor and Thermal objects were not recognized and installed in 6523/proc. This was related to the scope type change described above. 6524 6525 65263) iASL Compiler/Disassembler 6527 6528Implemented the -g option to get all of the required ACPI tables 6529from the registry and save them to files (Windows version of the 6530compiler only.) The required tables are the FADT, FACS, and DSDT. 6531 6532Added ACPI table checksum validation during table disassembly in 6533order to catch corrupted tables. 6534 6535 6536---------------------------------------- 653722 October 2002. Summary of changes for version 20021022. 6538 65391) ACPI CA Core Subsystem: 6540 6541Implemented a restriction on the Scope operator that the target 6542must already exist in the namespace at the time the operator is 6543encountered (during table load or method execution). In other 6544words, forward references are not allowed and Scope() cannot 6545create a new object. This changes the previous behavior where the 6546interpreter would create the name if not found. This new behavior 6547correctly enables the search-to-root algorithm during namespace 6548lookup of the target name. Because of this upsearch, this fixes 6549the known Compaq _SB_.OKEC problem and makes both the AML 6550interpreter and iASL compiler compatible with other ACPI 6551implementations. 6552 6553Completed a major overhaul of the internal ACPI object types for 6554the ACPI Namespace and the associated operand objects. Many of 6555these types had become obsolete with the introduction of the two- 6556pass namespace load. This cleanup simplifies the code and makes 6557the entire namespace load mechanism much clearer and easier to 6558understand. 6559 6560Improved debug output for tracking scope opening/closing to help 6561diagnose scoping issues. The old scope name as well as the new 6562scope name are displayed. Also improved error messages for 6563problems with ASL Mutex objects and error messages for GPE 6564problems. 6565 6566Cleaned up the namespace dump code, removed obsolete code. 6567 6568All string output (for all namespace/object dumps) now uses the 6569common ACPI string output procedure which handles escapes properly 6570and does not emit non-printable characters. 6571 6572Fixed some issues with constants in the 64-bit version of the 6573local C library (utclib.c) 6574 6575 65762) Linux 6577 6578EC Driver: No longer attempts to acquire the Global Lock at 6579interrupt level. 6580 6581 65823) iASL Compiler/Disassembler 6583 6584Implemented ACPI 2.0B grammar change that disallows all Type 1 and 65852 opcodes outside of a control method. This means that the 6586"executable" operators (versus the "namespace" operators) cannot 6587be used at the table level; they can only be used within a control 6588method. 6589 6590Implemented the restriction on the Scope() operator where the 6591target must already exist in the namespace at the time the 6592operator is encountered (during ASL compilation). In other words, 6593forward references are not allowed and Scope() cannot create a new 6594object. This makes the iASL compiler compatible with other ACPI 6595implementations and makes the Scope() implementation adhere to the 6596ACPI specification. 6597 6598Fixed a problem where namepath optimization for the Alias operator 6599was optimizing the wrong path (of the two namepaths.) This caused 6600a "Missing alias link" error message. 6601 6602Fixed a problem where an "unknown reserved name" warning could be 6603incorrectly generated for names like "_SB" when the trailing 6604underscore is not used in the original ASL. 6605 6606Fixed a problem where the reserved name check did not handle 6607NamePaths with multiple NameSegs correctly. The first nameseg of 6608the NamePath was examined instead of the last NameSeg. 6609 6610 6611---------------------------------------- 6612 661302 October 2002. Summary of changes for this release. 6614 6615 66161) ACPI CA Core Subsystem version 20021002: 6617 6618Fixed a problem where a store/copy of a string to an existing 6619string did not always set the string length properly in the String 6620object. 6621 6622Fixed a reported problem with the ToString operator where the 6623behavior was identical to the ToHexString operator instead of just 6624simply converting a raw buffer to a string data type. 6625 6626Fixed a problem where CopyObject and the other "explicit" 6627conversion operators were not updating the internal namespace node 6628type as part of the store operation. 6629 6630Fixed a memory leak during implicit source operand conversion 6631where the original object was not deleted if it was converted to a 6632new object of a different type. 6633 6634Enhanced error messages for all problems associated with namespace 6635lookups. Common procedure generates and prints the lookup name as 6636well as the formatted status. 6637 6638Completed implementation of a new design for the Alias support 6639within the namespace. The existing design did not handle the case 6640where a new object was assigned to one of the two names due to the 6641use of an explicit conversion operator, resulting in the two names 6642pointing to two different objects. The new design simply points 6643the Alias name to the original name node - not to the object. 6644This results in a level of indirection that must be handled in the 6645name resolution mechanism. 6646 6647Code and Data Size: Current core subsystem library sizes are shown 6648below. These are the code and data sizes for the acpica.lib 6649produced by the Microsoft Visual C++ 6.0 compiler, and these 6650values do not include any ACPI driver or OSPM code. The debug 6651version of the code includes the debug output trace mechanism and 6652has a larger code and data size. Note that these values will vary 6653depending on the efficiency of the compiler and the compiler 6654options used during generation. 6655 6656 Previous Release 6657 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6658 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6659 Current Release: 6660 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6661 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6662 6663 66642) Linux 6665 6666Initialize thermal driver's timer before it is used. (Knut 6667Neumann) 6668 6669Allow handling negative celsius values. (Kochi Takayoshi) 6670 6671Fix thermal management and make trip points. R/W (Pavel Machek) 6672 6673Fix /proc/acpi/sleep. (P. Christeas) 6674 6675IA64 fixes. (David Mosberger) 6676 6677Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 6678 6679Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 6680Brodowski) 6681 6682 66833) iASL Compiler/Disassembler 6684 6685Clarified some warning/error messages. 6686 6687 6688---------------------------------------- 668918 September 2002. Summary of changes for this release. 6690 6691 66921) ACPI CA Core Subsystem version 20020918: 6693 6694Fixed a reported problem with reference chaining (via the Index() 6695and RefOf() operators) in the ObjectType() and SizeOf() operators. 6696The definition of these operators includes the dereferencing of 6697all chained references to return information on the base object. 6698 6699Fixed a problem with stores to indexed package elements - the 6700existing code would not complete the store if an "implicit 6701conversion" was not performed. In other words, if the existing 6702object (package element) was to be replaced completely, the code 6703didn't handle this case. 6704 6705Relaxed typechecking on the ASL "Scope" operator to allow the 6706target name to refer to an object of type Integer, String, or 6707Buffer, in addition to the scoping object types (Device, 6708predefined Scopes, Processor, PowerResource, and ThermalZone.) 6709This allows existing AML code that has workarounds for a bug in 6710Windows to function properly. A warning is issued, however. This 6711affects both the AML interpreter and the iASL compiler. Below is 6712an example of this type of ASL code: 6713 6714 Name(DEB,0x00) 6715 Scope(DEB) 6716 { 6717 6718Fixed some reported problems with 64-bit integer support in the 6719local implementation of C library functions (clib.c) 6720 6721 67222) Linux 6723 6724Use ACPI fix map region instead of IOAPIC region, since it is 6725undefined in non-SMP. 6726 6727Ensure that the SCI has the proper polarity and trigger, even on 6728systems that do not have an interrupt override entry in the MADT. 6729 67302.5 big driver reorganization (Pat Mochel) 6731 6732Use early table mapping code from acpitable.c (Andi Kleen) 6733 6734New blacklist entries (Andi Kleen) 6735 6736Blacklist improvements. Split blacklist code out into a separate 6737file. Move checking the blacklist to very early. Previously, we 6738would use ACPI tables, and then halfway through init, check the 6739blacklist -- too late. Now, it's early enough to completely fall- 6740back to non-ACPI. 6741 6742 67433) iASL Compiler/Disassembler version 20020918: 6744 6745Fixed a problem where the typechecking code didn't know that an 6746alias could point to a method. In other words, aliases were not 6747being dereferenced during typechecking. 6748 6749 6750---------------------------------------- 675129 August 2002. Summary of changes for this release. 6752 67531) ACPI CA Core Subsystem Version 20020829: 6754 6755If the target of a Scope() operator already exists, it must be an 6756object type that actually opens a scope -- such as a Device, 6757Method, Scope, etc. This is a fatal runtime error. Similar error 6758check has been added to the iASL compiler also. 6759 6760Tightened up the namespace load to disallow multiple names in the 6761same scope. This previously was allowed if both objects were of 6762the same type. (i.e., a lookup was the same as entering a new 6763name). 6764 6765 67662) Linux 6767 6768Ensure that the ACPI interrupt has the proper trigger and 6769polarity. 6770 6771local_irq_disable is extraneous. (Matthew Wilcox) 6772 6773Make "acpi=off" actually do what it says, and not use the ACPI 6774interpreter *or* the tables. 6775 6776Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 6777Takayoshi) 6778 6779 67803) iASL Compiler/Disassembler Version 20020829: 6781 6782Implemented namepath optimization for name declarations. For 6783example, a declaration like "Method (\_SB_.ABCD)" would get 6784optimized to "Method (ABCD)" if the declaration is within the 6785\_SB_ scope. This optimization is in addition to the named 6786reference path optimization first released in the previous 6787version. This would seem to complete all possible optimizations 6788for namepaths within the ASL/AML. 6789 6790If the target of a Scope() operator already exists, it must be an 6791object type that actually opens a scope -- such as a Device, 6792Method, Scope, etc. 6793 6794Implemented a check and warning for unreachable code in the same 6795block below a Return() statement. 6796 6797Fixed a problem where the listing file was not generated if the 6798compiler aborted if the maximum error count was exceeded (200). 6799 6800Fixed a problem where the typechecking of method return values was 6801broken. This includes the check for a return value when the 6802method is invoked as a TermArg (a return value is expected.) 6803 6804Fixed a reported problem where EOF conditions during a quoted 6805string or comment caused a fault. 6806 6807 6808---------------------------------------- 680915 August 2002. Summary of changes for this release. 6810 68111) ACPI CA Core Subsystem Version 20020815: 6812 6813Fixed a reported problem where a Store to a method argument that 6814contains a reference did not perform the indirect store correctly. 6815This problem was created during the conversion to the new 6816reference object model - the indirect store to a method argument 6817code was not updated to reflect the new model. 6818 6819Reworked the ACPI mode change code to better conform to ACPI 2.0, 6820handle corner cases, and improve code legibility (Kochi Takayoshi) 6821 6822Fixed a problem with the pathname parsing for the carat (^) 6823prefix. The heavy use of the carat operator by the new namepath 6824optimization in the iASL compiler uncovered a problem with the AML 6825interpreter handling of this prefix. In the case where one or 6826more carats precede a single nameseg, the nameseg was treated as 6827standalone and the search rule (to root) was inadvertently 6828applied. This could cause both the iASL compiler and the 6829interpreter to find the wrong object or to miss the error that 6830should occur if the object does not exist at that exact pathname. 6831 6832Found and fixed the problem where the HP Pavilion DSDT would not 6833load. This was a relatively minor tweak to the table loading code 6834(a problem caused by the unexpected encounter with a method 6835invocation not within a control method), but it does not solve the 6836overall issue of the execution of AML code at the table level. 6837This investigation is still ongoing. 6838 6839Code and Data Size: Current core subsystem library sizes are shown 6840below. These are the code and data sizes for the acpica.lib 6841produced by the Microsoft Visual C++ 6.0 compiler, and these 6842values do not include any ACPI driver or OSPM code. The debug 6843version of the code includes the debug output trace mechanism and 6844has a larger code and data size. Note that these values will vary 6845depending on the efficiency of the compiler and the compiler 6846options used during generation. 6847 6848 Previous Release 6849 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 6850 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 6851 Current Release: 6852 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6853 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6854 6855 68562) Linux 6857 6858Remove redundant slab.h include (Brad Hards) 6859 6860Fix several bugs in thermal.c (Herbert Nachtnebel) 6861 6862Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 6863 6864Change acpi_system_suspend to use updated irq functions (Pavel 6865Machek) 6866 6867Export acpi_get_firmware_table (Matthew Wilcox) 6868 6869Use proper root proc entry for ACPI (Kochi Takayoshi) 6870 6871Fix early-boot table parsing (Bjorn Helgaas) 6872 6873 68743) iASL Compiler/Disassembler 6875 6876Reworked the compiler options to make them more consistent and to 6877use two-letter options where appropriate. We were running out of 6878sensible letters. This may break some makefiles, so check the 6879current options list by invoking the compiler with no parameters. 6880 6881Completed the design and implementation of the ASL namepath 6882optimization option for the compiler. This option optimizes all 6883references to named objects to the shortest possible path. The 6884first attempt tries to utilize a single nameseg (4 characters) and 6885the "search-to-root" algorithm used by the interpreter. If that 6886cannot be used (because either the name is not in the search path 6887or there is a conflict with another object with the same name), 6888the pathname is optimized using the carat prefix (usually a 6889shorter string than specifying the entire path from the root.) 6890 6891Implemented support to obtain the DSDT from the Windows registry 6892(when the disassembly option is specified with no input file). 6893Added this code as the implementation for AcpiOsTableOverride in 6894the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 6895utility) to scan memory for the DSDT to the AcpiOsTableOverride 6896function in the DOS OSL to make the disassembler truly OS 6897independent. 6898 6899Implemented a new option to disassemble and compile in one step. 6900When used without an input filename, this option will grab the 6901DSDT from the local machine, disassemble it, and compile it in one 6902step. 6903 6904Added a warning message for invalid escapes (a backslash followed 6905by any character other than the allowable escapes). This catches 6906the quoted string error "\_SB_" (which should be "\\_SB_" ). 6907 6908Also, there are numerous instances in the ACPI specification where 6909this error occurs. 6910 6911Added a compiler option to disable all optimizations. This is 6912basically the "compatibility mode" because by using this option, 6913the AML code will come out exactly the same as other ASL 6914compilers. 6915 6916Added error messages for incorrectly ordered dependent resource 6917functions. This includes: missing EndDependentFn macro at end of 6918dependent resource list, nested dependent function macros (both 6919start and end), and missing StartDependentFn macro. These are 6920common errors that should be caught at compile time. 6921 6922Implemented _OSI support for the disassembler and compiler. _OSI 6923must be included in the namespace for proper disassembly (because 6924the disassembler must know the number of arguments.) 6925 6926Added an "optimization" message type that is optional (off by 6927default). This message is used for all optimizations - including 6928constant folding, integer optimization, and namepath optimization. 6929 6930---------------------------------------- 693125 July 2002. Summary of changes for this release. 6932 6933 69341) ACPI CA Core Subsystem Version 20020725: 6935 6936The AML Disassembler has been enhanced to produce compilable ASL 6937code and has been integrated into the iASL compiler (see below) as 6938well as the single-step disassembly for the AML debugger and the 6939disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 6940resource templates and macros are fully supported. The 6941disassembler has been tested on over 30 different AML files, 6942producing identical AML when the resulting disassembled ASL file 6943is recompiled with the same ASL compiler. 6944 6945Modified the Resource Manager to allow zero interrupts and zero 6946dma channels during the GetCurrentResources call. This was 6947causing problems on some platforms. 6948 6949Added the AcpiOsRedirectOutput interface to the OSL to simplify 6950output redirection for the AcpiOsPrintf and AcpiOsVprintf 6951interfaces. 6952 6953Code and Data Size: Current core subsystem library sizes are shown 6954below. These are the code and data sizes for the acpica.lib 6955produced by the Microsoft Visual C++ 6.0 compiler, and these 6956values do not include any ACPI driver or OSPM code. The debug 6957version of the code includes the debug output trace mechanism and 6958has a larger code and data size. Note that these values will vary 6959depending on the efficiency of the compiler and the compiler 6960options used during generation. 6961 6962 Previous Release 6963 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 6964 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 6965 Current Release: 6966 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 6967 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 6968 6969 69702) Linux 6971 6972Fixed a panic in the EC driver (Dominik Brodowski) 6973 6974Implemented checksum of the R/XSDT itself during Linux table scan 6975(Richard Schaal) 6976 6977 69783) iASL compiler 6979 6980The AML disassembler is integrated into the compiler. The "-d" 6981option invokes the disassembler to completely disassemble an 6982input AML file, producing as output a text ASL file with the 6983extension ".dsl" (to avoid name collisions with existing .asl 6984source files.) A future enhancement will allow the disassembler 6985to obtain the BIOS DSDT from the registry under Windows. 6986 6987Fixed a problem with the VendorShort and VendorLong resource 6988descriptors where an invalid AML sequence was created. 6989 6990Implemented a fix for BufferData term in the ASL parser. It was 6991inadvertently defined twice, allowing invalid syntax to pass and 6992causing reduction conflicts. 6993 6994Fixed a problem where the Ones opcode could get converted to a 6995value of zero if "Ones" was used where a byte, word or dword value 6996was expected. The 64-bit value is now truncated to the correct 6997size with the correct value. 6998 6999 7000 7001---------------------------------------- 700202 July 2002. Summary of changes for this release. 7003 7004 70051) ACPI CA Core Subsystem Version 20020702: 7006 7007The Table Manager code has been restructured to add several new 7008features. Tables that are not required by the core subsystem 7009(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 7010validated in any way and are returned from AcpiGetFirmwareTable if 7011requested. The AcpiOsTableOverride interface is now called for 7012each table that is loaded by the subsystem in order to allow the 7013host to override any table it chooses. Previously, only the DSDT 7014could be overridden. Added one new files, tbrsdt.c and 7015tbgetall.c. 7016 7017Fixed a problem with the conversion of internal package objects to 7018external objects (when a package is returned from a control 7019method.) The return buffer length was set to zero instead of the 7020proper length of the package object. 7021 7022Fixed a reported problem with the use of the RefOf and DeRefOf 7023operators when passing reference arguments to control methods. A 7024new type of Reference object is used internally for references 7025produced by the RefOf operator. 7026 7027Added additional error messages in the Resource Manager to explain 7028AE_BAD_DATA errors when they occur during resource parsing. 7029 7030Split the AcpiEnableSubsystem into two primitives to enable a 7031finer granularity initialization sequence. These two calls should 7032be called in this order: AcpiEnableSubsystem (flags), 7033AcpiInitializeObjects (flags). The flags parameter remains the 7034same. 7035 7036 70372) Linux 7038 7039Updated the ACPI utilities module to understand the new style of 7040fully resolved package objects that are now returned from the core 7041subsystem. This eliminates errors of the form: 7042 7043 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 7044 acpi_utils-0430 [145] acpi_evaluate_reference: 7045 Invalid element in package (not a device reference) 7046 7047The method evaluation utility uses the new buffer allocation 7048scheme instead of calling AcpiEvaluate Object twice. 7049 7050Added support for ECDT. This allows the use of the Embedded 7051 7052Controller before the namespace has been fully initialized, which 7053is necessary for ACPI 2.0 support, and for some laptops to 7054initialize properly. (Laptops using ECDT are still rare, so only 7055limited testing was performed of the added functionality.) 7056 7057Fixed memory leaks in the EC driver. 7058 7059Eliminated a brittle code structure in acpi_bus_init(). 7060 7061Eliminated the acpi_evaluate() helper function in utils.c. It is 7062no longer needed since acpi_evaluate_object can optionally 7063allocate memory for the return object. 7064 7065Implemented fix for keyboard hang when getting battery readings on 7066some systems (Stephen White) 7067 7068PCI IRQ routing update (Dominik Brodowski) 7069 7070Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 7071support 7072 7073---------------------------------------- 707411 June 2002. Summary of changes for this release. 7075 7076 70771) ACPI CA Core Subsystem Version 20020611: 7078 7079Fixed a reported problem where constants such as Zero and One 7080appearing within _PRT packages were not handled correctly within 7081the resource manager code. Originally reported against the ASL 7082compiler because the code generator now optimizes integers to 7083their minimal AML representation (i.e. AML constants if possible.) 7084The _PRT code now handles all AML constant opcodes correctly 7085(Zero, One, Ones, Revision). 7086 7087Fixed a problem with the Concatenate operator in the AML 7088interpreter where a buffer result object was incorrectly marked as 7089not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 7090 7091All package sub-objects are now fully resolved before they are 7092returned from the external ACPI interfaces. This means that name 7093strings are resolved to object handles, and constant operators 7094(Zero, One, Ones, Revision) are resolved to Integers. 7095 7096Implemented immediate resolution of the AML Constant opcodes 7097(Zero, One, Ones, Revision) to Integer objects upon detection 7098within the AML stream. This has simplified and reduced the 7099generated code size of the subsystem by eliminating about 10 7100switch statements for these constants (which previously were 7101contained in Reference objects.) The complicating issues are that 7102the Zero opcode is used as a "placeholder" for unspecified 7103optional target operands and stores to constants are defined to be 7104no-ops. 7105 7106Code and Data Size: Current core subsystem library sizes are shown 7107below. These are the code and data sizes for the acpica.lib 7108produced by the Microsoft Visual C++ 6.0 compiler, and these 7109values do not include any ACPI driver or OSPM code. The debug 7110version of the code includes the debug output trace mechanism and 7111has a larger code and data size. Note that these values will vary 7112depending on the efficiency of the compiler and the compiler 7113options used during generation. 7114 7115 Previous Release 7116 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7117 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7118 Current Release: 7119 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7120 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7121 7122 71232) Linux 7124 7125 7126Added preliminary support for obtaining _TRA data for PCI root 7127bridges (Bjorn Helgaas). 7128 7129 71303) iASL Compiler Version X2046: 7131 7132Fixed a problem where the "_DDN" reserved name was defined to be a 7133control method with one argument. There are no arguments, and 7134_DDN does not have to be a control method. 7135 7136Fixed a problem with the Linux version of the compiler where the 7137source lines printed with error messages were the wrong lines. 7138This turned out to be the "LF versus CR/LF" difference between 7139Windows and Unix. This appears to be the longstanding issue 7140concerning listing output and error messages. 7141 7142Fixed a problem with the Linux version of compiler where opcode 7143names within error messages were wrong. This was caused by a 7144slight difference in the output of the Flex tool on Linux versus 7145Windows. 7146 7147Fixed a problem with the Linux compiler where the hex output files 7148contained some garbage data caused by an internal buffer overrun. 7149 7150 7151---------------------------------------- 715217 May 2002. Summary of changes for this release. 7153 7154 71551) ACPI CA Core Subsystem Version 20020517: 7156 7157Implemented a workaround to an BIOS bug discovered on the HP 7158OmniBook where the FADT revision number and the table size are 7159inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 7160behavior is to fallback to using only the ACPI 1.0 fields of the 7161FADT if the table is too small to be a ACPI 2.0 table as claimed 7162by the revision number. Although this is a BIOS bug, this is a 7163case where the workaround is simple enough and with no side 7164effects, so it seemed prudent to add it. A warning message is 7165issued, however. 7166 7167Implemented minimum size checks for the fixed-length ACPI tables - 7168- the FADT and FACS, as well as consistency checks between the 7169revision number and the table size. 7170 7171Fixed a reported problem in the table override support where the 7172new table pointer was incorrectly treated as a physical address 7173instead of a logical address. 7174 7175Eliminated the use of the AE_AML_ERROR exception and replaced it 7176with more descriptive codes. 7177 7178Fixed a problem where an exception would occur if an ASL Field was 7179defined with no named Field Units underneath it (used by some 7180index fields). 7181 7182Code and Data Size: Current core subsystem library sizes are shown 7183below. These are the code and data sizes for the acpica.lib 7184produced by the Microsoft Visual C++ 6.0 compiler, and these 7185values do not include any ACPI driver or OSPM code. The debug 7186version of the code includes the debug output trace mechanism and 7187has a larger code and data size. Note that these values will vary 7188depending on the efficiency of the compiler and the compiler 7189options used during generation. 7190 7191 Previous Release 7192 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7193 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7194 Current Release: 7195 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7196 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7197 7198 7199 72002) Linux 7201 7202Much work done on ACPI init (MADT and PCI IRQ routing support). 7203(Paul D. and Dominik Brodowski) 7204 7205Fix PCI IRQ-related panic on boot (Sam Revitch) 7206 7207Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 7208 7209Fix "MHz" typo (Dominik Brodowski) 7210 7211Fix RTC year 2000 issue (Dominik Brodowski) 7212 7213Preclude multiple button proc entries (Eric Brunet) 7214 7215Moved arch-specific code out of include/platform/aclinux.h 7216 72173) iASL Compiler Version X2044: 7218 7219Implemented error checking for the string used in the EISAID macro 7220(Usually used in the definition of the _HID object.) The code now 7221strictly enforces the PnP format - exactly 7 characters, 3 7222uppercase letters and 4 hex digits. 7223 7224If a raw string is used in the definition of the _HID object 7225(instead of the EISAID macro), the string must contain all 7226alphanumeric characters (e.g., "*PNP0011" is not allowed because 7227of the asterisk.) 7228 7229Implemented checking for invalid use of ACPI reserved names for 7230most of the name creation operators (Name, Device, Event, Mutex, 7231OperationRegion, PowerResource, Processor, and ThermalZone.) 7232Previously, this check was only performed for control methods. 7233 7234Implemented an additional check on the Name operator to emit an 7235error if a reserved name that must be implemented in ASL as a 7236control method is used. We know that a reserved name must be a 7237method if it is defined with input arguments. 7238 7239The warning emitted when a namespace object reference is not found 7240during the cross reference phase has been changed into an error. 7241The "External" directive should be used for names defined in other 7242modules. 7243 7244 72454) Tools and Utilities 7246 7247The 16-bit tools (adump16 and aexec16) have been regenerated and 7248tested. 7249 7250Fixed a problem with the output of both acpidump and adump16 where 7251the indentation of closing parentheses and brackets was not 7252 7253aligned properly with the parent block. 7254 7255 7256---------------------------------------- 725703 May 2002. Summary of changes for this release. 7258 7259 72601) ACPI CA Core Subsystem Version 20020503: 7261 7262Added support a new OSL interface that allows the host operating 7263 7264system software to override the DSDT found in the firmware - 7265AcpiOsTableOverride. With this interface, the OSL can examine the 7266version of the firmware DSDT and replace it with a different one 7267if desired. 7268 7269Added new external interfaces for accessing ACPI registers from 7270device drivers and other system software - AcpiGetRegister and 7271AcpiSetRegister. This was simply an externalization of the 7272existing AcpiHwBitRegister interfaces. 7273 7274Fixed a regression introduced in the previous build where the 7275ASL/AML CreateField operator always returned an error, 7276"destination must be a NS Node". 7277 7278Extended the maximum time (before failure) to successfully enable 7279ACPI mode to 3 seconds. 7280 7281Code and Data Size: Current core subsystem library sizes are shown 7282below. These are the code and data sizes for the acpica.lib 7283produced by the Microsoft Visual C++ 6.0 compiler, and these 7284values do not include any ACPI driver or OSPM code. The debug 7285version of the code includes the debug output trace mechanism and 7286has a larger code and data size. Note that these values will vary 7287depending on the efficiency of the compiler and the compiler 7288options used during generation. 7289 7290 Previous Release 7291 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7292 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7293 Current Release: 7294 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7295 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7296 7297 72982) Linux 7299 7300Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 7301free. While 3 out of 4 of our in-house systems work fine, the last 7302one still hangs when testing the LAPIC timer. 7303 7304Renamed many files in 2.5 kernel release to omit "acpi_" from the 7305name. 7306 7307Added warning on boot for Presario 711FR. 7308 7309Sleep improvements (Pavel Machek) 7310 7311ACPI can now be built without CONFIG_PCI enabled. 7312 7313IA64: Fixed memory map functions (JI Lee) 7314 7315 73163) iASL Compiler Version X2043: 7317 7318Added support to allow the compiler to be integrated into the MS 7319VC++ development environment for one-button compilation of single 7320files or entire projects -- with error-to-source-line mapping. 7321 7322Implemented support for compile-time constant folding for the 7323Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 7324specification. This allows the ASL writer to use expressions 7325instead of Integer/Buffer/String constants in terms that must 7326evaluate to constants at compile time and will also simplify the 7327emitted AML in any such sub-expressions that can be folded 7328(evaluated at compile-time.) This increases the size of the 7329compiler significantly because a portion of the ACPI CA AML 7330interpreter is included within the compiler in order to pre- 7331evaluate constant expressions. 7332 7333 7334Fixed a problem with the "Unicode" ASL macro that caused the 7335compiler to fault. (This macro is used in conjunction with the 7336_STR reserved name.) 7337 7338Implemented an AML opcode optimization to use the Zero, One, and 7339Ones opcodes where possible to further reduce the size of integer 7340constants and thus reduce the overall size of the generated AML 7341code. 7342 7343Implemented error checking for new reserved terms for ACPI version 73442.0A. 7345 7346Implemented the -qr option to display the current list of ACPI 7347reserved names known to the compiler. 7348 7349Implemented the -qc option to display the current list of ASL 7350operators that are allowed within constant expressions and can 7351therefore be folded at compile time if the operands are constants. 7352 7353 73544) Documentation 7355 7356Updated the Programmer's Reference for new interfaces, data types, 7357and memory allocation model options. 7358 7359Updated the iASL Compiler User Reference to apply new format and 7360add information about new features and options. 7361 7362---------------------------------------- 736319 April 2002. Summary of changes for this release. 7364 73651) ACPI CA Core Subsystem Version 20020419: 7366 7367The source code base for the Core Subsystem has been completely 7368cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 7369versions. The Lint option files used are included in the 7370/acpi/generate/lint directory. 7371 7372Implemented enhanced status/error checking across the entire 7373Hardware manager subsystem. Any hardware errors (reported from 7374the OSL) are now bubbled up and will abort a running control 7375method. 7376 7377 7378Fixed a problem where the per-ACPI-table integer width (32 or 64) 7379was stored only with control method nodes, causing a fault when 7380non-control method code was executed during table loading. The 7381solution implemented uses a global variable to indicate table 7382width across the entire ACPI subsystem. Therefore, ACPI CA does 7383not support mixed integer widths across different ACPI tables 7384(DSDT, SSDT). 7385 7386Fixed a problem where NULL extended fields (X fields) in an ACPI 73872.0 ACPI FADT caused the table load to fail. Although the 7388existing ACPI specification is a bit fuzzy on this topic, the new 7389behavior is to fall back on a ACPI 1.0 field if the corresponding 7390ACPI 2.0 X field is zero (even though the table revision indicates 7391a full ACPI 2.0 table.) The ACPI specification will be updated to 7392clarify this issue. 7393 7394Fixed a problem with the SystemMemory operation region handler 7395where memory was always accessed byte-wise even if the AML- 7396specified access width was larger than a byte. This caused 7397problems on systems with memory-mapped I/O. Memory is now 7398accessed with the width specified. On systems that do not support 7399non-aligned transfers, a check is made to guarantee proper address 7400alignment before proceeding in order to avoid an AML-caused 7401alignment fault within the kernel. 7402 7403 7404Fixed a problem with the ExtendedIrq resource where only one byte 7405of the 4-byte Irq field was extracted. 7406 7407Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 7408function was out of date and required a rewrite. 7409 7410Code and Data Size: Current core subsystem library sizes are shown 7411below. These are the code and data sizes for the acpica.lib 7412produced by the Microsoft Visual C++ 6.0 compiler, and these 7413values do not include any ACPI driver or OSPM code. The debug 7414version of the code includes the debug output trace mechanism and 7415has a larger code and data size. Note that these values will vary 7416depending on the efficiency of the compiler and the compiler 7417options used during generation. 7418 7419 Previous Release 7420 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7421 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7422 Current Release: 7423 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7424 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7425 7426 74272) Linux 7428 7429PCI IRQ routing fixes (Dominik Brodowski) 7430 7431 74323) iASL Compiler Version X2042: 7433 7434Implemented an additional compile-time error check for a field 7435unit whose size + minimum access width would cause a run-time 7436access beyond the end-of-region. Previously, only the field size 7437itself was checked. 7438 7439The Core subsystem and iASL compiler now share a common parse 7440object in preparation for compile-time evaluation of the type 74413/4/5 ASL operators. 7442 7443 7444---------------------------------------- 7445Summary of changes for this release: 03_29_02 7446 74471) ACPI CA Core Subsystem Version 20020329: 7448 7449Implemented support for late evaluation of TermArg operands to 7450Buffer and Package objects. This allows complex expressions to be 7451used in the declarations of these object types. 7452 7453Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 74541.0, if the field was larger than 32 bits, it was returned as a 7455buffer - otherwise it was returned as an integer. In ACPI 2.0, 7456the field is returned as a buffer only if the field is larger than 745764 bits. The TableRevision is now considered when making this 7458conversion to avoid incompatibility with existing ASL code. 7459 7460Implemented logical addressing for AcpiOsGetRootPointer. This 7461allows an RSDP with either a logical or physical address. With 7462this support, the host OS can now override all ACPI tables with 7463one logical RSDP. Includes implementation of "typed" pointer 7464support to allow a common data type for both physical and logical 7465pointers internally. This required a change to the 7466AcpiOsGetRootPointer interface. 7467 7468Implemented the use of ACPI 2.0 Generic Address Structures for all 7469GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 7470mapped I/O for these ACPI features. 7471 7472Initialization now ignores not only non-required tables (All 7473tables other than the FADT, FACS, DSDT, and SSDTs), but also does 7474not validate the table headers of unrecognized tables. 7475 7476Fixed a problem where a notify handler could only be 7477installed/removed on an object of type Device. All "notify" 7478 7479objects are now supported -- Devices, Processor, Power, and 7480Thermal. 7481 7482Removed most verbosity from the ACPI_DB_INFO debug level. Only 7483critical information is returned when this debug level is enabled. 7484 7485Code and Data Size: Current core subsystem library sizes are shown 7486below. These are the code and data sizes for the acpica.lib 7487produced by the Microsoft Visual C++ 6.0 compiler, and these 7488values do not include any ACPI driver or OSPM code. The debug 7489version of the code includes the debug output trace mechanism and 7490has a larger code and data size. Note that these values will vary 7491depending on the efficiency of the compiler and the compiler 7492options used during generation. 7493 7494 Previous Release 7495 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7496 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7497 Current Release: 7498 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7499 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7500 7501 75022) Linux: 7503 7504The processor driver (acpi_processor.c) now fully supports ACPI 75052.0-based processor performance control (e.g. Intel(R) 7506SpeedStep(TM) technology) Note that older laptops that only have 7507the Intel "applet" interface are not supported through this. The 7508'limit' and 'performance' interface (/proc) are fully functional. 7509[Note that basic policy for controlling performance state 7510transitions will be included in the next version of ospmd.] The 7511idle handler was modified to more aggressively use C2, and PIIX4 7512errata handling underwent a complete overhaul (big thanks to 7513Dominik Brodowski). 7514 7515Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 7516based devices in the ACPI namespace are now dynamically bound 7517(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 7518This allows, among other things, ACPI to resolve bus numbers for 7519subordinate PCI bridges. 7520 7521Enhanced PCI IRQ routing to get the proper bus number for _PRT 7522entries defined underneath PCI bridges. 7523 7524Added IBM 600E to bad bios list due to invalid _ADR value for 7525PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 7526 7527In the process of adding full MADT support (e.g. IOAPIC) for IA32 7528(acpi.c, mpparse.c) -- stay tuned. 7529 7530Added back visual differentiation between fixed-feature and 7531control-method buttons in dmesg. Buttons are also subtyped (e.g. 7532button/power/PWRF) to simplify button identification. 7533 7534We no longer use -Wno-unused when compiling debug. Please ignore 7535any "_THIS_MODULE defined but not used" messages. 7536 7537Can now shut down the system using "magic sysrq" key. 7538 7539 75403) iASL Compiler version 2041: 7541 7542Fixed a problem where conversion errors for hex/octal/decimal 7543constants were not reported. 7544 7545Implemented a fix for the General Register template Address field. 7546This field was 8 bits when it should be 64. 7547 7548Fixed a problem where errors/warnings were no longer being emitted 7549within the listing output file. 7550 7551Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 7552exactly 4 characters, alphanumeric only. 7553 7554 7555 7556 7557---------------------------------------- 7558Summary of changes for this release: 03_08_02 7559 7560 75611) ACPI CA Core Subsystem Version 20020308: 7562 7563Fixed a problem with AML Fields where the use of the "AccessAny" 7564keyword could cause an interpreter error due to attempting to read 7565or write beyond the end of the parent Operation Region. 7566 7567Fixed a problem in the SystemMemory Operation Region handler where 7568an attempt was made to map memory beyond the end of the region. 7569This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 7570errors on some Linux systems. 7571 7572Fixed a problem where the interpreter/namespace "search to root" 7573algorithm was not functioning for some object types. Relaxed the 7574internal restriction on the search to allow upsearches for all 7575external object types as well as most internal types. 7576 7577 75782) Linux: 7579 7580We now use safe_halt() macro versus individual calls to sti | hlt. 7581 7582Writing to the processor limit interface should now work. "echo 1" 7583will increase the limit, 2 will decrease, and 0 will reset to the 7584 7585default. 7586 7587 75883) ASL compiler: 7589 7590Fixed segfault on Linux version. 7591 7592 7593---------------------------------------- 7594Summary of changes for this release: 02_25_02 7595 75961) ACPI CA Core Subsystem: 7597 7598 7599Fixed a problem where the GPE bit masks were not initialized 7600properly, causing erratic GPE behavior. 7601 7602Implemented limited support for multiple calling conventions. The 7603code can be generated with either the VPL (variable parameter 7604list, or "C") convention, or the FPL (fixed parameter list, or 7605"Pascal") convention. The core subsystem is about 3.4% smaller 7606when generated with FPL. 7607 7608 76092) Linux 7610 7611Re-add some /proc/acpi/event functionality that was lost during 7612the rewrite 7613 7614Resolved issue with /proc events for fixed-feature buttons showing 7615up as the system device. 7616 7617Fixed checks on C2/C3 latencies to be inclusive of maximum values. 7618 7619Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 7620 7621Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 7622 7623Fixed limit interface & usage to fix bugs with passive cooling 7624hysterisis. 7625 7626Restructured PRT support. 7627 7628 7629---------------------------------------- 7630Summary of changes for this label: 02_14_02 7631 7632 76331) ACPI CA Core Subsystem: 7634 7635Implemented support in AcpiLoadTable to allow loading of FACS and 7636FADT tables. 7637 7638Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 7639been removed. All 64-bit platforms should be migrated to the ACPI 76402.0 tables. The actbl71.h header has been removed from the source 7641tree. 7642 7643All C macros defined within the subsystem have been prefixed with 7644"ACPI_" to avoid collision with other system include files. 7645 7646Removed the return value for the two AcpiOsPrint interfaces, since 7647it is never used and causes lint warnings for ignoring the return 7648value. 7649 7650Added error checking to all internal mutex acquire and release 7651calls. Although a failure from one of these interfaces is 7652probably a fatal system error, these checks will cause the 7653immediate abort of the currently executing method or interface. 7654 7655Fixed a problem where the AcpiSetCurrentResources interface could 7656fault. This was a side effect of the deployment of the new memory 7657allocation model. 7658 7659Fixed a couple of problems with the Global Lock support introduced 7660in the last major build. The "common" (1.0/2.0) internal FACS was 7661being overwritten with the FACS signature and clobbering the 7662Global Lock pointer. Also, the actual firmware FACS was being 7663unmapped after construction of the "common" FACS, preventing 7664access to the actual Global Lock field within it. The "common" 7665internal FACS is no longer installed as an actual ACPI table; it 7666is used simply as a global. 7667 7668Code and Data Size: Current core subsystem library sizes are shown 7669below. These are the code and data sizes for the acpica.lib 7670produced by the Microsoft Visual C++ 6.0 compiler, and these 7671values do not include any ACPI driver or OSPM code. The debug 7672version of the code includes the debug output trace mechanism and 7673has a larger code and data size. Note that these values will vary 7674depending on the efficiency of the compiler and the compiler 7675options used during generation. 7676 7677 Previous Release (02_07_01) 7678 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7679 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7680 Current Release: 7681 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7682 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7683 7684 76852) Linux 7686 7687Updated Linux-specific code for core macro and OSL interface 7688changes described above. 7689 7690Improved /proc/acpi/event. It now can be opened only once and has 7691proper poll functionality. 7692 7693Fixed and restructured power management (acpi_bus). 7694 7695Only create /proc "view by type" when devices of that class exist. 7696 7697Fixed "charging/discharging" bug (and others) in acpi_battery. 7698 7699Improved thermal zone code. 7700 7701 77023) ASL Compiler, version X2039: 7703 7704 7705Implemented the new compiler restriction on ASL String hex/octal 7706escapes to non-null, ASCII values. An error results if an invalid 7707value is used. (This will require an ACPI 2.0 specification 7708change.) 7709 7710AML object labels that are output to the optional C and ASM source 7711are now prefixed with both the ACPI table signature and table ID 7712to help guarantee uniqueness within a large BIOS project. 7713 7714 7715---------------------------------------- 7716Summary of changes for this label: 02_01_02 7717 77181) ACPI CA Core Subsystem: 7719 7720ACPI 2.0 support is complete in the entire Core Subsystem and the 7721ASL compiler. All new ACPI 2.0 operators are implemented and all 7722other changes for ACPI 2.0 support are complete. With 7723simultaneous code and data optimizations throughout the subsystem, 7724ACPI 2.0 support has been implemented with almost no additional 7725cost in terms of code and data size. 7726 7727Implemented a new mechanism for allocation of return buffers. If 7728the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 7729be allocated on behalf of the caller. Consolidated all return 7730buffer validation and allocation to a common procedure. Return 7731buffers will be allocated via the primary OSL allocation interface 7732since it appears that a separate pool is not needed by most users. 7733If a separate pool is required for these buffers, the caller can 7734still use the original mechanism and pre-allocate the buffer(s). 7735 7736Implemented support for string operands within the DerefOf 7737operator. 7738 7739Restructured the Hardware and Event managers to be table driven, 7740simplifying the source code and reducing the amount of generated 7741code. 7742 7743Split the common read/write low-level ACPI register bitfield 7744procedure into a separate read and write, simplifying the code 7745considerably. 7746 7747Obsoleted the AcpiOsCallocate OSL interface. This interface was 7748used only a handful of times and didn't have enough critical mass 7749for a separate interface. Replaced with a common calloc procedure 7750in the core. 7751 7752Fixed a reported problem with the GPE number mapping mechanism 7753that allows GPE1 numbers to be non-contiguous with GPE0. 7754Reorganized the GPE information and shrunk a large array that was 7755originally large enough to hold info for all possible GPEs (256) 7756to simply large enough to hold all GPEs up to the largest GPE 7757number on the machine. 7758 7759Fixed a reported problem with resource structure alignment on 64- 7760bit platforms. 7761 7762Changed the AcpiEnableEvent and AcpiDisableEvent external 7763interfaces to not require any flags for the common case of 7764enabling/disabling a GPE. 7765 7766Implemented support to allow a "Notify" on a Processor object. 7767 7768Most TBDs in comments within the source code have been resolved 7769and eliminated. 7770 7771 7772Fixed a problem in the interpreter where a standalone parent 7773prefix (^) was not handled correctly in the interpreter and 7774debugger. 7775 7776Removed obsolete and unnecessary GPE save/restore code. 7777 7778Implemented Field support in the ASL Load operator. This allows a 7779table to be loaded from a named field, in addition to loading a 7780table directly from an Operation Region. 7781 7782Implemented timeout and handle support in the external Global Lock 7783interfaces. 7784 7785Fixed a problem in the AcpiDump utility where pathnames were no 7786longer being generated correctly during the dump of named objects. 7787 7788Modified the AML debugger to give a full display of if/while 7789predicates instead of just one AML opcode at a time. (The 7790predicate can have several nested ASL statements.) The old method 7791was confusing during single stepping. 7792 7793Code and Data Size: Current core subsystem library sizes are shown 7794below. These are the code and data sizes for the acpica.lib 7795produced by the Microsoft Visual C++ 6.0 compiler, and these 7796values do not include any ACPI driver or OSPM code. The debug 7797version of the code includes the debug output trace mechanism and 7798has a larger code and data size. Note that these values will vary 7799depending on the efficiency of the compiler and the compiler 7800options used during generation. 7801 7802 Previous Release (12_18_01) 7803 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 7804 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 7805 Current Release: 7806 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7807 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7808 78092) Linux 7810 7811 Implemented fix for PIIX reverse throttling errata (Processor 7812driver) 7813 7814Added new Limit interface (Processor and Thermal drivers) 7815 7816New thermal policy (Thermal driver) 7817 7818Many updates to /proc 7819 7820Battery "low" event support (Battery driver) 7821 7822Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 7823 7824IA32 - IA64 initialization unification, no longer experimental 7825 7826Menuconfig options redesigned 7827 78283) ASL Compiler, version X2037: 7829 7830Implemented several new output features to simplify integration of 7831AML code into firmware: 1) Output the AML in C source code with 7832labels for each named ASL object. The original ASL source code 7833is interleaved as C comments. 2) Output the AML in ASM source code 7834with labels and interleaved ASL source. 3) Output the AML in 7835raw hex table form, in either C or ASM. 7836 7837Implemented support for optional string parameters to the 7838LoadTable operator. 7839 7840Completed support for embedded escape sequences within string 7841literals. The compiler now supports all single character escapes 7842as well as the Octal and Hex escapes. Note: the insertion of a 7843null byte into a string literal (via the hex/octal escape) causes 7844the string to be immediately terminated. A warning is issued. 7845 7846Fixed a problem where incorrect AML was generated for the case 7847where an ASL namepath consists of a single parent prefix ( 7848 7849) with no trailing name segments. 7850 7851The compiler has been successfully generated with a 64-bit C 7852compiler. 7853 7854 7855 7856 7857---------------------------------------- 7858Summary of changes for this label: 12_18_01 7859 78601) Linux 7861 7862Enhanced blacklist with reason and severity fields. Any table's 7863signature may now be used to identify a blacklisted system. 7864 7865Call _PIC control method to inform the firmware which interrupt 7866model the OS is using. Turn on any disabled link devices. 7867 7868Cleaned up busmgr /proc error handling (Andreas Dilger) 7869 7870 2) ACPI CA Core Subsystem: 7871 7872Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 7873while loop) 7874 7875Completed implementation of the ACPI 2.0 "Continue", 7876"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 7877operators. All new ACPI 2.0 operators are now implemented in both 7878the ASL compiler and the AML interpreter. The only remaining ACPI 78792.0 task is support for the String data type in the DerefOf 7880operator. Fixed a problem with AcquireMutex where the status code 7881was lost if the caller had to actually wait for the mutex. 7882 7883Increased the maximum ASL Field size from 64K bits to 4G bits. 7884 7885Completed implementation of the external Global Lock interfaces -- 7886AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 7887Handler parameters were added. 7888 7889Completed another pass at removing warnings and issues when 7890compiling with 64-bit compilers. The code now compiles cleanly 7891with the Intel 64-bit C/C++ compiler. Most notably, the pointer 7892add and subtract (diff) macros have changed considerably. 7893 7894 7895Created and deployed a new ACPI_SIZE type that is 64-bits wide on 789664-bit platforms, 32-bits on all others. This type is used 7897wherever memory allocation and/or the C sizeof() operator is used, 7898and affects the OSL memory allocation interfaces AcpiOsAllocate 7899and AcpiOsCallocate. 7900 7901Implemented sticky user breakpoints in the AML debugger. 7902 7903Code and Data Size: Current core subsystem library sizes are shown 7904below. These are the code and data sizes for the acpica.lib 7905produced by the Microsoft Visual C++ 6.0 compiler, and these 7906values do not include any ACPI driver or OSPM code. The debug 7907version of the code includes the debug output trace mechanism and 7908has a larger code and data size. Note that these values will vary 7909depending on the efficiency of the compiler and the compiler 7910options used during generation. 7911 7912 Previous Release (12_05_01) 7913 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 7914 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 7915 Current Release: 7916 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 7917 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 7918 7919 3) ASL Compiler, version X2034: 7920 7921Now checks for (and generates an error if detected) the use of a 7922Break or Continue statement without an enclosing While statement. 7923 7924 7925Successfully generated the compiler with the Intel 64-bit C 7926compiler. 7927 7928 ---------------------------------------- 7929Summary of changes for this label: 12_05_01 7930 7931 1) ACPI CA Core Subsystem: 7932 7933The ACPI 2.0 CopyObject operator is fully implemented. This 7934operator creates a new copy of an object (and is also used to 7935bypass the "implicit conversion" mechanism of the Store operator.) 7936 7937The ACPI 2.0 semantics for the SizeOf operator are fully 7938implemented. The change is that performing a SizeOf on a 7939reference object causes an automatic dereference of the object to 7940tha actual value before the size is evaluated. This behavior was 7941undefined in ACPI 1.0. 7942 7943The ACPI 2.0 semantics for the Extended IRQ resource descriptor 7944have been implemented. The interrupt polarity and mode are now 7945independently set. 7946 7947Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 7948appearing in Package objects were not properly converted to 7949integers when the internal Package was converted to an external 7950object (via the AcpiEvaluateObject interface.) 7951 7952Fixed a problem with the namespace object deletion mechanism for 7953objects created by control methods. There were two parts to this 7954problem: 1) Objects created during the initialization phase method 7955parse were not being deleted, and 2) The object owner ID mechanism 7956to track objects was broken. 7957 7958Fixed a problem where the use of the ASL Scope operator within a 7959control method would result in an invalid opcode exception. 7960 7961Fixed a problem introduced in the previous label where the buffer 7962length required for the _PRT structure was not being returned 7963correctly. 7964 7965Code and Data Size: Current core subsystem library sizes are shown 7966below. These are the code and data sizes for the acpica.lib 7967produced by the Microsoft Visual C++ 6.0 compiler, and these 7968values do not include any ACPI driver or OSPM code. The debug 7969version of the code includes the debug output trace mechanism and 7970has a larger code and data size. Note that these values will vary 7971depending on the efficiency of the compiler and the compiler 7972options used during generation. 7973 7974 Previous Release (11_20_01) 7975 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 7976 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 7977 7978 Current Release: 7979 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 7980 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 7981 7982 2) Linux: 7983 7984Updated all files to apply cleanly against 2.4.16. 7985 7986Added basic PCI Interrupt Routing Table (PRT) support for IA32 7987(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 7988version supports both static and dyanmic PRT entries, but dynamic 7989entries are treated as if they were static (not yet 7990reconfigurable). Architecture- specific code to use this data is 7991absent on IA32 but should be available shortly. 7992 7993Changed the initialization sequence to start the ACPI interpreter 7994(acpi_init) prior to initialization of the PCI driver (pci_init) 7995in init/main.c. This ordering is required to support PRT and 7996facilitate other (future) enhancement. A side effect is that the 7997ACPI bus driver and certain device drivers can no longer be loaded 7998as modules. 7999 8000Modified the 'make menuconfig' options to allow PCI Interrupt 8001Routing support to be included without the ACPI Bus and other 8002device drivers. 8003 8004 3) ASL Compiler, version X2033: 8005 8006Fixed some issues with the use of the new CopyObject and 8007DataTableRegion operators. Both are fully functional. 8008 8009 ---------------------------------------- 8010Summary of changes for this label: 11_20_01 8011 8012 20 November 2001. Summary of changes for this release. 8013 8014 1) ACPI CA Core Subsystem: 8015 8016Updated Index support to match ACPI 2.0 semantics. Storing a 8017Integer, String, or Buffer to an Index of a Buffer will store only 8018the least-significant byte of the source to the Indexed buffer 8019byte. Multiple writes are not performed. 8020 8021Fixed a problem where the access type used in an AccessAs ASL 8022operator was not recorded correctly into the field object. 8023 8024Fixed a problem where ASL Event objects were created in a 8025signalled state. Events are now created in an unsignalled state. 8026 8027The internal object cache is now purged after table loading and 8028initialization to reduce the use of dynamic kernel memory -- on 8029the assumption that object use is greatest during the parse phase 8030of the entire table (versus the run-time use of individual control 8031methods.) 8032 8033ACPI 2.0 variable-length packages are now fully operational. 8034 8035Code and Data Size: Code and Data optimizations have permitted new 8036feature development with an actual reduction in the library size. 8037Current core subsystem library sizes are shown below. These are 8038the code and data sizes for the acpica.lib produced by the 8039Microsoft Visual C++ 6.0 compiler, and these values do not include 8040any ACPI driver or OSPM code. The debug version of the code 8041includes the debug output trace mechanism and has a larger code 8042and data size. Note that these values will vary depending on the 8043efficiency of the compiler and the compiler options used during 8044generation. 8045 8046 Previous Release (11_09_01): 8047 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8048 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8049 8050 Current Release: 8051 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8052 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8053 8054 2) Linux: 8055 8056Enhanced the ACPI boot-time initialization code to allow the use 8057of Local APIC tables for processor enumeration on IA-32, and to 8058pave the way for a fully MPS-free boot (on SMP systems) in the 8059near future. This functionality replaces 8060arch/i386/kernel/acpitables.c, which was introduced in an earlier 80612.4.15-preX release. To enable this feature you must add 8062"acpi_boot=on" to the kernel command line -- see the help entry 8063for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 8064the works... 8065 8066Restructured the configuration options to allow boot-time table 8067parsing support without inclusion of the ACPI Interpreter (and 8068other) code. 8069 8070NOTE: This release does not include fixes for the reported events, 8071power-down, and thermal passive cooling issues (coming soon). 8072 8073 3) ASL Compiler: 8074 8075Added additional typechecking for Fields within restricted access 8076Operation Regions. All fields within EC and CMOS regions must be 8077declared with ByteAcc. All fields withing SMBus regions must be 8078declared with the BufferAcc access type. 8079 8080Fixed a problem where the listing file output of control methods 8081no longer interleaved the actual AML code with the ASL source 8082code. 8083 8084 8085 8086 8087---------------------------------------- 8088Summary of changes for this label: 11_09_01 8089 80901) ACPI CA Core Subsystem: 8091 8092Implemented ACPI 2.0-defined support for writes to fields with a 8093Buffer, String, or Integer source operand that is smaller than the 8094target field. In these cases, the source operand is zero-extended 8095to fill the target field. 8096 8097Fixed a problem where a Field starting bit offset (within the 8098parent operation region) was calculated incorrectly if the 8099 8100alignment of the field differed from the access width. This 8101affected CreateWordField, CreateDwordField, CreateQwordField, and 8102possibly other fields that use the "AccessAny" keyword. 8103 8104Fixed a problem introduced in the 11_02_01 release where indirect 8105stores through method arguments did not operate correctly. 8106 81072) Linux: 8108 8109Implemented boot-time ACPI table parsing support 8110(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 8111facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 8112legacy BIOS interfaces (e.g. MPS) for the configuration of system 8113processors, memory, and interrupts during setup_arch(). Note that 8114this patch does not include the required architecture-specific 8115changes required to apply this information -- subsequent patches 8116will be posted for both IA32 and IA64 to achieve this. 8117 8118Added low-level sleep support for IA32 platforms, courtesy of Pat 8119Mochel. This allows IA32 systems to transition to/from various 8120sleeping states (e.g. S1, S3), although the lack of a centralized 8121driver model and power-manageable drivers will prevent its 8122(successful) use on most systems. 8123 8124Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 8125submenu, unified IA32 and IA64 options, added new "Boot using ACPI 8126tables" option, etc. 8127 8128Increased the default timeout for the EC driver from 1ms to 10ms 8129(1000 cycles of 10us) to try to address AE_TIME errors during EC 8130transactions. 8131 8132 ---------------------------------------- 8133Summary of changes for this label: 11_02_01 8134 81351) ACPI CA Core Subsystem: 8136 8137ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 8138(QWordAcc keyword). All ACPI 2.0 64-bit support is now 8139implemented. 8140 8141OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 8142changes to support ACPI 2.0 Qword field access. Read/Write 8143PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 8144accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 8145the value parameter for the address space handler interface is now 8146an ACPI_INTEGER. OSL implementations of these interfaces must now 8147handle the case where the Width parameter is 64. 8148 8149Index Fields: Fixed a problem where unaligned bit assembly and 8150disassembly for IndexFields was not supported correctly. 8151 8152Index and Bank Fields: Nested Index and Bank Fields are now 8153supported. During field access, a check is performed to ensure 8154that the value written to an Index or Bank register is not out of 8155the range of the register. The Index (or Bank) register is 8156written before each access to the field data. Future support will 8157include allowing individual IndexFields to be wider than the 8158DataRegister width. 8159 8160Fields: Fixed a problem where the AML interpreter was incorrectly 8161attempting to write beyond the end of a Field/OpRegion. This was 8162a boundary case that occurred when a DWORD field was written to a 8163BYTE access OpRegion, forcing multiple writes and causing the 8164interpreter to write one datum too many. 8165 8166Fields: Fixed a problem with Field/OpRegion access where the 8167starting bit address of a field was incorrectly calculated if the 8168current access type was wider than a byte (WordAcc, DwordAcc, or 8169QwordAcc). 8170 8171Fields: Fixed a problem where forward references to individual 8172FieldUnits (individual Field names within a Field definition) were 8173not resolved during the AML table load. 8174 8175Fields: Fixed a problem where forward references from a Field 8176definition to the parent Operation Region definition were not 8177resolved during the AML table load. 8178 8179Fields: Duplicate FieldUnit names within a scope are now detected 8180during AML table load. 8181 8182Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 8183returned an incorrect name for the root node. 8184 8185Code and Data Size: Code and Data optimizations have permitted new 8186feature development with an actual reduction in the library size. 8187Current core subsystem library sizes are shown below. These are 8188the code and data sizes for the acpica.lib produced by the 8189Microsoft Visual C++ 6.0 compiler, and these values do not include 8190any ACPI driver or OSPM code. The debug version of the code 8191includes the debug output trace mechanism and has a larger code 8192and data size. Note that these values will vary depending on the 8193efficiency of the compiler and the compiler options used during 8194generation. 8195 8196 Previous Release (10_18_01): 8197 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8198 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8199 8200 Current Release: 8201 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8202 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8203 8204 2) Linux: 8205 8206Improved /proc processor output (Pavel Machek) Re-added 8207MODULE_LICENSE("GPL") to all modules. 8208 8209 3) ASL Compiler version X2030: 8210 8211Duplicate FieldUnit names within a scope are now detected and 8212flagged as errors. 8213 8214 4) Documentation: 8215 8216Programmer Reference updated to reflect OSL and address space 8217handler interface changes described above. 8218 8219---------------------------------------- 8220Summary of changes for this label: 10_18_01 8221 8222ACPI CA Core Subsystem: 8223 8224Fixed a problem with the internal object reference count mechanism 8225that occasionally caused premature object deletion. This resolves 8226all of the outstanding problem reports where an object is deleted 8227in the middle of an interpreter evaluation. Although this problem 8228only showed up in rather obscure cases, the solution to the 8229problem involved an adjustment of all reference counts involving 8230objects attached to namespace nodes. 8231 8232Fixed a problem with Field support in the interpreter where 8233writing to an aligned field whose length is an exact multiple (2 8234or greater) of the field access granularity would cause an attempt 8235to write beyond the end of the field. 8236 8237The top level AML opcode execution functions within the 8238interpreter have been renamed with a more meaningful and 8239consistent naming convention. The modules exmonad.c and 8240exdyadic.c were eliminated. New modules are exoparg1.c, 8241exoparg2.c, exoparg3.c, and exoparg6.c. 8242 8243Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 8244 8245Fixed a problem where the AML debugger was causing some internal 8246objects to not be deleted during subsystem termination. 8247 8248Fixed a problem with the external AcpiEvaluateObject interface 8249where the subsystem would fault if the named object to be 8250evaluated refered to a constant such as Zero, Ones, etc. 8251 8252Fixed a problem with IndexFields and BankFields where the 8253subsystem would fault if the index, data, or bank registers were 8254not defined in the same scope as the field itself. 8255 8256Added printf format string checking for compilers that support 8257this feature. Corrected more than 50 instances of issues with 8258format specifiers within invocations of ACPI_DEBUG_PRINT 8259throughout the core subsystem code. 8260 8261The ASL "Revision" operator now returns the ACPI support level 8262implemented in the core - the value "2" since the ACPI 2.0 support 8263is more than 50% implemented. 8264 8265Enhanced the output of the AML debugger "dump namespace" command 8266to output in a more human-readable form. 8267 8268Current core subsystem library code sizes are shown below. These 8269 8270are the code and data sizes for the acpica.lib produced by the 8271Microsoft Visual C++ 6.0 compiler, and these values do not include 8272any ACPI driver or OSPM code. The debug version of the code 8273includes the full debug trace mechanism -- leading to a much 8274 8275larger code and data size. Note that these values will vary 8276depending on the efficiency of the compiler and the compiler 8277options used during generation. 8278 8279 Previous Label (09_20_01): 8280 Non-Debug Version: 65K Code, 5K Data, 70K Total 8281 Debug Version: 138K Code, 58K Data, 196K Total 8282 8283 This Label: 8284 8285 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8286 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8287 8288Linux: 8289 8290Implemented a "Bad BIOS Blacklist" to track machines that have 8291known ASL/AML problems. 8292 8293Enhanced the /proc interface for the thermal zone driver and added 8294support for _HOT (the critical suspend trip point). The 'info' 8295file now includes threshold/policy information, and allows setting 8296of _SCP (cooling preference) and _TZP (polling frequency) values 8297to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 8298frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 8299preference to the passive/quiet mode (if supported by the ASL). 8300 8301Implemented a workaround for a gcc bug that resuted in an OOPs 8302when loading the control method battery driver. 8303 8304 ---------------------------------------- 8305Summary of changes for this label: 09_20_01 8306 8307 ACPI CA Core Subsystem: 8308 8309The AcpiEnableEvent and AcpiDisableEvent interfaces have been 8310modified to allow individual GPE levels to be flagged as wake- 8311enabled (i.e., these GPEs are to remain enabled when the platform 8312sleeps.) 8313 8314The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 8315support wake-enabled GPEs. This means that upon entering the 8316sleep state, all GPEs that are not wake-enabled are disabled. 8317When leaving the sleep state, these GPEs are reenabled. 8318 8319A local double-precision divide/modulo module has been added to 8320enhance portability to OS kernels where a 64-bit math library is 8321not available. The new module is "utmath.c". 8322 8323Several optimizations have been made to reduce the use of CPU 8324stack. Originally over 2K, the maximum stack usage is now below 83252K at 1860 bytes (1.82k) 8326 8327Fixed a problem with the AcpiGetFirmwareTable interface where the 8328root table pointer was not mapped into a logical address properly. 8329 8330Fixed a problem where a NULL pointer was being dereferenced in the 8331interpreter code for the ASL Notify operator. 8332 8333Fixed a problem where the use of the ASL Revision operator 8334returned an error. This operator now returns the current version 8335of the ACPI CA core subsystem. 8336 8337Fixed a problem where objects passed as control method parameters 8338to AcpiEvaluateObject were always deleted at method termination. 8339However, these objects may end up being stored into the namespace 8340by the called method. The object reference count mechanism was 8341applied to these objects instead of a force delete. 8342 8343Fixed a problem where static strings or buffers (contained in the 8344AML code) that are declared as package elements within the ASL 8345code could cause a fault because the interpreter would attempt to 8346delete them. These objects are now marked with the "static 8347object" flag to prevent any attempt to delete them. 8348 8349Implemented an interpreter optimization to use operands directly 8350from the state object instead of extracting the operands to local 8351variables. This reduces stack use and code size, and improves 8352performance. 8353 8354The module exxface.c was eliminated as it was an unnecessary extra 8355layer of code. 8356 8357Current core subsystem library code sizes are shown below. These 8358are the code and data sizes for the acpica.lib produced by the 8359Microsoft Visual C++ 6.0 compiler, and these values do not include 8360any ACPI driver or OSPM code. The debug version of the code 8361includes the full debug trace mechanism -- leading to a much 8362larger code and data size. Note that these values will vary 8363depending on the efficiency of the compiler and the compiler 8364options used during generation. 8365 8366 Non-Debug Version: 65K Code, 5K Data, 70K Total 8367(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 8368Total (Previously 195K) 8369 8370Linux: 8371 8372Support for ACPI 2.0 64-bit integers has been added. All ACPI 8373Integer objects are now 64 bits wide 8374 8375All Acpi data types and structures are now in lower case. Only 8376Acpi macros are upper case for differentiation. 8377 8378 Documentation: 8379 8380Changes to the external interfaces as described above. 8381 8382 ---------------------------------------- 8383Summary of changes for this label: 08_31_01 8384 8385 ACPI CA Core Subsystem: 8386 8387A bug with interpreter implementation of the ASL Divide operator 8388was found and fixed. The implicit function return value (not the 8389explicit store operands) was returning the remainder instead of 8390the quotient. This was a longstanding bug and it fixes several 8391known outstanding issues on various platforms. 8392 8393The ACPI_DEBUG_PRINT and function trace entry/exit macros have 8394been further optimized for size. There are 700 invocations of the 8395DEBUG_PRINT macro alone, so each optimization reduces the size of 8396the debug version of the subsystem significantly. 8397 8398A stack trace mechanism has been implemented. The maximum stack 8399usage is about 2K on 32-bit platforms. The debugger command "stat 8400stack" will display the current maximum stack usage. 8401 8402All public symbols and global variables within the subsystem are 8403now prefixed with the string "Acpi". This keeps all of the 8404symbols grouped together in a kernel map, and avoids conflicts 8405with other kernel subsystems. 8406 8407Most of the internal fixed lookup tables have been moved into the 8408code segment via the const operator. 8409 8410Several enhancements have been made to the interpreter to both 8411reduce the code size and improve performance. 8412 8413Current core subsystem library code sizes are shown below. These 8414are the code and data sizes for the acpica.lib produced by the 8415Microsoft Visual C++ 6.0 compiler, and these values do not include 8416any ACPI driver or OSPM code. The debug version of the code 8417includes the full debug trace mechanism which contains over 700 8418invocations of the DEBUG_PRINT macro, 500 function entry macro 8419invocations, and over 900 function exit macro invocations -- 8420leading to a much larger code and data size. Note that these 8421values will vary depending on the efficiency of the compiler and 8422the compiler options used during generation. 8423 8424 Non-Debug Version: 64K Code, 5K Data, 69K Total 8425Debug Version: 137K Code, 58K Data, 195K Total 8426 8427 Linux: 8428 8429Implemented wbinvd() macro, pending a kernel-wide definition. 8430 8431Fixed /proc/acpi/event to handle poll() and short reads. 8432 8433 ASL Compiler, version X2026: 8434 8435Fixed a problem introduced in the previous label where the AML 8436 8437code emitted for package objects produced packages with zero 8438length. 8439 8440 ---------------------------------------- 8441Summary of changes for this label: 08_16_01 8442 8443ACPI CA Core Subsystem: 8444 8445The following ACPI 2.0 ASL operators have been implemented in the 8446AML interpreter (These are already supported by the Intel ASL 8447compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 8448ToBuffer. Support for 64-bit AML constants is implemented in the 8449AML parser, debugger, and disassembler. 8450 8451The internal memory tracking mechanism (leak detection code) has 8452been upgraded to reduce the memory overhead (a separate tracking 8453block is no longer allocated for each memory allocation), and now 8454supports all of the internal object caches. 8455 8456The data structures and code for the internal object caches have 8457been coelesced and optimized so that there is a single cache and 8458memory list data structure and a single group of functions that 8459implement generic cache management. This has reduced the code 8460size in both the debug and release versions of the subsystem. 8461 8462The DEBUG_PRINT macro(s) have been optimized for size and replaced 8463by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 8464different, because it generates a single call to an internal 8465function. This results in a savings of about 90 bytes per 8466invocation, resulting in an overall code and data savings of about 846716% in the debug version of the subsystem. 8468 8469 Linux: 8470 8471Fixed C3 disk corruption problems and re-enabled C3 on supporting 8472machines. 8473 8474Integrated low-level sleep code by Patrick Mochel. 8475 8476Further tweaked source code Linuxization. 8477 8478Other minor fixes. 8479 8480 ASL Compiler: 8481 8482Support for ACPI 2.0 variable length packages is fixed/completed. 8483 8484Fixed a problem where the optional length parameter for the ACPI 84852.0 ToString operator. 8486 8487Fixed multiple extraneous error messages when a syntax error is 8488detected within the declaration line of a control method. 8489 8490 ---------------------------------------- 8491Summary of changes for this label: 07_17_01 8492 8493ACPI CA Core Subsystem: 8494 8495Added a new interface named AcpiGetFirmwareTable to obtain any 8496ACPI table via the ACPI signature. The interface can be called at 8497any time during kernel initialization, even before the kernel 8498virtual memory manager is initialized and paging is enabled. This 8499allows kernel subsystems to obtain ACPI tables very early, even 8500before the ACPI CA subsystem is initialized. 8501 8502Fixed a problem where Fields defined with the AnyAcc attribute 8503could be resolved to the incorrect address under the following 8504conditions: 1) the field width is larger than 8 bits and 2) the 8505parent operation region is not defined on a DWORD boundary. 8506 8507Fixed a problem where the interpreter is not being locked during 8508namespace initialization (during execution of the _INI control 8509methods), causing an error when an attempt is made to release it 8510later. 8511 8512ACPI 2.0 support in the AML Interpreter has begun and will be 8513ongoing throughout the rest of this year. In this label, The Mod 8514operator is implemented. 8515 8516Added a new data type to contain full PCI addresses named 8517ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 8518and Function values. 8519 8520 Linux: 8521 8522Enhanced the Linux version of the source code to change most 8523capitalized ACPI type names to lowercase. For example, all 8524instances of ACPI_STATUS are changed to acpi_status. This will 8525result in a large diff, but the change is strictly cosmetic and 8526aligns the CA code closer to the Linux coding standard. 8527 8528OSL Interfaces: 8529 8530The interfaces to the PCI configuration space have been changed to 8531add the PCI Segment number and to split the single 32-bit combined 8532DeviceFunction field into two 16-bit fields. This was 8533accomplished by moving the four values that define an address in 8534PCI configuration space (segment, bus, device, and function) to 8535the new ACPI_PCI_ID structure. 8536 8537The changes to the PCI configuration space interfaces led to a 8538reexamination of the complete set of address space access 8539interfaces for PCI, I/O, and Memory. The previously existing 18 8540interfaces have proven difficult to maintain (any small change 8541must be propagated across at least 6 interfaces) and do not easily 8542allow for future expansion to 64 bits if necessary. Also, on some 8543systems, it would not be appropriate to demultiplex the access 8544width (8, 16, 32,or 64) before calling the OSL if the 8545corresponding native OS interfaces contain a similar access width 8546parameter. For these reasons, the 18 address space interfaces 8547have been replaced by these 6 new ones: 8548 8549AcpiOsReadPciConfiguration 8550AcpiOsWritePciConfiguration 8551AcpiOsReadMemory 8552AcpiOsWriteMemory 8553AcpiOsReadPort 8554AcpiOsWritePort 8555 8556Added a new interface named AcpiOsGetRootPointer to allow the OSL 8557to perform the platform and/or OS-specific actions necessary to 8558obtain the ACPI RSDP table pointer. On IA-32 platforms, this 8559interface will simply call down to the CA core to perform the low- 8560memory search for the table. On IA-64, the RSDP is obtained from 8561EFI. Migrating this interface to the OSL allows the CA core to 8562 8563remain OS and platform independent. 8564 8565Added a new interface named AcpiOsSignal to provide a generic 8566"function code and pointer" interface for various miscellaneous 8567signals and notifications that must be made to the host OS. The 8568first such signals are intended to support the ASL Fatal and 8569Breakpoint operators. In the latter case, the AcpiOsBreakpoint 8570interface has been obsoleted. 8571 8572The definition of the AcpiFormatException interface has been 8573changed to simplify its use. The caller no longer must supply a 8574buffer to the call; A pointer to a const string is now returned 8575directly. This allows the call to be easily used in printf 8576statements, etc. since the caller does not have to manage a local 8577buffer. 8578 8579 8580 ASL Compiler, Version X2025: 8581 8582The ACPI 2.0 Switch/Case/Default operators have been implemented 8583and are fully functional. They will work with all ACPI 1.0 8584interpreters, since the operators are simply translated to If/Else 8585pairs. 8586 8587The ACPI 2.0 ElseIf operator is implemented and will also work 8588with 1.0 interpreters, for the same reason. 8589 8590Implemented support for ACPI 2.0 variable-length packages. These 8591packages have a separate opcode, and their size is determined by 8592the interpreter at run-time. 8593 8594Documentation The ACPI CA Programmer Reference has been updated to 8595reflect the new interfaces and changes to existing interfaces. 8596 8597 ------------------------------------------ 8598Summary of changes for this label: 06_15_01 8599 8600 ACPI CA Core Subsystem: 8601 8602Fixed a problem where a DWORD-accessed field within a Buffer 8603object would get its byte address inadvertently rounded down to 8604the nearest DWORD. Buffers are always Byte-accessible. 8605 8606 ASL Compiler, version X2024: 8607 8608Fixed a problem where the Switch() operator would either fault or 8609hang the compiler. Note however, that the AML code for this ACPI 86102.0 operator is not yet implemented. 8611 8612Compiler uses the new AcpiOsGetTimer interface to obtain compile 8613timings. 8614 8615Implementation of the CreateField operator automatically converts 8616a reference to a named field within a resource descriptor from a 8617byte offset to a bit offset if required. 8618 8619Added some missing named fields from the resource descriptor 8620support. These are the names that are automatically created by the 8621compiler to reference fields within a descriptor. They are only 8622valid at compile time and are not passed through to the AML 8623interpreter. 8624 8625Resource descriptor named fields are now typed as Integers and 8626subject to compile-time typechecking when used in expressions. 8627 8628 ------------------------------------------ 8629Summary of changes for this label: 05_18_01 8630 8631 ACPI CA Core Subsystem: 8632 8633Fixed a couple of problems in the Field support code where bits 8634from adjacent fields could be returned along with the proper field 8635bits. Restructured the field support code to improve performance, 8636readability and maintainability. 8637 8638New DEBUG_PRINTP macro automatically inserts the procedure name 8639into the output, saving hundreds of copies of procedure name 8640strings within the source, shrinking the memory footprint of the 8641debug version of the core subsystem. 8642 8643 Source Code Structure: 8644 8645The source code directory tree was restructured to reflect the 8646current organization of the component architecture. Some files 8647and directories have been moved and/or renamed. 8648 8649 Linux: 8650 8651Fixed leaking kacpidpc processes. 8652 8653Fixed queueing event data even when /proc/acpi/event is not 8654opened. 8655 8656 ASL Compiler, version X2020: 8657 8658Memory allocation performance enhancement - over 24X compile time 8659improvement on large ASL files. Parse nodes and namestring 8660buffers are now allocated from a large internal compiler buffer. 8661 8662The temporary .SRC file is deleted unless the "-s" option is 8663specified 8664 8665The "-d" debug output option now sends all output to the .DBG file 8666instead of the console. 8667 8668"External" second parameter is now optional 8669 8670"ElseIf" syntax now properly allows the predicate 8671 8672Last operand to "Load" now recognized as a Target operand 8673 8674Debug object can now be used anywhere as a normal object. 8675 8676ResourceTemplate now returns an object of type BUFFER 8677 8678EISAID now returns an object of type INTEGER 8679 8680"Index" now works with a STRING operand 8681 8682"LoadTable" now accepts optional parameters 8683 8684"ToString" length parameter is now optional 8685 8686"Interrupt (ResourceType," parse error fixed. 8687 8688"Register" with a user-defined region space parse error fixed 8689 8690Escaped backslash at the end of a string ("\\") scan/parse error 8691fixed 8692 8693"Revision" is now an object of type INTEGER. 8694 8695 8696 8697------------------------------------------ 8698Summary of changes for this label: 05_02_01 8699 8700Linux: 8701 8702/proc/acpi/event now blocks properly. 8703 8704Removed /proc/sys/acpi. You can still dump your DSDT from 8705/proc/acpi/dsdt. 8706 8707 ACPI CA Core Subsystem: 8708 8709Fixed a problem introduced in the previous label where some of the 8710"small" resource descriptor types were not recognized. 8711 8712Improved error messages for the case where an ASL Field is outside 8713the range of the parent operation region. 8714 8715 ASL Compiler, version X2018: 8716 8717 8718Added error detection for ASL Fields that extend beyond the length 8719of the parent operation region (only if the length of the region 8720is known at compile time.) This includes fields that have a 8721minimum access width that is smaller than the parent region, and 8722individual field units that are partially or entirely beyond the 8723extent of the parent. 8724 8725 8726 8727------------------------------------------ 8728Summary of changes for this label: 04_27_01 8729 8730 ACPI CA Core Subsystem: 8731 8732Fixed a problem where the namespace mutex could be released at the 8733wrong time during execution of AcpiRemoveAddressSpaceHandler. 8734 8735Added optional thread ID output for debug traces, to simplify 8736debugging of multiple threads. Added context switch notification 8737when the debug code realizes that a different thread is now 8738executing ACPI code. 8739 8740Some additional external data types have been prefixed with the 8741string "ACPI_" for consistency. This may effect existing code. 8742The data types affected are the external callback typedefs - e.g., 8743 8744WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 8745 8746 Linux: 8747 8748Fixed an issue with the OSL semaphore implementation where a 8749thread was waking up with an error from receiving a SIGCHLD 8750signal. 8751 8752Linux version of ACPI CA now uses the system C library for string 8753manipulation routines instead of a local implementation. 8754 8755Cleaned up comments and removed TBDs. 8756 8757 ASL Compiler, version X2017: 8758 8759Enhanced error detection and reporting for all file I/O 8760operations. 8761 8762 Documentation: 8763 8764Programmer Reference updated to version 1.06. 8765 8766 8767 8768------------------------------------------ 8769Summary of changes for this label: 04_13_01 8770 8771 ACPI CA Core Subsystem: 8772 8773Restructured support for BufferFields and RegionFields. 8774BankFields support is now fully operational. All known 32-bit 8775limitations on field sizes have been removed. Both BufferFields 8776and (Operation) RegionFields are now supported by the same field 8777management code. 8778 8779Resource support now supports QWORD address and IO resources. The 878016/32/64 bit address structures and the Extended IRQ structure 8781have been changed to properly handle Source Resource strings. 8782 8783A ThreadId of -1 is now used to indicate a "mutex not acquired" 8784condition internally and must never be returned by AcpiOsThreadId. 8785This reserved value was changed from 0 since Unix systems allow a 8786thread ID of 0. 8787 8788Linux: 8789 8790Driver code reorganized to enhance portability 8791 8792Added a kernel configuration option to control ACPI_DEBUG 8793 8794Fixed the EC driver to honor _GLK. 8795 8796ASL Compiler, version X2016: 8797 8798Fixed support for the "FixedHw" keyword. Previously, the FixedHw 8799address space was set to 0, not 0x7f as it should be. 8800 8801 ------------------------------------------ 8802Summary of changes for this label: 03_13_01 8803 8804 ACPI CA Core Subsystem: 8805 8806During ACPI initialization, the _SB_._INI method is now run if 8807present. 8808 8809Notify handler fix - notifies are deferred until the parent method 8810completes execution. This fixes the "mutex already acquired" 8811issue seen occasionally. 8812 8813Part of the "implicit conversion" rules in ACPI 2.0 have been 8814found to cause compatibility problems with existing ASL/AML. The 8815convert "result-to-target-type" implementation has been removed 8816for stores to method Args and Locals. Source operand conversion 8817is still fully implemented. Possible changes to ACPI 2.0 8818specification pending. 8819 8820Fix to AcpiRsCalculatePciRoutingTableLength to return correct 8821length. 8822 8823Fix for compiler warnings for 64-bit compiles. 8824 8825 Linux: 8826 8827/proc output aligned for easier parsing. 8828 8829Release-version compile problem fixed. 8830 8831New kernel configuration options documented in Configure.help. 8832 8833IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 8834context" message. 8835 8836 OSPM: 8837 8838Power resource driver integrated with bus manager. 8839 8840Fixed kernel fault during active cooling for thermal zones. 8841 8842Source Code: 8843 8844The source code tree has been restructured. 8845 8846 8847 8848------------------------------------------ 8849Summary of changes for this label: 03_02_01 8850 8851 Linux OS Services Layer (OSL): 8852 8853Major revision of all Linux-specific code. 8854 8855Modularized all ACPI-specific drivers. 8856 8857Added new thermal zone and power resource drivers. 8858 8859Revamped /proc interface (new functionality is under /proc/acpi). 8860 8861New kernel configuration options. 8862 8863 Linux known issues: 8864 8865New kernel configuration options not documented in Configure.help 8866yet. 8867 8868 8869Module dependencies not currently implemented. If used, they 8870should be loaded in this order: busmgr, power, ec, system, 8871processor, battery, ac_adapter, button, thermal. 8872 8873Modules will not load if CONFIG_MODVERSION is set. 8874 8875IBM 600E - entering S5 may reboot instead of shutting down. 8876 8877IBM 600E - Sleep button may generate "Invalid <NULL> context" 8878message. 8879 8880Some systems may fail with "execution mutex already acquired" 8881message. 8882 8883 ACPI CA Core Subsystem: 8884 8885Added a new OSL Interface, AcpiOsGetThreadId. This was required 8886for the deadlock detection code. Defined to return a non-zero, 32- 8887bit thread ID for the currently executing thread. May be a non- 8888zero constant integer on single-thread systems. 8889 8890Implemented deadlock detection for internal subsystem mutexes. We 8891may add conditional compilation for this code (debug only) later. 8892 8893ASL/AML Mutex object semantics are now fully supported. This 8894includes multiple acquires/releases by owner and support for the 8895 8896Mutex SyncLevel parameter. 8897 8898A new "Force Release" mechanism automatically frees all ASL 8899Mutexes that have been acquired but not released when a thread 8900exits the interpreter. This forces conformance to the ACPI spec 8901("All mutexes must be released when an invocation exits") and 8902prevents deadlocked ASL threads. This mechanism can be expanded 8903(later) to monitor other resource acquisitions if OEM ASL code 8904continues to misbehave (which it will). 8905 8906Several new ACPI exception codes have been added for the Mutex 8907support. 8908 8909Recursive method calls are now allowed and supported (the ACPI 8910spec does in fact allow recursive method calls.) The number of 8911recursive calls is subject to the restrictions imposed by the 8912SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 8913parameter. 8914 8915Implemented support for the SyncLevel parameter for control 8916methods (ACPI 2.0 feature) 8917 8918Fixed a deadlock problem when multiple threads attempted to use 8919the interpreter. 8920 8921Fixed a problem where the string length of a String package 8922element was not always set in a package returned from 8923AcpiEvaluateObject. 8924 8925Fixed a problem where the length of a String package element was 8926not always included in the length of the overall package returned 8927from AcpiEvaluateObject. 8928 8929Added external interfaces (Acpi*) to the ACPI debug memory 8930manager. This manager keeps a list of all outstanding 8931allocations, and can therefore detect memory leaks and attempts to 8932free memory blocks more than once. Useful for code such as the 8933power manager, etc. May not be appropriate for device drivers. 8934Performance with the debug code enabled is slow. 8935 8936The ACPI Global Lock is now an optional hardware element. 8937 8938 ASL Compiler Version X2015: 8939 8940Integrated changes to allow the compiler to be generated on 8941multiple platforms. 8942 8943Linux makefile added to generate the compiler on Linux 8944 8945 Source Code: 8946 8947All platform-specific headers have been moved to their own 8948subdirectory, Include/Platform. 8949 8950New source file added, Interpreter/ammutex.c 8951 8952New header file, Include/acstruct.h 8953 8954 Documentation: 8955 8956The programmer reference has been updated for the following new 8957interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 8958 8959 ------------------------------------------ 8960Summary of changes for this label: 02_08_01 8961 8962Core ACPI CA Subsystem: Fixed a problem where an error was 8963incorrectly returned if the return resource buffer was larger than 8964the actual data (in the resource interfaces). 8965 8966References to named objects within packages are resolved to the 8967 8968full pathname string before packages are returned directly (via 8969the AcpiEvaluateObject interface) or indirectly via the resource 8970interfaces. 8971 8972Linux OS Services Layer (OSL): 8973 8974Improved /proc battery interface. 8975 8976 8977Added C-state debugging output and other miscellaneous fixes. 8978 8979ASL Compiler Version X2014: 8980 8981All defined method arguments can now be used as local variables, 8982including the ones that are not actually passed in as parameters. 8983The compiler tracks initialization of the arguments and issues an 8984exception if they are used without prior assignment (just like 8985locals). 8986 8987The -o option now specifies a filename prefix that is used for all 8988output files, including the AML output file. Otherwise, the 8989default behavior is as follows: 1) the AML goes to the file 8990specified in the DSDT. 2) all other output files use the input 8991source filename as the base. 8992 8993 ------------------------------------------ 8994Summary of changes for this label: 01_25_01 8995 8996Core ACPI CA Subsystem: Restructured the implementation of object 8997store support within the interpreter. This includes support for 8998the Store operator as well as any ASL operators that include a 8999target operand. 9000 9001Partially implemented support for Implicit Result-to-Target 9002conversion. This is when a result object is converted on the fly 9003to the type of an existing target object. Completion of this 9004support is pending further analysis of the ACPI specification 9005concerning this matter. 9006 9007CPU-specific code has been removed from the subsystem (hardware 9008directory). 9009 9010New Power Management Timer functions added 9011 9012Linux OS Services Layer (OSL): Moved system state transition code 9013to the core, fixed it, and modified Linux OSL accordingly. 9014 9015Fixed C2 and C3 latency calculations. 9016 9017 9018We no longer use the compilation date for the version message on 9019initialization, but retrieve the version from AcpiGetSystemInfo(). 9020 9021Incorporated for fix Sony VAIO machines. 9022 9023Documentation: The Programmer Reference has been updated and 9024reformatted. 9025 9026 9027ASL Compiler: Version X2013: Fixed a problem where the line 9028numbering and error reporting could get out of sync in the 9029presence of multiple include files. 9030 9031 ------------------------------------------ 9032Summary of changes for this label: 01_15_01 9033 9034Core ACPI CA Subsystem: 9035 9036Implemented support for type conversions in the execution of the 9037ASL Concatenate operator (The second operand is converted to 9038match the type of the first operand before concatenation.) 9039 9040Support for implicit source operand conversion is partially 9041implemented. The ASL source operand types Integer, Buffer, and 9042String are freely interchangeable for most ASL operators and are 9043converted by the interpreter on the fly as required. Implicit 9044Target operand conversion (where the result is converted to the 9045target type before storing) is not yet implemented. 9046 9047Support for 32-bit and 64-bit BCD integers is implemented. 9048 9049Problem fixed where a field read on an aligned field could cause a 9050read past the end of the field. 9051 9052New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 9053does not return a value, but the caller expects one. (The ASL 9054compiler flags this as a warning.) 9055 9056ASL Compiler: 9057 9058Version X2011: 90591. Static typechecking of all operands is implemented. This 9060prevents the use of invalid objects (such as using a Package where 9061an Integer is required) at compile time instead of at interpreter 9062run-time. 90632. The ASL source line is printed with ALL errors and warnings. 90643. Bug fix for source EOF without final linefeed. 90654. Debug option is split into a parse trace and a namespace trace. 90665. Namespace output option (-n) includes initial values for 9067integers and strings. 90686. Parse-only option added for quick syntax checking. 90697. Compiler checks for duplicate ACPI name declarations 9070 9071Version X2012: 90721. Relaxed typechecking to allow interchangeability between 9073strings, integers, and buffers. These types are now converted by 9074the interpreter at runtime. 90752. Compiler reports time taken by each internal subsystem in the 9076debug output file. 9077 9078 9079 ------------------------------------------ 9080Summary of changes for this label: 12_14_00 9081 9082ASL Compiler: 9083 9084This is the first official release of the compiler. Since the 9085compiler requires elements of the Core Subsystem, this label 9086synchronizes everything. 9087 9088------------------------------------------ 9089Summary of changes for this label: 12_08_00 9090 9091 9092Fixed a problem where named references within the ASL definition 9093of both OperationRegions and CreateXXXFields did not work 9094properly. The symptom was an AE_AML_OPERAND_TYPE during 9095initialization of the region/field. This is similar (but not 9096related internally) to the problem that was fixed in the last 9097label. 9098 9099Implemented both 32-bit and 64-bit support for the BCD ASL 9100functions ToBCD and FromBCD. 9101 9102Updated all legal headers to include "2000" in the copyright 9103years. 9104 9105 ------------------------------------------ 9106Summary of changes for this label: 12_01_00 9107 9108Fixed a problem where method invocations within the ASL definition 9109of both OperationRegions and CreateXXXFields did not work 9110properly. The symptom was an AE_AML_OPERAND_TYPE during 9111initialization of the region/field: 9112 9113 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 9114[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 9115(0x3005) 9116 9117Fixed a problem where operators with more than one nested 9118subexpression would fail. The symptoms were varied, by mostly 9119AE_AML_OPERAND_TYPE errors. This was actually a rather serious 9120problem that has gone unnoticed until now. 9121 9122 Subtract (Add (1,2), Multiply (3,4)) 9123 9124Fixed a problem where AcpiGetHandle didn't quite get fixed in the 9125previous build (The prefix part of a relative path was handled 9126incorrectly). 9127 9128Fixed a problem where Operation Region initialization failed if 9129the operation region name was a "namepath" instead of a simple 9130"nameseg". Symptom was an AE_NO_OPERAND error. 9131 9132Fixed a problem where an assignment to a local variable via the 9133indirect RefOf mechanism only worked for the first such 9134assignment. Subsequent assignments were ignored. 9135 9136 ------------------------------------------ 9137Summary of changes for this label: 11_15_00 9138 9139ACPI 2.0 table support with backwards support for ACPI 1.0 and the 91400.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 9141the AML interpreter does NOT have support for the new 2.0 ASL 9142grammar terms at this time. 9143 9144All ACPI hardware access is via the GAS structures in the ACPI 2.0 9145FADT. 9146 9147All physical memory addresses across all platforms are now 64 bits 9148wide. Logical address width remains dependent on the platform 9149(i.e., "void *"). 9150 9151AcpiOsMapMemory interface changed to a 64-bit physical address. 9152 9153The AML interpreter integer size is now 64 bits, as per the ACPI 91542.0 specification. 9155 9156For backwards compatibility with ACPI 1.0, ACPI tables with a 9157revision number less than 2 use 32-bit integers only. 9158 9159Fixed a problem where the evaluation of OpRegion operands did not 9160always resolve them to numbers properly. 9161 9162------------------------------------------ 9163Summary of changes for this label: 10_20_00 9164 9165Fix for CBN_._STA issue. This fix will allow correct access to 9166CBN_ OpRegions when the _STA returns 0x8. 9167 9168Support to convert ACPI constants (Ones, Zeros, One) to actual 9169values before a package object is returned 9170 9171Fix for method call as predicate to if/while construct causing 9172incorrect if/while behavior 9173 9174Fix for Else block package lengths sometimes calculated wrong (if 9175block > 63 bytes) 9176 9177Fix for Processor object length field, was always zero 9178 9179Table load abort if FACP sanity check fails 9180 9181Fix for problem with Scope(name) if name already exists 9182 9183Warning emitted if a named object referenced cannot be found 9184(resolved) during method execution. 9185 9186 9187 9188 9189 9190------------------------------------------ 9191Summary of changes for this label: 9_29_00 9192 9193New table initialization interfaces: AcpiInitializeSubsystem no 9194longer has any parameters AcpiFindRootPointer - Find the RSDP (if 9195necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 9196>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 9197AcpiLoadTables 9198 9199Note: These interface changes require changes to all existing OSDs 9200 9201The PCI_Config default address space handler is always installed 9202at the root namespace object. 9203 9204------------------------------------------- 9205Summary of changes for this label: 09_15_00 9206 9207The new initialization architecture is implemented. New 9208interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 9209AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 9210 9211(Namespace is automatically loaded when a table is loaded) 9212 9213The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 921452 bytes to 32 bytes. There is usually one of these for every 9215namespace object, so the memory savings is significant. 9216 9217Implemented just-in-time evaluation of the CreateField operators. 9218 9219Bug fixes for IA-64 support have been integrated. 9220 9221Additional code review comments have been implemented 9222 9223The so-called "third pass parse" has been replaced by a final walk 9224through the namespace to initialize all operation regions (address 9225spaces) and fields that have not yet been initialized during the 9226execution of the various _INI and REG methods. 9227 9228New file - namespace/nsinit.c 9229 9230------------------------------------------- 9231Summary of changes for this label: 09_01_00 9232 9233Namespace manager data structures have been reworked to change the 9234primary object from a table to a single object. This has 9235resulted in dynamic memory savings of 3X within the namespace and 92362X overall in the ACPI CA subsystem. 9237 9238Fixed problem where the call to AcpiEvFindPciRootBuses was 9239inadvertently left commented out. 9240 9241Reduced the warning count when generating the source with the GCC 9242compiler. 9243 9244Revision numbers added to each module header showing the 9245SourceSafe version of the file. Please refer to this version 9246number when giving us feedback or comments on individual modules. 9247 9248The main object types within the subsystem have been renamed to 9249clarify their purpose: 9250 9251ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 9252ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 9253ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 9254 9255NOTE: no changes to the initialization sequence are included in 9256this label. 9257 9258------------------------------------------- 9259Summary of changes for this label: 08_23_00 9260 9261Fixed problem where TerminateControlMethod was being called 9262multiple times per method 9263 9264Fixed debugger problem where single stepping caused a semaphore to 9265be oversignalled 9266 9267Improved performance through additional parse object caching - 9268added ACPI_EXTENDED_OP type 9269 9270------------------------------------------- 9271Summary of changes for this label: 08_10_00 9272 9273Parser/Interpreter integration: Eliminated the creation of 9274complete parse trees for ACPI tables and control methods. 9275Instead, parse subtrees are created and then deleted as soon as 9276they are processed (Either entered into the namespace or executed 9277by the interpreter). This reduces the use of dynamic kernel 9278memory significantly. (about 10X) 9279 9280Exception codes broken into classes and renumbered. Be sure to 9281recompile all code that includes acexcep.h. Hopefully we won't 9282have to renumber the codes again now that they are split into 9283classes (environment, programmer, AML code, ACPI table, and 9284internal). 9285 9286Fixed some additional alignment issues in the Resource Manager 9287subcomponent 9288 9289Implemented semaphore tracking in the AcpiExec utility, and fixed 9290several places where mutexes/semaphores were being unlocked 9291without a corresponding lock operation. There are no known 9292semaphore or mutex "leaks" at this time. 9293 9294Fixed the case where an ASL Return operator is used to return an 9295unnamed package. 9296 9297------------------------------------------- 9298Summary of changes for this label: 07_28_00 9299 9300Fixed a problem with the way addresses were calculated in 9301AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 9302manifested itself when a Field was created with WordAccess or 9303DwordAccess, but the field unit defined within the Field was less 9304 9305than a Word or Dword. 9306 9307Fixed a problem in AmlDumpOperands() module's loop to pull 9308operands off of the operand stack to display information. The 9309problem manifested itself as a TLB error on 64-bit systems when 9310accessing an operand stack with two or more operands. 9311 9312Fixed a problem with the PCI configuration space handlers where 9313context was getting confused between accesses. This required a 9314change to the generic address space handler and address space 9315setup definitions. Handlers now get both a global handler context 9316(this is the one passed in by the user when executing 9317AcpiInstallAddressSpaceHandler() and a specific region context 9318that is unique to each region (For example, the _ADR, _SEG and 9319_BBN values associated with a specific region). The generic 9320function definitions have changed to the following: 9321 9322typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 9323UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 9324*HandlerContext, // This used to be void *Context void 9325*RegionContext); // This is an additional parameter 9326 9327typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 9328RegionHandle, UINT32 Function, void *HandlerContext, void 9329**RegionContext); // This used to be **ReturnContext 9330 9331------------------------------------------- 9332Summary of changes for this label: 07_21_00 9333 9334Major file consolidation and rename. All files within the 9335interpreter have been renamed as well as most header files. This 9336was done to prevent collisions with existing files in the host 9337OSs -- filenames such as "config.h" and "global.h" seem to be 9338quite common. The VC project files have been updated. All 9339makefiles will require modification. 9340 9341The parser/interpreter integration continues in Phase 5 with the 9342implementation of a complete 2-pass parse (the AML is parsed 9343twice) for each table; This avoids the construction of a huge 9344parse tree and therefore reduces the amount of dynamic memory 9345required by the subsystem. Greater use of the parse object cache 9346means that performance is unaffected. 9347 9348Many comments from the two code reviews have been rolled in. 9349 9350The 64-bit alignment support is complete. 9351 9352------------------------------------------- 9353Summary of changes for this label: 06_30_00 9354 9355With a nod and a tip of the hat to the technology of yesteryear, 9356we've added support in the source code for 80 column output 9357devices. The code is now mostly constrained to 80 columns or 9358less to support environments and editors that 1) cannot display 9359or print more than 80 characters on a single line, and 2) cannot 9360disable line wrapping. 9361 9362A major restructuring of the namespace data structure has been 9363completed. The result is 1) cleaner and more 9364understandable/maintainable code, and 2) a significant reduction 9365in the dynamic memory requirement for each named ACPI object 9366(almost half). 9367 9368------------------------------------------- 9369Summary of changes for this label: 06_23_00 9370 9371Linux support has been added. In order to obtain approval to get 9372the ACPI CA subsystem into the Linux kernel, we've had to make 9373quite a few changes to the base subsystem that will affect all 9374users (all the changes are generic and OS- independent). The 9375effects of these global changes have been somewhat far reaching. 9376Files have been merged and/or renamed and interfaces have been 9377renamed. The major changes are described below. 9378 9379Osd* interfaces renamed to AcpiOs* to eliminate namespace 9380pollution/confusion within our target kernels. All OSD 9381interfaces must be modified to match the new naming convention. 9382 9383Files merged across the subsystem. A number of the smaller source 9384and header files have been merged to reduce the file count and 9385increase the density of the existing files. There are too many 9386to list here. In general, makefiles that call out individual 9387files will require rebuilding. 9388 9389Interpreter files renamed. All interpreter files now have the 9390prefix am* instead of ie* and is*. 9391 9392Header files renamed: The acapi.h file is now acpixf.h. The 9393acpiosd.h file is now acpiosxf.h. We are removing references to 9394the acronym "API" since it is somewhat windowsy. The new name is 9395"external interface" or xface or xf in the filenames.j 9396 9397 9398All manifest constants have been forced to upper case (some were 9399mixed case.) Also, the string "ACPI_" has been prepended to many 9400(not all) of the constants, typedefs, and structs. 9401 9402The globals "DebugLevel" and "DebugLayer" have been renamed 9403"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 9404 9405All other globals within the subsystem are now prefixed with 9406"AcpiGbl_" Internal procedures within the subsystem are now 9407prefixed with "Acpi" (with only a few exceptions). The original 9408two-letter abbreviation for the subcomponent remains after "Acpi" 9409- for example, CmCallocate became AcpiCmCallocate. 9410 9411Added a source code translation/conversion utility. Used to 9412generate the Linux source code, it can be modified to generate 9413other types of source as well. Can also be used to cleanup 9414existing source by removing extraneous spaces and blank lines. 9415Found in tools/acpisrc/* 9416 9417OsdUnMapMemory was renamed to OsdUnmapMemory and then 9418AcpiOsUnmapMemory. (UnMap became Unmap). 9419 9420A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 9421When set to one, this indicates that the caller wants to use the 9422 9423semaphore as a mutex, not a counting semaphore. ACPI CA uses 9424both types. However, implementers of this call may want to use 9425different OS primitives depending on the type of semaphore 9426requested. For example, some operating systems provide separate 9427 9428"mutex" and "semaphore" interfaces - where the mutex interface is 9429much faster because it doesn't have all the overhead of a full 9430semaphore implementation. 9431 9432Fixed a deadlock problem where a method that accesses the PCI 9433address space can block forever if it is the first access to the 9434space. 9435 9436------------------------------------------- 9437Summary of changes for this label: 06_02_00 9438 9439Support for environments that cannot handle unaligned data 9440accesses (e.g. firmware and OS environments devoid of alignment 9441handler technology namely SAL/EFI and the IA-64 Linux kernel) has 9442been added (via configurable macros) in these three areas: - 9443Transfer of data from the raw AML byte stream is done via byte 9444moves instead of word/dword/qword moves. - External objects are 9445aligned within the user buffer, including package elements (sub- 9446objects). - Conversion of name strings to UINT32 Acpi Names is now 9447done byte-wise. 9448 9449The Store operator was modified to mimic Microsoft's 9450implementation when storing to a Buffer Field. 9451 9452Added a check of the BM_STS bit before entering C3. 9453 9454The methods subdirectory has been obsoleted and removed. A new 9455file, cmeval.c subsumes the functionality. 9456 9457A 16-bit (DOS) version of AcpiExec has been developed. The 9458makefile is under the acpiexec directory. 9459