changes.txt revision 252279
1168515Sgshapiro---------------------------------------- 2168515Sgshapiro26 June 2013. Summary of changes for version 20130626: 3168515Sgshapiro 4168515Sgshapiro1) ACPICA kernel-resident subsystem: 5266692Sgshapiro 6168515SgshapiroFixed an issue with runtime repair of the _CST object. Null or invalid 7168515Sgshapiroelements were not always removed properly. Lv Zheng. 8168515Sgshapiro 9168515SgshapiroRemoved an arbitrary restriction of 256 GPEs per GPE block (such as the 10168515SgshapiroFADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 11168515Sgshapirothe maximum number of GPEs is 1016. Use of multiple GPE block devices 12168515Sgshapiromakes the system-wide number of GPEs essentially unlimited. 13168515Sgshapiro 14168515SgshapiroExample Code and Data Size: These are the sizes for the OS-independent 15168515Sgshapiroacpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 16168515Sgshapirodebug version of the code includes the debug output trace mechanism and 17168515Sgshapirohas a much larger code and data size. 18168515Sgshapiro 19168515Sgshapiro Current Release: 20168515Sgshapiro Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 21168515Sgshapiro Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 22168515Sgshapiro Previous Release: 23168515Sgshapiro Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 24168515Sgshapiro Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 25168515Sgshapiro 26168515Sgshapiro 27168515Sgshapiro2) iASL Compiler/Disassembler and Tools: 28168515Sgshapiro 29168515SgshapiroPortable AcpiDump: Implemented full support for the Linux and FreeBSD 30168515Sgshapirohosts. Now supports Linux, FreeBSD, and Windows. 31168515Sgshapiro 32168515SgshapiroDisassembler: Added some missing types for the HEST and EINJ tables: "Set 33168515SgshapiroError Type With Address", "CMCI", "MCE", and "Flush Cacheline". 34168515Sgshapiro 35168515SgshapiroiASL/Preprocessor: Implemented full support for nested 36168515Sgshapiro#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 37168515Sgshapiro 38168515SgshapiroDisassembler: Expanded maximum output string length to 64K. Was 256 bytes 39168515Sgshapiromax. The original purpose of this constraint was to limit the amount of 40168515Sgshapirodebug output. However, the string function in question (UtPrintString) is 41168515Sgshapironow used for the disassembler also, where 256 bytes is insufficient. 42168515SgshapiroReported by RehabMan@GitHub. 43168515Sgshapiro 44168515SgshapiroiASL/DataTables: Fixed some problems and issues with compilation of DMAR 45168515Sgshapirotables. ACPICA BZ 999. Lv Zheng. 46168515Sgshapiro 47168515SgshapiroiASL: Fixed a couple of error exit issues that could result in a "Could 48168515Sgshapironot delete <file>" message during ASL compilation. 49168515Sgshapiro 50168515SgshapiroAcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 51168515Sgshapirothe actual signatures for these tables are "FACP" and "APIC", 52168515Sgshapirorespectively. 53168515Sgshapiro 54168515SgshapiroAcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 55168515Sgshapirotables are allowed to have multiple instances. 56168515Sgshapiro 57168515Sgshapiro---------------------------------------- 58168515Sgshapiro17 May 2013. Summary of changes for version 20130517: 59168515Sgshapiro 60168515Sgshapiro1) ACPICA kernel-resident subsystem: 61168515Sgshapiro 62168515SgshapiroFixed a regression introduced in version 20130328 for _INI methods. This 63168515Sgshapirochange fixes a problem introduced in 20130328 where _INI methods are no 64168515Sgshapirolonger executed properly because of a memory block that was not 65168515Sgshapiroinitialized correctly. ACPICA BZ 1016. Tomasz Nowicki 66168515Sgshapiro<tomasz.nowicki@linaro.org>. 67168515Sgshapiro 68168515SgshapiroFixed a possible problem with the new extended sleep registers in the ACPI 69168515Sgshapiro5.0 FADT. Do not use these registers (even if populated) unless the HW- 70168515Sgshapiroreduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 71168515Sgshapiro1020. Lv Zheng. 72168515Sgshapiro 73168515SgshapiroImplemented return value repair code for _CST predefined objects: Sort the 74168515Sgshapirolist and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 75168515Sgshapiro 76168515SgshapiroImplemented a debug-only option to disable loading of SSDTs from the 77168515SgshapiroRSDT/XSDT during ACPICA initialization. This can be useful for debugging 78168515SgshapiroACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 79168515Sgshapiroacglobal.h - ACPICA BZ 1005. Lv Zheng. 80168515Sgshapiro 81261363SgshapiroFixed some issues in the ACPICA initialization and termination code: 82168515SgshapiroTomasz Nowicki <tomasz.nowicki@linaro.org> 83168515Sgshapiro1) Clear events initialized flag upon event component termination. ACPICA 84168515SgshapiroBZ 1013. 85168515Sgshapiro2) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 86168515Sgshapiro3) Delete global lock pending lock during termination. ACPICA BZ 1012. 87168515Sgshapiro4) Clear debug buffer global on termination to prevent possible multiple 88168515Sgshapirodelete. ACPICA BZ 1010. 89 90Standardized all switch() blocks across the entire source base. After many 91years, different formatting for switch() had crept in. This change makes 92the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 93 94Split some files to enhance ACPICA modularity and configurability: 951) Split buffer dump routines into utilities/utbuffer.c 962) Split internal error message routines into utilities/uterror.c 973) Split table print utilities into tables/tbprint.c 984) Split iASL command-line option processing into asloptions.c 99 100Makefile enhancements: 1011) Support for all new files above. 1022) Abort make on errors from any subcomponent. Chao Guan. 1033) Add build support for Apple Mac OS X. Liang Qi. 104 105Example Code and Data Size: These are the sizes for the OS-independent 106acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 107debug version of the code includes the debug output trace mechanism and 108has a much larger code and data size. 109 110 Current Release: 111 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 112 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 113 Previous Release: 114 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 115 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 116 117 1182) iASL Compiler/Disassembler and Tools: 119 120New utility: Implemented an easily portable version of the acpidump 121utility to extract ACPI tables from the system (or a file) in an ASCII hex 122dump format. The top-level code implements the various command line 123options, file I/O, and table dump routines. To port to a new host, only 124three functions need to be implemented to get tables -- since this 125functionality is OS-dependent. See the tools/acpidump/apmain.c module and 126the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 1271) The Windows version obtains the ACPI tables from the Registry. 1282) The Linux version is under development. 1293) Other hosts - If an OS-dependent module is submitted, it will be 130distributed with ACPICA. 131 132iASL: Fixed a regression for -D preprocessor option (define symbol). A 133restructuring/change to the initialization sequence caused this option to 134no longer work properly. 135 136iASL: Implemented a mechanism to disable specific warnings and remarks. 137Adds a new command line option, "-vw <messageid> as well as "#pragma 138disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 139 140iASL: Fix for too-strict package object validation. The package object 141validation for return values from the predefined names is a bit too 142strict, it does not allow names references within the package (which will 143be resolved at runtime.) These types of references cannot be validated at 144compile time. This change ignores named references within package objects 145for names that return or define static packages. 146 147Debugger: Fixed the 80-character command line limitation for the History 148command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 149 150iASL: Added control method and package support for the -so option 151(generates AML offset table for BIOS support.) 152 153iASL: issue a remark if a non-serialized method creates named objects. If 154a thread blocks within the method for any reason, and another thread 155enters the method, the method will fail because an attempt will be made to 156create the same (named) object twice. In this case, issue a remark that 157the method should be marked serialized. NOTE: may become a warning later. 158ACPICA BZ 909. 159 160---------------------------------------- 16118 April 2013. Summary of changes for version 20130418: 162 1631) ACPICA kernel-resident subsystem: 164 165Fixed a possible buffer overrun during some rare but specific field unit 166read operations. This overrun can only happen if the DSDT version is 1 -- 167meaning that all AML integers are 32 bits -- and the field length is 168between 33 and 55 bits long. During the read, an internal buffer object is 169created for the field unit because the field is larger than an integer (32 170bits). However, in this case, the buffer will be incorrectly written 171beyond the end because the buffer length is less than the internal minimum 172of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 173long, but a full 8 bytes will be written. 174 175Updated the Embedded Controller "orphan" _REG method support. This refers 176to _REG methods under the EC device that have no corresponding operation 177region. This is allowed by the ACPI specification. This update removes a 178dependency on the existence an ECDT table. It will execute an orphan _REG 179method as long as the operation region handler for the EC is installed at 180the EC device node and not the namespace root. Rui Zhang (original 181update), Bob Moore (update/integrate). 182 183Implemented run-time argument typechecking for all predefined ACPI names 184(_STA, _BIF, etc.) This change performs object typechecking on all 185incoming arguments for all predefined names executed via 186AcpiEvaluateObject. This ensures that ACPI-related device drivers are 187passing correct object types as well as the correct number of arguments 188(therefore identifying any issues immediately). Also, the ASL/namespace 189definition of the predefined name is checked against the ACPI 190specification for the proper argument count. Adds one new file, 191nsarguments.c 192 193Changed an exception code for the ASL UnLoad() operator. Changed the 194exception code for the case where the input DdbHandle is invalid, from 195AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 196 197Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 198global makefile. The use of this flag causes compiler errors on earlier 199versions of GCC, so it has been removed for compatibility. 200 201Miscellaneous cleanup: 2021) Removed some unused/obsolete macros 2032) Fixed a possible memory leak in the _OSI support 2043) Removed an unused variable in the predefined name support 2054) Windows OSL: remove obsolete reference to a memory list field 206 207Example Code and Data Size: These are the sizes for the OS-independent 208acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 209debug version of the code includes the debug output trace mechanism and 210has a much larger code and data size. 211 212 Current Release: 213 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 214 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 215 Previous Release: 216 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 217 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 218 219 2202) iASL Compiler/Disassembler and Tools: 221 222AcpiExec: Added installation of a handler for the SystemCMOS address 223space. This prevents control method abort if a method accesses this space. 224 225AcpiExec: Added support for multiple EC devices, and now install EC 226operation region handler(s) at the actual EC device instead of the 227namespace root. This reflects the typical behavior of host operating 228systems. 229 230AcpiExec: Updated to ensure that all operation region handlers are 231installed before the _REG methods are executed. This prevents a _REG 232method from aborting if it accesses an address space has no handler. 233AcpiExec installs a handler for every possible address space. 234 235Debugger: Enhanced the "handlers" command to display non-root handlers. 236This change enhances the handlers command to display handlers associated 237with individual devices throughout the namespace, in addition to the 238currently supported display of handlers associated with the root namespace 239node. 240 241ASL Test Suite: Several test suite errors have been identified and 242resolved, reducing the total error count during execution. Chao Guan. 243 244---------------------------------------- 24528 March 2013. Summary of changes for version 20130328: 246 2471) ACPICA kernel-resident subsystem: 248 249Fixed several possible race conditions with the internal object reference 250counting mechanism. Some of the external ACPICA interfaces update object 251reference counts without holding the interpreter or namespace lock. This 252change adds a spinlock to protect reference count updates on the internal 253ACPICA objects. Reported by and with assistance from Andriy Gapon 254(avg@FreeBSD.org). 255 256FADT support: Removed an extraneous warning for very large GPE register 257sets. This change removes a size mismatch warning if the legacy length 258field for a GPE register set is larger than the 64-bit GAS structure can 259accommodate. GPE register sets can be larger than the 255-bit width 260limitation of the GAS structure. Linn Crosetto (linn@hp.com). 261 262_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 263return from this interface. Handles a possible timeout case if 264ACPI_WAIT_FOREVER is modified by the host to be a value less than 265"forever". Jung-uk Kim. 266 267Predefined name support: Add allowed/required argument type information to 268the master predefined info table. This change adds the infrastructure to 269enable typechecking on incoming arguments for all predefined 270methods/objects. It does not actually contain the code that will fully 271utilize this information, this is still under development. Also condenses 272some duplicate code for the predefined names into a new module, 273utilities/utpredef.c 274 275Example Code and Data Size: These are the sizes for the OS-independent 276acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 277debug version of the code includes the debug output trace mechanism and 278has a much larger code and data size. 279 280 Previous Release: 281 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 282 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 283 Current Release: 284 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 285 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 286 287 2882) iASL Compiler/Disassembler and Tools: 289 290iASL: Implemented a new option to simplify the development of ACPI-related 291BIOS code. Adds support for a new "offset table" output file. The -so 292option will create a C table containing the AML table offsets of various 293named objects in the namespace so that BIOS code can modify them easily at 294boot time. This can simplify BIOS runtime code by eliminating expensive 295searches for "magic values", enhancing boot times and adding greater 296reliability. With assistance from Lee Hamel. 297 298iASL: Allow additional predefined names to return zero-length packages. 299Now, all predefined names that are defined by the ACPI specification to 300return a "variable-length package of packages" are allowed to return a 301zero length top-level package. This allows the BIOS to tell the host that 302the requested feature is not supported, and supports existing BIOS/ASL 303code and practices. 304 305iASL: Changed the "result not used" warning to an error. This is the case 306where an ASL operator is effectively a NOOP because the result of the 307operation is not stored anywhere. For example: 308 Add (4, Local0) 309There is no target (missing 3rd argument), nor is the function return 310value used. This is potentially a very serious problem -- since the code 311was probably intended to do something, but for whatever reason, the value 312was not stored. Therefore, this issue has been upgraded from a warning to 313an error. 314 315AcpiHelp: Added allowable/required argument types to the predefined names 316info display. This feature utilizes the recent update to the predefined 317names table (above). 318 319---------------------------------------- 32014 February 2013. Summary of changes for version 20130214: 321 3221) ACPICA Kernel-resident Subsystem: 323 324Fixed a possible regression on some hosts: Reinstated the safe return 325macros (return_ACPI_STATUS, etc.) that ensure that the argument is 326evaluated only once. Although these macros are not needed for the ACPICA 327code itself, they are often used by ACPI-related host device drivers where 328the safe feature may be necessary. 329 330Fixed several issues related to the ACPI 5.0 reduced hardware support 331(SOC): Now ensure that if the platform declares itself as hardware-reduced 332via the FADT, the following functions become NOOPs (and always return 333AE_OK) because ACPI is always enabled by definition on these machines: 334 AcpiEnable 335 AcpiDisable 336 AcpiHwGetMode 337 AcpiHwSetMode 338 339Dynamic Object Repair: Implemented additional runtime repairs for 340predefined name return values. Both of these repairs can simplify code in 341the related device drivers that invoke these methods: 3421) For the _STR and _MLS names, automatically repair/convert an ASCII 343string to a Unicode buffer. 3442) For the _CRS, _PRS, and _DMA names, return a resource descriptor with a 345lone end tag descriptor in the following cases: A Return(0) was executed, 346a null buffer was returned, or no object at all was returned (non-slack 347mode only). Adds a new file, nsconvert.c 348ACPICA BZ 998. Bob Moore, Lv Zheng. 349 350Resource Manager: Added additional code to prevent possible infinite loops 351while traversing corrupted or ill-formed resource template buffers. Check 352for zero-length resource descriptors in all code that loops through 353resource templates (the length field is used to index through the 354template). This change also hardens the external AcpiWalkResources and 355AcpiWalkResourceBuffer interfaces. 356 357Local Cache Manager: Enhanced the main data structure to eliminate an 358unnecessary mechanism to access the next object in the list. Actually 359provides a small performance enhancement for hosts that use the local 360ACPICA cache manager. Jung-uk Kim. 361 362Example Code and Data Size: These are the sizes for the OS-independent 363acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 364debug version of the code includes the debug output trace mechanism and 365has a much larger code and data size. 366 367 Previous Release: 368 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 369 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 370 Current Release: 371 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 372 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 373 374 3752) iASL Compiler/Disassembler and Tools: 376 377iASL/Disassembler: Fixed several issues with the definition of the ACPI 3785.0 RASF table (RAS Feature Table). This change incorporates late changes 379that were made to the ACPI 5.0 specification. 380 381iASL/Disassembler: Added full support for the following new ACPI tables: 382 1) The MTMR table (MID Timer Table) 383 2) The VRTC table (Virtual Real Time Clock Table). 384Includes header file, disassembler, table compiler, and template support 385for both tables. 386 387iASL: Implemented compile-time validation of package objects returned by 388predefined names. This new feature validates static package objects 389returned by the various predefined names defined to return packages. Both 390object types and package lengths are validated, for both parent packages 391and sub-packages, if any. The code is similar in structure and behavior to 392the runtime repair mechanism within the AML interpreter and uses the 393existing predefined name information table. Adds a new file, aslprepkg.c. 394ACPICA BZ 938. 395 396iASL: Implemented auto-detection of binary ACPI tables for disassembly. 397This feature detects a binary file with a valid ACPI table header and 398invokes the disassembler automatically. Eliminates the need to 399specifically invoke the disassembler with the -d option. ACPICA BZ 862. 400 401iASL/Disassembler: Added several warnings for the case where there are 402unresolved control methods during the disassembly. This can potentially 403cause errors when the output file is compiled, because the disassembler 404assumes zero method arguments in these cases (it cannot determine the 405actual number of arguments without resolution/definition of the method). 406 407Debugger: Added support to display all resources with a single command. 408Invocation of the resources command with no arguments will now display all 409resources within the current namespace. 410 411AcpiHelp: Added descriptive text for each ACPICA exception code displayed 412via the -e option. 413 414---------------------------------------- 41517 January 2013. Summary of changes for version 20130117: 416 4171) ACPICA Kernel-resident Subsystem: 418 419Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 420return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 421objects to return a package containing one integer, most BIOS code returns 422two integers and the previous code reflects that. However, we also need to 423support BIOS code that actually implements to the ACPI spec, and this 424change reflects this. 425 426Fixed two issues with the ACPI_DEBUG_PRINT macros: 4271) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 428C compilers that require this support. 4292) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 430ACPI_DEBUG is already used by many of the various hosts. 431 432Updated all ACPICA copyrights and signons to 2013. Added the 2013 433copyright to all module headers and signons, including the standard Linux 434header. This affects virtually every file in the ACPICA core subsystem, 435iASL compiler, all ACPICA utilities, and the test suites. 436 437Example Code and Data Size: These are the sizes for the OS-independent 438acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 439debug version of the code includes the debug output trace mechanism and 440has a much larger code and data size. 441 442 Previous Release: 443 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 444 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 445 Current Release: 446 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 447 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 448 449 4502) iASL Compiler/Disassembler and Tools: 451 452Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 453prevent a possible fault on some hosts. Some C libraries modify the arg 454pointer parameter to vfprintf making it difficult to call it twice in the 455AcpiOsVprintf function. Use a local buffer to workaround this issue. This 456does not affect the Windows OSL since the Win C library does not modify 457the arg pointer. Chao Guan, Bob Moore. 458 459iASL: Fixed a possible infinite loop when the maximum error count is 460reached. If an output file other than the .AML file is specified (such as 461a listing file), and the maximum number of errors is reached, do not 462attempt to flush data to the output file(s) as the compiler is aborting. 463This can cause an infinite loop as the max error count code essentially 464keeps calling itself. 465 466iASL/Disassembler: Added an option (-in) to ignore NOOP opcodes/operators. 467Implemented for both the compiler and the disassembler. Often, the NOOP 468opcode is used as padding for packages that are changed dynamically by the 469BIOS. When disassembled and recompiled, these NOOPs will cause syntax 470errors. This option causes the disassembler to ignore all NOOP opcodes 471(0xA3), and it also causes the compiler to ignore all ASL source code NOOP 472statements as well. 473 474Debugger: Enhanced the Sleep command to execute all sleep states. This 475change allows Sleep to be invoked with no arguments and causes the 476debugger to execute all of the sleep states, 0-5, automatically. 477 478---------------------------------------- 47920 December 2012. Summary of changes for version 20121220: 480 4811) ACPICA Kernel-resident Subsystem: 482 483Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 484alternate entry point for AcpiWalkResources and improves the usability of 485the resource manager by accepting as input a buffer containing the output 486of either a _CRS, _PRS, or _AEI method. The key functionality is that the 487input buffer is not deleted by this interface so that it can be used by 488the host later. See the ACPICA reference for details. 489 490Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 491(DSDT version < 2). The constant will be truncated and this warning 492reflects that behavior. 493 494Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 495ExtendedInterrupt, and GpioInt descriptors. This change adds support to 496both get and set the new wake bit in these descriptors, separately from 497the existing share bit. Reported by Aaron Lu. 498 499Interpreter: Fix Store() when an implicit conversion is not possible. For 500example, in the cases such as a store of a string to an existing package 501object, implement the store as a CopyObject(). This is a small departure 502from the ACPI specification which states that the control method should be 503aborted in this case. However, the ASLTS suite depends on this behavior. 504 505Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 506macros: check if debug output is currently enabled as soon as possible to 507minimize performance impact if debug is in fact not enabled. 508 509Source code restructuring: Cleanup to improve modularity. The following 510new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 511psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 512Associated makefiles and project files have been updated. 513 514Changed an exception code for LoadTable operator. For the case where one 515of the input strings is too long, change the returned exception code from 516AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 517 518Fixed a possible memory leak in dispatcher error path. On error, delete 519the mutex object created during method mutex creation. Reported by 520tim.gardner@canonical.com. 521 522Example Code and Data Size: These are the sizes for the OS-independent 523acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 524debug version of the code includes the debug output trace mechanism and 525has a much larger code and data size. 526 527 Previous Release: 528 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 529 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 530 Current Release: 531 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 532 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 533 534 5352) iASL Compiler/Disassembler and Tools: 536 537iASL: Disallow a method call as argument to the ObjectType ASL operator. 538This change tracks an errata to the ACPI 5.0 document. The AML grammar 539will not allow the interpreter to differentiate between a method and a 540method invocation when these are used as an argument to the ObjectType 541operator. The ACPI specification change is to disallow a method invocation 542(UserTerm) for the ObjectType operator. 543 544Finish support for the TPM2 and CSRT tables in the headers, table 545compiler, and disassembler. 546 547Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 548always expires immediately if the semaphore is not available. The original 549code was using a relative-time timeout, but sem_timedwait requires the use 550of an absolute time. 551 552iASL: Added a remark if the Timer() operator is used within a 32-bit 553table. This operator returns a 64-bit time value that will be truncated 554within a 32-bit table. 555 556iASL Source code restructuring: Cleanup to improve modularity. The 557following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 558aslmethod.c, and aslfileio.c. Associated makefiles and project files have 559been updated. 560 561 562---------------------------------------- 56314 November 2012. Summary of changes for version 20121114: 564 5651) ACPICA Kernel-resident Subsystem: 566 567Implemented a performance enhancement for ACPI/AML Package objects. This 568change greatly increases the performance of Package objects within the 569interpreter. It changes the processing of reference counts for packages by 570optimizing for the most common case where the package sub-objects are 571either Integers, Strings, or Buffers. Increases the overall performance of 572the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 2X.) 573Chao Guan. ACPICA BZ 943. 574 575Implemented and deployed common macros to extract flag bits from resource 576descriptors. Improves readability and maintainability of the code. Fixes a 577problem with the UART serial bus descriptor for the number of data bits 578flags (was incorrectly 2 bits, should be 3). 579 580Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 581of the macros and changed the SETx macros to the style of (destination, 582source). Also added ACPI_CASTx companion macros. Lv Zheng. 583 584Example Code and Data Size: These are the sizes for the OS-independent 585acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 586debug version of the code includes the debug output trace mechanism and 587has a much larger code and data size. 588 589 Previous Release: 590 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 591 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 592 Current Release: 593 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 594 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 595 596 5972) iASL Compiler/Disassembler and Tools: 598 599Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 600adds the ShareAndWake and ExclusiveAndWake flags which were added to the 601Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 602 603Disassembler: Fixed a problem with external declaration generation. Fixes 604a problem where an incorrect pathname could be generated for an external 605declaration if the original reference to the object includes leading 606carats (^). ACPICA BZ 984. 607 608Debugger: Completed a major update for the Disassemble<method> command. 609This command was out-of-date and did not properly disassemble control 610methods that had any reasonable complexity. This fix brings the command up 611to the same level as the rest of the disassembler. Adds one new file, 612dmdeferred.c, which is existing code that is now common with the main 613disassembler and the debugger disassemble command. ACPICA MZ 978. 614 615iASL: Moved the parser entry prototype to avoid a duplicate declaration. 616Newer versions of Bison emit this prototype, so moved the prototype out of 617the iASL header to where it is actually used in order to avoid a duplicate 618declaration. 619 620iASL/Tools: Standardized use of the stream I/O functions: 621 1) Ensure check for I/O error after every fopen/fread/fwrite 622 2) Ensure proper order of size/count arguments for fread/fwrite 623 3) Use test of (Actual != Requested) after all fwrite, and most fread 624 4) Standardize I/O error messages 625Improves reliability and maintainability of the code. Bob Moore, Lv Zheng. 626ACPICA BZ 981. 627 628Disassembler: Prevent duplicate External() statements. During generation 629of external statements, detect similar pathnames that are actually 630duplicates such as these: 631 External (\ABCD) 632 External (ABCD) 633Remove all leading '\' characters from pathnames during the external 634statement generation so that duplicates will be detected and tossed. 635ACPICA BZ 985. 636 637Tools: Replace low-level I/O with stream I/O functions. Replace 638open/read/write/close with the stream I/O equivalents 639fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 640Moore. 641 642AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 643name header so that AcpiXtract recognizes the output file/table. 644 645iASL: Remove obsolete -2 option flag. Originally intended to force the 646compiler/disassembler into an ACPI 2.0 mode, this was never implemented 647and the entire concept is now obsolete. 648 649---------------------------------------- 65018 October 2012. Summary of changes for version 20121018: 651 652 6531) ACPICA Kernel-resident Subsystem: 654 655Updated support for the ACPI 5.0 MPST table. Fixes some problems 656introduced by late changes to the table as it was added to the ACPI 5.0 657specification. Includes header, disassembler, and data table compiler 658support as well as a new version of the MPST template. 659 660AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 6615.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 662methods: _HID, _CID, and _UID. 663 664Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 665ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 666name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 667names for their various drivers. Affects the AcpiGetObjectInfo external 668interface, and other internal interfaces as well. 669 670Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 671This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 672on machines that support non-aligned transfers. Optimizes for this case 673rather than using a strncpy. With assistance from Zheng Lv. 674 675Resource Manager: Small fix for buffer size calculation. Fixed a one byte 676error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 677 678Added a new debug print message for AML mutex objects that are force- 679released. At control method termination, any currently acquired mutex 680objects are force-released. Adds a new debug-only message for each one 681that is released. 682 683Audited/updated all ACPICA return macros and the function debug depth 684counter: 1) Ensure that all functions that use the various TRACE macros 685also use the appropriate ACPICA return macros. 2) Ensure that all normal 686return statements surround the return expression (value) with parens to 687ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 688Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 689 690Global source code changes/maintenance: All extra lines at the start and 691end of each source file have been removed for consistency. Also, within 692comments, all new sentences start with a single space instead of a double 693space, again for consistency across the code base. 694 695Example Code and Data Size: These are the sizes for the OS-independent 696acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 697debug version of the code includes the debug output trace mechanism and 698has a much larger code and data size. 699 700 Previous Release: 701 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 702 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 703 Current Release: 704 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 705 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 706 707 7082) iASL Compiler/Disassembler and Tools: 709 710AcpiExec: Improved the algorithm used for memory leak/corruption 711detection. Added some intelligence to the code that maintains the global 712list of allocated memory. The list is now ordered by allocated memory 713address, significantly improving performance. When running AcpiExec on 714the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 715on the platform and/or the environment. Note, this performance 716enhancement affects the AcpiExec utility only, not the kernel-resident 717ACPICA code. 718 719Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 720the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 721incorrect table offset reported for invalid opcodes. Report the original 72232-bit value for bad ACPI_NAMEs (as well as the repaired name.) 723 724Disassembler: Enhanced the -vt option to emit the binary table data in 725hex format to assist with debugging. 726 727Fixed a potential filename buffer overflow in osunixdir.c. Increased the 728size of file structure. Colin Ian King. 729 730---------------------------------------- 73113 September 2012. Summary of changes for version 20120913: 732 733 7341) ACPICA Kernel-resident Subsystem: 735 736ACPI 5.0: Added two new notify types for the Hardware Error Notification 737Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 738and 739MCE(6). 740 741Table Manager: Merged/removed duplicate code in the root table resize 742functions. One function is external, the other is internal. Lv Zheng, 743ACPICA 744BZ 846. 745 746Makefiles: Completely removed the obsolete "Linux" makefiles under 747acpica/generate/linux. These makefiles are obsolete and have been replaced 748by 749the generic unix makefiles under acpica/generate/unix. 750 751Makefiles: Ensure that binary files always copied properly. Minor rule 752change 753to ensure that the final binary output files are always copied up to the 754appropriate binary directory (bin32 or bin64.) 755 756Example Code and Data Size: These are the sizes for the OS-independent 757acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 758debug 759version of the code includes the debug output trace mechanism and has a 760much 761larger code and data size. 762 763 Previous Release: 764 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 765 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 766 Current Release: 767 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 768 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 769 770 7712) iASL Compiler/Disassembler and Tools: 772 773Disassembler: Fixed a possible fault during the disassembly of resource 774descriptors when a second parse is required because of the invocation of 775external control methods within the table. With assistance from 776adq@lidskialf.net. ACPICA BZ 976. 777 778iASL: Fixed a namepath optimization problem. An error can occur if the 779parse 780node that contains the namepath to be optimized does not have a parent 781node 782that is a named object. This change fixes the problem. 783 784iASL: Fixed a regression where the AML file is not deleted on errors. The 785AML 786output file should be deleted if there are any errors during the compiler. 787The 788only exception is if the -f (force output) option is used. ACPICA BZ 974. 789 790iASL: Added a feature to automatically increase internal line buffer 791sizes. 792Via realloc(), automatically increase the internal line buffer sizes as 793necessary to support very long source code lines. The current version of 794the 795preprocessor requires a buffer long enough to contain full source code 796lines. 797This change increases the line buffer(s) if the input lines go beyond the 798current buffer size. This eliminates errors that occurred when a source 799code 800line was longer than the buffer. 801 802iASL: Fixed a problem with constant folding in method declarations. The 803SyncLevel term is a ByteConstExpr, and incorrect code would be generated 804if a 805Type3 opcode was used. 806 807Debugger: Improved command help support. For incorrect argument count, 808display 809full help for the command. For help command itself, allow an argument to 810specify a command. 811 812Test Suites: Several bug fixes for the ASLTS suite reduces the number of 813errors during execution of the suite. Guan Chao. 814 815---------------------------------------- 81616 August 2012. Summary of changes for version 20120816: 817 818 8191) ACPICA Kernel-resident Subsystem: 820 821Removed all use of the deprecated _GTS and _BFS predefined methods. The 822_GTS 823(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 824deprecated and will probably be removed from the ACPI specification. 825Windows 826does not invoke them, and reportedly never will. The final nail in the 827coffin 828is that the ACPI specification states that these methods must be run with 829interrupts off, which is not going to happen in a kernel interpreter. 830Note: 831Linux has removed all use of the methods also. It was discovered that 832invoking these functions caused failures on some machines, probably 833because 834they were never tested since Windows does not call them. Affects two 835external 836interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 837ACPICA BZ 969. 838 839Implemented support for complex bit-packed buffers returned from the _PLD 840(Physical Location of Device) predefined method. Adds a new external 841interface, AcpiDecodePldBuffer that parses the buffer into a more usable C 842structure. Note: C Bitfields cannot be used for this type of predefined 843structure since the memory layout of individual bitfields is not defined 844by 845the C language. In addition, there are endian concerns where a compiler 846will 847change the bitfield ordering based on the machine type. The new ACPICA 848interface eliminates these issues, and should be called after _PLD is 849executed. ACPICA BZ 954. 850 851Implemented a change to allow a scope change to root (via "Scope (\)") 852during 853execution of module-level ASL code (code that is executed at table load 854time.) Lin Ming. 855 856Added the Windows8/Server2012 string for the _OSI method. This change adds 857a 858new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 8592012. 860 861Added header support for the new ACPI tables DBG2 (Debug Port Table Type 8622) 863and CSRT (Core System Resource Table). 864 865Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 866names. This simplifies access to the buffers returned by these predefined 867names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 868 869GPE support: Removed an extraneous parameter from the various low-level 870internal GPE functions. Tang Feng. 871 872Removed the linux makefiles from the unix packages. The generate/linux 873makefiles are obsolete and have been removed from the unix tarball release 874packages. The replacement makefiles are under generate/unix, and there is 875a 876top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 877 878Updates for Unix makefiles: 8791) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 8802) Update linker flags (move to end of command line) for AcpiExec utility. 881Guan Chao. 882 883Split ACPICA initialization functions to new file, utxfinit.c. Split from 884utxface.c to improve modularity and reduce file size. 885 886Example Code and Data Size: These are the sizes for the OS-independent 887acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 888debug version of the code includes the debug output trace mechanism and 889has a 890much larger code and data size. 891 892 Previous Release: 893 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 894 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 895 Current Release: 896 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 897 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 898 899 9002) iASL Compiler/Disassembler and Tools: 901 902iASL: Fixed a problem with constant folding for fixed-length constant 903expressions. The constant-folding code was not being invoked for constant 904expressions that allow the use of type 3/4/5 opcodes to generate constants 905for expressions such as ByteConstExpr, WordConstExpr, etc. This could 906result 907in the generation of invalid AML bytecode. ACPICA BZ 970. 908 909iASL: Fixed a generation issue on newer versions of Bison. Newer versions 910apparently automatically emit some of the necessary externals. This change 911handles these versions in order to eliminate generation warnings. 912 913Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 914 915Disassembler: Add support to decode _PLD buffers. The decoded buffer 916appears 917within comments in the output file. 918 919Debugger: Fixed a regression with the "Threads" command where 920AE_BAD_PARAMETER was always returned. 921 922---------------------------------------- 92311 July 2012. Summary of changes for version 20120711: 924 9251) ACPICA Kernel-resident Subsystem: 926 927Fixed a possible fault in the return package object repair code. Fixes a 928problem that can occur when a lone package object is wrapped with an outer 929package object in order to force conformance to the ACPI specification. 930Can 931affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 932_DLM, 933_CSD, _PSD, _TSD. 934 935Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 936PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 937ARB_DIS bit must be implemented in the host-dependent C3 processor power 938state 939support. Note, ARB_DIS is obsolete and only applies to older chipsets, 940both 941Intel and other vendors. (for Intel: ICH4-M and earlier) 942 943This change removes the code to disable/enable bus master arbitration 944during 945suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 946causes 947resume problems on some machines. The change has been in use for over 948seven 949years within Linux. 950 951Implemented two new external interfaces to support host-directed dynamic 952ACPI 953table load and unload. They are intended to simplify the host 954implementation 955of hot-plug support: 956 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 957 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 958table. 959See the ACPICA reference for additional details. Adds one new file, 960components/tables/tbxfload.c 961 962Implemented and deployed two new interfaces for errors and warnings that 963are 964known to be caused by BIOS/firmware issues: 965 AcpiBiosError: Prints "ACPI Firmware Error" message. 966 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 967Deployed these new interfaces in the ACPICA Table Manager code for ACPI 968table 969and FADT errors. Additional deployment to be completed as appropriate in 970the 971future. The associated conditional macros are ACPI_BIOS_ERROR and 972ACPI_BIOS_WARNING. See the ACPICA reference for additional details. ACPICA 973BZ 974843. 975 976Implicit notify support: ensure that no memory allocation occurs within a 977critical region. This fix moves a memory allocation outside of the time 978that a 979spinlock is held. Fixes issues on systems that do not allow this behavior. 980Jung-uk Kim. 981 982Split exception code utilities and tables into a new file, 983utilities/utexcep.c 984 985Example Code and Data Size: These are the sizes for the OS-independent 986acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 987debug 988version of the code includes the debug output trace mechanism and has a 989much 990larger code and data size. 991 992 Previous Release: 993 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 994 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 995 Current Release: 996 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 997 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 998 999 10002) iASL Compiler/Disassembler and Tools: 1001 1002iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 1003of 10040. Jung-uk Kim. 1005 1006Debugger: Enhanced the "tables" command to emit additional information 1007about 1008the current set of ACPI tables, including the owner ID and flags decode. 1009 1010Debugger: Reimplemented the "unload" command to use the new 1011AcpiUnloadParentTable external interface. This command was disable 1012previously 1013due to need for an unload interface. 1014 1015AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 1016option 1017will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 1018 1019---------------------------------------- 102020 June 2012. Summary of changes for version 20120620: 1021 1022 10231) ACPICA Kernel-resident Subsystem: 1024 1025Implemented support to expand the "implicit notify" feature to allow 1026multiple 1027devices to be notified by a single GPE. This feature automatically 1028generates a 1029runtime device notification in the absence of a BIOS-provided GPE control 1030method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 1031notify is 1032provided by ACPICA for Windows compatibility, and is a workaround for BIOS 1033AML 1034code errors. See the description of the AcpiSetupGpeForWake interface in 1035the 1036APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 1037 1038Changed some comments and internal function names to simplify and ensure 1039correctness of the Linux code translation. No functional changes. 1040 1041Example Code and Data Size: These are the sizes for the OS-independent 1042acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1043debug 1044version of the code includes the debug output trace mechanism and has a 1045much 1046larger code and data size. 1047 1048 Previous Release: 1049 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 1050 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 1051 Current Release: 1052 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 1053 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 1054 1055 10562) iASL Compiler/Disassembler and Tools: 1057 1058Disassembler: Added support to emit short, commented descriptions for the 1059ACPI 1060predefined names in order to improve the readability of the disassembled 1061output. ACPICA BZ 959. Changes include: 1062 1) Emit descriptions for all standard predefined names (_INI, _STA, 1063_PRW, 1064etc.) 1065 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 1066 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 1067etc.) 1068 1069AcpiSrc: Fixed several long-standing Linux code translation issues. 1070Argument 1071descriptions in function headers are now translated properly to lower case 1072and 1073underscores. ACPICA BZ 961. Also fixes translation problems such as these: 1074(old -> new) 1075 i_aSL -> iASL 1076 00-7_f -> 00-7F 1077 16_k -> 16K 1078 local_fADT -> local_FADT 1079 execute_oSI -> execute_OSI 1080 1081iASL: Fixed a problem where null bytes were inadvertently emitted into 1082some 1083listing files. 1084 1085iASL: Added the existing debug options to the standard help screen. There 1086are 1087no longer two different help screens. ACPICA BZ 957. 1088 1089AcpiHelp: Fixed some typos in the various predefined name descriptions. 1090Also 1091expand some of the descriptions where appropriate. 1092 1093iASL: Fixed the -ot option (display compile times/statistics). Was not 1094working 1095properly for standard output; only worked for the debug file case. 1096 1097---------------------------------------- 109818 May 2012. Summary of changes for version 20120518: 1099 1100 11011) ACPICA Core Subsystem: 1102 1103Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 1104defined 1105to block until asynchronous events such as notifies and GPEs have 1106completed. 1107Within ACPICA, it is only called before a notify or GPE handler is 1108removed/uninstalled. It also may be useful for the host OS within related 1109drivers such as the Embedded Controller driver. See the ACPICA reference 1110for 1111additional information. ACPICA BZ 868. 1112 1113ACPI Tables: Added a new error message for a possible overflow failure 1114during 1115the conversion of FADT 32-bit legacy register addresses to internal common 111664- 1117bit GAS structure representation. The GAS has a one-byte "bit length" 1118field, 1119thus limiting the register length to 255 bits. ACPICA BZ 953. 1120 1121Example Code and Data Size: These are the sizes for the OS-independent 1122acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1123debug 1124version of the code includes the debug output trace mechanism and has a 1125much 1126larger code and data size. 1127 1128 Previous Release: 1129 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1130 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 1131 Current Release: 1132 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 1133 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 1134 1135 11362) iASL Compiler/Disassembler and Tools: 1137 1138iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 1139macro. 1140This keyword was added late in the ACPI 5.0 release cycle and was not 1141implemented until now. 1142 1143Disassembler: Added support for Operation Region externals. Adds missing 1144support for operation regions that are defined in another table, and 1145referenced locally via a Field or BankField ASL operator. Now generates 1146the 1147correct External statement. 1148 1149Disassembler: Several additional fixes for the External() statement 1150generation 1151related to some ASL operators. Also, order the External() statements 1152alphabetically in the disassembler output. Fixes the External() generation 1153for 1154the Create* field, Alias, and Scope operators: 1155 1) Create* buffer field operators - fix type mismatch warning on 1156disassembly 1157 2) Alias - implement missing External support 1158 3) Scope - fix to make sure all necessary externals are emitted. 1159 1160iASL: Improved pathname support. For include files, merge the prefix 1161pathname 1162with the file pathname and eliminate unnecessary components. Convert 1163backslashes in all pathnames to forward slashes, for readability. Include 1164file 1165pathname changes affect both #include and Include() type operators. 1166 1167iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 1168end 1169of a valid line by inserting a newline and then returning the EOF during 1170the 1171next call to GetNextLine. Prevents the line from being ignored due to EOF 1172condition. 1173 1174iASL: Implemented some changes to enhance the IDE support (-vi option.) 1175Error 1176and Warning messages are now correctly recognized for both the source code 1177browser and the global error and warning counts. 1178 1179---------------------------------------- 118020 April 2012. Summary of changes for version 20120420: 1181 1182 11831) ACPICA Core Subsystem: 1184 1185Implemented support for multiple notify handlers. This change adds support 1186to 1187allow multiple system and device notify handlers on Device, Thermal Zone, 1188and 1189Processor objects. This can simplify the host OS notification 1190implementation. 1191Also re-worked and restructured the entire notify support code to simplify 1192handler installation, handler removal, notify event queuing, and notify 1193dispatch to handler(s). Note: there can still only be two global notify 1194handlers - one for system notifies and one for device notifies. There are 1195no 1196changes to the existing handler install/remove interfaces. Lin Ming, Bob 1197Moore, Rafael Wysocki. 1198 1199Fixed a regression in the package repair code where the object reference 1200count was calculated incorrectly. Regression was introduced in the commit 1201"Support to add Package wrappers". 1202 1203Fixed a couple possible memory leaks in the AML parser, in the error 1204recovery 1205path. Jesper Juhl, Lin Ming. 1206 1207Example Code and Data Size: These are the sizes for the OS-independent 1208acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1209debug version of the code includes the debug output trace mechanism and 1210has a 1211much larger code and data size. 1212 1213 Previous Release: 1214 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1215 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1216 Current Release: 1217 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1218 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 1219 1220 12212) iASL Compiler/Disassembler and Tools: 1222 1223iASL: Fixed a problem with the resource descriptor support where the 1224length 1225of the StartDependentFn and StartDependentFnNoPrio descriptors were not 1226included in cumulative descriptor offset, resulting in incorrect values 1227for 1228resource tags within resource descriptors appearing after a 1229StartDependent* 1230descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 1231 1232iASL and Preprocessor: Implemented full support for the #line directive to 1233correctly track original source file line numbers through the .i 1234preprocessor 1235output file - for error and warning messages. 1236 1237iASL: Expand the allowable byte constants for address space IDs. 1238Previously, 1239the allowable range was 0x80-0xFF (user-defined spaces), now the range is 12400x0A-0xFF to allow for custom and new IDs without changing the compiler. 1241 1242iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 1243 1244iASL: Add option to completely disable the preprocessor (-Pn). 1245 1246iASL: Now emit all error/warning messages to standard error (stderr) by 1247default (instead of the previous stdout). 1248 1249ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 1250Update 1251for resource descriptor offset fix above. Update/cleanup error output 1252routines. Enable and send iASL errors/warnings to an error logfile 1253(error.txt). Send all other iASL output to a logfile (compiler.txt). Fixed 1254several extraneous "unrecognized operator" messages. 1255 1256---------------------------------------- 125720 March 2012. Summary of changes for version 20120320: 1258 1259 12601) ACPICA Core Subsystem: 1261 1262Enhanced the sleep/wake interfaces to optionally execute the _GTS method 1263(Going To Sleep) and the _BFS method (Back From Sleep). Windows apparently 1264does not execute these methods, and therefore these methods are often 1265untested. It has been seen on some systems where the execution of these 1266methods causes errors and also prevents the machine from entering S5. It 1267is 1268therefore suggested that host operating systems do not execute these 1269methods 1270by default. In the future, perhaps these methods can be optionally 1271executed 1272based on the age of the system and/or what is the newest version of 1273Windows 1274that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 1275and 1276AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 1277Ming. 1278 1279Fixed a problem where the length of the local/common FADT was set too 1280early. 1281The local FADT table length cannot be set to the common length until the 1282original length has been examined. There is code that checks the table 1283length 1284and sets various fields appropriately. This can affect older machines with 1285early FADT versions. For example, this can cause inadvertent writes to the 1286CST_CNT register. Julian Anastasov. 1287 1288Fixed a mapping issue related to a physical table override. Use the 1289deferred 1290mapping mechanism for tables loaded via the physical override OSL 1291interface. 1292This allows for early mapping before the virtual memory manager is 1293available. 1294Thomas Renninger, Bob Moore. 1295 1296Enhanced the automatic return-object repair code: Repair a common problem 1297with 1298predefined methods that are defined to return a variable-length Package of 1299sub-objects. If there is only one sub-object, some BIOS ASL code 1300mistakenly 1301simply returns the single object instead of a Package with one sub-object. 1302This new support will repair this error by wrapping a Package object 1303around 1304the original object, creating the correct and expected Package with one 1305sub- 1306object. Names that can be repaired in this manner include: _ALR, _CSD, 1307_HPX, 1308_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 1309939. 1310 1311Changed the exception code returned for invalid ACPI paths passed as 1312parameters to external interfaces such as AcpiEvaluateObject. Was 1313AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 1314 1315Example Code and Data Size: These are the sizes for the OS-independent 1316acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1317debug 1318version of the code includes the debug output trace mechanism and has a 1319much 1320larger code and data size. 1321 1322 Previous Release: 1323 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1324 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1325 Current Release: 1326 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 1327 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1328 1329 13302) iASL Compiler/Disassembler and Tools: 1331 1332iASL: Added the infrastructure and initial implementation of a integrated 1333C- 1334like preprocessor. This will simplify BIOS development process by 1335eliminating 1336the need for a separate preprocessing step during builds. On Windows, it 1337also 1338eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 1339features including full #define() macro support are still under 1340development. 1341These preprocessor directives are supported: 1342 #define 1343 #elif 1344 #else 1345 #endif 1346 #error 1347 #if 1348 #ifdef 1349 #ifndef 1350 #include 1351 #pragma message 1352 #undef 1353 #warning 1354In addition, these new command line options are supported: 1355 -D <symbol> Define symbol for preprocessor use 1356 -li Create preprocessed output file (*.i) 1357 -P Preprocess only and create preprocessor output file (*.i) 1358 1359Table Compiler: Fixed a problem where the equals operator within an 1360expression 1361did not work properly. 1362 1363Updated iASL to use the current versions of Bison/Flex. Updated the 1364Windows 1365project file to invoke these tools from the standard location. ACPICA BZ 1366904. 1367Versions supported: 1368 Flex for Windows: V2.5.4 1369 Bison for Windows: V2.4.1 1370 1371---------------------------------------- 137215 February 2012. Summary of changes for version 20120215: 1373 1374 13751) ACPICA Core Subsystem: 1376 1377There have been some major changes to the sleep/wake support code, as 1378described below (a - e). 1379 1380a) The AcpiLeaveSleepState has been split into two interfaces, similar to 1381AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 1382AcpiLeaveSleepStatePrep. This allows the host to perform actions between 1383the 1384time the _BFS method is called and the _WAK method is called. NOTE: all 1385hosts 1386must update their wake/resume code or else sleep/wake will not work 1387properly. 1388Rafael Wysocki. 1389 1390b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 1391_WAK 1392method. Some machines require that the GPEs are enabled before the _WAK 1393method 1394is executed. Thomas Renninger. 1395 1396c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) bit. 1397Some BIOS code assumes that WAK_STS will be cleared on resume and use it 1398to 1399determine whether the system is rebooting or resuming. Matthew Garrett. 1400 1401d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 1402Sleep) to 1403match the ACPI specification requirement. Rafael Wysocki. 1404 1405e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 1406registers within the V5 FADT. This support adds two new files: 1407hardware/hwesleep.c implements the support for the new registers. Moved 1408all 1409sleep/wake external interfaces to hardware/hwxfsleep.c. 1410 1411 1412Added a new OSL interface for ACPI table overrides, 1413AcpiOsPhysicalTableOverride. This interface allows the host to override a 1414table via a physical address, instead of the logical address required by 1415AcpiOsTableOverride. This simplifies the host implementation. Initial 1416implementation by Thomas Renninger. The ACPICA implementation creates a 1417single 1418shared function for table overrides that attempts both a logical and a 1419physical override. 1420 1421Expanded the OSL memory read/write interfaces to 64-bit data 1422(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 1423transfer support for GAS register structures passed to AcpiRead and 1424AcpiWrite. 1425 1426Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 1427custom 1428build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 1429model. 1430See the ACPICA reference for details. ACPICA BZ 942. This option removes 1431about 143210% of the code and 5% of the static data, and the following hardware ACPI 1433features become unavailable: 1434 PM Event and Control registers 1435 SCI interrupt (and handler) 1436 Fixed Events 1437 General Purpose Events (GPEs) 1438 Global Lock 1439 ACPI PM timer 1440 FACS table (Waking vectors and Global Lock) 1441 1442Updated the unix tarball directory structure to match the ACPICA git 1443source 1444tree. This ensures that the generic unix makefiles work properly (in 1445generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 867. 1446 1447Updated the return value of the _REV predefined method to integer value 5 1448to 1449reflect ACPI 5.0 support. 1450 1451Moved the external ACPI PM timer interface prototypes to the public 1452acpixf.h 1453file where they belong. 1454 1455Example Code and Data Size: These are the sizes for the OS-independent 1456acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1457debug 1458version of the code includes the debug output trace mechanism and has a 1459much 1460larger code and data size. 1461 1462 Previous Release: 1463 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 1464 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 1465 Current Release: 1466 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 1467 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 1468 1469 14702) iASL Compiler/Disassembler and Tools: 1471 1472Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 1473descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 1474incorrectly displayed. 1475 1476AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 1477specification. 1478 1479---------------------------------------- 148011 January 2012. Summary of changes for version 20120111: 1481 1482 14831) ACPICA Core Subsystem: 1484 1485Implemented a new mechanism to allow host device drivers to check for 1486address 1487range conflicts with ACPI Operation Regions. Both SystemMemory and 1488SystemIO 1489address spaces are supported. A new external interface, 1490AcpiCheckAddressRange, 1491allows drivers to check an address range against the ACPI namespace. See 1492the 1493ACPICA reference for additional details. Adds one new file, 1494utilities/utaddress.c. Lin Ming, Bob Moore. 1495 1496Fixed several issues with the ACPI 5.0 FADT support: Add the sleep Control 1497and 1498Status registers, update the ACPI 5.0 flags, and update internal data 1499structures to handle an FADT larger than 256 bytes. The size of the ACPI 15005.0 1501FADT is 268 bytes. 1502 1503Updated all ACPICA copyrights and signons to 2012. Added the 2012 1504copyright to 1505all module headers and signons, including the standard Linux header. This 1506affects virtually every file in the ACPICA core subsystem, iASL compiler, 1507and 1508all ACPICA utilities. 1509 1510Example Code and Data Size: These are the sizes for the OS-independent 1511acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1512debug 1513version of the code includes the debug output trace mechanism and has a 1514much 1515larger code and data size. 1516 1517 Previous Release: 1518 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 1519 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 1520 Current Release: 1521 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 1522 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 1523 1524 15252) iASL Compiler/Disassembler and Tools: 1526 1527Disassembler: fixed a problem with the automatic resource tag generation 1528support. Fixes a problem where the resource tags are inadvertently not 1529constructed if the table being disassembled contains external references 1530to 1531control methods. Moved the actual construction of the tags to after the 1532final 1533namespace is constructed (after 2nd parse is invoked due to external 1534control 1535method references.) ACPICA BZ 941. 1536 1537Table Compiler: Make all "generic" operators caseless. These are the 1538operators 1539like UINT8, String, etc. Making these caseless improves ease-of-use. 1540ACPICA BZ 1541934. 1542 1543---------------------------------------- 154423 November 2011. Summary of changes for version 20111123: 1545 15460) ACPI 5.0 Support: 1547 1548This release contains full support for the ACPI 5.0 specification, as 1549summarized below. 1550 1551Reduced Hardware Support: 1552------------------------- 1553 1554This support allows for ACPI systems without the usual ACPI hardware. This 1555support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 1556will 1557not attempt to initialize or use any of the usual ACPI hardware. Note, 1558when 1559this flag is set, all of the following ACPI hardware is assumed to be not 1560present and is not initialized or accessed: 1561 1562 General Purpose Events (GPEs) 1563 Fixed Events (PM1a/PM1b and PM Control) 1564 Power Management Timer and Console Buttons (power/sleep) 1565 Real-time Clock Alarm 1566 Global Lock 1567 System Control Interrupt (SCI) 1568 The FACS is assumed to be non-existent 1569 1570ACPI Tables: 1571------------ 1572 1573All new tables and updates to existing tables are fully supported in the 1574ACPICA headers (for use by device drivers), the disassembler, and the iASL 1575Data Table Compiler. ACPI 5.0 defines these new tables: 1576 1577 BGRT /* Boot Graphics Resource Table */ 1578 DRTM /* Dynamic Root of Trust for Measurement table */ 1579 FPDT /* Firmware Performance Data Table */ 1580 GTDT /* Generic Timer Description Table */ 1581 MPST /* Memory Power State Table */ 1582 PCCT /* Platform Communications Channel Table */ 1583 PMTT /* Platform Memory Topology Table */ 1584 RASF /* RAS Feature table */ 1585 1586Operation Regions/SpaceIDs: 1587--------------------------- 1588 1589All new operation regions are fully supported by the iASL compiler, the 1590disassembler, and the ACPICA runtime code (for dispatch to region 1591handlers.) 1592The new operation region Space IDs are: 1593 1594 GeneralPurposeIo 1595 GenericSerialBus 1596 1597Resource Descriptors: 1598--------------------- 1599 1600All new ASL resource descriptors are fully supported by the iASL compiler, 1601the 1602ASL/AML disassembler, and the ACPICA runtime Resource Manager code 1603(including 1604all new predefined resource tags). New descriptors are: 1605 1606 FixedDma 1607 GpioIo 1608 GpioInt 1609 I2cSerialBus 1610 SpiSerialBus 1611 UartSerialBus 1612 1613ASL/AML Operators, New and Modified: 1614------------------------------------ 1615 1616One new operator is added, the Connection operator, which is used to 1617associate 1618a GeneralPurposeIo or GenericSerialBus resource descriptor with individual 1619field objects within an operation region. Several new protocols are 1620associated 1621with the AccessAs operator. All are fully supported by the iASL compiler, 1622disassembler, and runtime ACPICA AML interpreter: 1623 1624 Connection // Declare Field Connection attributes 1625 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 1626 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes Protocol 1627 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 1628 RawDataBuffer // Data type for Vendor Data 1629fields 1630 1631Predefined ASL/AML Objects: 1632--------------------------- 1633 1634All new predefined objects/control-methods are supported by the iASL 1635compiler 1636and the ACPICA runtime validation/repair (arguments and return values.) 1637New 1638predefined names include the following: 1639 1640Standard Predefined Names (Objects or Control Methods): 1641 _AEI, _CLS, _CPC, _CWS, _DEP, 1642 _DLM, _EVT, _GCP, _CRT, _GWS, 1643 _HRV, _PRE, _PSE, _SRT, _SUB. 1644 1645Resource Tags (Names used to access individual fields within resource 1646descriptors): 1647 _DBT, _DPL, _DRS, _END, _FLC, 1648 _IOR, _LIN, _MOD, _PAR, _PHA, 1649 _PIN, _PPI, _POL, _RXL, _SLV, 1650 _SPE, _STB, _TXL, _VEN. 1651 1652ACPICA External Interfaces: 1653--------------------------- 1654 1655Several new interfaces have been defined for use by ACPI-related device 1656drivers and other host OS services: 1657 1658AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 1659to 1660acquire and release AML mutexes that are defined in the DSDT/SSDT tables 1661provided by the BIOS. They are intended to be used in conjunction with the 1662ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 1663mutual exclusion with the AML code/interpreter. 1664 1665AcpiGetEventResources: Returns the (formatted) resource descriptors as 1666defined 1667by the ACPI 5.0 _AEI object (ACPI Event Information). This object 1668provides 1669resource descriptors associated with hardware-reduced platform events, 1670similar 1671to the AcpiGetCurrentResources interface. 1672 1673Operation Region Handlers: For General Purpose IO and Generic Serial Bus 1674operation regions, information about the Connection() object and any 1675optional 1676length information is passed to the region handler within the Context 1677parameter. 1678 1679AcpiBufferToResource: This interface converts a raw AML buffer containing 1680a 1681resource template or resource descriptor to the ACPI_RESOURCE internal 1682format 1683suitable for use by device drivers. Can be used by an operation region 1684handler 1685to convert the Connection() buffer object into a ACPI_RESOURCE. 1686 1687Miscellaneous/Tools/TestSuites: 1688------------------------------- 1689 1690Support for extended _HID names (Four alpha characters instead of three). 1691Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 1692Support for ACPI 5.0 features in the ASLTS test suite. 1693Fully updated documentation (ACPICA and iASL reference documents.) 1694 1695ACPI Table Definition Language: 1696------------------------------- 1697 1698Support for this language was implemented and released as a subsystem of 1699the 1700iASL compiler in 2010. (See the iASL compiler User Guide.) 1701 1702 1703Non-ACPI 5.0 changes for this release: 1704-------------------------------------- 1705 17061) ACPICA Core Subsystem: 1707 1708Fix a problem with operation region declarations where a failure can occur 1709if 1710the region name and an argument that evaluates to an object (such as the 1711region address) are in different namespace scopes. Lin Ming, ACPICA BZ 1712937. 1713 1714Do not abort an ACPI table load if an invalid space ID is found within. 1715This 1716will be caught later if the offending method is executed. ACPICA BZ 925. 1717 1718Fixed an issue with the FFixedHW space ID where the ID was not always 1719recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 1720 1721Fixed a problem with the 32-bit generation of the unix-specific OSL 1722(osunixxf.c). Lin Ming, ACPICA BZ 936. 1723 1724Several changes made to enable generation with the GCC 4.6 compiler. 1725ACPICA BZ 1726935. 1727 1728New error messages: Unsupported I/O requests (not 8/16/32 bit), and 1729Index/Bank 1730field registers out-of-range. 1731 17322) iASL Compiler/Disassembler and Tools: 1733 1734iASL: Implemented the __PATH__ operator, which returns the full pathname 1735of 1736the current source file. 1737 1738AcpiHelp: Automatically display expanded keyword information for all ASL 1739operators. 1740 1741Debugger: Add "Template" command to disassemble/dump resource template 1742buffers. 1743 1744Added a new master script to generate and execute the ASLTS test suite. 1745Automatically handles 32- and 64-bit generation. See tests/aslts.sh 1746 1747iASL: Fix problem with listing generation during processing of the 1748Switch() 1749operator where AML listing was disabled until the entire Switch block was 1750completed. 1751 1752iASL: Improve support for semicolon statement terminators. Fix "invalid 1753character" message for some cases when the semicolon is used. Semicolons 1754are 1755now allowed after every <Term> grammar element. ACPICA BZ 927. 1756 1757iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 1758923. 1759 1760Disassembler: Fix problem with disassembly of the DataTableRegion operator 1761where an inadvertent "Unhandled deferred opcode" message could be 1762generated. 1763 17643) Example Code and Data Size 1765 1766These are the sizes for the OS-independent acpica.lib produced by the 1767Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 1768includes the debug output trace mechanism and has a much larger code and 1769data 1770size. 1771 1772 Previous Release: 1773 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1774 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1775 Current Release: 1776 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 1777 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 1778 1779---------------------------------------- 178022 September 2011. Summary of changes for version 20110922: 1781 17820) ACPI 5.0 News: 1783 1784Support for ACPI 5.0 in ACPICA has been underway for several months and 1785will 1786be released at the same time that ACPI 5.0 is officially released. 1787 1788The ACPI 5.0 specification is on track for release in the next few months. 1789 17901) ACPICA Core Subsystem: 1791 1792Fixed a problem where the maximum sleep time for the Sleep() operator was 1793intended to be limited to two seconds, but was inadvertently limited to 20 1794seconds instead. 1795 1796Linux and Unix makefiles: Added header file dependencies to ensure correct 1797generation of ACPICA core code and utilities. Also simplified the 1798makefiles 1799considerably through the use of the vpath variable to specify search 1800paths. 1801ACPICA BZ 924. 1802 18032) iASL Compiler/Disassembler and Tools: 1804 1805iASL: Implemented support to check the access length for all fields 1806created to 1807access named Resource Descriptor fields. For example, if a resource field 1808is 1809defined to be two bits, a warning is issued if a CreateXxxxField() is used 1810with an incorrect bit length. This is implemented for all current resource 1811descriptor names. ACPICA BZ 930. 1812 1813Disassembler: Fixed a byte ordering problem with the output of 24-bit and 181456- 1815bit integers. 1816 1817iASL: Fixed a couple of issues associated with variable-length package 1818objects. 1) properly handle constants like One, Ones, Zero -- do not make 1819a 1820VAR_PACKAGE when these are used as a package length. 2) Allow the 1821VAR_PACKAGE 1822opcode (in addition to PACKAGE) when validating object types for 1823predefined 1824names. 1825 1826iASL: Emit statistics for all output files (instead of just the ASL input 1827and 1828AML output). Includes listings, hex files, etc. 1829 1830iASL: Added -G option to the table compiler to allow the compilation of 1831custom 1832ACPI tables. The only part of a table that is required is the standard 36- 1833byte 1834ACPI header. 1835 1836AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 1837headers), 1838which also adds correct 64-bit support. Also, now all output filenames are 1839completely lower case. 1840 1841AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 1842loading table files. A warning is issued for any such tables. The only 1843exception is an FADT. This also fixes a possible fault when attempting to 1844load 1845non-AML tables. ACPICA BZ 932. 1846 1847AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where a 1848missing table terminator could cause a fault when using the -p option. 1849 1850AcpiSrc: Fixed a possible divide-by-zero fault when generating file 1851statistics. 1852 18533) Example Code and Data Size 1854 1855These are the sizes for the OS-independent acpica.lib produced by the 1856Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 1857includes the debug output trace mechanism and has a much larger code and 1858data 1859size. 1860 1861 Previous Release (VC 9.0): 1862 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1863 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1864 Current Release (VC 9.0): 1865 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1866 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1867 1868 1869---------------------------------------- 187023 June 2011. Summary of changes for version 20110623: 1871 18721) ACPI CA Core Subsystem: 1873 1874Updated the predefined name repair mechanism to not attempt repair of a 1875_TSS 1876return object if a _PSS object is present. We can only sort the _TSS 1877return 1878package if there is no _PSS within the same scope. This is because if _PSS 1879is 1880present, the ACPI specification dictates that the _TSS Power Dissipation 1881field 1882is to be ignored, and therefore some BIOSs leave garbage values in the 1883_TSS 1884Power field(s). In this case, it is best to just return the _TSS package 1885as- 1886is. Reported by, and fixed with assistance from Fenghua Yu. 1887 1888Added an option to globally disable the control method return value 1889validation 1890and repair. This runtime option can be used to disable return value repair 1891if 1892this is causing a problem on a particular machine. Also added an option to 1893AcpiExec (-dr) to set this disable flag. 1894 1895All makefiles and project files: Major changes to improve generation of 1896ACPICA 1897tools. ACPICA BZ 912: 1898 Reduce default optimization levels to improve compatibility 1899 For Linux, add strict-aliasing=0 for gcc 4 1900 Cleanup and simplify use of command line defines 1901 Cleanup multithread library support 1902 Improve usage messages 1903 1904Linux-specific header: update handling of THREAD_ID and pthread. For the 190532- 1906bit case, improve casting to eliminate possible warnings, especially with 1907the 1908acpica tools. 1909 1910Example Code and Data Size: These are the sizes for the OS-independent 1911acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1912debug 1913version of the code includes the debug output trace mechanism and has a 1914much 1915larger code and data size. 1916 1917 Previous Release (VC 9.0): 1918 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 1919 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1920 Current Release (VC 9.0): 1921 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 1922 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1923 19242) iASL Compiler/Disassembler and Tools: 1925 1926With this release, a new utility named "acpihelp" has been added to the 1927ACPICA 1928package. This utility summarizes the ACPI specification chapters for the 1929ASL 1930and AML languages. It generates under Linux/Unix as well as Windows, and 1931provides the following functionality: 1932 Find/display ASL operator(s) -- with description and syntax. 1933 Find/display ASL keyword(s) -- with exact spelling and descriptions. 1934 Find/display ACPI predefined name(s) -- with description, number 1935 of arguments, and the return value data type. 1936 Find/display AML opcode name(s) -- with opcode, arguments, and 1937grammar. 1938 Decode/display AML opcode -- with opcode name, arguments, and grammar. 1939 1940Service Layers: Make multi-thread support configurable. Conditionally 1941compile 1942the multi-thread support so that threading libraries will not be linked if 1943not 1944necessary. The only tool that requires multi-thread support is AcpiExec. 1945 1946iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 1947of 1948Bison appear to want the interface to yyerror to be a const char * (or at 1949least this is a problem when generating iASL on some systems.) ACPICA BZ 1950923 1951Pierre Lejeune. 1952 1953Tools: Fix for systems where O_BINARY is not defined. Only used for 1954Windows 1955versions of the tools. 1956 1957---------------------------------------- 195827 May 2011. Summary of changes for version 20110527: 1959 19601) ACPI CA Core Subsystem: 1961 1962ASL Load() operator: Reinstate most restrictions on the incoming ACPI 1963table 1964signature. Now, only allow SSDT, OEMx, and a null signature. History: 1965 1) Originally, we checked the table signature for "SSDT" or "PSDT". 1966 (PSDT is now obsolete.) 1967 2) We added support for OEMx tables, signature "OEM" plus a fourth 1968 "don't care" character. 1969 3) Valid tables were encountered with a null signature, so we just 1970 gave up on validating the signature, (05/2008). 1971 4) We encountered non-AML tables such as the MADT, which caused 1972 interpreter errors and kernel faults. So now, we once again allow 1973 only SSDT, OEMx, and now, also a null signature. (05/2011). 1974 1975Added the missing _TDL predefined name to the global name list in order to 1976enable validation. Affects both the core ACPICA code and the iASL 1977compiler. 1978 1979Example Code and Data Size: These are the sizes for the OS-independent 1980acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 1981debug 1982version of the code includes the debug output trace mechanism and has a 1983much 1984larger code and data size. 1985 1986 Previous Release (VC 9.0): 1987 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 1988 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 1989 Current Release (VC 9.0): 1990 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 1991 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 1992 19932) iASL Compiler/Disassembler and Tools: 1994 1995Debugger/AcpiExec: Implemented support for "complex" method arguments on 1996the 1997debugger command line. This adds support beyond simple integers -- 1998including 1999Strings, Buffers, and Packages. Includes support for nested packages. 2000Increased the default command line buffer size to accommodate these 2001arguments. 2002See the ACPICA reference for details and syntax. ACPICA BZ 917. 2003 2004Debugger/AcpiExec: Implemented support for "default" method arguments for 2005the 2006Execute/Debug command. Now, the debugger will always invoke a control 2007method 2008with the required number of arguments -- even if the command line 2009specifies 2010none or insufficient arguments. It uses default integer values for any 2011missing 2012arguments. Also fixes a bug where only six method arguments maximum were 2013supported instead of the required seven. 2014 2015Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 2016and 2017also return status in order to prevent buffer overruns. See the ACPICA 2018reference for details and syntax. ACPICA BZ 921 2019 2020iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 2021makefiles to simplify support for the two different but similar parser 2022generators, bison and yacc. 2023 2024Updated the generic unix makefile for gcc 4. The default gcc version is 2025now 2026expected to be 4 or greater, since options specific to gcc 4 are used. 2027 2028---------------------------------------- 202913 April 2011. Summary of changes for version 20110413: 2030 20311) ACPI CA Core Subsystem: 2032 2033Implemented support to execute a so-called "orphan" _REG method under the 2034EC 2035device. This change will force the execution of a _REG method underneath 2036the 2037EC 2038device even if there is no corresponding operation region of type 2039EmbeddedControl. Fixes a problem seen on some machines and apparently is 2040compatible with Windows behavior. ACPICA BZ 875. 2041 2042Added more predefined methods that are eligible for automatic NULL package 2043element removal. This change adds another group of predefined names to the 2044list 2045of names that can be repaired by having NULL package elements dynamically 2046removed. This group are those methods that return a single variable-length 2047package containing simple data types such as integers, buffers, strings. 2048This 2049includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 2050_PSL, 2051_Sx, 2052and _TZD. ACPICA BZ 914. 2053 2054Split and segregated all internal global lock functions to a new file, 2055evglock.c. 2056 2057Updated internal address SpaceID for DataTable regions. Moved this 2058internal 2059space 2060id in preparation for ACPI 5.0 changes that will include some new space 2061IDs. 2062This 2063change should not affect user/host code. 2064 2065Example Code and Data Size: These are the sizes for the OS-independent 2066acpica.lib 2067produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 2068version of 2069the code includes the debug output trace mechanism and has a much larger 2070code 2071and 2072data size. 2073 2074 Previous Release (VC 9.0): 2075 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 2076 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 2077 Current Release (VC 9.0): 2078 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 2079 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 2080 20812) iASL Compiler/Disassembler and Tools: 2082 2083iASL/DTC: Major update for new grammar features. Allow generic data types 2084in 2085custom ACPI tables. Field names are now optional. Any line can be split to 2086multiple lines using the continuation char (\). Large buffers now use 2087line- 2088continuation character(s) and no colon on the continuation lines. See the 2089grammar 2090update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 2091Moore. 2092 2093iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 2094statements. 2095Since the parser stuffs a "zero" as the return value for these statements 2096(due 2097to 2098the underlying AML grammar), they were seen as "return with value" by the 2099iASL 2100semantic checking. They are now seen correctly as "null" return 2101statements. 2102 2103iASL: Check if a_REG declaration has a corresponding Operation Region. 2104Adds a 2105check for each _REG to ensure that there is in fact a corresponding 2106operation 2107region declaration in the same scope. If not, the _REG method is not very 2108useful 2109since it probably won't be executed. ACPICA BZ 915. 2110 2111iASL/DTC: Finish support for expression evaluation. Added a new expression 2112parser 2113that implements c-style operator precedence and parenthesization. ACPICA 2114bugzilla 2115908. 2116 2117Disassembler/DTC: Remove support for () and <> style comments in data 2118tables. 2119Now 2120that DTC has full expression support, we don't want to have comment 2121strings 2122that 2123start with a parentheses or a less-than symbol. Now, only the standard /* 2124and 2125// 2126comments are supported, as well as the bracket [] comments. 2127 2128AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 2129"unusual" 2130headers in the acpidump file. Update the header validation to support 2131these 2132tables. Problem introduced in previous AcpiXtract version in the change to 2133support "wrong checksum" error messages emitted by acpidump utility. 2134 2135iASL: Add a * option to generate all template files (as a synonym for ALL) 2136as 2137in 2138"iasl -T *" or "iasl -T ALL". 2139 2140iASL/DTC: Do not abort compiler on fatal errors. We do not want to 2141completely 2142abort the compiler on "fatal" errors, simply should abort the current 2143compile. 2144This allows multiple compiles with a single (possibly wildcard) compiler 2145invocation. 2146 2147---------------------------------------- 214816 March 2011. Summary of changes for version 20110316: 2149 21501) ACPI CA Core Subsystem: 2151 2152Fixed a problem caused by a _PRW method appearing at the namespace root 2153scope 2154during the setup of wake GPEs. A fault could occur if a _PRW directly 2155under 2156the 2157root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 2158 2159Implemented support for "spurious" Global Lock interrupts. On some 2160systems, a 2161global lock interrupt can occur without the pending flag being set. Upon a 2162GL 2163interrupt, we now ensure that a thread is actually waiting for the lock 2164before 2165signaling GL availability. Rafael Wysocki, Bob Moore. 2166 2167Example Code and Data Size: These are the sizes for the OS-independent 2168acpica.lib 2169produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 2170version of 2171the code includes the debug output trace mechanism and has a much larger 2172code 2173and 2174data size. 2175 2176 Previous Release (VC 9.0): 2177 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2178 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2179 Current Release (VC 9.0): 2180 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 2181 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 2182 21832) iASL Compiler/Disassembler and Tools: 2184 2185Implemented full support for the "SLIC" ACPI table. Includes support in 2186the 2187header files, disassembler, table compiler, and template generator. Bob 2188Moore, 2189Lin Ming. 2190 2191AcpiXtract: Correctly handle embedded comments and messages from AcpiDump. 2192Apparently some or all versions of acpidump will occasionally emit a 2193comment 2194like 2195"Wrong checksum", etc., into the dump file. This was causing problems for 2196AcpiXtract. ACPICA BZ 905. 2197 2198iASL: Fix the Linux makefile by removing an inadvertent double file 2199inclusion. 2200ACPICA BZ 913. 2201 2202AcpiExec: Update installation of operation region handlers. Install one 2203handler 2204for a user-defined address space. This is used by the ASL test suite 2205(ASLTS). 2206 2207---------------------------------------- 220811 February 2011. Summary of changes for version 20110211: 2209 22101) ACPI CA Core Subsystem: 2211 2212Added a mechanism to defer _REG methods for some early-installed handlers. 2213Most user handlers should be installed before call to AcpiEnableSubsystem. 2214However, Event handlers and region handlers should be installed after 2215AcpiInitializeObjects. Override handlers for the "default" regions should 2216be 2217installed early, however. This change executes all _REG methods for the 2218default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 2219chicken/egg issues between them. ACPICA BZ 848. 2220 2221Implemented an optimization for GPE detection. This optimization will 2222simply 2223ignore GPE registers that contain no enabled GPEs -- there is no need to 2224read the register since this information is available internally. This 2225becomes more important on machines with a large GPE space. ACPICA bugzilla 2226884. Lin Ming. Suggestion from Joe Liu. 2227 2228Removed all use of the highly unreliable FADT revision field. The revision 2229number in the FADT has been found to be completely unreliable and cannot 2230be 2231trusted. Only the actual table length can be used to infer the version. 2232This 2233change updates the ACPICA core and the disassembler so that both no longer 2234even look at the FADT version and instead depend solely upon the FADT 2235length. 2236 2237Fix an unresolved name issue for the no-debug and no-error-message source 2238generation cases. The _AcpiModuleName was left undefined in these cases, 2239but 2240it is actually needed as a parameter to some interfaces. Define 2241_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 2242 2243Split several large files (makefiles and project files updated) 2244 utglobal.c -> utdecode.c 2245 dbcomds.c -> dbmethod.c dbnames.c 2246 dsopcode.c -> dsargs.c dscontrol.c 2247 dsload.c -> dsload2.c 2248 aslanalyze.c -> aslbtypes.c aslwalks.c 2249 2250Example Code and Data Size: These are the sizes for the OS-independent 2251acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2252debug version of the code includes the debug output trace mechanism and 2253has 2254a much larger code and data size. 2255 2256 Previous Release (VC 9.0): 2257 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2258 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2259 Current Release (VC 9.0): 2260 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2261 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2262 22632) iASL Compiler/Disassembler and Tools: 2264 2265iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 2266These are useful C-style macros with the standard definitions. ACPICA 2267bugzilla 898. 2268 2269iASL/DTC: Added support for integer expressions and labels. Support for 2270full 2271expressions for all integer fields in all ACPI tables. Support for labels 2272in 2273"generic" portions of tables such as UEFI. See the iASL reference manual. 2274 2275Debugger: Added a command to display the status of global handlers. The 2276"handlers" command will display op region, fixed event, and miscellaneous 2277global handlers. installation status -- and for op regions, whether 2278default 2279or user-installed handler will be used. 2280 2281iASL: Warn if reserved method incorrectly returns a value. Many predefined 2282names are defined such that they do not return a value. If implemented as 2283a 2284method, issue a warning if such a name explicitly returns a value. ACPICA 2285Bugzilla 855. 2286 2287iASL: Added detection of GPE method name conflicts. Detects a conflict 2288where 2289there are two GPE methods of the form _Lxy and _Exy in the same scope. 2290(For 2291example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 2292 2293iASL/DTC: Fixed a couple input scanner issues with comments and line 2294numbers. Comment remover could get confused and miss a comment ending. 2295Fixed 2296a problem with line counter maintenance. 2297 2298iASL/DTC: Reduced the severity of some errors from fatal to error. There 2299is 2300no need to abort on simple errors within a field definition. 2301 2302Debugger: Simplified the output of the help command. All help output now 2303in 2304a single screen, instead of help subcommands. ACPICA Bugzilla 897. 2305 2306---------------------------------------- 230712 January 2011. Summary of changes for version 20110112: 2308 23091) ACPI CA Core Subsystem: 2310 2311Fixed a race condition between method execution and namespace walks that 2312can 2313possibly cause a fault. The problem was apparently introduced in version 231420100528 as a result of a performance optimization that reduces the number 2315of 2316namespace walks upon method exit by using the delete_namespace_subtree 2317function instead of the delete_namespace_by_owner function used 2318previously. 2319Bug is a missing namespace lock in the delete_namespace_subtree function. 2320dana.myers@oracle.com 2321 2322Fixed several issues and a possible fault with the automatic "serialized" 2323method support. History: This support changes a method to "serialized" on 2324the 2325fly if the method generates an AE_ALREADY_EXISTS error, indicating the 2326possibility that it cannot handle reentrancy. This fix repairs a couple of 2327issues seen in the field, especially on machines with many cores: 2328 2329 1) Delete method children only upon the exit of the last thread, 2330 so as to not delete objects out from under other running threads 2331 (and possibly causing a fault.) 2332 2) Set the "serialized" bit for the method only upon the exit of the 2333 Last thread, so as to not cause deadlock when running threads 2334 attempt to exit. 2335 3) Cleanup the use of the AML "MethodFlags" and internal method flags 2336 so that there is no longer any confusion between the two. 2337 2338 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 2339 2340Debugger: Now lock the namespace for duration of a namespace dump. 2341Prevents 2342issues if the namespace is changing dynamically underneath the debugger. 2343Especially affects temporary namespace nodes, since the debugger displays 2344these also. 2345 2346Updated the ordering of include files. The ACPICA headers should appear 2347before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 2348set 2349any necessary compiler-specific defines, etc. Affects the ACPI-related 2350tools 2351and utilities. 2352 2353Updated all ACPICA copyrights and signons to 2011. Added the 2011 2354copyright 2355to all module headers and signons, including the Linux header. This 2356affects 2357virtually every file in the ACPICA core subsystem, iASL compiler, and all 2358utilities. 2359 2360Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 2361project files for VC++ 6.0 are now obsolete. New project files can be 2362found 2363under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 2364details. 2365 2366Example Code and Data Size: These are the sizes for the OS-independent 2367acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2368debug version of the code includes the debug output trace mechanism and 2369has a 2370much larger code and data size. 2371 2372 Previous Release (VC 6.0): 2373 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 2374 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 2375 Current Release (VC 9.0): 2376 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 2377 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 2378 23792) iASL Compiler/Disassembler and Tools: 2380 2381iASL: Added generic data types to the Data Table compiler. Add "generic" 2382data 2383types such as UINT32, String, Unicode, etc., to simplify the generation of 2384platform-defined tables such as UEFI. Lin Ming. 2385 2386iASL: Added listing support for the Data Table Compiler. Adds listing 2387support 2388(-l) to display actual binary output for each line of input code. 2389 2390---------------------------------------- 239109 December 2010. Summary of changes for version 20101209: 2392 23931) ACPI CA Core Subsystem: 2394 2395Completed the major overhaul of the GPE support code that was begun in 2396July 23972010. Major features include: removal of _PRW execution in ACPICA (host 2398executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 2399changes to existing interfaces, simplification of GPE handler operation, 2400and 2401a handful of new interfaces: 2402 2403 AcpiUpdateAllGpes 2404 AcpiFinishGpe 2405 AcpiSetupGpeForWake 2406 AcpiSetGpeWakeMask 2407 One new file, evxfgpe.c to consolidate all external GPE interfaces. 2408 2409See the ACPICA Programmer Reference for full details and programming 2410information. See the new section 4.4 "General Purpose Event (GPE) Support" 2411for a full overview, and section 8.7 "ACPI General Purpose Event 2412Management" 2413for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin Ming, 2414Bob Moore, Rafael Wysocki. 2415 2416Implemented a new GPE feature for Windows compatibility, the "Implicit 2417Wake 2418GPE Notify". This feature will automatically issue a Notify(2) on a device 2419when a Wake GPE is received if there is no corresponding GPE method or 2420handler. ACPICA BZ 870. 2421 2422Fixed a problem with the Scope() operator during table parse and load 2423phase. 2424During load phase (table load or method execution), the scope operator 2425should 2426not enter the target into the namespace. Instead, it should open a new 2427scope 2428at the target location. Linux BZ 19462, ACPICA BZ 882. 2429 2430Example Code and Data Size: These are the sizes for the OS-independent 2431acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2432debug version of the code includes the debug output trace mechanism and 2433has a 2434much larger code and data size. 2435 2436 Previous Release: 2437 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 2438 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 2439 Current Release: 2440 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2441 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2442 24432) iASL Compiler/Disassembler and Tools: 2444 2445iASL: Relax the alphanumeric restriction on _CID strings. These strings 2446are 2447"bus-specific" per the ACPI specification, and therefore any characters 2448are 2449acceptable. The only checks that can be performed are for a null string 2450and 2451perhaps for a leading asterisk. ACPICA BZ 886. 2452 2453iASL: Fixed a problem where a syntax error that caused a premature EOF 2454condition on the source file emitted a very confusing error message. The 2455premature EOF is now detected correctly. ACPICA BZ 891. 2456 2457Disassembler: Decode the AccessSize within a Generic Address Structure 2458(byte 2459access, word access, etc.) Note, this field does not allow arbitrary bit 2460access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 2461 2462New: AcpiNames utility - Example namespace dump utility. Shows an example 2463of 2464ACPICA configuration for a minimal namespace dump utility. Uses table and 2465namespace managers, but no AML interpreter. Does not add any functionality 2466over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 2467partition and configure ACPICA. ACPICA BZ 883. 2468 2469AML Debugger: Increased the debugger buffer size for method return 2470objects. 2471Was 4K, increased to 16K. Also enhanced error messages for debugger method 2472execution, including the buffer overflow case. 2473 2474---------------------------------------- 247513 October 2010. Summary of changes for version 20101013: 2476 24771) ACPI CA Core Subsystem: 2478 2479Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 2480now 2481clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 2482HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 2483 2484Changed the type of the predefined namespace object _TZ from ThermalZone 2485to 2486Device. This was found to be confusing to the host software that processes 2487the various thermal zones, since _TZ is not really a ThermalZone. However, 2488a 2489Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 2490Zhang. 2491 2492Added Windows Vista SP2 to the list of supported _OSI strings. The actual 2493string is "Windows 2006 SP2". 2494 2495Eliminated duplicate code in AcpiUtExecute* functions. Now that the 2496nsrepair 2497code automatically repairs _HID-related strings, this type of code is no 2498longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 878. 2499 2500Example Code and Data Size: These are the sizes for the OS-independent 2501acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2502debug version of the code includes the debug output trace mechanism and 2503has a 2504much larger code and data size. 2505 2506 Previous Release: 2507 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2508 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2509 Current Release: 2510 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2511 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2512 25132) iASL Compiler/Disassembler and Tools: 2514 2515iASL: Implemented additional compile-time validation for _HID strings. The 2516non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the length 2517of 2518the string must be exactly seven or eight characters. For both _HID and 2519_CID 2520strings, all characters must be alphanumeric. ACPICA BZ 874. 2521 2522iASL: Allow certain "null" resource descriptors. Some BIOS code creates 2523descriptors that are mostly or all zeros, with the expectation that they 2524will 2525be filled in at runtime. iASL now allows this as long as there is a 2526"resource 2527tag" (name) associated with the descriptor, which gives the ASL a handle 2528needed to modify the descriptor. ACPICA BZ 873. 2529 2530Added single-thread support to the generic Unix application OSL. Primarily 2531for iASL support, this change removes the use of semaphores in the single- 2532threaded ACPICA tools/applications - increasing performance. The 2533_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 2534option. ACPICA BZ 879. 2535 2536AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 2537support 2538for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 2539 2540iASL: Moved all compiler messages to a new file, aslmessages.h. 2541 2542---------------------------------------- 254315 September 2010. Summary of changes for version 20100915: 2544 25451) ACPI CA Core Subsystem: 2546 2547Removed the AcpiOsDerivePciId OSL interface. The various host 2548implementations 2549of this function were not OS-dependent and are now obsolete and can be 2550removed from all host OSLs. This function has been replaced by 2551AcpiHwDerivePciId, which is now part of the ACPICA core code. 2552AcpiHwDerivePciId has been implemented without recursion. Adds one new 2553module, hwpci.c. ACPICA BZ 857. 2554 2555Implemented a dynamic repair for _HID and _CID strings. The following 2556problems are now repaired at runtime: 1) Remove a leading asterisk in the 2557string, and 2) the entire string is uppercased. Both repairs are in 2558accordance with the ACPI specification and will simplify host driver code. 2559ACPICA BZ 871. 2560 2561The ACPI_THREAD_ID type is no longer configurable, internally it is now 2562always UINT64. This simplifies the ACPICA code, especially any printf 2563output. 2564UINT64 is the only common data type for all thread_id types across all 2565operating systems. It is now up to the host OSL to cast the native 2566thread_id 2567type to UINT64 before returning the value to ACPICA (via 2568AcpiOsGetThreadId). 2569Lin Ming, Bob Moore. 2570 2571Added the ACPI_INLINE type to enhance the ACPICA configuration. The 2572"inline" 2573keyword is not standard across compilers, and this type allows inline to 2574be 2575configured on a per-compiler basis. Lin Ming. 2576 2577Made the system global AcpiGbl_SystemAwakeAndRunning publically available. 2578Added an extern for this boolean in acpixf.h. Some hosts utilize this 2579value 2580during suspend/restore operations. ACPICA BZ 869. 2581 2582All code that implements error/warning messages with the "ACPI:" prefix 2583has 2584been moved to a new module, utxferror.c. 2585 2586The UINT64_OVERLAY was moved to utmath.c, which is the only module where 2587it 2588is used. ACPICA BZ 829. Lin Ming, Bob Moore. 2589 2590Example Code and Data Size: These are the sizes for the OS-independent 2591acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2592debug version of the code includes the debug output trace mechanism and 2593has a 2594much larger code and data size. 2595 2596 Previous Release: 2597 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 2598 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 2599 Current Release: 2600 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 2601 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 2602 26032) iASL Compiler/Disassembler and Tools: 2604 2605iASL/Disassembler: Write ACPI errors to stderr instead of the output file. 2606This keeps the output files free of random error messages that may 2607originate 2608from within the namespace/interpreter code. Used this opportunity to merge 2609all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 2610866. Lin Ming, Bob Moore. 2611 2612Tools: update some printfs for ansi warnings on size_t. Handle width 2613change 2614of size_t on 32-bit versus 64-bit generations. Lin Ming. 2615 2616---------------------------------------- 261706 August 2010. Summary of changes for version 20100806: 2618 26191) ACPI CA Core Subsystem: 2620 2621Designed and implemented a new host interface to the _OSI support code. 2622This 2623will allow the host to dynamically add or remove multiple _OSI strings, as 2624well as install an optional handler that is called for each _OSI 2625invocation. 2626Also added a new AML debugger command, 'osi' to display and modify the 2627global 2628_OSI string table, and test support in the AcpiExec utility. See the 2629ACPICA 2630reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 2631New Functions: 2632 AcpiInstallInterface - Add an _OSI string. 2633 AcpiRemoveInterface - Delete an _OSI string. 2634 AcpiInstallInterfaceHandler - Install optional _OSI handler. 2635Obsolete Functions: 2636 AcpiOsValidateInterface - no longer used. 2637New Files: 2638 source/components/utilities/utosi.c 2639 2640Re-introduced the support to enable multi-byte transfers for Embedded 2641Controller (EC) operation regions. A reported problem was found to be a 2642bug 2643in the host OS, not in the multi-byte support. Previously, the maximum 2644data 2645size passed to the EC operation region handler was a single byte. There 2646are 2647often EC Fields larger than one byte that need to be transferred, and it 2648is 2649useful for the EC driver to lock these as a single transaction. This 2650change 2651enables single transfers larger than 8 bits. This effectively changes the 2652access to the EC space from ByteAcc to AnyAcc, and will probably require 2653changes to the host OS Embedded Controller driver to enable 16/32/64/256- 2654bit 2655transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 2656 2657Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 2658prototype in acpiosxf.h had the output value pointer as a (void *). 2659It should be a (UINT64 *). This may affect some host OSL code. 2660 2661Fixed a couple problems with the recently modified Linux makefiles for 2662iASL 2663and AcpiExec. These new makefiles place the generated object files in the 2664local directory so that there can be no collisions between the files that 2665are 2666shared between them that are compiled with different options. 2667 2668Example Code and Data Size: These are the sizes for the OS-independent 2669acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2670debug version of the code includes the debug output trace mechanism and 2671has a 2672much larger code and data size. 2673 2674 Previous Release: 2675 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2676 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 2677 Current Release: 2678 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 2679 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 2680 26812) iASL Compiler/Disassembler and Tools: 2682 2683iASL/Disassembler: Added a new option (-da, "disassemble all") to load the 2684namespace from and disassemble an entire group of AML files. Useful for 2685loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 2686and 2687disassembling with one simple command. ACPICA BZ 865. Lin Ming. 2688 2689iASL: Allow multiple invocations of -e option. This change allows multiple 2690uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 2691834. 2692Lin Ming. 2693 2694---------------------------------------- 269502 July 2010. Summary of changes for version 20100702: 2696 26971) ACPI CA Core Subsystem: 2698 2699Implemented several updates to the recently added GPE reference count 2700support. The model for "wake" GPEs is changing to give the host OS 2701complete 2702control of these GPEs. Eventually, the ACPICA core will not execute any 2703_PRW 2704methods, since the host already must execute them. Also, additional 2705changes 2706were made to help ensure that the reference counts are kept in proper 2707synchronization with reality. Rafael J. Wysocki. 2708 27091) Ensure that GPEs are not enabled twice during initialization. 27102) Ensure that GPE enable masks stay in sync with the reference count. 27113) Do not inadvertently enable GPEs when writing GPE registers. 27124) Remove the internal wake reference counter and add new AcpiGpeWakeup 2713interface. This interface will set or clear individual GPEs for wakeup. 27145) Remove GpeType argument from AcpiEnable and AcpiDisable. These 2715interfaces 2716are now used for "runtime" GPEs only. 2717 2718Changed the behavior of the GPE install/remove handler interfaces. The GPE 2719is 2720no longer disabled during this process, as it was found to cause problems 2721on 2722some machines. Rafael J. Wysocki. 2723 2724Reverted a change introduced in version 20100528 to enable Embedded 2725Controller multi-byte transfers. This change was found to cause problems 2726with 2727Index Fields and possibly Bank Fields. It will be reintroduced when these 2728problems have been resolved. 2729 2730Fixed a problem with references to Alias objects within Package Objects. A 2731reference to an Alias within the definition of a Package was not always 2732resolved properly. Aliases to objects like Processors, Thermal zones, etc. 2733were resolved to the actual object instead of a reference to the object as 2734it 2735should be. Package objects are only allowed to contain integer, string, 2736buffer, package, and reference objects. Redhat bugzilla 608648. 2737 2738Example Code and Data Size: These are the sizes for the OS-independent 2739acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2740debug version of the code includes the debug output trace mechanism and 2741has a 2742much larger code and data size. 2743 2744 Previous Release: 2745 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2746 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 2747 Current Release: 2748 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2749 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 2750 27512) iASL Compiler/Disassembler and Tools: 2752 2753iASL: Implemented a new compiler subsystem to allow definition and 2754compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 2755These 2756are called "ACPI Data Tables", and the new compiler is the "Data Table 2757Compiler". This compiler is intended to simplify the existing error-prone 2758process of creating these tables for the BIOS, as well as allowing the 2759disassembly, modification, recompilation, and override of existing ACPI 2760data 2761tables. See the iASL User Guide for detailed information. 2762 2763iASL: Implemented a new Template Generator option in support of the new 2764Data 2765Table Compiler. This option will create examples of all known ACPI tables 2766that can be used as the basis for table development. See the iASL 2767documentation and the -T option. 2768 2769Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 2770Descriptor Table). 2771 2772Updated the Linux makefiles for iASL and AcpiExec to place the generated 2773object files in the local directory so that there can be no collisions 2774between the shared files between them that are generated with different 2775options. 2776 2777Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. Use 2778the #define __APPLE__ to enable this support. 2779 2780---------------------------------------- 278128 May 2010. Summary of changes for version 20100528: 2782 2783Note: The ACPI 4.0a specification was released on April 5, 2010 and is 2784available at www.acpi.info. This is primarily an errata release. 2785 27861) ACPI CA Core Subsystem: 2787 2788Undefined ACPI tables: We are looking for the definitions for the 2789following 2790ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 2791 2792Implemented support to enable multi-byte transfers for Embedded Controller 2793(EC) operation regions. Previously, the maximum data size passed to the EC 2794operation region handler was a single byte. There are often EC Fields 2795larger 2796than one byte that need to be transferred, and it is useful for the EC 2797driver 2798to lock these as a single transaction. This change enables single 2799transfers 2800larger than 8 bits. This effectively changes the access to the EC space 2801from 2802ByteAcc to AnyAcc, and will probably require changes to the host OS 2803Embedded 2804Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 2805bit 2806transfers. Alexey Starikovskiy, Lin Ming 2807 2808Implemented a performance enhancement for namespace search and access. 2809This 2810change enhances the performance of namespace searches and walks by adding 2811a 2812backpointer to the parent in each namespace node. On large namespaces, 2813this 2814change can improve overall ACPI performance by up to 9X. Adding a pointer 2815to 2816each namespace node increases the overall size of the internal namespace 2817by 2818about 5%, since each namespace entry usually consists of both a namespace 2819node and an ACPI operand object. However, this is the first growth of the 2820namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 2821 2822Implemented a performance optimization that reduces the number of 2823namespace 2824walks. On control method exit, only walk the namespace if the method is 2825known 2826to have created namespace objects outside of its local scope. Previously, 2827the 2828entire namespace was traversed on each control method exit. This change 2829can 2830improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 2831Moore. 2832 2833Added support to truncate I/O addresses to 16 bits for Windows 2834compatibility. 2835Some ASL code has been seen in the field that inadvertently has bits set 2836above bit 15. This feature is optional and is enabled if the BIOS requests 2837any Windows OSI strings. It can also be enabled by the host OS. Matthew 2838Garrett, Bob Moore. 2839 2840Added support to limit the maximum time for the ASL Sleep() operator. To 2841prevent accidental deep sleeps, limit the maximum time that Sleep() will 2842actually sleep. Configurable, the default maximum is two seconds. ACPICA 2843bugzilla 854. 2844 2845Added run-time validation support for the _WDG and_WED Microsoft 2846predefined 2847methods. These objects are defined by "Windows Instrumentation", and are 2848not 2849part of the ACPI spec. ACPICA BZ 860. 2850 2851Expanded all statistic counters used during namespace and device 2852initialization from 16 to 32 bits in order to support very large 2853namespaces. 2854 2855Replaced all instances of %d in printf format specifiers with %u since 2856nearly 2857all integers in ACPICA are unsigned. 2858 2859Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 2860returned 2861as AE_NO_HANDLER. 2862 2863Example Code and Data Size: These are the sizes for the OS-independent 2864acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2865debug version of the code includes the debug output trace mechanism and 2866has a 2867much larger code and data size. 2868 2869 Previous Release: 2870 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 2871 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 2872 Current Release: 2873 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 2874 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 2875 28762) iASL Compiler/Disassembler and Tools: 2877 2878iASL: Added compiler support for the _WDG and_WED Microsoft predefined 2879methods. These objects are defined by "Windows Instrumentation", and are 2880not 2881part of the ACPI spec. ACPICA BZ 860. 2882 2883AcpiExec: added option to disable the memory tracking mechanism. The -dt 2884option will disable the tracking mechanism, which improves performance 2885considerably. 2886 2887AcpiExec: Restructured the command line options into -d (disable) and -e 2888(enable) options. 2889 2890---------------------------------------- 289128 April 2010. Summary of changes for version 20100428: 2892 28931) ACPI CA Core Subsystem: 2894 2895Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 2896including FADT-based and GPE Block Devices, execute any _PRW methods in 2897the 2898new table, and process any _Lxx/_Exx GPE methods in the new table. Any 2899runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 2900immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 2901Devices. Provides compatibility with other ACPI implementations. Two new 2902files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 2903Moore. 2904 2905Fixed a regression introduced in version 20100331 within the table manager 2906where initial table loading could fail. This was introduced in the fix for 2907AcpiReallocateRootTable. Also, renamed some of fields in the table manager 2908data structures to clarify their meaning and use. 2909 2910Fixed a possible allocation overrun during internal object copy in 2911AcpiUtCopySimpleObject. The original code did not correctly handle the 2912case 2913where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 2914847. 2915 2916Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 2917possible access beyond end-of-allocation. Also, now fully validate 2918descriptor 2919(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 2920 2921Example Code and Data Size: These are the sizes for the OS-independent 2922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2923debug version of the code includes the debug output trace mechanism and 2924has a 2925much larger code and data size. 2926 2927 Previous Release: 2928 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 2929 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 2930 Current Release: 2931 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 2932 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 2933 29342) iASL Compiler/Disassembler and Tools: 2935 2936iASL: Implemented Min/Max/Len/Gran validation for address resource 2937descriptors. This change implements validation for the address fields that 2938are common to all address-type resource descriptors. These checks are 2939implemented: Checks for valid Min/Max, length within the Min/Max window, 2940valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as per 2941table 6-40 in the ACPI 4.0a specification. Also split the large 2942aslrestype1.c 2943and aslrestype2.c files into five new files. ACPICA BZ 840. 2944 2945iASL: Added support for the _Wxx predefined names. This support was 2946missing 2947and these names were not recognized by the compiler as valid predefined 2948names. ACPICA BZ 851. 2949 2950iASL: Added an error for all predefined names that are defined to return 2951no 2952value and thus must be implemented as Control Methods. These include all 2953of 2954the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 2955names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 2956 2957iASL: Implemented the -ts option to emit hex AML data in ASL format, as an 2958ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 2959be 2960dynamically loaded via the Load() operator. Also cleaned up output for the 2961- 2962ta and -tc options. ACPICA BZ 853. 2963 2964Tests: Added a new file with examples of extended iASL error checking. 2965Demonstrates the advanced error checking ability of the iASL compiler. 2966Available at tests/misc/badcode.asl. 2967 2968---------------------------------------- 296931 March 2010. Summary of changes for version 20100331: 2970 29711) ACPI CA Core Subsystem: 2972 2973Completed a major update for the GPE support in order to improve support 2974for 2975shared GPEs and to simplify both host OS and ACPICA code. Added a 2976reference 2977count mechanism to support shared GPEs that require multiple device 2978drivers. 2979Several external interfaces have changed. One external interface has been 2980removed. One new external interface was added. Most of the GPE external 2981interfaces now use the GPE spinlock instead of the events mutex (and the 2982Flags parameter for many GPE interfaces has been removed.) See the updated 2983ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 2984Rafael 2985Wysocki. ACPICA BZ 831. 2986 2987Changed: 2988 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 2989Removed: 2990 AcpiSetGpeType 2991New: 2992 AcpiSetGpe 2993 2994Implemented write support for DataTable operation regions. These regions 2995are 2996defined via the DataTableRegion() operator. Previously, only read support 2997was 2998implemented. The ACPI specification allows DataTableRegions to be 2999read/write, 3000however. 3001 3002Implemented a new subsystem option to force a copy of the DSDT to local 3003memory. Optionally copy the entire DSDT to local memory (instead of simply 3004mapping it.) There are some (albeit very rare) BIOSs that corrupt or 3005replace 3006the original DSDT, creating the need for this option. Default is FALSE, do 3007not copy the DSDT. 3008 3009Implemented detection of a corrupted or replaced DSDT. This change adds 3010support to detect a DSDT that has been corrupted and/or replaced from 3011outside 3012the OS (by firmware). This is typically catastrophic for the system, but 3013has 3014been seen on some machines. Once this problem has been detected, the DSDT 3015copy option can be enabled via system configuration. Lin Ming, Bob Moore. 3016 3017Fixed two problems with AcpiReallocateRootTable during the root table 3018copy. 3019When copying the root table to the new allocation, the length used was 3020incorrect. The new size was used instead of the current table size, 3021meaning 3022too much data was copied. Also, the count of available slots for ACPI 3023tables 3024was not set correctly. Alexey Starikovskiy, Bob Moore. 3025 3026Example Code and Data Size: These are the sizes for the OS-independent 3027acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3028debug version of the code includes the debug output trace mechanism and 3029has a 3030much larger code and data size. 3031 3032 Previous Release: 3033 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 3034 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 3035 Current Release: 3036 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 3037 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 3038 30392) iASL Compiler/Disassembler and Tools: 3040 3041iASL: Implement limited typechecking for values returned from predefined 3042control methods. The type of any returned static (unnamed) object is now 3043validated. For example, Return(1). ACPICA BZ 786. 3044 3045iASL: Fixed a predefined name object verification regression. Fixes a 3046problem 3047introduced in version 20100304. An error is incorrectly generated if a 3048predefined name is declared as a static named object with a value defined 3049using the keywords "Zero", "One", or "Ones". Lin Ming. 3050 3051iASL: Added Windows 7 support for the -g option (get local ACPI tables) by 3052reducing the requested registry access rights. ACPICA BZ 842. 3053 3054Disassembler: fixed a possible fault when generating External() 3055statements. 3056Introduced in commit ae7d6fd: Properly handle externals with parent-prefix 3057(carat). Fixes a string length allocation calculation. Lin Ming. 3058 3059---------------------------------------- 306004 March 2010. Summary of changes for version 20100304: 3061 30621) ACPI CA Core Subsystem: 3063 3064Fixed a possible problem with the AML Mutex handling function 3065AcpiExReleaseMutex where the function could fault under the very rare 3066condition when the interpreter has blocked, the interpreter lock is 3067released, 3068the interpreter is then reentered via the same thread, and attempts to 3069acquire an AML mutex that was previously acquired. FreeBSD report 140979. 3070Lin 3071Ming. 3072 3073Implemented additional configuration support for the AML "Debug Object". 3074Output from the debug object can now be enabled via a global variable, 3075AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 3076debugging. 3077This debug output is now available in the release version of ACPICA 3078instead 3079of just the debug version. Also, the entire debug output module can now be 3080configured out of the ACPICA build if desired. One new file added, 3081executer/exdebug.c. Lin Ming, Bob Moore. 3082 3083Added header support for the ACPI MCHI table (Management Controller Host 3084Interface Table). This table was added in ACPI 4.0, but the defining 3085document 3086has only recently become available. 3087 3088Standardized output of integer values for ACPICA warnings/errors. Always 3089use 30900x prefix for hex output, always use %u for unsigned integer decimal 3091output. 3092Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 400 3093invocations.) These invocations were converted from the original 3094ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 3095 3096Example Code and Data Size: These are the sizes for the OS-independent 3097acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3098debug version of the code includes the debug output trace mechanism and 3099has a 3100much larger code and data size. 3101 3102 Previous Release: 3103 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 3104 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 3105 Current Release: 3106 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 3107 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 3108 31092) iASL Compiler/Disassembler and Tools: 3110 3111iASL: Implemented typechecking support for static (non-control method) 3112predefined named objects that are declared with the Name() operator. For 3113example, the type of this object is now validated to be of type Integer: 3114Name(_BBN, 1). This change migrates the compiler to using the core 3115predefined 3116name table instead of maintaining a local version. Added a new file, 3117aslpredef.c. ACPICA BZ 832. 3118 3119Disassembler: Added support for the ACPI 4.0 MCHI table. 3120 3121---------------------------------------- 312221 January 2010. Summary of changes for version 20100121: 3123 31241) ACPI CA Core Subsystem: 3125 3126Added the 2010 copyright to all module headers and signons. This affects 3127virtually every file in the ACPICA core subsystem, the iASL compiler, the 3128tools/utilities, and the test suites. 3129 3130Implemented a change to the AcpiGetDevices interface to eliminate 3131unnecessary 3132invocations of the _STA method. In the case where a specific _HID is 3133requested, do not run _STA until a _HID match is found. This eliminates 3134potentially dozens of _STA calls during a search for a particular 3135device/HID, 3136which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 3137 3138Implemented an additional repair for predefined method return values. 3139Attempt 3140to repair unexpected NULL elements within returned Package objects. Create 3141an 3142Integer of value zero, a NULL String, or a zero-length Buffer as 3143appropriate. 3144ACPICA BZ 818. Lin Ming, Bob Moore. 3145 3146Removed the obsolete ACPI_INTEGER data type. This type was introduced as 3147the 3148code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 3149(with 315064-bit AML integers). It is now obsolete and this change removes it from 3151the 3152ACPICA code base, replaced by UINT64. The original typedef has been 3153retained 3154for now for compatibility with existing device driver code. ACPICA BZ 824. 3155 3156Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field in 3157the parse tree object. 3158 3159Added additional warning options for the gcc-4 generation. Updated the 3160source 3161accordingly. This includes some code restructuring to eliminate 3162unreachable 3163code, elimination of some gotos, elimination of unused return values, some 3164additional casting, and removal of redundant declarations. 3165 3166Example Code and Data Size: These are the sizes for the OS-independent 3167acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3168debug version of the code includes the debug output trace mechanism and 3169has a 3170much larger code and data size. 3171 3172 Previous Release: 3173 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 3174 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 3175 Current Release: 3176 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 3177 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 3178 31792) iASL Compiler/Disassembler and Tools: 3180 3181No functional changes for this release. 3182 3183---------------------------------------- 318414 December 2009. Summary of changes for version 20091214: 3185 31861) ACPI CA Core Subsystem: 3187 3188Enhanced automatic data type conversions for predefined name repairs. This 3189change expands the automatic repairs/conversions for predefined name 3190return 3191values to make Integers, Strings, and Buffers fully interchangeable. Also, 3192a 3193Buffer can be converted to a Package of Integers if necessary. The 3194nsrepair.c 3195module was completely restructured. Lin Ming, Bob Moore. 3196 3197Implemented automatic removal of null package elements during predefined 3198name 3199repairs. This change will automatically remove embedded and trailing NULL 3200package elements from returned package objects that are defined to contain 3201a 3202variable number of sub-packages. The driver is then presented with a 3203package 3204with no null elements to deal with. ACPICA BZ 819. 3205 3206Implemented a repair for the predefined _FDE and _GTM names. The expected 3207return value for both names is a Buffer of 5 DWORDs. This repair fixes two 3208possible problems (both seen in the field), where a package of integers is 3209returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 3210Kim. 3211 3212Implemented additional module-level code support. This change will 3213properly 3214execute module-level code that is not at the root of the namespace (under 3215a 3216Device object, etc.). Now executes the code within the current scope 3217instead 3218of the root. ACPICA BZ 762. Lin Ming. 3219 3220Fixed possible mutex acquisition errors when running _REG methods. Fixes a 3221problem where mutex errors can occur when running a _REG method that is in 3222the same scope as a method-defined operation region or an operation region 3223under a module-level IF block. This type of code is rare, so the problem 3224has 3225not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 3226 3227Fixed a possible memory leak during module-level code execution. An object 3228could be leaked for each block of executed module-level code if the 3229interpreter slack mode is enabled This change deletes any implicitly 3230returned 3231object from the module-level code block. Lin Ming. 3232 3233Removed messages for successful predefined repair(s). The repair mechanism 3234was considered too wordy. Now, messages are only unconditionally emitted 3235if 3236the return object cannot be repaired. Existing messages for successful 3237repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 3238827. 3239 3240Example Code and Data Size: These are the sizes for the OS-independent 3241acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3242debug version of the code includes the debug output trace mechanism and 3243has a 3244much larger code and data size. 3245 3246 Previous Release: 3247 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 3248 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 3249 Current Release: 3250 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 3251 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 3252 32532) iASL Compiler/Disassembler and Tools: 3254 3255iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 3256files 3257were no longer automatically removed at the termination of the compile. 3258 3259acpiexec: Implemented the -f option to specify default region fill value. 3260This option specifies the value used to initialize buffers that simulate 3261operation regions. Default value is zero. Useful for debugging problems 3262that 3263depend on a specific initial value for a region or field. 3264 3265---------------------------------------- 326612 November 2009. Summary of changes for version 20091112: 3267 32681) ACPI CA Core Subsystem: 3269 3270Implemented a post-order callback to AcpiWalkNamespace. The existing 3271interface only has a pre-order callback. This change adds an additional 3272parameter for a post-order callback which will be more useful for bus 3273scans. 3274ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 3275 3276Modified the behavior of the operation region memory mapping cache for 3277SystemMemory. Ensure that the memory mappings created for operation 3278regions 3279do not cross 4K page boundaries. Crossing a page boundary while mapping 3280regions can cause kernel warnings on some hosts if the pages have 3281different 3282attributes. Such regions are probably BIOS bugs, and this is the 3283workaround. 3284Linux BZ 14445. Lin Ming. 3285 3286Implemented an automatic repair for predefined methods that must return 3287sorted lists. This change will repair (by sorting) packages returned by 3288_ALR, 3289_PSS, and _TSS. Drivers can now assume that the packages are correctly 3290sorted 3291and do not contain NULL package elements. Adds one new file, 3292namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 3293 3294Fixed a possible fault during predefined name validation if a return 3295Package 3296object contains NULL elements. Also adds a warning if a NULL element is 3297followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 3298may 3299include repair or removal of all such NULL elements where possible. 3300 3301Implemented additional module-level executable AML code support. This 3302change 3303will execute module-level code that is not at the root of the namespace 3304(under a Device object, etc.) at table load time. Module-level executable 3305AML 3306code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 3307 3308Implemented a new internal function to create Integer objects. This 3309function 3310simplifies miscellaneous object creation code. ACPICA BZ 823. 3311 3312Reduced the severity of predefined repair messages, Warning to Info. Since 3313the object was successfully repaired, a warning is too severe. Reduced to 3314an 3315info message for now. These messages may eventually be changed to debug- 3316only. 3317ACPICA BZ 812. 3318 3319Example Code and Data Size: These are the sizes for the OS-independent 3320acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3321debug version of the code includes the debug output trace mechanism and 3322has a 3323much larger code and data size. 3324 3325 Previous Release: 3326 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 3327 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 3328 Current Release: 3329 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 3330 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 3331 33322) iASL Compiler/Disassembler and Tools: 3333 3334iASL: Implemented Switch() with While(1) so that Break works correctly. 3335This 3336change correctly implements the Switch operator with a surrounding 3337While(1) 3338so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 3339 3340iASL: Added a message if a package initializer list is shorter than 3341package 3342length. Adds a new remark for a Package() declaration if an initializer 3343list 3344exists, but is shorter than the declared length of the package. Although 3345technically legal, this is probably a coding error and it is seen in the 3346field. ACPICA BZ 815. Lin Ming, Bob Moore. 3347 3348iASL: Fixed a problem where the compiler could fault after the maximum 3349number 3350of errors was reached (200). 3351 3352acpixtract: Fixed a possible warning for pointer cast if the compiler 3353warning 3354level set very high. 3355 3356---------------------------------------- 335713 October 2009. Summary of changes for version 20091013: 3358 33591) ACPI CA Core Subsystem: 3360 3361Fixed a problem where an Operation Region _REG method could be executed 3362more 3363than once. If a custom address space handler is installed by the host 3364before 3365the "initialize operation regions" phase of the ACPICA initialization, any 3366_REG methods for that address space could be executed twice. This change 3367fixes the problem. ACPICA BZ 427. Lin Ming. 3368 3369Fixed a possible memory leak for the Scope() ASL operator. When the exact 3370invocation of "Scope(\)" is executed (change scope to root), one internal 3371operand object was leaked. Lin Ming. 3372 3373Implemented a run-time repair for the _MAT predefined method. If the _MAT 3374return value is defined as a Field object in the AML, and the field 3375size is less than or equal to the default width of an integer (32 or 337664),_MAT 3377can incorrectly return an Integer instead of a Buffer. ACPICA now 3378automatically repairs this problem. ACPICA BZ 810. 3379 3380Implemented a run-time repair for the _BIF and _BIX predefined methods. 3381The 3382"OEM Information" field is often incorrectly returned as an Integer with 3383value zero if the field is not supported by the platform. This is due to 3384an 3385ambiguity in the ACPI specification. The field should always be a string. 3386ACPICA now automatically repairs this problem by returning a NULL string 3387within the returned Package. ACPICA BZ 807. 3388 3389Example Code and Data Size: These are the sizes for the OS-independent 3390acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3391debug version of the code includes the debug output trace mechanism and 3392has a 3393much larger code and data size. 3394 3395 Previous Release: 3396 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 3397 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 3398 Current Release: 3399 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 3400 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 3401 34022) iASL Compiler/Disassembler and Tools: 3403 3404Disassembler: Fixed a problem where references to external symbols that 3405contained one or more parent-prefixes (carats) were not handled correctly, 3406possibly causing a fault. ACPICA BZ 806. Lin Ming. 3407 3408Disassembler: Restructured the code so that all functions that handle 3409external symbols are in a single module. One new file is added, 3410common/dmextern.c. 3411 3412AML Debugger: Added a max count argument for the Batch command (which 3413executes multiple predefined methods within the namespace.) 3414 3415iASL: Updated the compiler documentation (User Reference.) Available at 3416http://www.acpica.org/documentation/. ACPICA BZ 750. 3417 3418AcpiXtract: Updated for Lint and other formatting changes. Close all open 3419files. 3420 3421---------------------------------------- 342203 September 2009. Summary of changes for version 20090903: 3423 34241) ACPI CA Core Subsystem: 3425 3426For Windows Vista compatibility, added the automatic execution of an _INI 3427method located at the namespace root (\_INI). This method is executed at 3428table load time. This support is in addition to the automatic execution of 3429\_SB._INI. Lin Ming. 3430 3431Fixed a possible memory leak in the interpreter for AML package objects if 3432the package initializer list is longer than the defined size of the 3433package. 3434This apparently can only happen if the BIOS changes the package size on 3435the 3436fly (seen in a _PSS object), as ASL compilers do not allow this. The 3437interpreter will truncate the package to the defined size (and issue an 3438error 3439message), but previously could leave the extra objects undeleted if they 3440were 3441pre-created during the argument processing (such is the case if the 3442package 3443consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 3444 3445Fixed a problem seen when a Buffer or String is stored to itself via ASL. 3446This has been reported in the field. Previously, ACPICA would zero out the 3447buffer/string. Now, the operation is treated as a noop. Provides Windows 3448compatibility. ACPICA BZ 803. Lin Ming. 3449 3450Removed an extraneous error message for ASL constructs of the form 3451Store(LocalX,LocalX) when LocalX is uninitialized. These curious 3452statements 3453are seen in many BIOSs and are once again treated as NOOPs and no error is 3454emitted when they are encountered. ACPICA BZ 785. 3455 3456Fixed an extraneous warning message if a _DSM reserved method returns a 3457Package object. _DSM can return any type of object, so validation on the 3458return type cannot be performed. ACPICA BZ 802. 3459 3460Example Code and Data Size: These are the sizes for the OS-independent 3461acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3462debug version of the code includes the debug output trace mechanism and 3463has a 3464much larger code and data size. 3465 3466 Previous Release: 3467 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 3468 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 3469 Current Release: 3470 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 3471 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 3472 34732) iASL Compiler/Disassembler and Tools: 3474 3475iASL: Fixed a problem with the use of the Alias operator and Resource 3476Templates. The correct alias is now constructed and no error is emitted. 3477ACPICA BZ 738. 3478 3479iASL: Implemented the -I option to specify additional search directories 3480for 3481include files. Allows multiple additional search paths for include files. 3482Directories are searched in the order specified on the command line (after 3483the local directory is searched.) ACPICA BZ 800. 3484 3485iASL: Fixed a problem where the full pathname for include files was not 3486emitted for warnings/errors. This caused the IDE support to not work 3487properly. ACPICA BZ 765. 3488 3489iASL: Implemented the -@ option to specify a Windows-style response file 3490containing additional command line options. ACPICA BZ 801. 3491 3492AcpiExec: Added support to load multiple AML files simultaneously (such as 3493a 3494DSDT and multiple SSDTs). Also added support for wildcards within the AML 3495pathname. These features allow all machine tables to be easily loaded and 3496debugged together. ACPICA BZ 804. 3497 3498Disassembler: Added missing support for disassembly of HEST table Error 3499Bank 3500subtables. 3501 3502---------------------------------------- 350330 July 2009. Summary of changes for version 20090730: 3504 3505The ACPI 4.0 implementation for ACPICA is complete with this release. 3506 35071) ACPI CA Core Subsystem: 3508 3509ACPI 4.0: Added header file support for all new and changed ACPI tables. 3510Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 3511for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 3512BERT, 3513EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 3514There 3515have been some ACPI 4.0 changes to other existing tables. Split the large 3516actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 3517 3518ACPI 4.0: Implemented predefined name validation for all new names. There 3519are 352031 new names in ACPI 4.0. The predefined validation module was split into 3521two 3522files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 3523 3524Implemented support for so-called "module-level executable code". This is 3525executable AML code that exists outside of any control method and is 3526intended 3527to be executed at table load time. Although illegal since ACPI 2.0, this 3528type 3529of code still exists and is apparently still being created. Blocks of this 3530code are now detected and executed as intended. Currently, the code blocks 3531must exist under either an If, Else, or While construct; these are the 3532typical cases seen in the field. ACPICA BZ 762. Lin Ming. 3533 3534Implemented an automatic dynamic repair for predefined names that return 3535nested Package objects. This applies to predefined names that are defined 3536to 3537return a variable-length Package of sub-packages. If the number of sub- 3538packages is one, BIOS code is occasionally seen that creates a simple 3539single 3540package with no sub-packages. This code attempts to fix the problem by 3541wrapping a new package object around the existing package. These methods 3542can 3543be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 3544790. 3545 3546Fixed a regression introduced in 20090625 for the AcpiGetDevices 3547interface. 3548The _HID/_CID matching was broken and no longer matched IDs correctly. 3549ACPICA 3550BZ 793. 3551 3552Fixed a problem with AcpiReset where the reset would silently fail if the 3553register was one of the protected I/O ports. AcpiReset now bypasses the 3554port 3555validation mechanism. This may eventually be driven into the 3556AcpiRead/Write 3557interfaces. 3558 3559Fixed a regression related to the recent update of the AcpiRead/Write 3560interfaces. A sleep/suspend could fail if the optional PM2 Control 3561register 3562does not exist during an attempt to write the Bus Master Arbitration bit. 3563(However, some hosts already delete the code that writes this bit, and the 3564code may in fact be obsolete at this date.) ACPICA BZ 799. 3565 3566Fixed a problem where AcpiTerminate could fault if inadvertently called 3567twice 3568in succession. ACPICA BZ 795. 3569 3570Example Code and Data Size: These are the sizes for the OS-independent 3571acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3572debug version of the code includes the debug output trace mechanism and 3573has a 3574much larger code and data size. 3575 3576 Previous Release: 3577 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 3578 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 3579 Current Release: 3580 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 3581 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 3582 35832) iASL Compiler/Disassembler and Tools: 3584 3585ACPI 4.0: Implemented disassembler support for all new ACPI tables and 3586changes to existing tables. ACPICA BZ 775. 3587 3588---------------------------------------- 358925 June 2009. Summary of changes for version 20090625: 3590 3591The ACPI 4.0 Specification was released on June 16 and is available at 3592www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 3593continue for the next few releases. 3594 35951) ACPI CA Core Subsystem: 3596 3597ACPI 4.0: Implemented interpreter support for the IPMI operation region 3598address space. Includes support for bi-directional data buffers and an 3599IPMI 3600address space handler (to be installed by an IPMI device driver.) ACPICA 3601BZ 3602773. Lin Ming. 3603 3604ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 3605support in both the header files and the disassembler. 3606 3607Completed a major update for the AcpiGetObjectInfo external interface. 3608Changes include: 3609 - Support for variable, unlimited length HID, UID, and CID strings. 3610 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 3611etc.) 3612 - Call the _SxW power methods on behalf of a device object. 3613 - Determine if a device is a PCI root bridge. 3614 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 3615These changes will require an update to all callers of this interface. See 3616the updated ACPICA Programmer Reference for details. One new source file 3617has 3618been added - utilities/utids.c. ACPICA BZ 368, 780. 3619 3620Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 3621transfers. The Value parameter has been extended from 32 bits to 64 bits 3622in 3623order to support new ACPI 4.0 tables. These changes will require an update 3624to 3625all callers of these interfaces. See the ACPICA Programmer Reference for 3626details. ACPICA BZ 768. 3627 3628Fixed several problems with AcpiAttachData. The handler was not invoked 3629when 3630the host node was deleted. The data sub-object was not automatically 3631deleted 3632when the host node was deleted. The interface to the handler had an unused 3633parameter, this was removed. ACPICA BZ 778. 3634 3635Enhanced the function that dumps ACPI table headers. All non-printable 3636characters in the string fields are now replaced with '?' (Signature, 3637OemId, 3638OemTableId, and CompilerId.) ACPI tables with non-printable characters in 3639these fields are occasionally seen in the field. ACPICA BZ 788. 3640 3641Fixed a problem with predefined method repair code where the code that 3642attempts to repair/convert an object of incorrect type is only executed on 3643the first time the predefined method is called. The mechanism that 3644disables 3645warnings on subsequent calls was interfering with the repair mechanism. 3646ACPICA BZ 781. 3647 3648Fixed a possible memory leak in the predefined validation/repair code when 3649a 3650buffer is automatically converted to an expected string object. 3651 3652Removed obsolete 16-bit files from the distribution and from the current 3653git 3654tree head. ACPICA BZ 776. 3655 3656Example Code and Data Size: These are the sizes for the OS-independent 3657acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3658debug version of the code includes the debug output trace mechanism and 3659has a 3660much larger code and data size. 3661 3662 Previous Release: 3663 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 3664 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 3665 Current Release: 3666 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 3667 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 3668 36692) iASL Compiler/Disassembler and Tools: 3670 3671ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 3672operation region keyword. ACPICA BZ 771, 772. Lin Ming. 3673 3674ACPI 4.0: iASL - implemented compile-time validation support for all new 3675predefined names and control methods (31 total). ACPICA BZ 769. 3676 3677---------------------------------------- 367821 May 2009. Summary of changes for version 20090521: 3679 36801) ACPI CA Core Subsystem: 3681 3682Disabled the preservation of the SCI enable bit in the PM1 control 3683register. 3684The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to 3685be 3686a "preserved" bit - "OSPM always preserves this bit position", section 36874.7.3.2.1. However, some machines fail if this bit is in fact preserved 3688because the bit needs to be explicitly set by the OS as a workaround. No 3689machines fail if the bit is not preserved. Therefore, ACPICA no longer 3690attempts to preserve this bit. 3691 3692Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 3693incorrectly formed _PRT package could cause a fault. Added validation to 3694ensure that each package element is actually a sub-package. 3695 3696Implemented a new interface to install or override a single control 3697method, 3698AcpiInstallMethod. This interface is useful when debugging in order to 3699repair 3700an existing method or to install a missing method without having to 3701override 3702the entire ACPI table. See the ACPICA Programmer Reference for use and 3703examples. Lin Ming, Bob Moore. 3704 3705Fixed several reference count issues with the DdbHandle object that is 3706created from a Load or LoadTable operator. Prevent premature deletion of 3707the 3708object. Also, mark the object as invalid once the table has been unloaded. 3709This is needed because the handle itself may not be deleted after the 3710table 3711unload, depending on whether it has been stored in a named object by the 3712caller. Lin Ming. 3713 3714Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 3715mutexes of the same sync level are acquired but then not released in 3716strict 3717opposite order, the internally maintained Current Sync Level becomes 3718confused 3719and can cause subsequent execution errors. ACPICA BZ 471. 3720 3721Changed the allowable release order for ASL mutex objects. The ACPI 4.0 3722specification has been changed to make the SyncLevel for mutex objects 3723more 3724useful. When releasing a mutex, the SyncLevel of the mutex must now be the 3725same as the current sync level. This makes more sense than the previous 3726rule 3727(SyncLevel less than or equal). This change updates the code to match the 3728specification. 3729 3730Fixed a problem with the local version of the AcpiOsPurgeCache function. 3731The 3732(local) cache must be locked during all cache object deletions. Andrew 3733Baumann. 3734 3735Updated the Load operator to use operation region interfaces. This 3736replaces 3737direct memory mapping with region access calls. Now, all region accesses 3738go 3739through the installed region handler as they should. 3740 3741Simplified and optimized the NsGetNextNode function. Reduced parameter 3742count 3743and reduced code for this frequently used function. 3744 3745Example Code and Data Size: These are the sizes for the OS-independent 3746acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3747debug version of the code includes the debug output trace mechanism and 3748has a 3749much larger code and data size. 3750 3751 Previous Release: 3752 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 3753 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 3754 Current Release: 3755 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 3756 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 3757 37582) iASL Compiler/Disassembler and Tools: 3759 3760Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 3761problems 3762with sub-table disassembly and handling invalid sub-tables. Attempt 3763recovery 3764after an invalid sub-table ID. 3765 3766---------------------------------------- 376722 April 2009. Summary of changes for version 20090422: 3768 37691) ACPI CA Core Subsystem: 3770 3771Fixed a compatibility issue with the recently released I/O port protection 3772mechanism. For windows compatibility, 1) On a port protection violation, 3773simply ignore the request and do not return an exception (allow the 3774control 3775method to continue execution.) 2) If only part of the request overlaps a 3776protected port, read/write the individual ports that are not protected. 3777Linux 3778BZ 13036. Lin Ming 3779 3780Enhanced the execution of the ASL/AML BreakPoint operator so that it 3781actually 3782breaks into the AML debugger if the debugger is present. This matches the 3783ACPI-defined behavior. 3784 3785Fixed several possible warnings related to the use of the configurable 3786ACPI_THREAD_ID. This type can now be configured as either an integer or a 3787pointer with no warnings. Also fixes several warnings in printf-like 3788statements for the 64-bit build when the type is configured as a pointer. 3789ACPICA BZ 766, 767. 3790 3791Fixed a number of possible warnings when compiling with gcc 4+ (depending 3792on 3793warning options.) Examples include printf formats, aliasing, unused 3794globals, 3795missing prototypes, missing switch default statements, use of non-ANSI 3796library functions, use of non-ANSI constructs. See generate/unix/Makefile 3797for 3798a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 3799 3800Example Code and Data Size: These are the sizes for the OS-independent 3801acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 3802debug version of the code includes the debug output trace mechanism and 3803has a 3804much larger code and data size. 3805 3806 Previous Release: 3807 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 3808 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 3809 Current Release: 3810 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 3811 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 3812 38132) iASL Compiler/Disassembler and Tools: 3814 3815iASL: Fixed a generation warning from Bison 2.3 and fixed several warnings 3816on 3817the 64-bit build. 3818 3819iASL: Fixed a problem where the Unix/Linux versions of the compiler could 3820not 3821correctly digest Windows/DOS formatted files (with CR/LF). 3822 3823iASL: Added a new option for "quiet mode" (-va) that produces only the 3824compilation summary, not individual errors and warnings. Useful for large 3825batch compilations. 3826 3827AcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 3828timeout that can be used to detect hang conditions during execution of AML 3829code (includes both internal semaphores and AML-defined mutexes and 3830events.) 3831 3832Added new makefiles for the generation of acpica in a generic unix-like 3833environment. These makefiles are intended to generate the acpica tools and 3834utilities from the original acpica git source tree structure. 3835 3836Test Suites: Updated and cleaned up the documentation files. Updated the 3837copyrights to 2009, affecting all source files. Use the new version of 3838iASL 3839with quiet mode. Increased the number of available semaphores in the 3840Windows 3841OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 3842added 3843an alternate implementation of the semaphore timeout to allow aslts to 3844execute fully on Cygwin. 3845 3846---------------------------------------- 384720 March 2009. Summary of changes for version 20090320: 3848 38491) ACPI CA Core Subsystem: 3850 3851Fixed a possible race condition between AcpiWalkNamespace and dynamic 3852table 3853unloads. Added a reader/writer locking mechanism to allow multiple 3854concurrent 3855namespace walks (readers), but block a dynamic table unload until it can 3856gain 3857exclusive write access to the namespace. This fixes a problem where a 3858table 3859unload could (possibly catastrophically) delete the portion of the 3860namespace 3861that is currently being examined by a walk. Adds a new file, utlock.c, 3862that 3863implements the reader/writer lock mechanism. ACPICA BZ 749. 3864 3865Fixed a regression introduced in version 20090220 where a change to the 3866FADT 3867handling could cause the ACPICA subsystem to access non-existent I/O 3868ports. 3869 3870Modified the handling of FADT register and table (FACS/DSDT) addresses. 3871The 3872FADT can contain both 32-bit and 64-bit versions of these addresses. 3873Previously, the 64-bit versions were favored, meaning that if both 32 and 387464 3875versions were valid, but not equal, the 64-bit version was used. This was 3876found to cause some machines to fail. Now, in this case, the 32-bit 3877version 3878is used instead. This now matches the Windows behavior. 3879 3880Implemented a new mechanism to protect certain I/O ports. Provides 3881Microsoft 3882compatibility and protects the standard PC I/O ports from access via AML 3883code. Adds a new file, hwvalid.c 3884 3885Fixed a possible extraneous warning message from the FADT support. The 3886message warns of a 32/64 length mismatch between the legacy and GAS 3887definitions for a register. 3888 3889Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 3890is 3891made obsolete by the port protection mechanism above. It was previously 3892used 3893to validate the entire address range of an operation region, which could 3894be 3895incorrect if the range included illegal ports, but fields within the 3896operation region did not actually access those ports. Validation is now 3897performed on a per-field basis instead of the entire region. 3898 3899Modified the handling of the PM1 Status Register ignored bit (bit 11.) 3900Ignored bits must be "preserved" according to the ACPI spec. Usually, this 3901means a read/modify/write when writing to the register. However, for 3902status 3903registers, writing a one means clear the event. Writing a zero means 3904preserve 3905the event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 3906and the ACPICA code now simply always writes a zero to the ignored bit. 3907 3908Modified the handling of ignored bits for the PM1 A/B Control Registers. 3909As 3910per the ACPI specification, for the control registers, preserve 3911(read/modify/write) all bits that are defined as either reserved or 3912ignored. 3913 3914Updated the handling of write-only bits in the PM1 A/B Control Registers. 3915When reading the register, zero the write-only bits as per the ACPI spec. 3916ACPICA BZ 443. Lin Ming. 3917 3918Removed "Linux" from the list of supported _OSI strings. Linux no longer 3919wants to reply true to this request. The Windows strings are the only 3920paths 3921through the AML that are tested and known to work properly. 3922 3923 Previous Release: 3924 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 3925 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 3926 Current Release: 3927 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 3928 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 3929 39302) iASL Compiler/Disassembler and Tools: 3931 3932Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 3933and 3934aetables.c 3935 3936---------------------------------------- 393720 February 2009. Summary of changes for version 20090220: 3938 39391) ACPI CA Core Subsystem: 3940 3941Optimized the ACPI register locking. Removed locking for reads from the 3942ACPI 3943bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 3944not required when reading the single-bit registers. The 3945AcpiGetRegisterUnlocked function is no longer needed and has been removed. 3946This will improve performance for reads on these registers. ACPICA BZ 760. 3947 3948Fixed the parameter validation for AcpiRead/Write. Now return 3949AE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS 3950if 3951the register has an address of zero. Previously, these cases simply 3952returned 3953AE_OK. For optional registers such as PM1B status/enable/control, the 3954caller 3955should check for a valid register address before calling. ACPICA BZ 748. 3956 3957Renamed the external ACPI bit register access functions. Renamed 3958AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 3959functions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 3960Also, restructured the code for these functions by simplifying the code 3961path 3962and condensing duplicate code to reduce code size. 3963 3964Added new functions to transparently handle the possibly split PM1 A/B 3965registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 3966now handle the split registers for PM1 Status, Enable, and Control. ACPICA 3967BZ 3968746. 3969 3970Added a function to handle the PM1 control registers, 3971AcpiHwWritePm1Control. 3972This function writes both of the PM1 control registers (A/B). These 3973registers 3974are different than the PM1 A/B status and enable registers in that 3975different 3976values can be written to the A/B registers. Most notably, the SLP_TYP bits 3977can be different, as per the values returned from the _Sx predefined 3978methods. 3979 3980Removed an extra register write within AcpiHwClearAcpiStatus. This 3981function 3982was writing an optional PM1B status register twice. The existing call to 3983the 3984low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 3985A/B 3986register. ACPICA BZ 751. 3987 3988Split out the PM1 Status registers from the FADT. Added new globals for 3989these 3990registers (A/B), similar to the way the PM1 Enable registers are handled. 3991Instead of overloading the FADT Event Register blocks. This makes the code 3992clearer and less prone to error. 3993 3994Fixed the warning message for when the platform contains too many ACPI 3995tables 3996for the default size of the global root table data structure. The 3997calculation 3998for the truncation value was incorrect. 3999 4000Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 4001obsolete macro, since it is now a simple reference to ->common.type. There 4002were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 4003 4004Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 4005TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 4006simply SLEEP_TYPE. ACPICA BZ 754. 4007 4008Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 4009function is only needed on 64-bit host operating systems and is thus not 4010included for 32-bit hosts. 4011 4012Debug output: print the input and result for invocations of the _OSI 4013reserved 4014control method via the ACPI_LV_INFO debug level. Also, reduced some of the 4015verbosity of this debug level. Len Brown. 4016 4017Example Code and Data Size: These are the sizes for the OS-independent 4018acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4019debug version of the code includes the debug output trace mechanism and 4020has a 4021much larger code and data size. 4022 4023 Previous Release: 4024 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 4025 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 4026 Current Release: 4027 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 4028 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 4029 40302) iASL Compiler/Disassembler and Tools: 4031 4032Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 4033various legal performance profiles. 4034 4035---------------------------------------- 403623 January 2009. Summary of changes for version 20090123: 4037 40381) ACPI CA Core Subsystem: 4039 4040Added the 2009 copyright to all module headers and signons. This affects 4041virtually every file in the ACPICA core subsystem, the iASL compiler, and 4042the tools/utilities. 4043 4044Implemented a change to allow the host to override any ACPI table, 4045including 4046dynamically loaded tables. Previously, only the DSDT could be replaced by 4047the 4048host. With this change, the AcpiOsTableOverride interface is called for 4049each 4050table found in the RSDT/XSDT during ACPICA initialization, and also 4051whenever 4052a table is dynamically loaded via the AML Load operator. 4053 4054Updated FADT flag definitions, especially the Boot Architecture flags. 4055 4056Debugger: For the Find command, automatically pad the input ACPI name with 4057underscores if the name is shorter than 4 characters. This enables a match 4058with the actual namespace entry which is itself padded with underscores. 4059 4060Example Code and Data Size: These are the sizes for the OS-independent 4061acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4062debug version of the code includes the debug output trace mechanism and 4063has a 4064much larger code and data size. 4065 4066 Previous Release: 4067 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 4068 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 4069 Current Release: 4070 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 4071 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 4072 40732) iASL Compiler/Disassembler and Tools: 4074 4075Fix build error under Bison-2.4. 4076 4077Dissasembler: Enhanced FADT support. Added decoding of the Boot 4078Architecture 4079flags. Now decode all flags, regardless of the FADT version. Flag output 4080includes the FADT version which first defined each flag. 4081 4082The iASL -g option now dumps the RSDT to a file (in addition to the FADT 4083and 4084DSDT). Windows only. 4085 4086---------------------------------------- 408704 December 2008. Summary of changes for version 20081204: 4088 40891) ACPI CA Core Subsystem: 4090 4091The ACPICA Programmer Reference has been completely updated and revamped 4092for 4093this release. This includes updates to the external interfaces, OSL 4094interfaces, the overview sections, and the debugger reference. 4095 4096Several new ACPICA interfaces have been implemented and documented in the 4097programmer reference: 4098AcpiReset - Writes the reset value to the FADT-defined reset register. 4099AcpiDisableAllGpes - Disable all available GPEs. 4100AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 4101AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 4102AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 4103AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 4104AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 4105 4106Most of the public ACPI hardware-related interfaces have been moved to a 4107new 4108file, components/hardware/hwxface.c 4109 4110Enhanced the FADT parsing and low-level ACPI register access: The ACPI 4111register lengths within the FADT are now used, and the low level ACPI 4112register access no longer hardcodes the ACPI register lengths. Given that 4113there may be some risk in actually trusting the FADT register lengths, a 4114run- 4115time option was added to fall back to the default hardcoded lengths if the 4116FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 4117option is set to true for now, and a warning is issued if a suspicious 4118FADT 4119register length is overridden with the default value. 4120 4121Fixed a reference count issue in NsRepairObject. This problem was 4122introduced 4123in version 20081031 as part of a fix to repair Buffer objects within 4124Packages. Lin Ming. 4125 4126Added semaphore support to the Linux/Unix application OS-services layer 4127(OSL). ACPICA BZ 448. Lin Ming. 4128 4129Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 4130will 4131be implemented in the OSL, or will binary semaphores be used instead. 4132 4133Example Code and Data Size: These are the sizes for the OS-independent 4134acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4135debug version of the code includes the debug output trace mechanism and 4136has a 4137much larger code and data size. 4138 4139 Previous Release: 4140 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 4141 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 4142 Current Release: 4143 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 4144 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 4145 41462) iASL Compiler/Disassembler and Tools: 4147 4148iASL: Completed the '-e' option to include additional ACPI tables in order 4149to 4150aid with disassembly and External statement generation. ACPICA BZ 742. Lin 4151Ming. 4152 4153iASL: Removed the "named object in while loop" error. The compiler cannot 4154determine how many times a loop will execute. ACPICA BZ 730. 4155 4156Disassembler: Implemented support for FADT revision 2 (MS extension). 4157ACPICA 4158BZ 743. 4159 4160Disassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 4161 4162---------------------------------------- 416331 October 2008. Summary of changes for version 20081031: 4164 41651) ACPI CA Core Subsystem: 4166 4167Restructured the ACPICA header files into public/private. acpi.h now 4168includes 4169only the "public" acpica headers. All other acpica headers are "private" 4170and 4171should not be included by acpica users. One new file, accommon.h is used 4172to 4173include the commonly used private headers for acpica code generation. 4174Future 4175plans include moving all private headers to a new subdirectory. 4176 4177Implemented an automatic Buffer->String return value conversion for 4178predefined ACPI methods. For these methods (such as _BIF), added automatic 4179conversion for return objects that are required to be a String, but a 4180Buffer 4181was found instead. This can happen when reading string battery data from 4182an 4183operation region, because it used to be difficult to convert the data from 4184buffer to string from within the ASL. Ensures that the host OS is provided 4185with a valid null-terminated string. Linux BZ 11822. 4186 4187Updated the FACS waking vector interfaces. Split 4188AcpiSetFirmwareWakingVector 4189into two: one for the 32-bit vector, another for the 64-bit vector. This 4190is 4191required because the host OS must setup the wake much differently for each 4192vector (real vs. protected mode, etc.) and the interface itself should not 4193be 4194deciding which vector to use. Also, eliminated the GetFirmwareWakingVector 4195interface, as it served no purpose (only the firmware reads the vector, OS 4196only writes the vector.) ACPICA BZ 731. 4197 4198Implemented a mechanism to escape infinite AML While() loops. Added a loop 4199counter to force exit from AML While loops if the count becomes too large. 4200This can occur in poorly written AML when the hardware does not respond 4201within a while loop and the loop does not implement a timeout. The maximum 4202loop count is configurable. A new exception code is returned when a loop 4203is 4204broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 4205 4206Optimized the execution of AML While loops. Previously, a control state 4207object was allocated and freed for each execution of the loop. The 4208optimization is to simply reuse the control state for each iteration. This 4209speeds up the raw loop execution time by about 5%. 4210 4211Enhanced the implicit return mechanism. For Windows compatibility, return 4212an 4213implicit integer of value zero for methods that contain no executable 4214code. 4215Such methods are seen in the field as stubs (presumably), and can cause 4216drivers to fail if they expect a return value. Lin Ming. 4217 4218Allow multiple backslashes as root prefixes in namepaths. In a fully 4219qualified namepath, allow multiple backslash prefixes. This can happen 4220(and 4221is seen in the field) because of the use of a double-backslash in strings 4222(since backslash is the escape character) causing confusion. ACPICA BZ 739 4223Lin Ming. 4224 4225Emit a warning if two different FACS or DSDT tables are discovered in the 4226FADT. Checks if there are two valid but different addresses for the FACS 4227and 4228DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 4229 4230Consolidated the method argument count validation code. Merged the code 4231that 4232validates control method argument counts into the predefined validation 4233module. Eliminates possible multiple warnings for incorrect argument 4234counts. 4235 4236Implemented ACPICA example code. Includes code for ACPICA initialization, 4237handler installation, and calling a control method. Available at 4238source/tools/examples. 4239 4240Added a global pointer for FACS table to simplify internal FACS access. 4241Use 4242the global pointer instead of using AcpiGetTableByIndex for each FACS 4243access. 4244This simplifies the code for the Global Lock and the Firmware Waking 4245Vector(s). 4246 4247Example Code and Data Size: These are the sizes for the OS-independent 4248acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4249debug version of the code includes the debug output trace mechanism and 4250has a 4251much larger code and data size. 4252 4253 Previous Release: 4254 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 4255 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 4256 Current Release: 4257 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 4258 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 4259 42602) iASL Compiler/Disassembler and Tools: 4261 4262iASL: Improved disassembly of external method calls. Added the -e option 4263to 4264allow the inclusion of additional ACPI tables to help with the disassembly 4265of 4266method invocations and the generation of external declarations during the 4267disassembly. Certain external method invocations cannot be disassembled 4268properly without the actual declaration of the method. Use the -e option 4269to 4270include the table where the external method(s) are actually declared. Most 4271useful for disassembling SSDTs that make method calls back to the master 4272DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 4273-d 4274-e dsdt.aml ssdt1.aml 4275 4276iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 4277problem where the use of an alias within a namepath would result in a not 4278found error or cause the compiler to fault. Also now allows forward 4279references from the Alias operator itself. ACPICA BZ 738. 4280 4281---------------------------------------- 428226 September 2008. Summary of changes for version 20080926: 4283 42841) ACPI CA Core Subsystem: 4285 4286Designed and implemented a mechanism to validate predefined ACPI methods 4287and 4288objects. This code validates the predefined ACPI objects (objects whose 4289names 4290start with underscore) that appear in the namespace, at the time they are 4291evaluated. The argument count and the type of the returned object are 4292validated against the ACPI specification. The purpose of this validation 4293is 4294to detect problems with the BIOS-implemented predefined ACPI objects 4295before 4296the results are returned to the ACPI-related drivers. Future enhancements 4297may 4298include actual repair of incorrect return objects where possible. Two new 4299files are nspredef.c and acpredef.h. 4300 4301Fixed a fault in the AML parser if a memory allocation fails during the Op 4302completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 4303 4304Fixed an issue with implicit return compatibility. This change improves 4305the 4306implicit return mechanism to be more compatible with the MS interpreter. 4307Lin 4308Ming, ACPICA BZ 349. 4309 4310Implemented support for zero-length buffer-to-string conversions. Allow 4311zero 4312length strings during interpreter buffer-to-string conversions. For 4313example, 4314during the ToDecimalString and ToHexString operators, as well as implicit 4315conversions. Fiodor Suietov, ACPICA BZ 585. 4316 4317Fixed two possible memory leaks in the error exit paths of 4318AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 4319similar in that they use a stack of state objects in order to eliminate 4320recursion. The stack must be fully unwound and deallocated if an error 4321occurs. Lin Ming. ACPICA BZ 383. 4322 4323Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 4324global 4325ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 4326Moore ACPICA BZ 442. 4327 4328Removed the obsolete version number in module headers. Removed the 4329"$Revision" number that appeared in each module header. This version 4330number 4331was useful under SourceSafe and CVS, but has no meaning under git. It is 4332not 4333only incorrect, it could also be misleading. 4334 4335Example Code and Data Size: These are the sizes for the OS-independent 4336acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4337debug version of the code includes the debug output trace mechanism and 4338has a 4339much larger code and data size. 4340 4341 Previous Release: 4342 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 4343 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 4344 Current Release: 4345 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 4346 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 4347 4348---------------------------------------- 434929 August 2008. Summary of changes for version 20080829: 4350 43511) ACPI CA Core Subsystem: 4352 4353Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 4354Reference. Changes include the elimination of cheating on the Object field 4355for the DdbHandle subtype, addition of a reference class field to 4356differentiate the various reference types (instead of an AML opcode), and 4357the 4358cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 4359 4360Reduce an error to a warning for an incorrect method argument count. 4361Previously aborted with an error if too few arguments were passed to a 4362control method via the external ACPICA interface. Now issue a warning 4363instead 4364and continue. Handles the case where the method inadvertently declares too 4365many arguments, but does not actually use the extra ones. Applies mainly 4366to 4367the predefined methods. Lin Ming. Linux BZ 11032. 4368 4369Disallow the evaluation of named object types with no intrinsic value. 4370Return 4371AE_TYPE for objects that have no value and therefore evaluation is 4372undefined: 4373Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 4374of 4375these types were allowed, but an exception would be generated at some 4376point 4377during the evaluation. Now, the error is generated up front. 4378 4379Fixed a possible memory leak in the AcpiNsGetExternalPathname function 4380(nsnames.c). Fixes a leak in the error exit path. 4381 4382Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 4383debug 4384levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 4385ACPI_EXCEPTION 4386interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 4387ACPI_LV_EVENTS. 4388 4389Removed obsolete and/or unused exception codes from the acexcep.h header. 4390There is the possibility that certain device drivers may be affected if 4391they 4392use any of these exceptions. 4393 4394The ACPICA documentation has been added to the public git source tree, 4395under 4396acpica/documents. Included are the ACPICA programmer reference, the iASL 4397compiler reference, and the changes.txt release logfile. 4398 4399Example Code and Data Size: These are the sizes for the OS-independent 4400acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4401debug version of the code includes the debug output trace mechanism and 4402has a 4403much larger code and data size. 4404 4405 Previous Release: 4406 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 4407 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 4408 Current Release: 4409 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 4410 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 4411 44122) iASL Compiler/Disassembler and Tools: 4413 4414Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 4415defines _SCP with 3 arguments. Previous versions defined it with only 1 4416argument. iASL now allows both definitions. 4417 4418iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 4419length subtables when disassembling ACPI tables. Also fixed a couple of 4420errors where a full 16-bit table type field was not extracted from the 4421input 4422properly. 4423 4424acpisrc: Improve comment counting mechanism for generating source code 4425statistics. Count first and last lines of multi-line comments as 4426whitespace, 4427not comment lines. Handle Linux legal header in addition to standard 4428acpica 4429header. 4430 4431---------------------------------------- 4432 443329 July 2008. Summary of changes for version 20080729: 4434 44351) ACPI CA Core Subsystem: 4436 4437Fix a possible deadlock in the GPE dispatch. Remove call to 4438AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 4439attempt 4440to acquire the GPE lock but can deadlock since the GPE lock is already 4441held 4442at dispatch time. This code was introduced in version 20060831 as a 4443response 4444to Linux BZ 6881 and has since been removed from Linux. 4445 4446Add a function to dereference returned reference objects. Examines the 4447return 4448object from a call to AcpiEvaluateObject. Any Index or RefOf references 4449are 4450automatically dereferenced in an attempt to return something useful (these 4451reference types cannot be converted into an external ACPI_OBJECT.) 4452Provides 4453MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 4454 4455x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 4456subtables for the MADT and one new subtable for the SRAT. Includes 4457disassembler and AcpiSrc support. Data from the Intel 64 Architecture 4458x2APIC 4459Specification, June 2008. 4460 4461Additional error checking for pathname utilities. Add error check after 4462all 4463calls to AcpiNsGetPathnameLength. Add status return from 4464AcpiNsBuildExternalPath and check after all calls. Add parameter 4465validation 4466to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 4467 4468Return status from the global init function AcpiUtGlobalInitialize. This 4469is 4470used by both the kernel subsystem and the utilities such as iASL compiler. 4471The function could possibly fail when the caches are initialized. Yang Yi. 4472 4473Add a function to decode reference object types to strings. Created for 4474improved error messages. 4475 4476Improve object conversion error messages. Better error messages during 4477object 4478conversion from internal to the external ACPI_OBJECT. Used for external 4479calls 4480to AcpiEvaluateObject. 4481 4482Example Code and Data Size: These are the sizes for the OS-independent 4483acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4484debug version of the code includes the debug output trace mechanism and 4485has a 4486much larger code and data size. 4487 4488 Previous Release: 4489 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 4490 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 4491 Current Release: 4492 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 4493 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 4494 44952) iASL Compiler/Disassembler and Tools: 4496 4497Debugger: fix a possible hang when evaluating non-methods. Fixes a problem 4498introduced in version 20080701. If the object being evaluated (via execute 4499command) is not a method, the debugger can hang while trying to obtain 4500non- 4501existent parameters. 4502 4503iASL: relax error for using reserved "_T_x" identifiers. These names can 4504appear in a disassembled ASL file if they were emitted by the original 4505compiler. Instead of issuing an error or warning and forcing the user to 4506manually change these names, issue a remark instead. 4507 4508iASL: error if named object created in while loop. Emit an error if any 4509named 4510object is created within a While loop. If allowed, this code will generate 4511a 4512run-time error on the second iteration of the loop when an attempt is made 4513to 4514create the same named object twice. ACPICA bugzilla 730. 4515 4516iASL: Support absolute pathnames for include files. Add support for 4517absolute 4518pathnames within the Include operator. previously, only relative pathnames 4519were supported. 4520 4521iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 4522Descriptor. 4523The ACPI spec requires one interrupt minimum. BZ 423 4524 4525iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 4526Handles the case for the Interrupt Resource Descriptor where 4527the ResourceSource argument is omitted but ResourceSourceIndex 4528is present. Now leave room for the Index. BZ 426 4529 4530iASL: Prevent error message if CondRefOf target does not exist. Fixes 4531cases 4532where an error message is emitted if the target does not exist. BZ 516 4533 4534iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 4535(get ACPI tables on Windows). This was apparently broken in version 453620070919. 4537 4538AcpiXtract: Handle EOF while extracting data. Correctly handle the case 4539where 4540the EOF happens immediately after the last table in the input file. Print 4541completion message. Previously, no message was displayed in this case. 4542 4543---------------------------------------- 454401 July 2008. Summary of changes for version 20080701: 4545 45460) Git source tree / acpica.org 4547 4548Fixed a problem where a git-clone from http would not transfer the entire 4549source tree. 4550 45511) ACPI CA Core Subsystem: 4552 4553Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 4554enable bit. Now performs a read-change-write of the enable register 4555instead 4556of simply writing out the cached enable mask. This will prevent 4557inadvertent 4558enabling of GPEs if a rogue GPE is received during initialization (before 4559GPE 4560handlers are installed.) 4561 4562Implemented a copy for dynamically loaded tables. Previously, dynamically 4563loaded tables were simply mapped - but on some machines this memory is 4564corrupted after suspend. Now copy the table to a local buffer. For the 4565OpRegion case, added checksum verify. Use the table length from the table 4566header, not the region length. For the Buffer case, use the table length 4567also. Dennis Noordsij, Bob Moore. BZ 10734 4568 4569Fixed a problem where the same ACPI table could not be dynamically loaded 4570and 4571unloaded more than once. Without this change, a table cannot be loaded 4572again 4573once it has been loaded/unloaded one time. The current mechanism does not 4574unregister a table upon an unload. During a load, if the same table is 4575found, 4576this no longer returns an exception. BZ 722 4577 4578Fixed a problem where the wrong descriptor length was calculated for the 4579EndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 4580are calculated as 12 bytes long, but the actual length in the internal 4581descriptor is 16 because of the round-up to 8 on the 64-bit build. 4582Reported 4583by Linn Crosetto. BZ 728 4584 4585Fixed a possible memory leak in the Unload operator. The DdbHandle 4586returned 4587by Load() did not have its reference count decremented during unload, 4588leading 4589to a memory leak. Lin Ming. BZ 727 4590 4591Fixed a possible memory leak when deleting thermal/processor objects. Any 4592associated notify handlers (and objects) were not being deleted. Fiodor 4593Suietov. BZ 506 4594 4595Fixed the ordering of the ASCII names in the global mutex table to match 4596the 4597actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 4598only. 4599Vegard Nossum. BZ 726 4600 4601Enhanced the AcpiGetObjectInfo interface to return the number of required 4602arguments if the object is a control method. Added this call to the 4603debugger 4604so the proper number of default arguments are passed to a method. This 4605prevents a warning when executing methods from AcpiExec. 4606 4607Added a check for an invalid handle in AcpiGetObjectInfo. Return 4608AE_BAD_PARAMETER if input handle is invalid. BZ 474 4609 4610Fixed an extraneous warning from exconfig.c on the 64-bit build. 4611 4612Example Code and Data Size: These are the sizes for the OS-independent 4613acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4614debug version of the code includes the debug output trace mechanism and 4615has a 4616much larger code and data size. 4617 4618 Previous Release: 4619 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 4620 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 4621 Current Release: 4622 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 4623 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 4624 46252) iASL Compiler/Disassembler and Tools: 4626 4627iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 4628resource descriptor names. 4629 4630iASL: Detect invalid ASCII characters in input (windows version). Removed 4631the 4632"-CF" flag from the flex compile, enables correct detection of non-ASCII 4633characters in the input. BZ 441 4634 4635iASL: Eliminate warning when result of LoadTable is not used. Eliminate 4636the 4637"result of operation not used" warning when the DDB handle returned from 4638LoadTable is not used. The warning is not needed. BZ 590 4639 4640AcpiExec: Add support for dynamic table load/unload. Now calls _CFG method 4641to 4642pass address of table to the AML. Added option to disable OpRegion 4643simulation 4644to allow creation of an OpRegion with a real address that was passed to 4645_CFG. 4646All of this allows testing of the Load and Unload operators from AcpiExec. 4647 4648Debugger: update tables command for unloaded tables. Handle unloaded 4649tables 4650and use the standard table header output routine. 4651 4652---------------------------------------- 465309 June 2008. Summary of changes for version 20080609: 4654 46551) ACPI CA Core Subsystem: 4656 4657Implemented a workaround for reversed _PRT entries. A significant number 4658of 4659BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 4660change dynamically detects and repairs this problem. Provides 4661compatibility 4662with MS ACPI. BZ 6859 4663 4664Simplified the internal ACPI hardware interfaces to eliminate the locking 4665flag parameter from Register Read/Write. Added a new external interface, 4666AcpiGetRegisterUnlocked. 4667 4668Fixed a problem where the invocation of a GPE control method could hang. 4669This 4670was a regression introduced in 20080514. The new method argument count 4671validation mechanism can enter an infinite loop when a GPE method is 4672dispatched. Problem fixed by removing the obsolete code that passed GPE 4673block 4674information to the notify handler via the control method parameter 4675pointer. 4676 4677Fixed a problem where the _SST execution status was incorrectly returned 4678to 4679the caller of AcpiEnterSleepStatePrep. This was a regression introduced in 468020080514. _SST is optional and a NOT_FOUND exception should never be 4681returned. BZ 716 4682 4683Fixed a problem where a deleted object could be accessed from within the 4684AML 4685parser. This was a regression introduced in version 20080123 as a fix for 4686the 4687Unload operator. Lin Ming. BZ 10669 4688 4689Cleaned up the debug operand dump mechanism. Eliminated unnecessary 4690operands 4691and eliminated the use of a negative index in a loop. Operands are now 4692displayed in the correct order, not backwards. This also fixes a 4693regression 4694introduced in 20080514 on 64-bit systems where the elimination of 4695ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 4696715 4697 4698Fixed a possible memory leak in EvPciConfigRegionSetup where the error 4699exit 4700path did not delete a locally allocated structure. 4701 4702Updated definitions for the DMAR and SRAT tables to synchronize with the 4703current specifications. Includes disassembler support. 4704 4705Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 4706loop termination value was used. Loop terminated on iteration early, 4707missing 4708one mutex. Linn Crosetto 4709 4710Example Code and Data Size: These are the sizes for the OS-independent 4711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4712debug version of the code includes the debug output trace mechanism and 4713has a 4714much larger code and data size. 4715 4716 Previous Release: 4717 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 4718 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 4719 Current Release: 4720 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 4721 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 4722 47232) iASL Compiler/Disassembler and Tools: 4724 4725Disassembler: Implemented support for EisaId() within _CID objects. Now 4726disassemble integer _CID objects back to EisaId invocations, including 4727multiple integers within _CID packages. Includes single-step support for 4728debugger also. 4729 4730Disassembler: Added support for DMAR and SRAT table definition changes. 4731 4732---------------------------------------- 473314 May 2008. Summary of changes for version 20080514: 4734 47351) ACPI CA Core Subsystem: 4736 4737Fixed a problem where GPEs were enabled too early during the ACPICA 4738initialization. This could lead to "handler not installed" errors on some 4739machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 4740This 4741ensures that all operation regions and devices throughout the namespace 4742have 4743been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 4744 4745Implemented a change to the enter sleep code. Moved execution of the _GTS 4746method to just before setting sleep enable bit. The execution was moved 4747from 4748AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 4749immediately before the SLP_EN bit is set, as per the ACPI specification. 4750Luming Yu, BZ 1653. 4751 4752Implemented a fix to disable unknown GPEs (2nd version). Now always 4753disable 4754the GPE, even if ACPICA thinks that that it is already disabled. It is 4755possible that the AML or some other code has enabled the GPE unbeknownst 4756to 4757the ACPICA code. 4758 4759Fixed a problem with the Field operator where zero-length fields would 4760return 4761an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 4762ASL 4763field declarations in Field(), BankField(), and IndexField(). BZ 10606. 4764 4765Implemented a fix for the Load operator, now load the table at the 4766namespace 4767root. This reverts a change introduced in version 20071019. The table is 4768now 4769loaded at the namespace root even though this goes against the ACPI 4770specification. This provides compatibility with other ACPI 4771implementations. 4772The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 4773Ming. 4774 4775Fixed a problem where ACPICA would not Load() tables with unusual 4776signatures. 4777Now ignore ACPI table signature for Load() operator. Only "SSDT" is 4778acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 4779Therefore, signature validation is worthless. Apparently MS ACPI accepts 4780such 4781signatures, ACPICA must be compatible. BZ 10454. 4782 4783Fixed a possible negative array index in AcpiUtValidateException. Added 4784NULL 4785fields to the exception string arrays to eliminate a -1 subtraction on the 4786SubStatus field. 4787 4788Updated the debug tracking macros to reduce overall code and data size. 4789Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 4790instead of pointers to static strings. Jan Beulich and Bob Moore. 4791 4792Implemented argument count checking in control method invocation via 4793AcpiEvaluateObject. Now emit an error if too few arguments, warning if too 4794many. This applies only to extern programmatic control method execution, 4795not 4796method-to-method calls within the AML. Lin Ming. 4797 4798Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 4799no 4800longer needed, especially with the removal of 16-bit support. It was 4801replaced 4802mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit 4803on 480432/64-bit platforms is required. 4805 4806Added the C const qualifier for appropriate string constants -- mostly 4807MODULE_NAME and printf format strings. Jan Beulich. 4808 4809Example Code and Data Size: These are the sizes for the OS-independent 4810acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4811debug version of the code includes the debug output trace mechanism and 4812has a 4813much larger code and data size. 4814 4815 Previous Release: 4816 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 4817 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 4818 Current Release: 4819 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 4820 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 4821 48222) iASL Compiler/Disassembler and Tools: 4823 4824Implemented ACPI table revision ID validation in the disassembler. Zero is 4825always invalid. For DSDTs, the ID controls the interpreter integer width. 48261 4827means 32-bit and this is unusual. 2 or greater is 64-bit. 4828 4829---------------------------------------- 483021 March 2008. Summary of changes for version 20080321: 4831 48321) ACPI CA Core Subsystem: 4833 4834Implemented an additional change to the GPE support in order to suppress 4835spurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 4836disable incoming GPEs that are neither enabled nor disabled -- meaning 4837that 4838the GPE is unknown to the system. This should prevent future interrupt 4839floods 4840from that GPE. BZ 6217 (Zhang Rui) 4841 4842Fixed a problem where NULL package elements were not returned to the 4843AcpiEvaluateObject interface correctly. The element was simply ignored 4844instead of returning a NULL ACPI_OBJECT package element, potentially 4845causing 4846a buffer overflow and/or confusing the caller who expected a fixed number 4847of 4848elements. BZ 10132 (Lin Ming, Bob Moore) 4849 4850Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 4851Dword, 4852Qword), Field, BankField, and IndexField operators when invoked from 4853inside 4854an executing control method. In this case, these operators created 4855namespace 4856nodes that were incorrectly left marked as permanent nodes instead of 4857temporary nodes. This could cause a problem if there is race condition 4858between an exiting control method and a running namespace walk. (Reported 4859by 4860Linn Crosetto) 4861 4862Fixed a problem where the CreateField and CreateXXXField operators would 4863incorrectly allow duplicate names (the name of the field) with no 4864exception 4865generated. 4866 4867Implemented several changes for Notify handling. Added support for new 4868Notify 4869values (ACPI 2.0+) and improved the Notify debug output. Notify on 4870PowerResource objects is no longer allowed, as per the ACPI specification. 4871(Bob Moore, Zhang Rui) 4872 4873All Reference Objects returned via the AcpiEvaluateObject interface are 4874now 4875marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 4876for 4877NULL objects - either NULL package elements or unresolved named 4878references. 4879 4880Fixed a problem where an extraneous debug message was produced for package 4881objects (when debugging enabled). The message "Package List length larger 4882than NumElements count" is now produced in the correct case, and is now an 4883error message rather than a debug message. Added a debug message for the 4884opposite case, where NumElements is larger than the Package List (the 4885package 4886will be padded out with NULL elements as per the ACPI spec.) 4887 4888Implemented several improvements for the output of the ASL "Debug" object 4889to 4890clarify and keep all data for a given object on one output line. 4891 4892Fixed two size calculation issues with the variable-length Start Dependent 4893resource descriptor. 4894 4895Example Code and Data Size: These are the sizes for the OS-independent 4896acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4897debug version of the code includes the debug output trace mechanism and 4898has 4899a much larger code and data size. 4900 4901 Previous Release: 4902 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 4903 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 4904 Current Release: 4905 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 4906 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 4907 49082) iASL Compiler/Disassembler and Tools: 4909 4910Fixed a problem with the use of the Switch operator where execution of the 4911containing method by multiple concurrent threads could cause an 4912AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 4913actual Switch opcode, it must be simulated with local named temporary 4914variables and if/else pairs. The solution chosen was to mark any method 4915that 4916uses Switch as Serialized, thus preventing multiple thread entries. BZ 4917469. 4918 4919---------------------------------------- 492013 February 2008. Summary of changes for version 20080213: 4921 49221) ACPI CA Core Subsystem: 4923 4924Implemented another MS compatibility design change for GPE/Notify 4925handling. 4926GPEs are now cleared/enabled asynchronously to allow all pending notifies 4927to 4928complete first. It is expected that the OSL will queue the enable request 4929behind all pending notify requests (may require changes to the local host 4930OSL 4931in AcpiOsExecute). Alexey Starikovskiy. 4932 4933Fixed a problem where buffer and package objects passed as arguments to a 4934control method via the external AcpiEvaluateObject interface could cause 4935an 4936AE_AML_INTERNAL exception depending on the order and type of operators 4937executed by the target control method. 4938 4939Fixed a problem where resource descriptor size optimization could cause a 4940problem when a _CRS resource template is passed to a _SRS method. The _SRS 4941resource template must use the same descriptors (with the same size) as 4942returned from _CRS. This change affects the following resource 4943descriptors: 4944IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 49459487) 4946 4947Fixed a problem where a CopyObject to RegionField, BankField, and 4948IndexField 4949objects did not perform an implicit conversion as it should. These types 4950must 4951retain their initial type permanently as per the ACPI specification. 4952However, 4953a CopyObject to all other object types should not perform an implicit 4954conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 4955 4956Fixed a problem with the AcpiGetDevices interface where the mechanism to 4957match device CIDs did not examine the entire list of available CIDs, but 4958instead aborted on the first non-matching CID. Andrew Patterson. 4959 4960Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 4961was 4962inadvertently changed to return a 16-bit value instead of a 32-bit value, 4963truncating the upper dword of a 64-bit value. This macro is only used to 4964display debug output, so no incorrect calculations were made. Also, 4965reimplemented the macro so that a 64-bit shift is not performed by 4966inefficient compilers. 4967 4968Added missing va_end statements that should correspond with each va_start 4969statement. 4970 4971Example Code and Data Size: These are the sizes for the OS-independent 4972acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 4973debug version of the code includes the debug output trace mechanism and 4974has 4975a much larger code and data size. 4976 4977 Previous Release: 4978 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 4979 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 4980 Current Release: 4981 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 4982 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 4983 49842) iASL Compiler/Disassembler and Tools: 4985 4986Implemented full disassembler support for the following new ACPI tables: 4987BERT, EINJ, and ERST. Implemented partial disassembler support for the 4988complicated HEST table. These tables support the Windows Hardware Error 4989Architecture (WHEA). 4990 4991---------------------------------------- 499223 January 2008. Summary of changes for version 20080123: 4993 49941) ACPI CA Core Subsystem: 4995 4996Added the 2008 copyright to all module headers and signons. This affects 4997virtually every file in the ACPICA core subsystem, the iASL compiler, and 4998the tools/utilities. 4999 5000Fixed a problem with the SizeOf operator when used with Package and Buffer 5001objects. These objects have deferred execution for some arguments, and the 5002execution is now completed before the SizeOf is executed. This problem 5003caused 5004unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 5005BZ 50069558 5007 5008Implemented an enhancement to the interpreter "slack mode". In the absence 5009of 5010an explicit return or an implicitly returned object from the last executed 5011opcode, a control method will now implicitly return an integer of value 0 5012for 5013Microsoft compatibility. (Lin Ming) BZ 392 5014 5015Fixed a problem with the Load operator where an exception was not returned 5016in 5017the case where the table is already loaded. (Lin Ming) BZ 463 5018 5019Implemented support for the use of DDBHandles as an Indexed Reference, as 5020per 5021the ACPI spec. (Lin Ming) BZ 486 5022 5023Implemented support for UserTerm (Method invocation) for the Unload 5024operator 5025as per the ACPI spec. (Lin Ming) BZ 580 5026 5027Fixed a problem with the LoadTable operator where the OemId and OemTableId 5028input strings could cause unexpected failures if they were shorter than 5029the 5030maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 5031 5032Implemented support for UserTerm (Method invocation) for the Unload 5033operator 5034as per the ACPI spec. (Lin Ming) BZ 580 5035 5036Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 5037HEST, 5038IBFT, UEFI, WDAT. Disassembler support is forthcoming. 5039 5040Example Code and Data Size: These are the sizes for the OS-independent 5041acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5042debug version of the code includes the debug output trace mechanism and 5043has 5044a much larger code and data size. 5045 5046 Previous Release: 5047 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 5048 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 5049 Current Release: 5050 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 5051 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 5052 50532) iASL Compiler/Disassembler and Tools: 5054 5055Implemented support in the disassembler for checksum validation on 5056incoming 5057binary DSDTs and SSDTs. If incorrect, a message is displayed within the 5058table 5059header dump at the start of the disassembly. 5060 5061Implemented additional debugging information in the namespace listing file 5062created during compilation. In addition to the namespace hierarchy, the 5063full 5064pathname to each namespace object is displayed. 5065 5066Fixed a problem with the disassembler where invalid ACPI tables could 5067cause 5068faults or infinite loops. 5069 5070Fixed an unexpected parse error when using the optional "parameter types" 5071list in a control method declaration. (Lin Ming) BZ 397 5072 5073Fixed a problem where two External declarations with the same name did not 5074cause an error (Lin Ming) BZ 509 5075 5076Implemented support for full TermArgs (adding Argx, Localx and method 5077invocation) for the ParameterData parameter to the LoadTable operator. 5078(Lin 5079Ming) BZ 583,587 5080 5081---------------------------------------- 508219 December 2007. Summary of changes for version 20071219: 5083 50841) ACPI CA Core Subsystem: 5085 5086Implemented full support for deferred execution for the TermArg string 5087arguments for DataTableRegion. This enables forward references and full 5088operand resolution for the three string arguments. Similar to 5089OperationRegion 5090deferred argument execution.) Lin Ming. BZ 430 5091 5092Implemented full argument resolution support for the BankValue argument to 5093BankField. Previously, only constants were supported, now any TermArg may 5094be 5095used. Lin Ming BZ 387, 393 5096 5097Fixed a problem with AcpiGetDevices where the search of a branch of the 5098device tree could be terminated prematurely. In accordance with the ACPI 5099specification, the search down the current branch is terminated if a 5100device 5101is both not present and not functional (instead of just not present.) 5102Yakui 5103Zhao. 5104 5105Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 5106if 5107the underlying AML code changed the GPE enable registers. Now, any unknown 5108incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 5109disabled 5110instead of simply ignored. Rui Zhang. 5111 5112Fixed a problem with Index Fields where the Index register was incorrectly 5113limited to a maximum of 32 bits. Now any size may be used. 5114 5115Fixed a couple memory leaks associated with "implicit return" objects when 5116the AML Interpreter slack mode is enabled. Lin Ming BZ 349 5117 5118Example Code and Data Size: These are the sizes for the OS-independent 5119acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5120debug version of the code includes the debug output trace mechanism and 5121has 5122a much larger code and data size. 5123 5124 Previous Release: 5125 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 5126 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 5127 Current Release: 5128 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 5129 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 5130 5131---------------------------------------- 513214 November 2007. Summary of changes for version 20071114: 5133 51341) ACPI CA Core Subsystem: 5135 5136Implemented event counters for each of the Fixed Events, the ACPI SCI 5137(interrupt) itself, and control methods executed. Named 5138AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 5139These 5140should be useful for debugging and statistics. 5141 5142Implemented a new external interface, AcpiGetStatistics, to retrieve the 5143contents of the various event counters. Returns the current values for 5144AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 5145AcpiMethodCount. The interface can be expanded in the future if new 5146counters 5147are added. Device drivers should use this interface rather than access the 5148counters directly. 5149 5150Fixed a problem with the FromBCD and ToBCD operators. With some compilers, 5151the ShortDivide function worked incorrectly, causing problems with the BCD 5152functions with large input values. A truncation from 64-bit to 32-bit 5153inadvertently occurred. Internal BZ 435. Lin Ming 5154 5155Fixed a problem with Index references passed as method arguments. 5156References 5157passed as arguments to control methods were dereferenced immediately 5158(before 5159control was passed to the called method). The references are now correctly 5160passed directly to the called method. BZ 5389. Lin Ming 5161 5162Fixed a problem with CopyObject used in conjunction with the Index 5163operator. 5164The reference was incorrectly dereferenced before the copy. The reference 5165is 5166now correctly copied. BZ 5391. Lin Ming 5167 5168Fixed a problem with Control Method references within Package objects. 5169These 5170references are now correctly generated. This completes the package 5171construction overhaul that began in version 20071019. 5172 5173Example Code and Data Size: These are the sizes for the OS-independent 5174acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5175debug version of the code includes the debug output trace mechanism and 5176has 5177a much larger code and data size. 5178 5179 Previous Release: 5180 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 5181 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 5182 Current Release: 5183 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 5184 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 5185 5186 51872) iASL Compiler/Disassembler and Tools: 5188 5189The AcpiExec utility now installs handlers for all of the predefined 5190Operation Region types. New types supported are: PCI_Config, CMOS, and 5191PCIBARTarget. 5192 5193Fixed a problem with the 64-bit version of AcpiExec where the extended 5194(64- 5195bit) address fields for the DSDT and FACS within the FADT were not being 5196used, causing truncation of the upper 32-bits of these addresses. Lin Ming 5197and Bob Moore 5198 5199---------------------------------------- 520019 October 2007. Summary of changes for version 20071019: 5201 52021) ACPI CA Core Subsystem: 5203 5204Fixed a problem with the Alias operator when the target of the alias is a 5205named ASL operator that opens a new scope -- Scope, Device, PowerResource, 5206Processor, and ThermalZone. In these cases, any children of the original 5207operator could not be accessed via the alias, potentially causing 5208unexpected 5209AE_NOT_FOUND exceptions. (BZ 9067) 5210 5211Fixed a problem with the Package operator where all named references were 5212created as object references and left otherwise unresolved. According to 5213the 5214ACPI specification, a Package can only contain Data Objects or references 5215to 5216control methods. The implication is that named references to Data Objects 5217(Integer, Buffer, String, Package, BufferField, Field) should be resolved 5218immediately upon package creation. This is the approach taken with this 5219change. References to all other named objects (Methods, Devices, Scopes, 5220etc.) are all now properly created as reference objects. (BZ 5328) 5221 5222Reverted a change to Notify handling that was introduced in version 522320070508. This version changed the Notify handling from asynchronous to 5224fully synchronous (Device driver Notify handling with respect to the 5225Notify 5226ASL operator). It was found that this change caused more problems than it 5227solved and was removed by most users. 5228 5229Fixed a problem with the Increment and Decrement operators where the type 5230of 5231the target object could be unexpectedly and incorrectly changed. (BZ 353) 5232Lin Ming. 5233 5234Fixed a problem with the Load and LoadTable operators where the table 5235location within the namespace was ignored. Instead, the table was always 5236loaded into the root or current scope. Lin Ming. 5237 5238Fixed a problem with the Load operator when loading a table from a buffer 5239object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 5240 5241Fixed a problem with the Debug object where a store of a DdbHandle 5242reference 5243object to the Debug object could cause a fault. 5244 5245Added a table checksum verification for the Load operator, in the case 5246where 5247the load is from a buffer. (BZ 578). 5248 5249Implemented additional parameter validation for the LoadTable operator. 5250The 5251length of the input strings SignatureString, OemIdString, and OemTableId 5252are 5253now checked for maximum lengths. (BZ 582) Lin Ming. 5254 5255Example Code and Data Size: These are the sizes for the OS-independent 5256acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5257debug version of the code includes the debug output trace mechanism and 5258has 5259a much larger code and data size. 5260 5261 Previous Release: 5262 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 5263 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 5264 Current Release: 5265 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 5266 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 5267 5268 52692) iASL Compiler/Disassembler: 5270 5271Fixed a problem where if a single file was specified and the file did not 5272exist, no error message was emitted. (Introduced with wildcard support in 5273version 20070917.) 5274 5275---------------------------------------- 527619 September 2007. Summary of changes for version 20070919: 5277 52781) ACPI CA Core Subsystem: 5279 5280Designed and implemented new external interfaces to install and remove 5281handlers for ACPI table-related events. Current events that are defined 5282are 5283LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 5284they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 5285AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 5286 5287Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 5288(acpi_serialized option on Linux) could cause some systems to hang during 5289initialization. (Bob Moore) BZ 8171 5290 5291Fixed a problem where objects of certain types (Device, ThermalZone, 5292Processor, PowerResource) can be not found if they are declared and 5293referenced from within the same control method (Lin Ming) BZ 341 5294 5295Example Code and Data Size: These are the sizes for the OS-independent 5296acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5297debug version of the code includes the debug output trace mechanism and 5298has 5299a much larger code and data size. 5300 5301 Previous Release: 5302 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 5303 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 5304 Current Release: 5305 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 5306 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 5307 5308 53092) iASL Compiler/Disassembler: 5310 5311Implemented support to allow multiple files to be compiled/disassembled in 5312a 5313single invocation. This includes command line wildcard support for both 5314the 5315Windows and Unix versions of the compiler. This feature simplifies the 5316disassembly and compilation of multiple ACPI tables in a single directory. 5317 5318---------------------------------------- 531908 May 2007. Summary of changes for version 20070508: 5320 53211) ACPI CA Core Subsystem: 5322 5323Implemented a Microsoft compatibility design change for the handling of 5324the 5325Notify AML operator. Previously, notify handlers were dispatched and 5326executed completely asynchronously in a deferred thread. The new design 5327still executes the notify handlers in a different thread, but the original 5328thread that executed the Notify() now waits at a synchronization point for 5329the notify handler to complete. Some machines depend on a synchronous 5330Notify 5331operator in order to operate correctly. 5332 5333Implemented support to allow Package objects to be passed as method 5334arguments to the external AcpiEvaluateObject interface. Previously, this 5335would return the AE_NOT_IMPLEMENTED exception. This feature had not been 5336implemented since there were no reserved control methods that required it 5337until recently. 5338 5339Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 5340that 5341contained invalid non-zero values in reserved fields could cause later 5342failures because these fields have meaning in later revisions of the FADT. 5343For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 5344fields 5345are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 5346 5347Fixed a problem where the Global Lock handle was not properly updated if a 5348thread that acquired the Global Lock via executing AML code then attempted 5349to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 5350Joe 5351Liu. 5352 5353Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 5354could be corrupted if the interrupt being removed was at the head of the 5355list. Reported by Linn Crosetto. 5356 5357Example Code and Data Size: These are the sizes for the OS-independent 5358acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5359debug version of the code includes the debug output trace mechanism and 5360has 5361a much larger code and data size. 5362 5363 Previous Release: 5364 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5365 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 5366 Current Release: 5367 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 5368 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 5369 5370---------------------------------------- 537120 March 2007. Summary of changes for version 20070320: 5372 53731) ACPI CA Core Subsystem: 5374 5375Implemented a change to the order of interpretation and evaluation of AML 5376operand objects within the AML interpreter. The interpreter now evaluates 5377operands in the order that they appear in the AML stream (and the 5378corresponding ASL code), instead of in the reverse order (after the entire 5379operand list has been parsed). The previous behavior caused several subtle 5380incompatibilities with the Microsoft AML interpreter as well as being 5381somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 5382 5383Implemented a change to the ACPI Global Lock support. All interfaces to 5384the 5385global lock now allow the same thread to acquire the lock multiple times. 5386This affects the AcpiAcquireGlobalLock external interface to the global 5387lock 5388as well as the internal use of the global lock to support AML fields -- a 5389control method that is holding the global lock can now simultaneously 5390access 5391AML fields that require global lock protection. Previously, in both cases, 5392this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 5393to 5394AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 5395Controller. There is no change to the behavior of the AML Acquire 5396operator, 5397as this can already be used to acquire a mutex multiple times by the same 5398thread. BZ 8066. With assistance from Alexey Starikovskiy. 5399 5400Fixed a problem where invalid objects could be referenced in the AML 5401Interpreter after error conditions. During operand evaluation, ensure that 5402the internal "Return Object" field is cleared on error and only valid 5403pointers are stored there. Caused occasional access to deleted objects 5404that 5405resulted in "large reference count" warning messages. Valery Podrezov. 5406 5407Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 5408on 5409deeply nested control method invocations. BZ 7873, local BZ 487. Valery 5410Podrezov. 5411 5412Fixed an internal problem with the handling of result objects on the 5413interpreter result stack. BZ 7872. Valery Podrezov. 5414 5415Removed obsolete code that handled the case where AML_NAME_OP is the 5416target 5417of a reference (Reference.Opcode). This code was no longer necessary. BZ 54187874. Valery Podrezov. 5419 5420Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was 5421a 5422remnant from the previously discontinued 16-bit support. 5423 5424Example Code and Data Size: These are the sizes for the OS-independent 5425acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5426debug version of the code includes the debug output trace mechanism and 5427has 5428a much larger code and data size. 5429 5430 Previous Release: 5431 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5432 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5433 Current Release: 5434 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5435 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 5436 5437---------------------------------------- 543826 January 2007. Summary of changes for version 20070126: 5439 54401) ACPI CA Core Subsystem: 5441 5442Added the 2007 copyright to all module headers and signons. This affects 5443virtually every file in the ACPICA core subsystem, the iASL compiler, and 5444the utilities. 5445 5446Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 5447during a table load. A bad pointer was passed in the case where the DSDT 5448is 5449overridden, causing a fault in this case. 5450 5451Example Code and Data Size: These are the sizes for the OS-independent 5452acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5453debug version of the code includes the debug output trace mechanism and 5454has 5455a much larger code and data size. 5456 5457 Previous Release: 5458 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5459 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5460 Current Release: 5461 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5462 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5463 5464---------------------------------------- 546515 December 2006. Summary of changes for version 20061215: 5466 54671) ACPI CA Core Subsystem: 5468 5469Support for 16-bit ACPICA has been completely removed since it is no 5470longer 5471necessary and it clutters the code. All 16-bit macros, types, and 5472conditional compiles have been removed, cleaning up and simplifying the 5473code 5474across the entire subsystem. DOS support is no longer needed since the 5475bootable Linux firmware kit is now available. 5476 5477The handler for the Global Lock is now removed during AcpiTerminate to 5478enable a clean subsystem restart, via the implementation of the 5479AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 5480HP) 5481 5482Implemented enhancements to the multithreading support within the debugger 5483to enable improved multithreading debugging and evaluation of the 5484subsystem. 5485(Valery Podrezov) 5486 5487Debugger: Enhanced the Statistics/Memory command to emit the total 5488(maximum) 5489memory used during the execution, as well as the maximum memory consumed 5490by 5491each of the various object types. (Valery Podrezov) 5492 5493Example Code and Data Size: These are the sizes for the OS-independent 5494acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5495debug version of the code includes the debug output trace mechanism and 5496has 5497a much larger code and data size. 5498 5499 Previous Release: 5500 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 5501 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 5502 Current Release: 5503 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 5504 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 5505 5506 55072) iASL Compiler/Disassembler and Tools: 5508 5509AcpiExec: Implemented a new option (-m) to display full memory use 5510statistics upon subsystem/program termination. (Valery Podrezov) 5511 5512---------------------------------------- 551309 November 2006. Summary of changes for version 20061109: 5514 55151) ACPI CA Core Subsystem: 5516 5517Optimized the Load ASL operator in the case where the source operand is an 5518operation region. Simply map the operation region memory, instead of 5519performing a bytewise read. (Region must be of type SystemMemory, see 5520below.) 5521 5522Fixed the Load ASL operator for the case where the source operand is a 5523region field. A buffer object is also allowed as the source operand. BZ 5524480 5525 5526Fixed a problem where the Load ASL operator allowed the source operand to 5527be 5528an operation region of any type. It is now restricted to regions of type 5529SystemMemory, as per the ACPI specification. BZ 481 5530 5531Additional cleanup and optimizations for the new Table Manager code. 5532 5533AcpiEnable will now fail if all of the required ACPI tables are not loaded 5534(FADT, FACS, DSDT). BZ 477 5535 5536Added #pragma pack(8/4) to acobject.h to ensure that the structures in 5537this 5538header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 5539manually optimized to be aligned and will not work if it is byte-packed. 5540 5541Example Code and Data Size: These are the sizes for the OS-independent 5542acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5543debug version of the code includes the debug output trace mechanism and 5544has 5545a much larger code and data size. 5546 5547 Previous Release: 5548 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 5549 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 5550 Current Release: 5551 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 5552 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 5553 5554 55552) iASL Compiler/Disassembler and Tools: 5556 5557Fixed a problem where the presence of the _OSI predefined control method 5558within complex expressions could cause an internal compiler error. 5559 5560AcpiExec: Implemented full region support for multiple address spaces. 5561SpaceId is now part of the REGION object. BZ 429 5562 5563---------------------------------------- 556411 October 2006. Summary of changes for version 20061011: 5565 55661) ACPI CA Core Subsystem: 5567 5568Completed an AML interpreter performance enhancement for control method 5569execution. Previously a 2-pass parse/execution, control methods are now 5570completely parsed and executed in a single pass. This improves overall 5571interpreter performance by ~25%, reduces code size, and reduces CPU stack 5572use. (Valery Podrezov + interpreter changes in version 20051202 that 5573eliminated namespace loading during the pass one parse.) 5574 5575Implemented _CID support for PCI Root Bridge detection. If the _HID does 5576not 5577match the predefined PCI Root Bridge IDs, the _CID list (if present) is 5578now 5579obtained and also checked for an ID match. 5580 5581Implemented additional support for the PCI _ADR execution: upsearch until 5582a 5583device scope is found before executing _ADR. This allows PCI_Config 5584operation regions to be declared locally within control methods underneath 5585PCI device objects. 5586 5587Fixed a problem with a possible race condition between threads executing 5588AcpiWalkNamespace and the AML interpreter. This condition was removed by 5589modifying AcpiWalkNamespace to (by default) ignore all temporary namespace 5590entries created during any concurrent control method execution. An 5591additional namespace race condition is known to exist between 5592AcpiWalkNamespace and the Load/Unload ASL operators and is still under 5593investigation. 5594 5595Restructured the AML ParseLoop function, breaking it into several 5596subfunctions in order to reduce CPU stack use and improve maintainability. 5597(Mikhail Kouzmich) 5598 5599AcpiGetHandle: Fix for parameter validation to detect invalid combinations 5600of prefix handle and pathname. BZ 478 5601 5602Example Code and Data Size: These are the sizes for the OS-independent 5603acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5604debug version of the code includes the debug output trace mechanism and 5605has 5606a much larger code and data size. 5607 5608 Previous Release: 5609 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5610 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 5611 Current Release: 5612 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 5613 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 5614 56152) iASL Compiler/Disassembler and Tools: 5616 5617Ported the -g option (get local ACPI tables) to the new ACPICA Table 5618Manager 5619to restore original behavior. 5620 5621---------------------------------------- 562227 September 2006. Summary of changes for version 20060927: 5623 56241) ACPI CA Core Subsystem: 5625 5626Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 5627These functions now use a spinlock for mutual exclusion and the interrupt 5628level indication flag is not needed. 5629 5630Fixed a problem with the Global Lock where the lock could appear to be 5631obtained before it is actually obtained. The global lock semaphore was 5632inadvertently created with one unit instead of zero units. (BZ 464) Fiodor 5633Suietov. 5634 5635Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 5636during 5637a read from a buffer or region field. (BZ 458) Fiodor Suietov. 5638 5639Example Code and Data Size: These are the sizes for the OS-independent 5640acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5641debug version of the code includes the debug output trace mechanism and 5642has 5643a much larger code and data size. 5644 5645 Previous Release: 5646 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5647 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 5648 Current Release: 5649 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5650 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 5651 5652 56532) iASL Compiler/Disassembler and Tools: 5654 5655Fixed a compilation problem with the pre-defined Resource Descriptor field 5656names where an "object does not exist" error could be incorrectly 5657generated 5658if the parent ResourceTemplate pathname places the template within a 5659different namespace scope than the current scope. (BZ 7212) 5660 5661Fixed a problem where the compiler could hang after syntax errors detected 5662in an ElseIf construct. (BZ 453) 5663 5664Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 5665operator. An incorrect output filename was produced when this parameter 5666was 5667a null string (""). Now, the original input filename is used as the AML 5668output filename, with an ".aml" extension. 5669 5670Implemented a generic batch command mode for the AcpiExec utility (execute 5671any AML debugger command) (Valery Podrezov). 5672 5673---------------------------------------- 567412 September 2006. Summary of changes for version 20060912: 5675 56761) ACPI CA Core Subsystem: 5677 5678Enhanced the implementation of the "serialized mode" of the interpreter 5679(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 5680specified, instead of creating a serialization semaphore per control 5681method, 5682the interpreter lock is simply no longer released before a blocking 5683operation during control method execution. This effectively makes the AML 5684Interpreter single-threaded. The overhead of a semaphore per-method is 5685eliminated. 5686 5687Fixed a regression where an error was no longer emitted if a control 5688method 5689attempts to create 2 objects of the same name. This once again returns 5690AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 5691that 5692will dynamically serialize the control method to possible prevent future 5693errors. (BZ 440) 5694 5695Integrated a fix for a problem with PCI Express HID detection in the PCI 5696Config Space setup procedure. (BZ 7145) 5697 5698Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 5699AcpiHwInitialize function - the FADT registers are now validated when the 5700table is loaded. 5701 5702Added two new warnings during FADT verification - 1) if the FADT is larger 5703than the largest known FADT version, and 2) if there is a mismatch between 5704a 570532-bit block address and the 64-bit X counterpart (when both are non- 5706zero.) 5707 5708Example Code and Data Size: These are the sizes for the OS-independent 5709acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5710debug version of the code includes the debug output trace mechanism and 5711has 5712a much larger code and data size. 5713 5714 Previous Release: 5715 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 5716 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 5717 Current Release: 5718 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 5719 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 5720 5721 57222) iASL Compiler/Disassembler and Tools: 5723 5724Fixed a problem with the implementation of the Switch() operator where the 5725temporary variable was declared too close to the actual Switch, instead of 5726at method level. This could cause a problem if the Switch() operator is 5727within a while loop, causing an error on the second iteration. (BZ 460) 5728 5729Disassembler - fix for error emitted for unknown type for target of scope 5730operator. Now, ignore it and continue. 5731 5732Disassembly of an FADT now verifies the input FADT and reports any errors 5733found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 5734 5735Disassembly of raw data buffers with byte initialization data now prefixes 5736each output line with the current buffer offset. 5737 5738Disassembly of ASF! table now includes all variable-length data fields at 5739the end of some of the subtables. 5740 5741The disassembler now emits a comment if a buffer appears to be a 5742ResourceTemplate, but cannot be disassembled as such because the EndTag 5743does 5744not appear at the very end of the buffer. 5745 5746AcpiExec - Added the "-t" command line option to enable the serialized 5747mode 5748of the AML interpreter. 5749 5750---------------------------------------- 575131 August 2006. Summary of changes for version 20060831: 5752 57531) ACPI CA Core Subsystem: 5754 5755Miscellaneous fixes for the Table Manager: 5756- Correctly initialize internal common FADT for all 64-bit "X" fields 5757- Fixed a couple table mapping issues during table load 5758- Fixed a couple alignment issues for IA64 5759- Initialize input array to zero in AcpiInitializeTables 5760- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 5761AcpiGetTableByIndex 5762 5763Change for GPE support: when a "wake" GPE is received, all wake GPEs are 5764now 5765immediately disabled to prevent the waking GPE from firing again and to 5766prevent other wake GPEs from interrupting the wake process. 5767 5768Added the AcpiGpeCount global that tracks the number of processed GPEs, to 5769be used for debugging systems with a large number of ACPI interrupts. 5770 5771Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 5772both the ACPICA headers and the disassembler. 5773 5774Example Code and Data Size: These are the sizes for the OS-independent 5775acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5776debug version of the code includes the debug output trace mechanism and 5777has 5778a much larger code and data size. 5779 5780 Previous Release: 5781 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 5782 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 5783 Current Release: 5784 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 5785 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 5786 5787 57882) iASL Compiler/Disassembler and Tools: 5789 5790Disassembler support for the DMAR ACPI table. 5791 5792---------------------------------------- 579323 August 2006. Summary of changes for version 20060823: 5794 57951) ACPI CA Core Subsystem: 5796 5797The Table Manager component has been completely redesigned and 5798reimplemented. The new design is much simpler, and reduces the overall 5799code 5800and data size of the kernel-resident ACPICA by approximately 5%. Also, it 5801is 5802now possible to obtain the ACPI tables very early during kernel 5803initialization, even before dynamic memory management is initialized. 5804(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 5805 5806Obsolete ACPICA interfaces: 5807 5808- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 5809init 5810time). 5811- AcpiLoadTable: Not needed. 5812- AcpiUnloadTable: Not needed. 5813 5814New ACPICA interfaces: 5815 5816- AcpiInitializeTables: Must be called before the table manager can be 5817used. 5818- AcpiReallocateRootTable: Used to transfer the root table to dynamically 5819allocated memory after it becomes available. 5820- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 5821in the RSDT/XSDT. 5822 5823Other ACPICA changes: 5824 5825- AcpiGetTableHeader returns the actual mapped table header, not a copy. 5826Use 5827AcpiOsUnmapMemory to free this mapping. 5828- AcpiGetTable returns the actual mapped table. The mapping is managed 5829internally and must not be deleted by the caller. Use of this interface 5830causes no additional dynamic memory allocation. 5831- AcpiFindRootPointer: Support for physical addressing has been 5832eliminated, 5833it appeared to be unused. 5834- The interface to AcpiOsMapMemory has changed to be consistent with the 5835other allocation interfaces. 5836- The interface to AcpiOsGetRootPointer has changed to eliminate 5837unnecessary 5838parameters. 5839- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 5840bit platforms. Was previously 64 bits on all platforms. 5841- The interface to the ACPI Global Lock acquire/release macros have 5842changed 5843slightly since ACPICA no longer keeps a local copy of the FACS with a 5844constructed pointer to the actual global lock. 5845 5846Porting to the new table manager: 5847 5848- AcpiInitializeTables: Must be called once, and can be called anytime 5849during the OS initialization process. It allows the host to specify an 5850area 5851of memory to be used to store the internal version of the RSDT/XSDT (root 5852table). This allows the host to access ACPI tables before memory 5853management 5854is initialized and running. 5855- AcpiReallocateRootTable: Can be called after memory management is 5856running 5857to copy the root table to a dynamically allocated array, freeing up the 5858scratch memory specified in the call to AcpiInitializeTables. 5859- AcpiSubsystemInitialize: This existing interface is independent of the 5860Table Manager, and does not have to be called before the Table Manager can 5861be used, it only must be called before the rest of ACPICA can be used. 5862- ACPI Tables: Some changes have been made to the names and structure of 5863the 5864actbl.h and actbl1.h header files and may require changes to existing 5865code. 5866For example, bitfields have been completely removed because of their lack 5867of 5868portability across C compilers. 5869- Update interfaces to the Global Lock acquire/release macros if local 5870versions are used. (see acwin.h) 5871 5872Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 5873 5874New files: tbfind.c 5875 5876Example Code and Data Size: These are the sizes for the OS-independent 5877acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5878debug version of the code includes the debug output trace mechanism and 5879has 5880a much larger code and data size. 5881 5882 Previous Release: 5883 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 5884 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 5885 Current Release: 5886 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 5887 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 5888 5889 58902) iASL Compiler/Disassembler and Tools: 5891 5892No changes for this release. 5893 5894---------------------------------------- 589521 July 2006. Summary of changes for version 20060721: 5896 58971) ACPI CA Core Subsystem: 5898 5899The full source code for the ASL test suite used to validate the iASL 5900compiler and the ACPICA core subsystem is being released with the ACPICA 5901source for the first time. The source is contained in a separate package 5902and 5903consists of over 1100 files that exercise all ASL/AML operators. The 5904package 5905should appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 5906Suietov) 5907 5908Completed a new design and implementation for support of the ACPI Global 5909Lock. On the OS side, the global lock is now treated as a standard AML 5910mutex. Previously, multiple OS threads could "acquire" the global lock 5911simultaneously. However, this could cause the BIOS to be starved out of 5912the 5913lock - especially in cases such as the Embedded Controller driver where 5914there is a tight coupling between the OS and the BIOS. 5915 5916Implemented an optimization for the ACPI Global Lock interrupt mechanism. 5917The Global Lock interrupt handler no longer queues the execution of a 5918separate thread to signal the global lock semaphore. Instead, the 5919semaphore 5920is signaled directly from the interrupt handler. 5921 5922Implemented support within the AML interpreter for package objects that 5923contain a larger AML length (package list length) than the package element 5924count. In this case, the length of the package is truncated to match the 5925package element count. Some BIOS code apparently modifies the package 5926length 5927on the fly, and this change supports this behavior. Provides compatibility 5928with the MS AML interpreter. (With assistance from Fiodor Suietov) 5929 5930Implemented a temporary fix for the BankValue parameter of a Bank Field to 5931support all constant values, now including the Zero and One opcodes. 5932Evaluation of this parameter must eventually be converted to a full 5933TermArg 5934evaluation. A not-implemented error is now returned (temporarily) for non- 5935constant values for this parameter. 5936 5937Fixed problem reports (Fiodor Suietov) integrated: 5938- Fix for premature object deletion after CopyObject on Operation Region 5939(BZ 5940350) 5941 5942Example Code and Data Size: These are the sizes for the OS-independent 5943acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 5944debug version of the code includes the debug output trace mechanism and 5945has 5946a much larger code and data size. 5947 5948 Previous Release: 5949 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 5950 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 5951 Current Release: 5952 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 5953 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 5954 5955 59562) iASL Compiler/Disassembler and Tools: 5957 5958No changes for this release. 5959 5960---------------------------------------- 596107 July 2006. Summary of changes for version 20060707: 5962 59631) ACPI CA Core Subsystem: 5964 5965Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 5966that do not allow the initialization of address pointers within packed 5967structures - even though the hardware itself may support misaligned 5968transfers. Some of the debug data structures are packed by default to 5969minimize size. 5970 5971Added an error message for the case where AcpiOsGetThreadId() returns 5972zero. 5973A non-zero value is required by the core ACPICA code to ensure the proper 5974operation of AML mutexes and recursive control methods. 5975 5976The DSDT is now the only ACPI table that determines whether the AML 5977interpreter is in 32-bit or 64-bit mode. Not really a functional change, 5978but 5979the hooks for per-table 32/64 switching have been removed from the code. A 5980clarification to the ACPI specification is forthcoming in ACPI 3.0B. 5981 5982Fixed a possible leak of an OwnerID in the error path of 5983AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 5984deletion to a single place in AcpiTbUninstallTable to correct possible 5985leaks 5986when using the AcpiTbDeleteTablesByType interface (with assistance from 5987Lance Ortiz.) 5988 5989Fixed a problem with Serialized control methods where the semaphore 5990associated with the method could be over-signaled after multiple method 5991invocations. 5992 5993Fixed two issues with the locking of the internal namespace data 5994structure. 5995Both the Unload() operator and AcpiUnloadTable interface now lock the 5996namespace during the namespace deletion associated with the table unload 5997(with assistance from Linn Crosetto.) 5998 5999Fixed problem reports (Valery Podrezov) integrated: 6000- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 6001 6002Fixed problem reports (Fiodor Suietov) integrated: 6003- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 6004- On Address Space handler deletion, needless deactivation call (BZ 374) 6005- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 6006- Possible memory leak, Notify sub-objects of Processor, Power, 6007ThermalZone 6008(BZ 376) 6009- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 6010- Minimum Length of RSDT should be validated (BZ 379) 6011- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 6012Handler (BZ (380) 6013- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 6014loaded 6015(BZ 381) 6016 6017Example Code and Data Size: These are the sizes for the OS-independent 6018acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6019debug version of the code includes the debug output trace mechanism and 6020has 6021a much larger code and data size. 6022 6023 Previous Release: 6024 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 6025 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 6026 Current Release: 6027 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 6028 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 6029 6030 60312) iASL Compiler/Disassembler and Tools: 6032 6033Fixed problem reports: 6034Compiler segfault when ASL contains a long (>1024) String declaration (BZ 6035436) 6036 6037---------------------------------------- 603823 June 2006. Summary of changes for version 20060623: 6039 60401) ACPI CA Core Subsystem: 6041 6042Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 6043allows the type to be customized to the host OS for improved efficiency 6044(since a spinlock is usually a very small object.) 6045 6046Implemented support for "ignored" bits in the ACPI registers. According to 6047the ACPI specification, these bits should be preserved when writing the 6048registers via a read/modify/write cycle. There are 3 bits preserved in 6049this 6050manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 6051 6052Implemented the initial deployment of new OSL mutex interfaces. Since some 6053host operating systems have separate mutex and semaphore objects, this 6054feature was requested. The base code now uses mutexes (and the new mutex 6055interfaces) wherever a binary semaphore was used previously. However, for 6056the current release, the mutex interfaces are defined as macros to map 6057them 6058to the existing semaphore interfaces. Therefore, no OSL changes are 6059required 6060at this time. (See acpiosxf.h) 6061 6062Fixed several problems with the support for the control method SyncLevel 6063parameter. The SyncLevel now works according to the ACPI specification and 6064in concert with the Mutex SyncLevel parameter, since the current SyncLevel 6065is a property of the executing thread. Mutual exclusion for control 6066methods 6067is now implemented with a mutex instead of a semaphore. 6068 6069Fixed three instances of the use of the C shift operator in the bitfield 6070support code (exfldio.c) to avoid the use of a shift value larger than the 6071target data width. The behavior of C compilers is undefined in this case 6072and 6073can cause unpredictable results, and therefore the case must be detected 6074and 6075avoided. (Fiodor Suietov) 6076 6077Added an info message whenever an SSDT or OEM table is loaded dynamically 6078via the Load() or LoadTable() ASL operators. This should improve debugging 6079capability since it will show exactly what tables have been loaded (beyond 6080the tables present in the RSDT/XSDT.) 6081 6082Example Code and Data Size: These are the sizes for the OS-independent 6083acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6084debug version of the code includes the debug output trace mechanism and 6085has 6086a much larger code and data size. 6087 6088 Previous Release: 6089 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 6090 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 6091 Current Release: 6092 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 6093 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 6094 6095 60962) iASL Compiler/Disassembler and Tools: 6097 6098No changes for this release. 6099 6100---------------------------------------- 610108 June 2006. Summary of changes for version 20060608: 6102 61031) ACPI CA Core Subsystem: 6104 6105Converted the locking mutex used for the ACPI hardware to a spinlock. This 6106change should eliminate all problems caused by attempting to acquire a 6107semaphore at interrupt level, and it means that all ACPICA external 6108interfaces that directly access the ACPI hardware can be safely called 6109from 6110interrupt level. OSL code that implements the semaphore interfaces should 6111be 6112able to eliminate any workarounds for being called at interrupt level. 6113 6114Fixed a regression introduced in 20060526 where the ACPI device 6115initialization could be prematurely aborted with an AE_NOT_FOUND if a 6116device 6117did not have an optional _INI method. 6118 6119Fixed an IndexField issue where a write to the Data Register should be 6120limited in size to the AccessSize (width) of the IndexField itself. (BZ 6121433, 6122Fiodor Suietov) 6123 6124Fixed problem reports (Valery Podrezov) integrated: 6125- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 6126 6127Fixed problem reports (Fiodor Suietov) integrated: 6128- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 6129 6130Removed four global mutexes that were obsolete and were no longer being 6131used. 6132 6133Example Code and Data Size: These are the sizes for the OS-independent 6134acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6135debug version of the code includes the debug output trace mechanism and 6136has 6137a much larger code and data size. 6138 6139 Previous Release: 6140 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 6141 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 6142 Current Release: 6143 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 6144 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 6145 6146 61472) iASL Compiler/Disassembler and Tools: 6148 6149Fixed a fault when using -g option (get tables from registry) on Windows 6150machines. 6151 6152Fixed problem reports integrated: 6153- Generate error if CreateField NumBits parameter is zero. (BZ 405) 6154- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 6155Suietov) 6156- Global table revision override (-r) is ignored (BZ 413) 6157 6158---------------------------------------- 615926 May 2006. Summary of changes for version 20060526: 6160 61611) ACPI CA Core Subsystem: 6162 6163Restructured, flattened, and simplified the internal interfaces for 6164namespace object evaluation - resulting in smaller code, less CPU stack 6165use, 6166and fewer interfaces. (With assistance from Mikhail Kouzmich) 6167 6168Fixed a problem with the CopyObject operator where the first parameter was 6169not typed correctly for the parser, interpreter, compiler, and 6170disassembler. 6171Caused various errors and unexpected behavior. 6172 6173Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 6174produced incorrect results with some C compilers. Since the behavior of C 6175compilers when the shift value is larger than the datatype width is 6176apparently not well defined, the interpreter now detects this condition 6177and 6178simply returns zero as expected in all such cases. (BZ 395) 6179 6180Fixed problem reports (Valery Podrezov) integrated: 6181- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 6182- Allow interpreter to handle nested method declarations (BZ 5361) 6183 6184Fixed problem reports (Fiodor Suietov) integrated: 6185- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 6186- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 6187356) 6188- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 6189- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 6190- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 6191- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 6192- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 6193- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 6194- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 6195365) 6196- Status of the Global Initialization Handler call not used (BZ 366) 6197- Incorrect object parameter to Global Initialization Handler (BZ 367) 6198 6199Example Code and Data Size: These are the sizes for the OS-independent 6200acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6201debug version of the code includes the debug output trace mechanism and 6202has 6203a much larger code and data size. 6204 6205 Previous Release: 6206 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 6207 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 6208 Current Release: 6209 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 6210 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 6211 6212 62132) iASL Compiler/Disassembler and Tools: 6214 6215Modified the parser to allow the names IO, DMA, and IRQ to be used as 6216namespace identifiers with no collision with existing resource descriptor 6217macro names. This provides compatibility with other ASL compilers and is 6218most useful for disassembly/recompilation of existing tables without parse 6219errors. (With assistance from Thomas Renninger) 6220 6221Disassembler: fixed an incorrect disassembly problem with the 6222DataTableRegion and CopyObject operators. Fixed a possible fault during 6223disassembly of some Alias operators. 6224 6225---------------------------------------- 622612 May 2006. Summary of changes for version 20060512: 6227 62281) ACPI CA Core Subsystem: 6229 6230Replaced the AcpiOsQueueForExecution interface with a new interface named 6231AcpiOsExecute. The major difference is that the new interface does not 6232have 6233a Priority parameter, this appeared to be useless and has been replaced by 6234a 6235Type parameter. The Type tells the host what type of execution is being 6236requested, such as global lock handler, notify handler, GPE handler, etc. 6237This allows the host to queue and execute the request as appropriate for 6238the 6239request type, possibly using different work queues and different 6240priorities 6241for the various request types. This enables fixes for multithreading 6242deadlock problems such as BZ #5534, and will require changes to all 6243existing 6244OS interface layers. (Alexey Starikovskiy and Bob Moore) 6245 6246Fixed a possible memory leak associated with the support for the so-called 6247"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 6248Suietov) 6249 6250Fixed a problem with the Load() operator where a table load from an 6251operation region could overwrite an internal table buffer by up to 7 bytes 6252and cause alignment faults on IPF systems. (With assistance from Luming 6253Yu) 6254 6255Example Code and Data Size: These are the sizes for the OS-independent 6256acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6257debug version of the code includes the debug output trace mechanism and 6258has 6259a much larger code and data size. 6260 6261 Previous Release: 6262 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 6263 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 6264 Current Release: 6265 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 6266 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 6267 6268 6269 62702) iASL Compiler/Disassembler and Tools: 6271 6272Disassembler: Implemented support to cross reference the internal 6273namespace 6274and automatically generate ASL External() statements for symbols not 6275defined 6276within the current table being disassembled. This will simplify the 6277disassembly and recompilation of interdependent tables such as SSDTs since 6278these statements will no longer have to be added manually. 6279 6280Disassembler: Implemented experimental support to automatically detect 6281invocations of external control methods and generate appropriate 6282External() 6283statements. This is problematic because the AML cannot be correctly parsed 6284until the number of arguments for each control method is known. Currently, 6285standalone method invocations and invocations as the source operand of a 6286Store() statement are supported. 6287 6288Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 6289LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 6290LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 6291more readable and likely closer to the original ASL source. 6292 6293---------------------------------------- 629421 April 2006. Summary of changes for version 20060421: 6295 62961) ACPI CA Core Subsystem: 6297 6298Removed a device initialization optimization introduced in 20051216 where 6299the _STA method was not run unless an _INI was also present for the same 6300device. This optimization could cause problems because it could allow _INI 6301methods to be run within a not-present device subtree. (If a not-present 6302device had no _INI, _STA would not be run, the not-present status would 6303not 6304be discovered, and the children of the device would be incorrectly 6305traversed.) 6306 6307Implemented a new _STA optimization where namespace subtrees that do not 6308contain _INI are identified and ignored during device initialization. 6309Selectively running _STA can significantly improve boot time on large 6310machines (with assistance from Len Brown.) 6311 6312Implemented support for the device initialization case where the returned 6313_STA flags indicate a device not-present but functioning. In this case, 6314_INI 6315is not run, but the device children are examined for presence, as per the 6316ACPI specification. 6317 6318Implemented an additional change to the IndexField support in order to 6319conform to MS behavior. The value written to the Index Register is not 6320simply a byte offset, it is a byte offset in units of the access width of 6321the parent Index Field. (Fiodor Suietov) 6322 6323Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 6324interface is called during the creation of all AML operation regions, and 6325allows the host OS to exert control over what addresses it will allow the 6326AML code to access. Operation Regions whose addresses are disallowed will 6327cause a runtime exception when they are actually accessed (will not affect 6328or abort table loading.) See oswinxf or osunixxf for an example 6329implementation. 6330 6331Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 6332interface allows the host OS to match the various "optional" 6333interface/behavior strings for the _OSI predefined control method as 6334appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 6335for an example implementation. 6336 6337Restructured and corrected various problems in the exception handling code 6338paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 6339(with assistance from Takayoshi Kochi.) 6340 6341Modified the Linux source converter to ignore quoted string literals while 6342converting identifiers from mixed to lower case. This will correct 6343problems 6344with the disassembler and other areas where such strings must not be 6345modified. 6346 6347The ACPI_FUNCTION_* macros no longer require quotes around the function 6348name. This allows the Linux source converter to convert the names, now 6349that 6350the converter ignores quoted strings. 6351 6352Example Code and Data Size: These are the sizes for the OS-independent 6353acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6354debug version of the code includes the debug output trace mechanism and 6355has 6356a much larger code and data size. 6357 6358 Previous Release: 6359 6360 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 6361 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 6362 Current Release: 6363 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 6364 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 6365 6366 63672) iASL Compiler/Disassembler and Tools: 6368 6369Implemented 3 new warnings for iASL, and implemented multiple warning 6370levels 6371(w2 flag). 6372 63731) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 6374not 6375WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 6376check for the possible timeout, a warning is issued. 6377 63782) Useless operators: If an ASL operator does not specify an optional 6379target 6380operand and it also does not use the function return value from the 6381operator, a warning is issued since the operator effectively does nothing. 6382 63833) Unreferenced objects: If a namespace object is created, but never 6384referenced, a warning is issued. This is a warning level 2 since there are 6385cases where this is ok, such as when a secondary table is loaded that uses 6386the unreferenced objects. Even so, care is taken to only flag objects that 6387don't look like they will ever be used. For example, the reserved methods 6388(starting with an underscore) are usually not referenced because it is 6389expected that the OS will invoke them. 6390 6391---------------------------------------- 639231 March 2006. Summary of changes for version 20060331: 6393 63941) ACPI CA Core Subsystem: 6395 6396Implemented header file support for the following additional ACPI tables: 6397ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 6398support, 6399all current and known ACPI tables are now defined in the ACPICA headers 6400and 6401are available for use by device drivers and other software. 6402 6403Implemented support to allow tables that contain ACPI names with invalid 6404characters to be loaded. Previously, this would cause the table load to 6405fail, but since there are several known cases of such tables on existing 6406machines, this change was made to enable ACPI support for them. Also, this 6407matches the behavior of the Microsoft ACPI implementation. 6408 6409Fixed a couple regressions introduced during the memory optimization in 6410the 641120060317 release. The namespace node definition required additional 6412reorganization and an internal datatype that had been changed to 8-bit was 6413restored to 32-bit. (Valery Podrezov) 6414 6415Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 6416could be passed through to AcpiOsReleaseObject which is unexpected. Such 6417null pointers are now trapped and ignored, matching the behavior of the 6418previous implementation before the deployment of AcpiOsReleaseObject. 6419(Valery Podrezov, Fiodor Suietov) 6420 6421Fixed a memory mapping leak during the deletion of a SystemMemory 6422operation 6423region where a cached memory mapping was not deleted. This became a 6424noticeable problem for operation regions that are defined within 6425frequently 6426used control methods. (Dana Meyers) 6427 6428Reorganized the ACPI table header files into two main files: one for the 6429ACPI tables consumed by the ACPICA core, and another for the miscellaneous 6430ACPI tables that are consumed by the drivers and other software. The 6431various 6432FADT definitions were merged into one common section and three different 6433tables (ACPI 1.0, 1.0+, and 2.0) 6434 6435Example Code and Data Size: These are the sizes for the OS-independent 6436acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 6437debug version of the code includes the debug output trace mechanism and 6438has 6439a much larger code and data size. 6440 6441 Previous Release: 6442 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 6443 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 6444 Current Release: 6445 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 6446 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 6447 6448 64492) iASL Compiler/Disassembler and Tools: 6450 6451Disassembler: Implemented support to decode and format all non-AML ACPI 6452tables (tables other than DSDTs and SSDTs.) This includes the new tables 6453added to the ACPICA headers, therefore all current and known ACPI tables 6454are 6455supported. 6456 6457Disassembler: The change to allow ACPI names with invalid characters also 6458enables the disassembly of such tables. Invalid characters within names 6459are 6460changed to '*' to make the name printable; the iASL compiler will still 6461generate an error for such names, however, since this is an invalid ACPI 6462character. 6463 6464Implemented an option for AcpiXtract (-a) to extract all tables found in 6465the 6466input file. The default invocation extracts only the DSDTs and SSDTs. 6467 6468Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 6469makefile for the AcpiXtract utility. 6470 6471---------------------------------------- 647217 March 2006. Summary of changes for version 20060317: 6473 64741) ACPI CA Core Subsystem: 6475 6476Implemented the use of a cache object for all internal namespace nodes. 6477Since there are about 1000 static nodes in a typical system, this will 6478decrease memory use for cache implementations that minimize per-allocation 6479overhead (such as a slab allocator.) 6480 6481Removed the reference count mechanism for internal namespace nodes, since 6482it 6483was deemed unnecessary. This reduces the size of each namespace node by 6484about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 6485and 32 bytes for the 64-bit case. 6486 6487Optimized several internal data structures to reduce object size on 64-bit 6488platforms by packing data within the 64-bit alignment. This includes the 6489frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 6490instances corresponding to the namespace objects. 6491 6492Added two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 6493and "Windows 2006". 6494 6495Split the allocation tracking mechanism out to a separate file, from 6496utalloc.c to uttrack.c. This mechanism appears to be only useful for 6497application-level code. Kernels may wish to not include uttrack.c in 6498distributions. 6499 6500Removed all remnants of the obsolete ACPI_REPORT_* macros and the 6501associated 6502code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 6503macros.) 6504 6505Code and Data Size: These are the sizes for the acpica.lib produced by the 6506Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6507ACPI 6508driver or OSPM code. The debug version of the code includes the debug 6509output 6510trace mechanism and has a much larger code and data size. Note that these 6511values will vary depending on the efficiency of the compiler and the 6512compiler options used during generation. 6513 6514 Previous Release: 6515 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6516 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 6517 Current Release: 6518 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 6519 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 6520 6521 65222) iASL Compiler/Disassembler and Tools: 6523 6524Implemented an ANSI C version of the acpixtract utility. This version will 6525automatically extract the DSDT and all SSDTs from the input acpidump text 6526file and dump the binary output to separate files. It can also display a 6527summary of the input file including the headers for each table found and 6528will extract any single ACPI table, with any signature. (See 6529source/tools/acpixtract) 6530 6531---------------------------------------- 653210 March 2006. Summary of changes for version 20060310: 6533 65341) ACPI CA Core Subsystem: 6535 6536Tagged all external interfaces to the subsystem with the new 6537ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 6538kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 6539macro. The default definition is NULL. 6540 6541Added the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 6542This allows the host to define this as necessary to simplify kernel 6543integration. The default definition is ACPI_NATIVE_UINT. 6544 6545Fixed two interpreter problems related to error processing, the deletion 6546of 6547objects, and placing invalid pointers onto the internal operator result 6548stack. BZ 6028, 6151 (Valery Podrezov) 6549 6550Increased the reference count threshold where a warning is emitted for 6551large 6552reference counts in order to eliminate unnecessary warnings on systems 6553with 6554large namespaces (especially 64-bit.) Increased the value from 0x400 to 65550x800. 6556 6557Due to universal disagreement as to the meaning of the 'c' in the calloc() 6558function, the ACPI_MEM_CALLOCATE macro has been renamed to 6559ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 6560ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 6561ACPI_FREE. 6562 6563Code and Data Size: These are the sizes for the acpica.lib produced by the 6564Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6565ACPI 6566driver or OSPM code. The debug version of the code includes the debug 6567output 6568trace mechanism and has a much larger code and data size. Note that these 6569values will vary depending on the efficiency of the compiler and the 6570compiler options used during generation. 6571 6572 Previous Release: 6573 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 6574 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 6575 Current Release: 6576 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6577 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 6578 6579 65802) iASL Compiler/Disassembler: 6581 6582Disassembler: implemented support for symbolic resource descriptor 6583references. If a CreateXxxxField operator references a fixed offset within 6584a 6585resource descriptor, a name is assigned to the descriptor and the offset 6586is 6587translated to the appropriate resource tag and pathname. The addition of 6588this support brings the disassembled code very close to the original ASL 6589source code and helps eliminate run-time errors when the disassembled code 6590is modified (and recompiled) in such a way as to invalidate the original 6591fixed offsets. 6592 6593Implemented support for a Descriptor Name as the last parameter to the ASL 6594Register() macro. This parameter was inadvertently left out of the ACPI 6595specification, and will be added for ACPI 3.0b. 6596 6597Fixed a problem where the use of the "_OSI" string (versus the full path 6598"\_OSI") caused an internal compiler error. ("No back ptr to op") 6599 6600Fixed a problem with the error message that occurs when an invalid string 6601is 6602used for a _HID object (such as one with an embedded asterisk: 6603"*PNP010A".) 6604The correct message is now displayed. 6605 6606---------------------------------------- 660717 February 2006. Summary of changes for version 20060217: 6608 66091) ACPI CA Core Subsystem: 6610 6611Implemented a change to the IndexField support to match the behavior of 6612the 6613Microsoft AML interpreter. The value written to the Index register is now 6614a 6615byte offset, no longer an index based upon the width of the Data register. 6616This should fix IndexField problems seen on some machines where the Data 6617register is not exactly one byte wide. The ACPI specification will be 6618clarified on this point. 6619 6620Fixed a problem where several resource descriptor types could overrun the 6621internal descriptor buffer due to size miscalculation: VendorShort, 6622VendorLong, and Interrupt. This was noticed on IA64 machines, but could 6623affect all platforms. 6624 6625Fixed a problem where individual resource descriptors were misaligned 6626within 6627the internal buffer, causing alignment faults on IA64 platforms. 6628 6629Code and Data Size: These are the sizes for the acpica.lib produced by the 6630Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 6631ACPI 6632driver or OSPM code. The debug version of the code includes the debug 6633output 6634trace mechanism and has a much larger code and data size. Note that these 6635values will vary depending on the efficiency of the compiler and the 6636compiler options used during generation. 6637 6638 Previous Release: 6639 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6640 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 6641 Current Release: 6642 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 6643 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 6644 6645 66462) iASL Compiler/Disassembler: 6647 6648Implemented support for new reserved names: _WDG and _WED are Microsoft 6649extensions for Windows Instrumentation Management, _TDL is a new ACPI- 6650defined method (Throttling Depth Limit.) 6651 6652Fixed a problem where a zero-length VendorShort or VendorLong resource 6653descriptor was incorrectly emitted as a descriptor of length one. 6654 6655---------------------------------------- 665610 February 2006. Summary of changes for version 20060210: 6657 66581) ACPI CA Core Subsystem: 6659 6660Removed a couple of extraneous ACPI_ERROR messages that appeared during 6661normal execution. These became apparent after the conversion from 6662ACPI_DEBUG_PRINT. 6663 6664Fixed a problem where the CreateField operator could hang if the BitIndex 6665or 6666NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 6667 6668Fixed a problem where a DeRefOf operation on a buffer object incorrectly 6669failed with an exception. This also fixes a couple of related RefOf and 6670DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 6671 6672Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 6673of 6674AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 6675BZ 66765480) 6677 6678Implemented a memory cleanup at the end of the execution of each iteration 6679of an AML While() loop, preventing the accumulation of outstanding 6680objects. 6681(Valery Podrezov, BZ 5427) 6682 6683Eliminated a chunk of duplicate code in the object resolution code. 6684(Valery 6685Podrezov, BZ 5336) 6686 6687Fixed several warnings during the 64-bit code generation. 6688 6689The AcpiSrc source code conversion tool now inserts one line of whitespace 6690after an if() statement that is followed immediately by a comment, 6691improving 6692readability of the Linux code. 6693 6694Code and Data Size: The current and previous library sizes for the core 6695subsystem are shown below. These are the code and data sizes for the 6696acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6697values do not include any ACPI driver or OSPM code. The debug version of 6698the 6699code includes the debug output trace mechanism and has a much larger code 6700and data size. Note that these values will vary depending on the 6701efficiency 6702of the compiler and the compiler options used during generation. 6703 6704 Previous Release: 6705 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 6706 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 6707 Current Release: 6708 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 6709 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 6710 6711 67122) iASL Compiler/Disassembler: 6713 6714Fixed a problem with the disassembly of a BankField operator with a 6715complex 6716expression for the BankValue parameter. 6717 6718---------------------------------------- 671927 January 2006. Summary of changes for version 20060127: 6720 67211) ACPI CA Core Subsystem: 6722 6723Implemented support in the Resource Manager to allow unresolved namestring 6724references within resource package objects for the _PRT method. This 6725support 6726is in addition to the previously implemented unresolved reference support 6727within the AML parser. If the interpreter slack mode is enabled, these 6728unresolved references will be passed through to the caller as a NULL 6729package 6730entry. 6731 6732Implemented and deployed new macros and functions for error and warning 6733messages across the subsystem. These macros are simpler and generate less 6734code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 6735ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 6736macros remain defined to allow ACPI drivers time to migrate to the new 6737macros. 6738 6739Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 6740Acquire/Release Lock OSL interfaces. 6741 6742Fixed a problem where Alias ASL operators are sometimes not correctly 6743resolved, in both the interpreter and the iASL compiler. 6744 6745Fixed several problems with the implementation of the 6746ConcatenateResTemplate 6747ASL operator. As per the ACPI specification, zero length buffers are now 6748treated as a single EndTag. One-length buffers always cause a fatal 6749exception. Non-zero length buffers that do not end with a full 2-byte 6750EndTag 6751cause a fatal exception. 6752 6753Fixed a possible structure overwrite in the AcpiGetObjectInfo external 6754interface. (With assistance from Thomas Renninger) 6755 6756Code and Data Size: The current and previous library sizes for the core 6757subsystem are shown below. These are the code and data sizes for the 6758acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6759values do not include any ACPI driver or OSPM code. The debug version of 6760the 6761code includes the debug output trace mechanism and has a much larger code 6762and data size. Note that these values will vary depending on the 6763efficiency 6764of the compiler and the compiler options used during generation. 6765 6766 Previous Release: 6767 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 6768 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 6769 Current Release: 6770 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 6771 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 6772 6773 67742) iASL Compiler/Disassembler: 6775 6776Fixed an internal error that was generated for any forward references to 6777ASL 6778Alias objects. 6779 6780---------------------------------------- 678113 January 2006. Summary of changes for version 20060113: 6782 67831) ACPI CA Core Subsystem: 6784 6785Added 2006 copyright to all module headers and signons. This affects 6786virtually every file in the ACPICA core subsystem, iASL compiler, and the 6787utilities. 6788 6789Enhanced the ACPICA error reporting in order to simplify user migration to 6790the non-debug version of ACPICA. Replaced all instances of the 6791ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 6792levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 6793respectively. This preserves all error and warning messages in the non- 6794debug 6795version of the ACPICA code (this has been referred to as the "debug lite" 6796option.) Over 200 cases were converted to create a total of over 380 6797error/warning messages across the ACPICA code. This increases the code and 6798data size of the default non-debug version of the code somewhat (about 679913K), 6800but all error/warning reporting may be disabled if desired (and code 6801eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 6802configuration option. The size of the debug version of ACPICA remains 6803about 6804the same. 6805 6806Fixed a memory leak within the AML Debugger "Set" command. One object was 6807not properly deleted for every successful invocation of the command. 6808 6809Code and Data Size: The current and previous library sizes for the core 6810subsystem are shown below. These are the code and data sizes for the 6811acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6812values do not include any ACPI driver or OSPM code. The debug version of 6813the 6814code includes the debug output trace mechanism and has a much larger code 6815and data size. Note that these values will vary depending on the 6816efficiency 6817of the compiler and the compiler options used during generation. 6818 6819 Previous Release: 6820 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 6821 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 6822 Current Release: 6823 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 6824 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 6825 6826 68272) iASL Compiler/Disassembler: 6828 6829The compiler now officially supports the ACPI 3.0a specification that was 6830released on December 30, 2005. (Specification is available at 6831www.acpi.info) 6832 6833---------------------------------------- 683416 December 2005. Summary of changes for version 20051216: 6835 68361) ACPI CA Core Subsystem: 6837 6838Implemented optional support to allow unresolved names within ASL Package 6839objects. A null object is inserted in the package when a named reference 6840cannot be located in the current namespace. Enabled via the interpreter 6841slack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 6842that contain such code. 6843 6844Implemented an optimization to the initialization sequence that can 6845improve 6846boot time. During ACPI device initialization, the _STA method is now run 6847if 6848and only if the _INI method exists. The _STA method is used to determine 6849if 6850the device is present; An _INI can only be run if _STA returns present, 6851but 6852it is a waste of time to run the _STA method if the _INI does not exist. 6853(Prototype and assistance from Dong Wei) 6854 6855Implemented use of the C99 uintptr_t for the pointer casting macros if it 6856is 6857available in the current compiler. Otherwise, the default (void *) cast is 6858used as before. 6859 6860Fixed some possible memory leaks found within the execution path of the 6861Break, Continue, If, and CreateField operators. (Valery Podrezov) 6862 6863Fixed a problem introduced in the 20051202 release where an exception is 6864generated during method execution if a control method attempts to declare 6865another method. 6866 6867Moved resource descriptor string constants that are used by both the AML 6868disassembler and AML debugger to the common utilities directory so that 6869these components are independent. 6870 6871Implemented support in the AcpiExec utility (-e switch) to globally ignore 6872exceptions during control method execution (method is not aborted.) 6873 6874Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 6875generation. 6876 6877Code and Data Size: The current and previous library sizes for the core 6878subsystem are shown below. These are the code and data sizes for the 6879acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6880values do not include any ACPI driver or OSPM code. The debug version of 6881the 6882code includes the debug output trace mechanism and has a much larger code 6883and data size. Note that these values will vary depending on the 6884efficiency 6885of the compiler and the compiler options used during generation. 6886 6887 Previous Release: 6888 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6889 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 6890 Current Release: 6891 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 6892 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 6893 6894 68952) iASL Compiler/Disassembler: 6896 6897Fixed a problem where a CPU stack overflow fault could occur if a 6898recursive 6899method call was made from within a Return statement. 6900 6901---------------------------------------- 690202 December 2005. Summary of changes for version 20051202: 6903 69041) ACPI CA Core Subsystem: 6905 6906Modified the parsing of control methods to no longer create namespace 6907objects during the first pass of the parse. Objects are now created only 6908during the execute phase, at the moment the namespace creation operator is 6909encountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 6910should eliminate ALREADY_EXISTS exceptions seen on some machines where 6911reentrant control methods are protected by an AML mutex. The mutex will 6912now 6913correctly block multiple threads from attempting to create the same object 6914more than once. 6915 6916Increased the number of available Owner Ids for namespace object tracking 6917from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 6918on 6919some machines with a large number of ACPI tables (either static or 6920dynamic). 6921 6922Fixed a problem with the AcpiExec utility where a fault could occur when 6923the 6924-b switch (batch mode) is used. 6925 6926Enhanced the namespace dump routine to output the owner ID for each 6927namespace object. 6928 6929Code and Data Size: The current and previous library sizes for the core 6930subsystem are shown below. These are the code and data sizes for the 6931acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 6932values do not include any ACPI driver or OSPM code. The debug version of 6933the 6934code includes the debug output trace mechanism and has a much larger code 6935and data size. Note that these values will vary depending on the 6936efficiency 6937of the compiler and the compiler options used during generation. 6938 6939 Previous Release: 6940 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6941 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 6942 Current Release: 6943 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 6944 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 6945 6946 69472) iASL Compiler/Disassembler: 6948 6949Fixed a parse error during compilation of certain Switch/Case constructs. 6950To 6951simplify the parse, the grammar now allows for multiple Default statements 6952and this error is now detected and flagged during the analysis phase. 6953 6954Disassembler: The disassembly now includes the contents of the original 6955table header within a comment at the start of the file. This includes the 6956name and version of the original ASL compiler. 6957 6958---------------------------------------- 695917 November 2005. Summary of changes for version 20051117: 6960 69611) ACPI CA Core Subsystem: 6962 6963Fixed a problem in the AML parser where the method thread count could be 6964decremented below zero if any errors occurred during the method parse 6965phase. 6966This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 6967machines. 6968This also fixed a related regression with the mechanism that detects and 6969corrects methods that cannot properly handle reentrancy (related to the 6970deployment of the new OwnerId mechanism.) 6971 6972Eliminated the pre-parsing of control methods (to detect errors) during 6973table load. Related to the problem above, this was causing unwind issues 6974if 6975any errors occurred during the parse, and it seemed to be overkill. A 6976table 6977load should not be aborted if there are problems with any single control 6978method, thus rendering this feature rather pointless. 6979 6980Fixed a problem with the new table-driven resource manager where an 6981internal 6982buffer overflow could occur for small resource templates. 6983 6984Implemented a new external interface, AcpiGetVendorResource. This 6985interface 6986will find and return a vendor-defined resource descriptor within a _CRS or 6987_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 6988Helgaas. 6989 6990Removed the length limit (200) on string objects as per the upcoming ACPI 69913.0A specification. This affects the following areas of the interpreter: 69921) 6993any implicit conversion of a Buffer to a String, 2) a String object result 6994of the ASL Concatentate operator, 3) the String object result of the ASL 6995ToString operator. 6996 6997Fixed a problem in the Windows OS interface layer (OSL) where a 6998WAIT_FOREVER 6999on a semaphore object would incorrectly timeout. This allows the 7000multithreading features of the AcpiExec utility to work properly under 7001Windows. 7002 7003Updated the Linux makefiles for the iASL compiler and AcpiExec to include 7004the recently added file named "utresrc.c". 7005 7006Code and Data Size: The current and previous library sizes for the core 7007subsystem are shown below. These are the code and data sizes for the 7008acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 7009values do not include any ACPI driver or OSPM code. The debug version of 7010the 7011code includes the debug output trace mechanism and has a much larger code 7012and data size. Note that these values will vary depending on the 7013efficiency 7014of the compiler and the compiler options used during generation. 7015 7016 Previous Release: 7017 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 7018 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7019 Current Release: 7020 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 7021 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7022 7023 70242) iASL Compiler/Disassembler: 7025 7026Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 7027specification. For the iASL compiler, this means that string literals 7028within 7029the source ASL can be of any length. 7030 7031Enhanced the listing output to dump the AML code for resource descriptors 7032immediately after the ASL code for each descriptor, instead of in a block 7033at 7034the end of the entire resource template. 7035 7036Enhanced the compiler debug output to dump the entire original parse tree 7037constructed during the parse phase, before any transforms are applied to 7038the 7039tree. The transformed tree is dumped also. 7040 7041---------------------------------------- 704202 November 2005. Summary of changes for version 20051102: 7043 70441) ACPI CA Core Subsystem: 7045 7046Modified the subsystem initialization sequence to improve GPE support. The 7047GPE initialization has been split into two parts in order to defer 7048execution 7049of the _PRW methods (Power Resources for Wake) until after the hardware is 7050fully initialized and the SCI handler is installed. This allows the _PRW 7051methods to access fields protected by the Global Lock. This will fix 7052systems 7053where a NO_GLOBAL_LOCK exception has been seen during initialization. 7054 7055Converted the ACPI internal object disassemble and display code within the 7056AML debugger to fully table-driven operation, reducing code size and 7057increasing maintainability. 7058 7059Fixed a regression with the ConcatenateResTemplate() ASL operator 7060introduced 7061in the 20051021 release. 7062 7063Implemented support for "local" internal ACPI object types within the 7064debugger "Object" command and the AcpiWalkNamespace external interfaces. 7065These local types include RegionFields, BankFields, IndexFields, Alias, 7066and 7067reference objects. 7068 7069Moved common AML resource handling code into a new file, "utresrc.c". This 7070code is shared by both the Resource Manager and the AML Debugger. 7071 7072Code and Data Size: The current and previous library sizes for the core 7073subsystem are shown below. These are the code and data sizes for the 7074acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 7075values do not include any ACPI driver or OSPM code. The debug version of 7076the 7077code includes the debug output trace mechanism and has a much larger code 7078and data size. Note that these values will vary depending on the 7079efficiency 7080of the compiler and the compiler options used during generation. 7081 7082 Previous Release: 7083 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 7084 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 7085 Current Release: 7086 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 7087 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 7088 7089 70902) iASL Compiler/Disassembler: 7091 7092Fixed a problem with very large initializer lists (more than 4000 7093elements) 7094for both Buffer and Package objects where the parse stack could overflow. 7095 7096Enhanced the pre-compile source code scan for non-ASCII characters to 7097ignore 7098characters within comment fields. The scan is now always performed and is 7099no 7100longer optional, detecting invalid characters within a source file 7101immediately rather than during the parse phase or later. 7102 7103Enhanced the ASL grammar definition to force early reductions on all list- 7104style grammar elements so that the overall parse stack usage is greatly 7105reduced. This should improve performance and reduce the possibility of 7106parse 7107stack overflow. 7108 7109Eliminated all reduce/reduce conflicts in the iASL parser generation. 7110Also, 7111with the addition of a %expected statement, the compiler generates from 7112source with no warnings. 7113 7114Fixed a possible segment fault in the disassembler if the input filename 7115does not contain a "dot" extension (Thomas Renninger). 7116 7117---------------------------------------- 711821 October 2005. Summary of changes for version 20051021: 7119 71201) ACPI CA Core Subsystem: 7121 7122Implemented support for the EM64T and other x86-64 processors. This 7123essentially entails recognizing that these processors support non-aligned 7124memory transfers. Previously, all 64-bit processors were assumed to lack 7125hardware support for non-aligned transfers. 7126 7127Completed conversion of the Resource Manager to nearly full table-driven 7128operation. Specifically, the resource conversion code (convert AML to 7129internal format and the reverse) and the debug code to dump internal 7130resource descriptors are fully table-driven, reducing code and data size 7131and 7132improving maintainability. 7133 7134The OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 7135on 64-bit processors instead of a fixed 32-bit word. (With assistance from 7136Alexey Starikovskiy) 7137 7138Implemented support within the resource conversion code for the Type- 7139Specific byte within the various ACPI 3.0 *WordSpace macros. 7140 7141Fixed some issues within the resource conversion code for the type- 7142specific 7143flags for both Memory and I/O address resource descriptors. For Memory, 7144implemented support for the MTP and TTP flags. For I/O, split the TRS and 7145TTP flags into two separate fields. 7146 7147Code and Data Size: The current and previous library sizes for the core 7148subsystem are shown below. These are the code and data sizes for the 7149acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 7150values do not include any ACPI driver or OSPM code. The debug version of 7151the 7152code includes the debug output trace mechanism and has a much larger code 7153and data size. Note that these values will vary depending on the 7154efficiency 7155of the compiler and the compiler options used during generation. 7156 7157 Previous Release: 7158 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 7159 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 7160 Current Release: 7161 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 7162 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 7163 7164 7165 71662) iASL Compiler/Disassembler: 7167 7168Relaxed a compiler restriction that disallowed a ResourceIndex byte if the 7169corresponding ResourceSource string was not also present in a resource 7170descriptor declaration. This restriction caused problems with existing 7171AML/ASL code that includes the Index byte without the string. When such 7172AML 7173was disassembled, it could not be compiled without modification. Further, 7174the modified code created a resource template with a different size than 7175the 7176original, breaking code that used fixed offsets into the resource template 7177buffer. 7178 7179Removed a recent feature of the disassembler to ignore a lone 7180ResourceIndex 7181byte. This byte is now emitted if present so that the exact AML can be 7182reproduced when the disassembled code is recompiled. 7183 7184Improved comments and text alignment for the resource descriptor code 7185emitted by the disassembler. 7186 7187Implemented disassembler support for the ACPI 3.0 AccessSize field within 7188a 7189Register() resource descriptor. 7190 7191---------------------------------------- 719230 September 2005. Summary of changes for version 20050930: 7193 71941) ACPI CA Core Subsystem: 7195 7196Completed a major overhaul of the Resource Manager code - specifically, 7197optimizations in the area of the AML/internal resource conversion code. 7198The 7199code has been optimized to simplify and eliminate duplicated code, CPU 7200stack 7201use has been decreased by optimizing function parameters and local 7202variables, and naming conventions across the manager have been 7203standardized 7204for clarity and ease of maintenance (this includes function, parameter, 7205variable, and struct/typedef names.) The update may force changes in some 7206driver code, depending on how resources are handled by the host OS. 7207 7208All Resource Manager dispatch and information tables have been moved to a 7209single location for clarity and ease of maintenance. One new file was 7210created, named "rsinfo.c". 7211 7212The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 7213guarantee that the argument is not evaluated twice, making them less prone 7214to macro side-effects. However, since there exists the possibility of 7215additional stack use if a particular compiler cannot optimize them (such 7216as 7217in the debug generation case), the original macros are optionally 7218available. 7219Note that some invocations of the return_VALUE macro may now cause size 7220mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 7221to 7222eliminate these. (From Randy Dunlap) 7223 7224Implemented a new mechanism to enable debug tracing for individual control 7225methods. A new external interface, AcpiDebugTrace, is provided to enable 7226this mechanism. The intent is to allow the host OS to easily enable and 7227disable tracing for problematic control methods. This interface can be 7228easily exposed to a user or debugger interface if desired. See the file 7229psxface.c for details. 7230 7231AcpiUtCallocate will now return a valid pointer if a length of zero is 7232specified - a length of one is used and a warning is issued. This matches 7233the behavior of AcpiUtAllocate. 7234 7235Code and Data Size: The current and previous library sizes for the core 7236subsystem are shown below. These are the code and data sizes for the 7237acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 7238values do not include any ACPI driver or OSPM code. The debug version of 7239the 7240code includes the debug output trace mechanism and has a much larger code 7241and data size. Note that these values will vary depending on the 7242efficiency 7243of the compiler and the compiler options used during generation. 7244 7245 Previous Release: 7246 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 7247 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 7248 Current Release: 7249 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 7250 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 7251 7252 72532) iASL Compiler/Disassembler: 7254 7255A remark is issued if the effective compile-time length of a package or 7256buffer is zero. Previously, this was a warning. 7257 7258---------------------------------------- 725916 September 2005. Summary of changes for version 20050916: 7260 72611) ACPI CA Core Subsystem: 7262 7263Fixed a problem within the Resource Manager where support for the Generic 7264Register descriptor was not fully implemented. This descriptor is now 7265fully 7266recognized, parsed, disassembled, and displayed. 7267 7268Completely restructured the Resource Manager code to utilize table-driven 7269dispatch and lookup, eliminating many of the large switch() statements. 7270This 7271reduces overall subsystem code size and code complexity. Affects the 7272resource parsing and construction, disassembly, and debug dump output. 7273 7274Cleaned up and restructured the debug dump output for all resource 7275descriptors. Improved readability of the output and reduced code size. 7276 7277Fixed a problem where changes to internal data structures caused the 7278optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 7279 7280Code and Data Size: The current and previous library sizes for the core 7281subsystem are shown below. These are the code and data sizes for the 7282acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 7283values do not include any ACPI driver or OSPM code. The debug version of 7284the 7285code includes the debug output trace mechanism and has a much larger code 7286and data size. Note that these values will vary depending on the 7287efficiency 7288of the compiler and the compiler options used during generation. 7289 7290 Previous Release: 7291 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 7292 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 7293 Current Release: 7294 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 7295 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 7296 7297 72982) iASL Compiler/Disassembler: 7299 7300Updated the disassembler to automatically insert an EndDependentFn() macro 7301into the ASL stream if this macro is missing in the original AML code, 7302simplifying compilation of the resulting ASL module. 7303 7304Fixed a problem in the disassembler where a disassembled ResourceSource 7305string (within a large resource descriptor) was not surrounded by quotes 7306and 7307not followed by a comma, causing errors when the resulting ASL module was 7308compiled. Also, escape sequences within a ResourceSource string are now 7309handled correctly (especially "\\") 7310 7311---------------------------------------- 731202 September 2005. Summary of changes for version 20050902: 7313 73141) ACPI CA Core Subsystem: 7315 7316Fixed a problem with the internal Owner ID allocation and deallocation 7317mechanisms for control method execution and recursive method invocation. 7318This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 7319messages seen on some systems. Recursive method invocation depth is 7320currently limited to 255. (Alexey Starikovskiy) 7321 7322Completely eliminated all vestiges of support for the "module-level 7323executable code" until this support is fully implemented and debugged. 7324This 7325should eliminate the NO_RETURN_VALUE exceptions seen during table load on 7326some systems that invoke this support. 7327 7328Fixed a problem within the resource manager code where the transaction 7329flags 7330for a 64-bit address descriptor were handled incorrectly in the type- 7331specific flag byte. 7332 7333Consolidated duplicate code within the address descriptor resource manager 7334code, reducing overall subsystem code size. 7335 7336Fixed a fault when using the AML debugger "disassemble" command to 7337disassemble individual control methods. 7338 7339Removed references to the "release_current" directory within the Unix 7340release package. 7341 7342Code and Data Size: The current and previous core subsystem library sizes 7343are shown below. These are the code and data sizes for the acpica.lib 7344produced by the Microsoft Visual C++ 6.0 compiler. These values do not 7345include any ACPI driver or OSPM code. The debug version of the code 7346includes 7347the debug output trace mechanism and has a much larger code and data size. 7348Note that these values will vary depending on the efficiency of the 7349compiler 7350and the compiler options used during generation. 7351 7352 Previous Release: 7353 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 7354 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 7355 Current Release: 7356 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 7357 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 7358 7359 73602) iASL Compiler/Disassembler: 7361 7362Implemented an error check for illegal duplicate values in the interrupt 7363and 7364dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 7365Interrupt(). 7366 7367Implemented error checking for the Irq() and IrqNoFlags() macros to detect 7368too many values in the interrupt list (16 max) and invalid values in the 7369list (range 0 - 15) 7370 7371The maximum length string literal within an ASL file is now restricted to 7372200 characters as per the ACPI specification. 7373 7374Fixed a fault when using the -ln option (generate namespace listing). 7375 7376Implemented an error check to determine if a DescriptorName within a 7377resource descriptor has already been used within the current scope. 7378 7379---------------------------------------- 738015 August 2005. Summary of changes for version 20050815: 7381 73821) ACPI CA Core Subsystem: 7383 7384Implemented a full bytewise compare to determine if a table load request 7385is 7386attempting to load a duplicate table. The compare is performed if the 7387table 7388signatures and table lengths match. This will allow different tables with 7389the same OEM Table ID and revision to be loaded - probably against the 7390ACPI 7391specification, but discovered in the field nonetheless. 7392 7393Added the changes.txt logfile to each of the zipped release packages. 7394 7395Code and Data Size: Current and previous core subsystem library sizes are 7396shown below. These are the code and data sizes for the acpica.lib produced 7397by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7398any ACPI driver or OSPM code. The debug version of the code includes the 7399debug output trace mechanism and has a much larger code and data size. 7400Note 7401that these values will vary depending on the efficiency of the compiler 7402and 7403the compiler options used during generation. 7404 7405 Previous Release: 7406 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 7407 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 7408 Current Release: 7409 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 7410 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 7411 7412 74132) iASL Compiler/Disassembler: 7414 7415Fixed a problem where incorrect AML code could be generated for Package 7416objects if optimization is disabled (via the -oa switch). 7417 7418Fixed a problem with where incorrect AML code is generated for variable- 7419length packages when the package length is not specified and the number of 7420initializer values is greater than 255. 7421 7422 7423---------------------------------------- 742429 July 2005. Summary of changes for version 20050729: 7425 74261) ACPI CA Core Subsystem: 7427 7428Implemented support to ignore an attempt to install/load a particular ACPI 7429table more than once. Apparently there exists BIOS code that repeatedly 7430attempts to load the same SSDT upon certain events. With assistance from 7431Venkatesh Pallipadi. 7432 7433Restructured the main interface to the AML parser in order to correctly 7434handle all exceptional conditions. This will prevent leakage of the 7435OwnerId 7436resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 7437some 7438machines. With assistance from Alexey Starikovskiy. 7439 7440Support for "module level code" has been disabled in this version due to a 7441number of issues that have appeared on various machines. The support can 7442be 7443enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 7444compilation. When the issues are fully resolved, the code will be enabled 7445by 7446default again. 7447 7448Modified the internal functions for debug print support to define the 7449FunctionName parameter as a (const char *) for compatibility with compiler 7450built-in macros such as __FUNCTION__, etc. 7451 7452Linted the entire ACPICA source tree for both 32-bit and 64-bit. 7453 7454Implemented support to display an object count summary for the AML 7455Debugger 7456commands Object and Methods. 7457 7458Code and Data Size: Current and previous core subsystem library sizes are 7459shown below. These are the code and data sizes for the acpica.lib produced 7460by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7461any ACPI driver or OSPM code. The debug version of the code includes the 7462debug output trace mechanism and has a much larger code and data size. 7463Note 7464that these values will vary depending on the efficiency of the compiler 7465and 7466the compiler options used during generation. 7467 7468 Previous Release: 7469 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 7470 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 7471 Current Release: 7472 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 7473 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 7474 7475 74762) iASL Compiler/Disassembler: 7477 7478Fixed a regression that appeared in the 20050708 version of the compiler 7479where an error message was inadvertently emitted for invocations of the 7480_OSI 7481reserved control method. 7482 7483---------------------------------------- 748408 July 2005. Summary of changes for version 20050708: 7485 74861) ACPI CA Core Subsystem: 7487 7488The use of the CPU stack in the debug version of the subsystem has been 7489considerably reduced. Previously, a debug structure was declared in every 7490function that used the debug macros. This structure has been removed in 7491favor of declaring the individual elements as parameters to the debug 7492functions. This reduces the cumulative stack use during nested execution 7493of 7494ACPI function calls at the cost of a small increase in the code size of 7495the 7496debug version of the subsystem. With assistance from Alexey Starikovskiy 7497and 7498Len Brown. 7499 7500Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 7501headers to define a macro that will return the current function name at 7502runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 7503by 7504the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 7505compiler-dependent header, the function name is saved on the CPU stack 7506(one 7507pointer per function.) This mechanism is used because apparently there 7508exists no standard ANSI-C defined macro that that returns the function 7509name. 7510 7511Redesigned and reimplemented the "Owner ID" mechanism used to track 7512namespace objects created/deleted by ACPI tables and control method 7513execution. A bitmap is now used to allocate and free the IDs, thus solving 7514the wraparound problem present in the previous implementation. The size of 7515the namespace node descriptor was reduced by 2 bytes as a result (Alexey 7516Starikovskiy). 7517 7518Removed the UINT32_BIT and UINT16_BIT types that were used for the 7519bitfield 7520flag definitions within the headers for the predefined ACPI tables. These 7521have been replaced by UINT8_BIT in order to increase the code portability 7522of 7523the subsystem. If the use of UINT8 remains a problem, we may be forced to 7524eliminate bitfields entirely because of a lack of portability. 7525 7526Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 7527This 7528is a frequently used function and this improvement increases the 7529performance 7530of the entire subsystem (Alexey Starikovskiy). 7531 7532Fixed several possible memory leaks and the inverse - premature object 7533deletion (Alexey Starikovskiy). 7534 7535Code and Data Size: Current and previous core subsystem library sizes are 7536shown below. These are the code and data sizes for the acpica.lib produced 7537by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7538any ACPI driver or OSPM code. The debug version of the code includes the 7539debug output trace mechanism and has a much larger code and data size. 7540Note 7541that these values will vary depending on the efficiency of the compiler 7542and 7543the compiler options used during generation. 7544 7545 Previous Release: 7546 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 7547 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 7548 Current Release: 7549 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 7550 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 7551 7552---------------------------------------- 755324 June 2005. Summary of changes for version 20050624: 7554 75551) ACPI CA Core Subsystem: 7556 7557Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 7558the host-defined cache object. This allows the OSL implementation to 7559define 7560and type this object in any manner desired, simplifying the OSL 7561implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 7562Linux, and should be defined in the OS-specific header file for other 7563operating systems as required. 7564 7565Changed the interface to AcpiOsAcquireObject to directly return the 7566requested object as the function return (instead of ACPI_STATUS.) This 7567change was made for performance reasons, since this is the purpose of the 7568interface in the first place. AcpiOsAcquireObject is now similar to the 7569AcpiOsAllocate interface. 7570 7571Implemented a new AML debugger command named Businfo. This command 7572displays 7573information about all devices that have an associate _PRT object. The 7574_ADR, 7575_HID, _UID, and _CID are displayed for these devices. 7576 7577Modified the initialization sequence in AcpiInitializeSubsystem to call 7578the 7579OSL interface AcpiOslInitialize first, before any local initialization. 7580This 7581change was required because the global initialization now calls OSL 7582interfaces. 7583 7584Enhanced the Dump command to display the entire contents of Package 7585objects 7586(including all sub-objects and their values.) 7587 7588Restructured the code base to split some files because of size and/or 7589because the code logically belonged in a separate file. New files are 7590listed 7591below. All makefiles and project files included in the ACPI CA release 7592have 7593been updated. 7594 utilities/utcache.c /* Local cache interfaces */ 7595 utilities/utmutex.c /* Local mutex support */ 7596 utilities/utstate.c /* State object support */ 7597 interpreter/parser/psloop.c /* Main AML parse loop */ 7598 7599Code and Data Size: Current and previous core subsystem library sizes are 7600shown below. These are the code and data sizes for the acpica.lib produced 7601by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7602any ACPI driver or OSPM code. The debug version of the code includes the 7603debug output trace mechanism and has a much larger code and data size. 7604Note 7605that these values will vary depending on the efficiency of the compiler 7606and 7607the compiler options used during generation. 7608 7609 Previous Release: 7610 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 7611 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 7612 Current Release: 7613 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 7614 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 7615 7616 76172) iASL Compiler/Disassembler: 7618 7619Fixed a regression introduced in version 20050513 where the use of a 7620Package 7621object within a Case() statement caused a compile time exception. The 7622original behavior has been restored (a Match() operator is emitted.) 7623 7624---------------------------------------- 762517 June 2005. Summary of changes for version 20050617: 7626 76271) ACPI CA Core Subsystem: 7628 7629Moved the object cache operations into the OS interface layer (OSL) to 7630allow 7631the host OS to handle these operations if desired (for example, the Linux 7632OSL will invoke the slab allocator). This support is optional; the compile 7633time define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 7634code in the ACPI CA core. The new OSL interfaces are shown below. See 7635utalloc.c for an example implementation, and acpiosxf.h for the exact 7636interface definitions. With assistance from Alexey Starikovskiy. 7637 AcpiOsCreateCache 7638 AcpiOsDeleteCache 7639 AcpiOsPurgeCache 7640 AcpiOsAcquireObject 7641 AcpiOsReleaseObject 7642 7643Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 7644return 7645and restore a flags parameter. This fits better with many OS lock models. 7646Note: the current execution state (interrupt handler or not) is no longer 7647passed to these interfaces. If necessary, the OSL must determine this 7648state 7649by itself, a simple and fast operation. With assistance from Alexey 7650Starikovskiy. 7651 7652Fixed a problem in the ACPI table handling where a valid XSDT was assumed 7653present if the revision of the RSDP was 2 or greater. According to the 7654ACPI 7655specification, the XSDT is optional in all cases, and the table manager 7656therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 7657Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 7658only the RSDT. 7659 7660Fixed an interpreter problem with the Mid() operator in the case of an 7661input 7662string where the resulting output string is of zero length. It now 7663correctly 7664returns a valid, null terminated string object instead of a string object 7665with a null pointer. 7666 7667Fixed a problem with the control method argument handling to allow a store 7668to an Arg object that already contains an object of type Device. The 7669Device 7670object is now correctly overwritten. Previously, an error was returned. 7671 7672 7673Enhanced the debugger Find command to emit object values in addition to 7674the 7675found object pathnames. The output format is the same as the dump 7676namespace 7677command. 7678 7679Enhanced the debugger Set command. It now has the ability to set the value 7680of any Named integer object in the namespace (Previously, only method 7681locals 7682and args could be set.) 7683 7684Code and Data Size: Current and previous core subsystem library sizes are 7685shown below. These are the code and data sizes for the acpica.lib produced 7686by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7687any ACPI driver or OSPM code. The debug version of the code includes the 7688debug output trace mechanism and has a much larger code and data size. 7689Note 7690that these values will vary depending on the efficiency of the compiler 7691and 7692the compiler options used during generation. 7693 7694 Previous Release: 7695 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 7696 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 7697 Current Release: 7698 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 7699 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 7700 7701 77022) iASL Compiler/Disassembler: 7703 7704Fixed a regression in the disassembler where if/else/while constructs were 7705output incorrectly. This problem was introduced in the previous release 7706(20050526). This problem also affected the single-step disassembly in the 7707debugger. 7708 7709Fixed a problem where compiling the reserved _OSI method would randomly 7710(but 7711rarely) produce compile errors. 7712 7713Enhanced the disassembler to emit compilable code in the face of incorrect 7714AML resource descriptors. If the optional ResourceSourceIndex is present, 7715but the ResourceSource is not, do not emit the ResourceSourceIndex in the 7716disassembly. Otherwise, the resulting code cannot be compiled without 7717errors. 7718 7719---------------------------------------- 772026 May 2005. Summary of changes for version 20050526: 7721 77221) ACPI CA Core Subsystem: 7723 7724Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 7725the module level (not within a control method.) These opcodes are executed 7726exactly once at the time the table is loaded. This type of code was legal 7727up 7728until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 7729in 7730order to provide backwards compatibility with earlier BIOS 7731implementations. 7732This eliminates the "Encountered executable code at module level" warning 7733that was previously generated upon detection of such code. 7734 7735Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 7736inadvertently be generated during the lookup of namespace objects in the 7737second pass parse of ACPI tables and control methods. It appears that this 7738problem could occur during the resolution of forward references to 7739namespace 7740objects. 7741 7742Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 7743corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 7744allows the deadlock detection debug code to be compiled out in the normal 7745case, improving mutex performance (and overall subsystem performance) 7746considerably. 7747 7748Implemented a handful of miscellaneous fixes for possible memory leaks on 7749error conditions and error handling control paths. These fixes were 7750suggested by FreeBSD and the Coverity Prevent source code analysis tool. 7751 7752Added a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 7753to prevent a fault in this error case. 7754 7755Code and Data Size: Current and previous core subsystem library sizes are 7756shown below. These are the code and data sizes for the acpica.lib produced 7757by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7758any ACPI driver or OSPM code. The debug version of the code includes the 7759debug output trace mechanism and has a much larger code and data size. 7760Note 7761that these values will vary depending on the efficiency of the compiler 7762and 7763the compiler options used during generation. 7764 7765 Previous Release: 7766 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7767 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7768 Current Release: 7769 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 7770 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 7771 7772 77732) iASL Compiler/Disassembler: 7774 7775Implemented support to allow Type 1 and Type 2 ASL operators to appear at 7776the module level (not within a control method.) These operators will be 7777executed once at the time the table is loaded. This type of code was legal 7778up until the release of ACPI 2.0B (2002) and is now supported by the iASL 7779compiler in order to provide backwards compatibility with earlier BIOS ASL 7780code. 7781 7782The ACPI integer width (specified via the table revision ID or the -r 7783override, 32 or 64 bits) is now used internally during compile-time 7784constant 7785folding to ensure that constants are truncated to 32 bits if necessary. 7786Previously, the revision ID value was only emitted in the AML table 7787header. 7788 7789An error message is now generated for the Mutex and Method operators if 7790the 7791SyncLevel parameter is outside the legal range of 0 through 15. 7792 7793Fixed a problem with the Method operator ParameterTypes list handling 7794(ACPI 77953.0). Previously, more than 2 types or 2 arguments generated a syntax 7796error. 7797The actual underlying implementation of method argument typechecking is 7798still under development, however. 7799 7800---------------------------------------- 780113 May 2005. Summary of changes for version 20050513: 7802 78031) ACPI CA Core Subsystem: 7804 7805Implemented support for PCI Express root bridges -- added support for 7806device 7807PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 7808 7809The interpreter now automatically truncates incoming 64-bit constants to 781032 7811bits if currently executing out of a 32-bit ACPI table (Revision < 2). 7812This 7813also affects the iASL compiler constant folding. (Note: as per below, the 7814iASL compiler no longer allows 64-bit constants within 32-bit tables.) 7815 7816Fixed a problem where string and buffer objects with "static" pointers 7817(pointers to initialization data within an ACPI table) were not handled 7818consistently. The internal object copy operation now always copies the 7819data 7820to a newly allocated buffer, regardless of whether the source object is 7821static or not. 7822 7823Fixed a problem with the FromBCD operator where an implicit result 7824conversion was improperly performed while storing the result to the target 7825operand. Since this is an "explicit conversion" operator, the implicit 7826conversion should never be performed on the output. 7827 7828Fixed a problem with the CopyObject operator where a copy to an existing 7829named object did not always completely overwrite the existing object 7830stored 7831at name. Specifically, a buffer-to-buffer copy did not delete the existing 7832buffer. 7833 7834Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 7835structs for consistency. 7836 7837Code and Data Size: Current and previous core subsystem library sizes are 7838shown below. These are the code and data sizes for the acpica.lib produced 7839by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7840any ACPI driver or OSPM code. The debug version of the code includes the 7841debug output trace mechanism and has a much larger code and data size. 7842Note 7843that these values will vary depending on the efficiency of the compiler 7844and 7845the compiler options used during generation. 7846 7847 Previous Release: 7848 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7849 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7850 Current Release: (Same sizes) 7851 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7852 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7853 7854 78552) iASL Compiler/Disassembler: 7856 7857The compiler now emits a warning if an attempt is made to generate a 64- 7858bit 7859integer constant from within a 32-bit ACPI table (Revision < 2). The 7860integer 7861is truncated to 32 bits. 7862 7863Fixed a problem with large package objects: if the static length of the 7864package is greater than 255, the "variable length package" opcode is 7865emitted. Previously, this caused an error. This requires an update to the 7866ACPI spec, since it currently (incorrectly) states that packages larger 7867than 7868255 elements are not allowed. 7869 7870The disassembler now correctly handles variable length packages and 7871packages 7872larger than 255 elements. 7873 7874---------------------------------------- 787508 April 2005. Summary of changes for version 20050408: 7876 78771) ACPI CA Core Subsystem: 7878 7879Fixed three cases in the interpreter where an "index" argument to an ASL 7880function was still (internally) 32 bits instead of the required 64 bits. 7881This was the Index argument to the Index, Mid, and Match operators. 7882 7883The "strupr" function is now permanently local (AcpiUtStrupr), since this 7884is 7885not a POSIX-defined function and not present in most kernel-level C 7886libraries. All references to the C library strupr function have been 7887removed 7888from the headers. 7889 7890Completed the deployment of static functions/prototypes. All prototypes 7891with 7892the static attribute have been moved from the headers to the owning C 7893file. 7894 7895Implemented an extract option (-e) for the AcpiBin utility (AML binary 7896utility). This option allows the utility to extract individual ACPI tables 7897from the output of AcpiDmp. It provides the same functionality of the 7898acpixtract.pl perl script without the worry of setting the correct perl 7899options. AcpiBin runs on Windows and has not yet been generated/validated 7900in 7901the Linux/Unix environment (but should be soon). 7902 7903Updated and fixed the table dump option for AcpiBin (-d). This option 7904converts a single ACPI table to a hex/ascii file, similar to the output of 7905AcpiDmp. 7906 7907Code and Data Size: Current and previous core subsystem library sizes are 7908shown below. These are the code and data sizes for the acpica.lib produced 7909by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7910any ACPI driver or OSPM code. The debug version of the code includes the 7911debug output trace mechanism and has a much larger code and data size. 7912Note 7913that these values will vary depending on the efficiency of the compiler 7914and 7915the compiler options used during generation. 7916 7917 Previous Release: 7918 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 7919 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 7920 Current Release: 7921 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 7922 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 7923 7924 79252) iASL Compiler/Disassembler: 7926 7927Disassembler fix: Added a check to ensure that the table length found in 7928the 7929ACPI table header within the input file is not longer than the actual 7930input 7931file size. This indicates some kind of file or table corruption. 7932 7933---------------------------------------- 793429 March 2005. Summary of changes for version 20050329: 7935 79361) ACPI CA Core Subsystem: 7937 7938An error is now generated if an attempt is made to create a Buffer Field 7939of 7940length zero (A CreateField with a length operand of zero.) 7941 7942The interpreter now issues a warning whenever executable code at the 7943module 7944level is detected during ACPI table load. This will give some idea of the 7945prevalence of this type of code. 7946 7947Implemented support for references to named objects (other than control 7948methods) within package objects. 7949 7950Enhanced package object output for the debug object. Package objects are 7951now 7952completely dumped, showing all elements. 7953 7954Enhanced miscellaneous object output for the debug object. Any object can 7955now be written to the debug object (for example, a device object can be 7956written, and the type of the object will be displayed.) 7957 7958The "static" qualifier has been added to all local functions across both 7959the 7960core subsystem and the iASL compiler. 7961 7962The number of "long" lines (> 80 chars) within the source has been 7963significantly reduced, by about 1/3. 7964 7965Cleaned up all header files to ensure that all CA/iASL functions are 7966prototyped (even static functions) and the formatting is consistent. 7967 7968Two new header files have been added, acopcode.h and acnames.h. 7969 7970Removed several obsolete functions that were no longer used. 7971 7972Code and Data Size: Current and previous core subsystem library sizes are 7973shown below. These are the code and data sizes for the acpica.lib produced 7974by the Microsoft Visual C++ 6.0 compiler, and these values do not include 7975any ACPI driver or OSPM code. The debug version of the code includes the 7976debug output trace mechanism and has a much larger code and data size. 7977Note 7978that these values will vary depending on the efficiency of the compiler 7979and 7980the compiler options used during generation. 7981 7982 Previous Release: 7983 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 7984 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 7985 Current Release: 7986 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 7987 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 7988 7989 7990 79912) iASL Compiler/Disassembler: 7992 7993Fixed a problem with the resource descriptor generation/support. For the 7994ResourceSourceIndex and the ResourceSource fields, both must be present, 7995or 7996both must be not present - can't have one without the other. 7997 7998The compiler now returns non-zero from the main procedure if any errors 7999have 8000occurred during the compilation. 8001 8002 8003---------------------------------------- 800409 March 2005. Summary of changes for version 20050309: 8005 80061) ACPI CA Core Subsystem: 8007 8008The string-to-buffer implicit conversion code has been modified again 8009after 8010a change to the ACPI specification. In order to match the behavior of the 8011other major ACPI implementation, the target buffer is no longer truncated 8012if 8013the source string is smaller than an existing target buffer. This change 8014requires an update to the ACPI spec, and should eliminate the recent 8015AE_AML_BUFFER_LIMIT issues. 8016 8017The "implicit return" support was rewritten to a new algorithm that solves 8018the general case. Rather than attempt to determine when a method is about 8019to 8020exit, the result of every ASL operator is saved momentarily until the very 8021next ASL operator is executed. Therefore, no matter how the method exits, 8022there will always be a saved implicit return value. This feature is only 8023enabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 8024AE_AML_NO_RETURN_VALUE errors when enabled. 8025 8026Implemented implicit conversion support for the predicate (operand) of the 8027If, Else, and While operators. String and Buffer arguments are 8028automatically 8029converted to Integers. 8030 8031Changed the string-to-integer conversion behavior to match the new ACPI 8032errata: "If no integer object exists, a new integer is created. The ASCII 8033string is interpreted as a hexadecimal constant. Each string character is 8034interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 8035with the first character as the most significant digit, and ending with 8036the 8037first non-hexadecimal character or end-of-string." This means that the 8038first 8039non-hex character terminates the conversion and this is the code that was 8040changed. 8041 8042Fixed a problem where the ObjectType operator would fail (fault) when used 8043on an Index of a Package which pointed to a null package element. The 8044operator now properly returns zero (Uninitialized) in this case. 8045 8046Fixed a problem where the While operator used excessive memory by not 8047properly popping the result stack during execution. There was no memory 8048leak 8049after execution, however. (Code provided by Valery Podrezov.) 8050 8051Fixed a problem where references to control methods within Package objects 8052caused the method to be invoked, instead of producing a reference object 8053pointing to the method. 8054 8055Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 8056improve performance and reduce code size. (Code provided by Alexey 8057Starikovskiy.) 8058 8059Code and Data Size: Current and previous core subsystem library sizes are 8060shown below. These are the code and data sizes for the acpica.lib produced 8061by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8062any ACPI driver or OSPM code. The debug version of the code includes the 8063debug output trace mechanism and has a much larger code and data size. 8064Note 8065that these values will vary depending on the efficiency of the compiler 8066and 8067the compiler options used during generation. 8068 8069 Previous Release: 8070 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8071 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 8072 Current Release: 8073 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8074 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 8075 8076 80772) iASL Compiler/Disassembler: 8078 8079Fixed a problem with the Return operator with no arguments. Since the AML 8080grammar for the byte encoding requires an operand for the Return opcode, 8081the 8082compiler now emits a Return(Zero) for this case. An ACPI specification 8083update has been written for this case. 8084 8085For tables other than the DSDT, namepath optimization is automatically 8086disabled. This is because SSDTs can be loaded anywhere in the namespace, 8087the 8088compiler has no knowledge of where, and thus cannot optimize namepaths. 8089 8090Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 8091inadvertently omitted from the ACPI specification, and will require an 8092update to the spec. 8093 8094The source file scan for ASCII characters is now optional (-a). This 8095change 8096was made because some vendors place non-ascii characters within comments. 8097However, the scan is simply a brute-force byte compare to ensure all 8098characters in the file are in the range 0x00 to 0x7F. 8099 8100Fixed a problem with the CondRefOf operator where the compiler was 8101inappropriately checking for the existence of the target. Since the point 8102of 8103the operator is to check for the existence of the target at run-time, the 8104compiler no longer checks for the target existence. 8105 8106Fixed a problem where errors generated from the internal AML interpreter 8107during constant folding were not handled properly, causing a fault. 8108 8109Fixed a problem with overly aggressive range checking for the Stall 8110operator. The valid range (max 255) is now only checked if the operand is 8111of 8112type Integer. All other operand types cannot be statically checked. 8113 8114Fixed a problem where control method references within the RefOf, DeRefOf, 8115and ObjectType operators were not treated properly. They are now treated 8116as 8117actual references, not method invocations. 8118 8119Fixed and enhanced the "list namespace" option (-ln). This option was 8120broken 8121a number of releases ago. 8122 8123Improved error handling for the Field, IndexField, and BankField 8124operators. 8125The compiler now cleanly reports and recovers from errors in the field 8126component (FieldUnit) list. 8127 8128Fixed a disassembler problem where the optional ResourceDescriptor fields 8129TRS and TTP were not always handled correctly. 8130 8131Disassembler - Comments in output now use "//" instead of "/*" 8132 8133---------------------------------------- 813428 February 2005. Summary of changes for version 20050228: 8135 81361) ACPI CA Core Subsystem: 8137 8138Fixed a problem where the result of an Index() operator (an object 8139reference) must increment the reference count on the target object for the 8140life of the object reference. 8141 8142Implemented AML Interpreter and Debugger support for the new ACPI 3.0 8143Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 8144WordSpace 8145resource descriptors. 8146 8147Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 8148Space Descriptor" string, indicating interpreter support for the 8149descriptors 8150above. 8151 8152Implemented header support for the new ACPI 3.0 FADT flag bits. 8153 8154Implemented header support for the new ACPI 3.0 PCI Express bits for the 8155PM1 8156status/enable registers. 8157 8158Updated header support for the MADT processor local Apic struct and MADT 8159platform interrupt source struct for new ACPI 3.0 fields. 8160 8161Implemented header support for the SRAT and SLIT ACPI tables. 8162 8163Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 8164flag 8165at runtime. 8166 8167Code and Data Size: Current and previous core subsystem library sizes are 8168shown below. These are the code and data sizes for the acpica.lib produced 8169by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8170any ACPI driver or OSPM code. The debug version of the code includes the 8171debug output trace mechanism and has a much larger code and data size. 8172Note 8173that these values will vary depending on the efficiency of the compiler 8174and 8175the compiler options used during generation. 8176 8177 Previous Release: 8178 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 8179 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 8180 Current Release: 8181 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8182 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 8183 8184 81852) iASL Compiler/Disassembler: 8186 8187Fixed a problem with the internal 64-bit String-to-integer conversion with 8188strings less than two characters long. 8189 8190Fixed a problem with constant folding where the result of the Index() 8191operator can not be considered a constant. This means that Index() cannot 8192be 8193a type3 opcode and this will require an update to the ACPI specification. 8194 8195Disassembler: Implemented support for the TTP, MTP, and TRS resource 8196descriptor fields. These fields were inadvertently ignored and not output 8197in 8198the disassembly of the resource descriptor. 8199 8200 8201 ---------------------------------------- 820211 February 2005. Summary of changes for version 20050211: 8203 82041) ACPI CA Core Subsystem: 8205 8206Implemented ACPI 3.0 support for implicit conversion within the Match() 8207operator. MatchObjects can now be of type integer, buffer, or string 8208instead 8209of just type integer. Package elements are implicitly converted to the 8210type 8211of the MatchObject. This change aligns the behavior of Match() with the 8212behavior of the other logical operators (LLess(), etc.) It also requires 8213an 8214errata change to the ACPI specification as this support was intended for 8215ACPI 3.0, but was inadvertently omitted. 8216 8217Fixed a problem with the internal implicit "to buffer" conversion. Strings 8218that are converted to buffers will cause buffer truncation if the string 8219is 8220smaller than the target buffer. Integers that are converted to buffers 8221will 8222not cause buffer truncation, only zero extension (both as per the ACPI 8223spec.) The problem was introduced when code was added to truncate the 8224buffer, but this should not be performed in all cases, only the string 8225case. 8226 8227Fixed a problem with the Buffer and Package operators where the 8228interpreter 8229would get confused if two such operators were used as operands to an ASL 8230operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 8231stack was not being popped after the execution of these operators, 8232resulting 8233in an AE_NO_RETURN_VALUE exception. 8234 8235Fixed a problem with constructs of the form Store(Index(...),...). The 8236reference object returned from Index was inadvertently resolved to an 8237actual 8238value. This problem was introduced in version 20050114 when the behavior 8239of 8240Store() was modified to restrict the object types that can be used as the 8241source operand (to match the ACPI specification.) 8242 8243Reduced excessive stack use within the AcpiGetObjectInfo procedure. 8244 8245Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 8246 8247Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 8248 8249Code and Data Size: Current and previous core subsystem library sizes are 8250shown below. These are the code and data sizes for the acpica.lib produced 8251by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8252any ACPI driver or OSPM code. The debug version of the code includes the 8253debug output trace mechanism and has a much larger code and data size. 8254Note 8255that these values will vary depending on the efficiency of the compiler 8256and 8257the compiler options used during generation. 8258 8259 Previous Release: 8260 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 8261 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 8262 Current Release: 8263 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 8264 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 8265 8266 82672) iASL Compiler/Disassembler: 8268 8269Fixed a code generation problem in the constant folding optimization code 8270where incorrect code was generated if a constant was reduced to a buffer 8271object (i.e., a reduced type 5 opcode.) 8272 8273Fixed a typechecking problem for the ToBuffer operator. Caused by an 8274incorrect return type in the internal opcode information table. 8275 8276---------------------------------------- 827725 January 2005. Summary of changes for version 20050125: 8278 82791) ACPI CA Core Subsystem: 8280 8281Fixed a recently introduced problem with the Global Lock where the 8282underlying semaphore was not created. This problem was introduced in 8283version 20050114, and caused an AE_AML_NO_OPERAND exception during an 8284Acquire() operation on _GL. 8285 8286The local object cache is now optional, and is disabled by default. Both 8287AcpiExec and the iASL compiler enable the cache because they run in user 8288mode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 8289to enable the local cache. 8290 8291Fixed an issue in the internal function AcpiUtEvaluateObject concerning 8292the 8293optional "implicit return" support where an error was returned if no 8294return 8295object was expected, but one was implicitly returned. AE_OK is now 8296returned 8297in this case and the implicitly returned object is deleted. 8298AcpiUtEvaluateObject is only occasionally used, and only to execute 8299reserved 8300methods such as _STA and _INI where the return type is known up front. 8301 8302Fixed a few issues with the internal convert-to-integer code. It now 8303returns 8304an error if an attempt is made to convert a null string, a string of only 8305blanks/tabs, or a zero-length buffer. This affects both implicit 8306conversion 8307and explicit conversion via the ToInteger() operator. 8308 8309The internal debug code in AcpiUtAcquireMutex has been commented out. It 8310is 8311not needed for normal operation and should increase the performance of the 8312entire subsystem. The code remains in case it is needed for debug purposes 8313again. 8314 8315The AcpiExec source and makefile are included in the Unix/Linux package 8316for 8317the first time. 8318 8319Code and Data Size: Current and previous core subsystem library sizes are 8320shown below. These are the code and data sizes for the acpica.lib produced 8321by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8322any ACPI driver or OSPM code. The debug version of the code includes the 8323debug output trace mechanism and has a much larger code and data size. 8324Note 8325that these values will vary depending on the efficiency of the compiler 8326and 8327the compiler options used during generation. 8328 8329 Previous Release: 8330 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 8331 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 8332 Current Release: 8333 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 8334 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 8335 83362) iASL Compiler/Disassembler: 8337 8338Switch/Case support: A warning is now issued if the type of the Switch 8339value 8340cannot be determined at compile time. For example, Switch(Arg0) will 8341generate the warning, and the type is assumed to be an integer. As per the 8342ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 8343the 8344warning. 8345 8346Switch/Case support: Implemented support for buffer and string objects as 8347the switch value. This is an ACPI 3.0 feature, now that LEqual supports 8348buffers and strings. 8349 8350Switch/Case support: The emitted code for the LEqual() comparisons now 8351uses 8352the switch value as the first operand, not the second. The case value is 8353now 8354the second operand, and this allows the case value to be implicitly 8355converted to the type of the switch value, not the other way around. 8356 8357Switch/Case support: Temporary variables are now emitted immediately 8358within 8359the control method, not at the global level. This means that there are now 836036 temps available per-method, not 36 temps per-module as was the case 8361with 8362the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 8363 8364---------------------------------------- 836514 January 2005. Summary of changes for version 20050114: 8366 8367Added 2005 copyright to all module headers. This affects every module in 8368the core subsystem, iASL compiler, and the utilities. 8369 83701) ACPI CA Core Subsystem: 8371 8372Fixed an issue with the String-to-Buffer conversion code where the string 8373null terminator was not included in the buffer after conversion, but there 8374is existing ASL that assumes the string null terminator is included. This 8375is 8376the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 8377introduced in the previous version when the code was updated to correctly 8378set the converted buffer size as per the ACPI specification. The ACPI spec 8379is ambiguous and will be updated to specify that the null terminator must 8380be 8381included in the converted buffer. This also affects the ToBuffer() ASL 8382operator. 8383 8384Fixed a problem with the Mid() ASL/AML operator where it did not work 8385correctly on Buffer objects. Newly created sub-buffers were not being 8386marked 8387as initialized. 8388 8389 8390Fixed a problem in AcpiTbFindTable where incorrect string compares were 8391performed on the OemId and OemTableId table header fields. These fields 8392are 8393not null terminated, so strncmp is now used instead of strcmp. 8394 8395Implemented a restriction on the Store() ASL/AML operator to align the 8396behavior with the ACPI specification. Previously, any object could be 8397used 8398as the source operand. Now, the only objects that may be used are 8399Integers, 8400Buffers, Strings, Packages, Object References, and DDB Handles. If 8401necessary, the original behavior can be restored by enabling the 8402EnableInterpreterSlack flag. 8403 8404Enhanced the optional "implicit return" support to allow an implicit 8405return 8406value from methods that are invoked externally via the AcpiEvaluateObject 8407interface. This enables implicit returns from the _STA and _INI methods, 8408for example. 8409 8410Changed the Revision() ASL/AML operator to return the current version of 8411the 8412AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 8413returned 8414the supported ACPI version (This is the function of the _REV method). 8415 8416Updated the _REV predefined method to return the currently supported 8417version 8418of ACPI, now 3. 8419 8420Implemented batch mode option for the AcpiExec utility (-b). 8421 8422Code and Data Size: Current and previous core subsystem library sizes are 8423shown below. These are the code and data sizes for the acpica.lib produced 8424by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8425any ACPI driver or OSPM code. The debug version of the code includes the 8426debug output trace mechanism and has a much larger code and data size. 8427Note 8428that these values will vary depending on the efficiency of the compiler 8429and 8430the compiler options used during generation. 8431 8432 Previous Release: 8433 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8434 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 8435 Current Release: 8436 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 8437 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 8438 8439---------------------------------------- 844010 December 2004. Summary of changes for version 20041210: 8441 8442ACPI 3.0 support is nearing completion in both the iASL compiler and the 8443ACPI CA core subsystem. 8444 84451) ACPI CA Core Subsystem: 8446 8447Fixed a problem in the ToDecimalString operator where the resulting string 8448length was incorrectly calculated. The length is now calculated exactly, 8449eliminating incorrect AE_STRING_LIMIT exceptions. 8450 8451Fixed a problem in the ToHexString operator to allow a maximum 200 8452character 8453string to be produced. 8454 8455Fixed a problem in the internal string-to-buffer and buffer-to-buffer copy 8456routine where the length of the resulting buffer was not truncated to the 8457new size (if the target buffer already existed). 8458 8459Code and Data Size: Current and previous core subsystem library sizes are 8460shown below. These are the code and data sizes for the acpica.lib produced 8461by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8462any ACPI driver or OSPM code. The debug version of the code includes the 8463debug output trace mechanism and has a much larger code and data size. 8464Note 8465that these values will vary depending on the efficiency of the compiler 8466and 8467the compiler options used during generation. 8468 8469 Previous Release: 8470 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8471 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 8472 Current Release: 8473 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8474 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 8475 8476 84772) iASL Compiler/Disassembler: 8478 8479Implemented the new ACPI 3.0 resource template macros - DWordSpace, 8480ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 8481Includes support in the disassembler. 8482 8483Implemented support for the new (ACPI 3.0) parameter to the Register 8484macro, 8485AccessSize. 8486 8487Fixed a problem where the _HE resource name for the Interrupt macro was 8488referencing bit 0 instead of bit 1. 8489 8490Implemented check for maximum 255 interrupts in the Interrupt macro. 8491 8492Fixed a problem with the predefined resource descriptor names where 8493incorrect AML code was generated if the offset within the resource buffer 8494was 0 or 1. The optimizer shortened the AML code to a single byte opcode 8495but did not update the surrounding package lengths. 8496 8497Changes to the Dma macro: All channels within the channel list must be in 8498the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 8499optional (default is BusMaster). 8500 8501Implemented check for maximum 7 data bytes for the VendorShort macro. 8502 8503The ReadWrite parameter is now optional for the Memory32 and similar 8504macros. 8505 8506---------------------------------------- 850703 December 2004. Summary of changes for version 20041203: 8508 85091) ACPI CA Core Subsystem: 8510 8511The low-level field insertion/extraction code (exfldio) has been 8512completely 8513rewritten to eliminate unnecessary complexity, bugs, and boundary 8514conditions. 8515 8516Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 8517ToDecimalString 8518operators where the input operand could be inadvertently deleted if no 8519conversion was necessary (e.g., if the input to ToInteger was an Integer 8520object.) 8521 8522Fixed a problem with the ToDecimalString and ToHexString where an 8523incorrect 8524exception code was returned if the resulting string would be > 200 chars. 8525AE_STRING_LIMIT is now returned. 8526 8527Fixed a problem with the Concatenate operator where AE_OK was always 8528returned, even if the operation failed. 8529 8530Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 8531semaphores to be allocated. 8532 8533Code and Data Size: Current and previous core subsystem library sizes are 8534shown below. These are the code and data sizes for the acpica.lib produced 8535by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8536any ACPI driver or OSPM code. The debug version of the code includes the 8537debug output trace mechanism and has a much larger code and data size. 8538Note 8539that these values will vary depending on the efficiency of the compiler 8540and 8541the compiler options used during generation. 8542 8543 Previous Release: 8544 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8545 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8546 Current Release: 8547 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 8548 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 8549 8550 85512) iASL Compiler/Disassembler: 8552 8553Fixed typechecking for the ObjectType and SizeOf operators. Problem was 8554recently introduced in 20041119. 8555 8556Fixed a problem with the ToUUID macro where the upper nybble of each 8557buffer 8558byte was inadvertently set to zero. 8559 8560---------------------------------------- 856119 November 2004. Summary of changes for version 20041119: 8562 85631) ACPI CA Core Subsystem: 8564 8565Fixed a problem in the internal ConvertToInteger routine where new 8566integers 8567were not truncated to 32 bits for 32-bit ACPI tables. This routine 8568converts 8569buffers and strings to integers. 8570 8571Implemented support to store a value to an Index() on a String object. 8572This 8573is an ACPI 2.0 feature that had not yet been implemented. 8574 8575Implemented new behavior for storing objects to individual package 8576elements 8577(via the Index() operator). The previous behavior was to invoke the 8578implicit 8579conversion rules if an object was already present at the index. The new 8580behavior is to simply delete any existing object and directly store the 8581new 8582object. Although the ACPI specification seems unclear on this subject, 8583other 8584ACPI implementations behave in this manner. (This is the root of the 8585AE_BAD_HEX_CONSTANT issue.) 8586 8587Modified the RSDP memory scan mechanism to support the extended checksum 8588for 8589ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 8590RSDP signature is found with a valid checksum. 8591 8592Code and Data Size: Current and previous core subsystem library sizes are 8593shown below. These are the code and data sizes for the acpica.lib produced 8594by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8595any ACPI driver or OSPM code. The debug version of the code includes the 8596debug output trace mechanism and has a much larger code and data size. 8597Note 8598that these values will vary depending on the efficiency of the compiler 8599and 8600the compiler options used during generation. 8601 8602 Previous Release: 8603 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8604 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8605 Current Release: 8606 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8607 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8608 8609 86102) iASL Compiler/Disassembler: 8611 8612Fixed a missing semicolon in the aslcompiler.y file. 8613 8614---------------------------------------- 861505 November 2004. Summary of changes for version 20041105: 8616 86171) ACPI CA Core Subsystem: 8618 8619Implemented support for FADT revision 2. This was an interim table 8620(between 8621ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 8622 8623Implemented optional support to allow uninitialized LocalX and ArgX 8624variables in a control method. The variables are initialized to an 8625Integer 8626object with a value of zero. This support is enabled by setting the 8627AcpiGbl_EnableInterpreterSlack flag to TRUE. 8628 8629Implemented support for Integer objects for the SizeOf operator. Either 4 8630or 8 is returned, depending on the current integer size (32-bit or 64-bit, 8631depending on the parent table revision). 8632 8633Fixed a problem in the implementation of the SizeOf and ObjectType 8634operators 8635where the operand was resolved to a value too early, causing incorrect 8636return values for some objects. 8637 8638Fixed some possible memory leaks during exceptional conditions. 8639 8640Code and Data Size: Current and previous core subsystem library sizes are 8641shown below. These are the code and data sizes for the acpica.lib produced 8642by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8643any ACPI driver or OSPM code. The debug version of the code includes the 8644debug output trace mechanism and has a much larger code and data size. 8645Note 8646that these values will vary depending on the efficiency of the compiler 8647and 8648the compiler options used during generation. 8649 8650 Previous Release: 8651 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8652 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 8653 Current Release: 8654 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 8655 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 8656 8657 86582) iASL Compiler/Disassembler: 8659 8660Implemented support for all ACPI 3.0 reserved names and methods. 8661 8662Implemented all ACPI 3.0 grammar elements in the front-end, including 8663support for semicolons. 8664 8665Implemented the ACPI 3.0 Function() and ToUUID() macros 8666 8667Fixed a problem in the disassembler where a Scope() operator would not be 8668emitted properly if the target of the scope was in another table. 8669 8670---------------------------------------- 867115 October 2004. Summary of changes for version 20041015: 8672 8673Note: ACPI CA is currently undergoing an in-depth and complete formal 8674evaluation to test/verify the following areas. Other suggestions are 8675welcome. This will result in an increase in the frequency of releases and 8676the number of bug fixes in the next few months. 8677 - Functional tests for all ASL/AML operators 8678 - All implicit/explicit type conversions 8679 - Bit fields and operation regions 8680 - 64-bit math support and 32-bit-only "truncated" math support 8681 - Exceptional conditions, both compiler and interpreter 8682 - Dynamic object deletion and memory leaks 8683 - ACPI 3.0 support when implemented 8684 - External interfaces to the ACPI subsystem 8685 8686 86871) ACPI CA Core Subsystem: 8688 8689Fixed two alignment issues on 64-bit platforms - within debug statements 8690in 8691AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 8692Address 8693field within the non-aligned ACPI generic address structure. 8694 8695Fixed a problem in the Increment and Decrement operators where incorrect 8696operand resolution could result in the inadvertent modification of the 8697original integer when the integer is passed into another method as an 8698argument and the arg is then incremented/decremented. 8699 8700Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 8701bit 8702BCD number were truncated during conversion. 8703 8704Fixed a problem in the ToDecimal operator where the length of the 8705resulting 8706string could be set incorrectly too long if the input operand was a Buffer 8707object. 8708 8709Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 8710(0) 8711within a buffer would prematurely terminate a compare between buffer 8712objects. 8713 8714Added a check for string overflow (>200 characters as per the ACPI 8715specification) during the Concatenate operator with two string operands. 8716 8717Code and Data Size: Current and previous core subsystem library sizes are 8718shown below. These are the code and data sizes for the acpica.lib produced 8719by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8720any ACPI driver or OSPM code. The debug version of the code includes the 8721debug output trace mechanism and has a much larger code and data size. 8722Note 8723that these values will vary depending on the efficiency of the compiler 8724and 8725the compiler options used during generation. 8726 8727 Previous Release: 8728 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8729 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 8730 Current Release: 8731 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8732 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 8733 8734 8735 87362) iASL Compiler/Disassembler: 8737 8738Allow the use of the ObjectType operator on uninitialized Locals and Args 8739(returns 0 as per the ACPI specification). 8740 8741Fixed a problem where the compiler would fault if there was a syntax error 8742in the FieldName of all of the various CreateXXXField operators. 8743 8744Disallow the use of lower case letters within the EISAID macro, as per the 8745ACPI specification. All EISAID strings must be of the form "UUUNNNN" 8746Where 8747U is an uppercase letter and N is a hex digit. 8748 8749 8750---------------------------------------- 875106 October 2004. Summary of changes for version 20041006: 8752 87531) ACPI CA Core Subsystem: 8754 8755Implemented support for the ACPI 3.0 Timer operator. This ASL function 8756implements a 64-bit timer with 100 nanosecond granularity. 8757 8758Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 8759implement the ACPI 3.0 Timer operator. This allows the host OS to 8760implement 8761the timer with the best clock available. Also, it keeps the core subsystem 8762out of the clock handling business, since the host OS (usually) performs 8763this function. 8764 8765Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 8766functions use a 64-bit address which is part of the packed ACPI Generic 8767Address Structure. Since the structure is non-aligned, the alignment 8768macros 8769are now used to extract the address to a local variable before use. 8770 8771Fixed a problem where the ToInteger operator assumed all input strings 8772were 8773hexadecimal. The operator now handles both decimal strings and hex strings 8774(prefixed with "0x"). 8775 8776Fixed a problem where the string length in the string object created as a 8777result of the internal ConvertToString procedure could be incorrect. This 8778potentially affected all implicit conversions and also the ToDecimalString 8779and ToHexString operators. 8780 8781Fixed two problems in the ToString operator. If the length parameter was 8782zero, an incorrect string object was created and the value of the input 8783length parameter was inadvertently changed from zero to Ones. 8784 8785Fixed a problem where the optional ResourceSource string in the 8786ExtendedIRQ 8787resource macro was ignored. 8788 8789Simplified the interfaces to the internal division functions, reducing 8790code 8791size and complexity. 8792 8793Code and Data Size: Current and previous core subsystem library sizes are 8794shown below. These are the code and data sizes for the acpica.lib produced 8795by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8796any ACPI driver or OSPM code. The debug version of the code includes the 8797debug output trace mechanism and has a much larger code and data size. 8798Note 8799that these values will vary depending on the efficiency of the compiler 8800and 8801the compiler options used during generation. 8802 8803 Previous Release: 8804 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 8805 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 8806 Current Release: 8807 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 8808 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 8809 8810 88112) iASL Compiler/Disassembler: 8812 8813Implemented support for the ACPI 3.0 Timer operator. 8814 8815Fixed a problem where the Default() operator was inadvertently ignored in 8816a 8817Switch/Case block. This was a problem in the translation of the Switch 8818statement to If...Else pairs. 8819 8820Added support to allow a standalone Return operator, with no parentheses 8821(or 8822operands). 8823 8824Fixed a problem with code generation for the ElseIf operator where the 8825translated Else...If parse tree was improperly constructed leading to the 8826loss of some code. 8827 8828---------------------------------------- 882922 September 2004. Summary of changes for version 20040922: 8830 88311) ACPI CA Core Subsystem: 8832 8833Fixed a problem with the implementation of the LNot() operator where 8834"Ones" 8835was not returned for the TRUE case. Changed the code to return Ones 8836instead 8837of (!Arg) which was usually 1. This change affects iASL constant folding 8838for 8839this operator also. 8840 8841Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 8842initialized properly -- Now zero the entire buffer in this case where the 8843buffer already exists. 8844 8845Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 8846Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 8847related code considerably. This will require changes/updates to all OS 8848interface layers (OSLs.) 8849 8850Implemented a new external interface, AcpiInstallExceptionHandler, to 8851allow 8852a system exception handler to be installed. This handler is invoked upon 8853any 8854run-time exception that occurs during control method execution. 8855 8856Added support for the DSDT in AcpiTbFindTable. This allows the 8857DataTableRegion() operator to access the local copy of the DSDT. 8858 8859Code and Data Size: Current and previous core subsystem library sizes are 8860shown below. These are the code and data sizes for the acpica.lib produced 8861by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8862any ACPI driver or OSPM code. The debug version of the code includes the 8863debug output trace mechanism and has a much larger code and data size. 8864Note 8865that these values will vary depending on the efficiency of the compiler 8866and 8867the compiler options used during generation. 8868 8869 Previous Release: 8870 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 8871 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 8872 Current Release: 8873 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 8874 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 8875 8876 88772) iASL Compiler/Disassembler: 8878 8879Fixed a problem with constant folding and the LNot operator. LNot was 8880returning 1 in the TRUE case, not Ones as per the ACPI specification. This 8881could result in the generation of an incorrect folded/reduced constant. 8882 8883End-Of-File is now allowed within a "//"-style comment. A parse error no 8884longer occurs if such a comment is at the very end of the input ASL source 8885file. 8886 8887Implemented the "-r" option to override the Revision in the table header. 8888The initial use of this option will be to simplify the evaluation of the 8889AML 8890interpreter by allowing a single ASL source module to be compiled for 8891either 889232-bit or 64-bit integers. 8893 8894 8895---------------------------------------- 889627 August 2004. Summary of changes for version 20040827: 8897 88981) ACPI CA Core Subsystem: 8899 8900- Implemented support for implicit object conversion in the non-numeric 8901logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 8902LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 8903the second operand is implicitly converted on the fly to match the type of 8904the first operand. For example: 8905 8906 LEqual (Source1, Source2) 8907 8908Source1 and Source2 must each evaluate to an integer, a string, or a 8909buffer. 8910The data type of Source1 dictates the required type of Source2. Source2 is 8911implicitly converted if necessary to match the type of Source1. 8912 8913- Updated and corrected the behavior of the string conversion support. 8914The 8915rules concerning conversion of buffers to strings (according to the ACPI 8916specification) are as follows: 8917 8918ToDecimalString - explicit byte-wise conversion of buffer to string of 8919decimal values (0-255) separated by commas. ToHexString - explicit byte- 8920wise 8921conversion of buffer to string of hex values (0-FF) separated by commas. 8922ToString - explicit byte-wise conversion of buffer to string. Byte-by- 8923byte 8924copy with no transform except NULL terminated. Any other implicit buffer- 8925to- 8926string conversion - byte-wise conversion of buffer to string of hex values 8927(0-FF) separated by spaces. 8928 8929- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 8930 8931- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 8932one byte too short in the case of a node in the root scope. This could 8933cause a fault during debug output. 8934 8935- Code and Data Size: Current and previous core subsystem library sizes 8936are 8937shown below. These are the code and data sizes for the acpica.lib 8938produced 8939by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8940any ACPI driver or OSPM code. The debug version of the code includes the 8941debug output trace mechanism and has a much larger code and data size. 8942Note 8943that these values will vary depending on the efficiency of the compiler 8944and 8945the compiler options used during generation. 8946 8947 Previous Release: 8948 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 8949 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 8950 Current Release: 8951 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 8952 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 8953 8954 89552) iASL Compiler/Disassembler: 8956 8957- Fixed a Linux generation error. 8958 8959 8960---------------------------------------- 896116 August 2004. Summary of changes for version 20040816: 8962 89631) ACPI CA Core Subsystem: 8964 8965Designed and implemented support within the AML interpreter for the so- 8966called "implicit return". This support returns the result of the last ASL 8967operation within a control method, in the absence of an explicit Return() 8968operator. A few machines depend on this behavior, even though it is not 8969explicitly supported by the ASL language. It is optional support that can 8970be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 8971 8972Removed support for the PCI_Config address space from the internal low 8973level 8974hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 8975support was not used internally, and would not work correctly anyway 8976because 8977the PCI bus number and segment number were not supported. There are 8978separate interfaces for PCI configuration space access because of the 8979unique 8980interface. 8981 8982Code and Data Size: Current and previous core subsystem library sizes are 8983shown below. These are the code and data sizes for the acpica.lib 8984produced 8985by the Microsoft Visual C++ 6.0 compiler, and these values do not include 8986any ACPI driver or OSPM code. The debug version of the code includes the 8987debug output trace mechanism and has a much larger code and data size. 8988Note 8989that these values will vary depending on the efficiency of the compiler 8990and 8991the compiler options used during generation. 8992 8993 Previous Release: 8994 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 8995 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 8996 Current Release: 8997 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 8998 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 8999 9000 90012) iASL Compiler/Disassembler: 9002 9003Fixed a problem where constants in ASL expressions at the root level (not 9004within a control method) could be inadvertently truncated during code 9005generation. This problem was introduced in the 20040715 release. 9006 9007 9008---------------------------------------- 900915 July 2004. Summary of changes for version 20040715: 9010 90111) ACPI CA Core Subsystem: 9012 9013Restructured the internal HW GPE interfaces to pass/track the current 9014state 9015of interrupts (enabled/disabled) in order to avoid possible deadlock and 9016increase flexibility of the interfaces. 9017 9018Implemented a "lexicographical compare" for String and Buffer objects 9019within 9020the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 9021as per further clarification to the ACPI specification. Behavior is 9022similar 9023to C library "strcmp". 9024 9025Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 9026external function. In the 32-bit non-debug case, the stack use has been 9027reduced from 168 bytes to 32 bytes. 9028 9029Deployed a new run-time configuration flag, 9030AcpiGbl_EnableInterpreterSlack, 9031whose purpose is to allow the AML interpreter to forgive certain bad AML 9032constructs. Default setting is FALSE. 9033 9034Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 9035IO 9036support code. If enabled, it allows field access to go beyond the end of 9037a 9038region definition if the field is within the region length rounded up to 9039the 9040next access width boundary (a common coding error.) 9041 9042Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 9043ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 9044these 9045symbols are lowercased by the latest version of the AcpiSrc tool. 9046 9047The prototypes for the PCI interfaces in acpiosxf.h have been updated to 9048rename "Register" to simply "Reg" to prevent certain compilers from 9049complaining. 9050 9051Code and Data Size: Current and previous core subsystem library sizes are 9052shown below. These are the code and data sizes for the acpica.lib 9053produced 9054by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9055any ACPI driver or OSPM code. The debug version of the code includes the 9056debug output trace mechanism and has a much larger code and data size. 9057Note 9058that these values will vary depending on the efficiency of the compiler 9059and 9060the compiler options used during generation. 9061 9062 Previous Release: 9063 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 9064 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 9065 Current Release: 9066 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 9067 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 9068 9069 90702) iASL Compiler/Disassembler: 9071 9072Implemented full support for Package objects within the Case() operator. 9073Note: The Break() operator is currently not supported within Case blocks 9074(TermLists) as there is some question about backward compatibility with 9075ACPI 90761.0 interpreters. 9077 9078 9079Fixed a problem where complex terms were not supported properly within the 9080Switch() operator. 9081 9082Eliminated extraneous warning for compiler-emitted reserved names of the 9083form "_T_x". (Used in Switch/Case operators.) 9084 9085Eliminated optimization messages for "_T_x" objects and small constants 9086within the DefinitionBlock operator. 9087 9088 9089---------------------------------------- 909015 June 2004. Summary of changes for version 20040615: 9091 90921) ACPI CA Core Subsystem: 9093 9094Implemented support for Buffer and String objects (as per ACPI 2.0) for 9095the 9096following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 9097LLessEqual. 9098 9099All directory names in the entire source package are lower case, as they 9100were in earlier releases. 9101 9102Implemented "Disassemble" command in the AML debugger that will 9103disassemble 9104a single control method. 9105 9106Code and Data Size: Current and previous core subsystem library sizes are 9107shown below. These are the code and data sizes for the acpica.lib 9108produced 9109by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9110any ACPI driver or OSPM code. The debug version of the code includes the 9111debug output trace mechanism and has a much larger code and data size. 9112Note 9113that these values will vary depending on the efficiency of the compiler 9114and 9115the compiler options used during generation. 9116 9117 Previous Release: 9118 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 9119 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 9120 9121 Current Release: 9122 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 9123 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 9124 9125 91262) iASL Compiler/Disassembler: 9127 9128Implemented support for Buffer and String objects (as per ACPI 2.0) for 9129the 9130following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 9131LLessEqual. 9132 9133All directory names in the entire source package are lower case, as they 9134were in earlier releases. 9135 9136Fixed a fault when using the -g or -d<nofilename> options if the FADT was 9137not found. 9138 9139Fixed an issue with the Windows version of the compiler where later 9140versions 9141of Windows place the FADT in the registry under the name "FADT" and not 9142"FACP" as earlier versions did. This applies when using the -g or - 9143d<nofilename> options. The compiler now looks for both strings as 9144necessary. 9145 9146Fixed a problem with compiler namepath optimization where a namepath 9147within 9148the Scope() operator could not be optimized if the namepath was a subpath 9149of 9150the current scope path. 9151 9152---------------------------------------- 915327 May 2004. Summary of changes for version 20040527: 9154 91551) ACPI CA Core Subsystem: 9156 9157Completed a new design and implementation for EBDA (Extended BIOS Data 9158Area) 9159support in the RSDP scan code. The original code improperly scanned for 9160the 9161EBDA by simply scanning from memory location 0 to 0x400. The correct 9162method 9163is to first obtain the EBDA pointer from within the BIOS data area, then 9164scan 1K of memory starting at the EBDA pointer. There appear to be few if 9165any machines that place the RSDP in the EBDA, however. 9166 9167Integrated a fix for a possible fault during evaluation of BufferField 9168arguments. Obsolete code that was causing the problem was removed. 9169 9170Found and fixed a problem in the Field Support Code where data could be 9171corrupted on a bit field read that starts on an aligned boundary but does 9172not end on an aligned boundary. Merged the read/write "datum length" 9173calculation code into a common procedure. 9174 9175Rolled in a couple of changes to the FreeBSD-specific header. 9176 9177 9178Code and Data Size: Current and previous core subsystem library sizes are 9179shown below. These are the code and data sizes for the acpica.lib 9180produced 9181by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9182any ACPI driver or OSPM code. The debug version of the code includes the 9183debug output trace mechanism and has a much larger code and data size. 9184Note 9185that these values will vary depending on the efficiency of the compiler 9186and 9187the compiler options used during generation. 9188 9189 Previous Release: 9190 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 9191 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 9192 Current Release: 9193 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 9194 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 9195 9196 91972) iASL Compiler/Disassembler: 9198 9199Fixed a generation warning produced by some overly-verbose compilers for a 920064-bit constant. 9201 9202---------------------------------------- 920314 May 2004. Summary of changes for version 20040514: 9204 92051) ACPI CA Core Subsystem: 9206 9207Fixed a problem where hardware GPE enable bits sometimes not set properly 9208during and after GPE method execution. Result of 04/27 changes. 9209 9210Removed extra "clear all GPEs" when sleeping/waking. 9211 9212Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 9213AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 9214to 9215the new AcpiEv* calls as appropriate. 9216 9217ACPI_OS_NAME was removed from the OS-specific headers. The default name 9218is 9219now "Microsoft Windows NT" for maximum compatibility. However this can be 9220changed by modifying the acconfig.h file. 9221 9222Allow a single invocation of AcpiInstallNotifyHandler for a handler that 9223traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 9224 9225Run _INI methods on ThermalZone objects. This is against the ACPI 9226specification, but there is apparently ASL code in the field that has 9227these 9228_INI methods, and apparently "other" AML interpreters execute them. 9229 9230Performed a full 16/32/64 bit lint that resulted in some small changes. 9231 9232Added a sleep simulation command to the AML debugger to test sleep code. 9233 9234Code and Data Size: Current and previous core subsystem library sizes are 9235shown below. These are the code and data sizes for the acpica.lib 9236produced 9237by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9238any ACPI driver or OSPM code. The debug version of the code includes the 9239debug output trace mechanism and has a much larger code and data size. 9240Note 9241that these values will vary depending on the efficiency of the compiler 9242and 9243the compiler options used during generation. 9244 9245 Previous Release: 9246 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 9247 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 9248 Current Release: 9249 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 9250 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 9251 9252---------------------------------------- 925327 April 2004. Summary of changes for version 20040427: 9254 92551) ACPI CA Core Subsystem: 9256 9257Completed a major overhaul of the GPE handling within ACPI CA. There are 9258now three types of GPEs: wake-only, runtime-only, and combination 9259wake/run. 9260The only GPEs allowed to be combination wake/run are for button-style 9261devices such as a control-method power button, control-method sleep 9262button, 9263or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 9264not 9265referenced by any _PRW methods are marked for "runtime" and hardware 9266enabled. Any GPE that is referenced by a _PRW method is marked for "wake" 9267(and disabled at runtime). However, at sleep time, only those GPEs that 9268have been specifically enabled for wake via the AcpiEnableGpe interface 9269will 9270actually be hardware enabled. 9271 9272A new external interface has been added, AcpiSetGpeType(), that is meant 9273to 9274be used by device drivers to force a GPE to a particular type. It will be 9275especially useful for the drivers for the button devices mentioned above. 9276 9277Completed restructuring of the ACPI CA initialization sequence so that 9278default operation region handlers are installed before GPEs are 9279initialized 9280and the _PRW methods are executed. This will prevent errors when the _PRW 9281methods attempt to access system memory or I/O space. 9282 9283GPE enable/disable no longer reads the GPE enable register. We now keep 9284the 9285enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 9286thus no longer depend on the hardware to maintain these bits. 9287 9288Always clear the wake status and fixed/GPE status bits before sleep, even 9289for state S5. 9290 9291Improved the AML debugger output for displaying the GPE blocks and their 9292current status. 9293 9294Added new strings for the _OSI method, of the form "Windows 2001 SPx" 9295where 9296x = 0,1,2,3,4. 9297 9298Fixed a problem where the physical address was incorrectly calculated when 9299the Load() operator was used to directly load from an Operation Region 9300(vs. 9301loading from a Field object.) Also added check for minimum table length 9302for 9303this case. 9304 9305Fix for multiple mutex acquisition. Restore original thread SyncLevel on 9306mutex release. 9307 9308Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 9309consistency with the other fields returned. 9310 9311Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 9312structure for each GPE in the system, so the size of this structure is 9313important. 9314 9315CPU stack requirement reduction: Cleaned up the method execution and 9316object 9317evaluation paths so that now a parameter structure is passed, instead of 9318copying the various method parameters over and over again. 9319 9320In evregion.c: Correctly exit and reenter the interpreter region if and 9321only if dispatching an operation region request to a user-installed 9322handler. 9323Do not exit/reenter when dispatching to a default handler (e.g., default 9324system memory or I/O handlers) 9325 9326 9327Notes for updating drivers for the new GPE support. The following changes 9328must be made to ACPI-related device drivers that are attached to one or 9329more 9330GPEs: (This information will be added to the ACPI CA Programmer 9331Reference.) 9332 93331) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 9334explicitly call AcpiEnableGpe. 93352) There is a new interface called AcpiSetGpeType. This should be called 9336before enabling the GPE. Also, this interface will automatically disable 9337the GPE if it is currently enabled. 93383) AcpiEnableGpe no longer supports a GPE type flag. 9339 9340Specific drivers that must be changed: 93411) EC driver: 9342 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 9343AeGpeHandler, NULL); 9344 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 9345 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 9346 93472) Button Drivers (Power, Lid, Sleep): 9348Run _PRW method under parent device 9349If _PRW exists: /* This is a control-method button */ 9350 Extract GPE number and possibly GpeDevice 9351 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 9352 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 9353 9354For all other devices that have _PRWs, we automatically set the GPE type 9355to 9356ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 9357must be done on a selective basis, usually requiring some kind of user app 9358to allow the user to pick the wake devices. 9359 9360 9361Code and Data Size: Current and previous core subsystem library sizes are 9362shown below. These are the code and data sizes for the acpica.lib 9363produced 9364by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9365any ACPI driver or OSPM code. The debug version of the code includes the 9366debug output trace mechanism and has a much larger code and data size. 9367Note 9368that these values will vary depending on the efficiency of the compiler 9369and 9370the compiler options used during generation. 9371 9372 Previous Release: 9373 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 9374 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 9375 Current Release: 9376 9377 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 9378 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 9379 9380 9381 9382---------------------------------------- 938302 April 2004. Summary of changes for version 20040402: 9384 93851) ACPI CA Core Subsystem: 9386 9387Fixed an interpreter problem where an indirect store through an ArgX 9388parameter was incorrectly applying the "implicit conversion rules" during 9389the store. From the ACPI specification: "If the target is a method local 9390or 9391argument (LocalX or ArgX), no conversion is performed and the result is 9392stored directly to the target". The new behavior is to disable implicit 9393conversion during ALL stores to an ArgX. 9394 9395Changed the behavior of the _PRW method scan to ignore any and all errors 9396returned by a given _PRW. This prevents the scan from aborting from the 9397failure of any single _PRW. 9398 9399Moved the runtime configuration parameters from the global init procedure 9400to 9401static variables in acglobal.h. This will allow the host to override the 9402default values easily. 9403 9404Code and Data Size: Current and previous core subsystem library sizes are 9405shown below. These are the code and data sizes for the acpica.lib 9406produced 9407by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9408any ACPI driver or OSPM code. The debug version of the code includes the 9409debug output trace mechanism and has a much larger code and data size. 9410Note 9411that these values will vary depending on the efficiency of the compiler 9412and 9413the compiler options used during generation. 9414 9415 Previous Release: 9416 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 9417 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 9418 Current Release: 9419 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 9420 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 9421 9422 94232) iASL Compiler/Disassembler: 9424 9425iASL now fully disassembles SSDTs. However, External() statements are not 9426generated automatically for unresolved symbols at this time. This is a 9427planned feature for future implementation. 9428 9429Fixed a scoping problem in the disassembler that occurs when the type of 9430the 9431target of a Scope() operator is overridden. This problem caused an 9432incorrectly nested internal namespace to be constructed. 9433 9434Any warnings or errors that are emitted during disassembly are now 9435commented 9436out automatically so that the resulting file can be recompiled without any 9437hand editing. 9438 9439---------------------------------------- 944026 March 2004. Summary of changes for version 20040326: 9441 94421) ACPI CA Core Subsystem: 9443 9444Implemented support for "wake" GPEs via interaction between GPEs and the 9445_PRW methods. Every GPE that is pointed to by one or more _PRWs is 9446identified as a WAKE GPE and by default will no longer be enabled at 9447runtime. Previously, we were blindly enabling all GPEs with a 9448corresponding 9449_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 9450We 9451believe this has been the cause of thousands of "spurious" GPEs on some 9452systems. 9453 9454This new GPE behavior is can be reverted to the original behavior (enable 9455ALL GPEs at runtime) via a runtime flag. 9456 9457Fixed a problem where aliased control methods could not access objects 9458properly. The proper scope within the namespace was not initialized 9459(transferred to the target of the aliased method) before executing the 9460target method. 9461 9462Fixed a potential race condition on internal object deletion on the return 9463object in AcpiEvaluateObject. 9464 9465Integrated a fix for resource descriptors where both _MEM and _MTP were 9466being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 9467wide, 0x0F instead of 0x03.) 9468 9469Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing 9470a 9471fault in some cases. 9472 9473Updated Notify() values for debug statements in evmisc.c 9474 9475Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 9476 9477Code and Data Size: Current and previous core subsystem library sizes are 9478shown below. These are the code and data sizes for the acpica.lib 9479produced 9480by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9481any ACPI driver or OSPM code. The debug version of the code includes the 9482debug output trace mechanism and has a much larger code and data size. 9483Note 9484that these values will vary depending on the efficiency of the compiler 9485and 9486the compiler options used during generation. 9487 9488 Previous Release: 9489 9490 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 9491 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 9492 Current Release: 9493 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 9494 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 9495 9496---------------------------------------- 949711 March 2004. Summary of changes for version 20040311: 9498 94991) ACPI CA Core Subsystem: 9500 9501Fixed a problem where errors occurring during the parse phase of control 9502method execution did not abort cleanly. For example, objects created and 9503installed in the namespace were not deleted. This caused all subsequent 9504invocations of the method to return the AE_ALREADY_EXISTS exception. 9505 9506Implemented a mechanism to force a control method to "Serialized" 9507execution 9508if the method attempts to create namespace objects. (The root of the 9509AE_ALREADY_EXISTS problem.) 9510 9511Implemented support for the predefined _OSI "internal" control method. 9512Initial supported strings are "Linux", "Windows 2000", "Windows 2001", and 9513"Windows 2001.1", and can be easily upgraded for new strings as necessary. 9514This feature will allow "other" operating systems to execute the fully 9515tested, "Windows" code path through the ASL code 9516 9517Global Lock Support: Now allows multiple acquires and releases with any 9518internal thread. Removed concept of "owning thread" for this special 9519mutex. 9520 9521Fixed two functions that were inappropriately declaring large objects on 9522the 9523CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 9524during 9525method execution considerably. 9526 9527Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 9528S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 9529 9530Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 9531defined on the machine. 9532 9533Implemented two runtime options: One to force all control method 9534execution 9535to "Serialized" to mimic Windows behavior, another to disable _OSI support 9536if it causes problems on a given machine. 9537 9538Code and Data Size: Current and previous core subsystem library sizes are 9539shown below. These are the code and data sizes for the acpica.lib 9540produced 9541by the Microsoft Visual C++ 6.0 compiler, and these values do not include 9542any ACPI driver or OSPM code. The debug version of the code includes the 9543debug output trace mechanism and has a much larger code and data size. 9544Note 9545that these values will vary depending on the efficiency of the compiler 9546and 9547the compiler options used during generation. 9548 9549 Previous Release: 9550 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 9551 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 9552 Current Release: 9553 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 9554 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 9555 95562) iASL Compiler/Disassembler: 9557 9558Fixed an array size problem for FreeBSD that would cause the compiler to 9559fault. 9560 9561---------------------------------------- 956220 February 2004. Summary of changes for version 20040220: 9563 9564 95651) ACPI CA Core Subsystem: 9566 9567Implemented execution of _SxD methods for Device objects in the 9568GetObjectInfo interface. 9569 9570Fixed calls to _SST method to pass the correct arguments. 9571 9572Added a call to _SST on wake to restore to "working" state. 9573 9574Check for End-Of-Buffer failure case in the WalkResources interface. 9575 9576Integrated fix for 64-bit alignment issue in acglobal.h by moving two 9577structures to the beginning of the file. 9578 9579After wake, clear GPE status register(s) before enabling GPEs. 9580 9581After wake, clear/enable power button. (Perhaps we should clear/enable 9582all 9583fixed events upon wake.) 9584 9585Fixed a couple of possible memory leaks in the Namespace manager. 9586 9587Integrated latest acnetbsd.h file. 9588 9589---------------------------------------- 959011 February 2004. Summary of changes for version 20040211: 9591 9592 95931) ACPI CA Core Subsystem: 9594 9595Completed investigation and implementation of the call-by-reference 9596mechanism for control method arguments. 9597 9598Fixed a problem where a store of an object into an indexed package could 9599fail if the store occurs within a different method than the method that 9600created the package. 9601 9602Fixed a problem where the ToDecimal operator could return incorrect 9603results. 9604 9605Fixed a problem where the CopyObject operator could fail on some of the 9606more 9607obscure objects (e.g., Reference objects.) 9608 9609Improved the output of the Debug object to display buffer, package, and 9610index objects. 9611 9612Fixed a problem where constructs of the form "RefOf (ArgX)" did not return 9613the expected result. 9614 9615Added permanent ACPI_REPORT_ERROR macros for all instances of the 9616ACPI_AML_INTERNAL exception. 9617 9618Integrated latest version of acfreebsd.h 9619 9620---------------------------------------- 962116 January 2004. Summary of changes for version 20040116: 9622 9623The purpose of this release is primarily to update the copyright years in 9624each module, thus causing a huge number of diffs. There are a few small 9625functional changes, however. 9626 96271) ACPI CA Core Subsystem: 9628 9629Improved error messages when there is a problem finding one or more of the 9630required base ACPI tables 9631 9632Reintroduced the definition of APIC_HEADER in actbl.h 9633 9634Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 9635 9636Removed extraneous reference to NewObj in dsmthdat.c 9637 96382) iASL compiler 9639 9640Fixed a problem introduced in December that disabled the correct 9641disassembly 9642of Resource Templates 9643 9644 9645---------------------------------------- 964603 December 2003. Summary of changes for version 20031203: 9647 96481) ACPI CA Core Subsystem: 9649 9650Changed the initialization of Operation Regions during subsystem 9651init to perform two entire walks of the ACPI namespace; The first 9652to initialize the regions themselves, the second to execute the 9653_REG methods. This fixed some interdependencies across _REG 9654methods found on some machines. 9655 9656Fixed a problem where a Store(Local0, Local1) could simply update 9657the object reference count, and not create a new copy of the 9658object if the Local1 is uninitialized. 9659 9660Implemented support for the _SST reserved method during sleep 9661transitions. 9662 9663Implemented support to clear the SLP_TYP and SLP_EN bits when 9664waking up, this is apparently required by some machines. 9665 9666When sleeping, clear the wake status only if SleepState is not S5. 9667 9668Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 9669pointer arithmetic advanced a string pointer too far. 9670 9671Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 9672could be returned if the requested table has not been loaded. 9673 9674Within the support for IRQ resources, restructured the handling of 9675the active and edge/level bits. 9676 9677Fixed a few problems in AcpiPsxExecute() where memory could be 9678leaked under certain error conditions. 9679 9680Improved error messages for the cases where the ACPI mode could 9681not be entered. 9682 9683Code and Data Size: Current and previous core subsystem library 9684sizes are shown below. These are the code and data sizes for the 9685acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9686these values do not include any ACPI driver or OSPM code. The 9687debug version of the code includes the debug output trace 9688mechanism and has a much larger code and data size. Note that 9689these values will vary depending on the efficiency of the compiler 9690and the compiler options used during generation. 9691 9692 Previous Release (20031029): 9693 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 9694 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 9695 Current Release: 9696 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 9697 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 9698 96992) iASL Compiler/Disassembler: 9700 9701Implemented a fix for the iASL disassembler where a bad index was 9702generated. This was most noticeable on 64-bit platforms 9703 9704 9705---------------------------------------- 970629 October 2003. Summary of changes for version 20031029: 9707 97081) ACPI CA Core Subsystem: 9709 9710 9711Fixed a problem where a level-triggered GPE with an associated 9712_Lxx control method was incorrectly cleared twice. 9713 9714Fixed a problem with the Field support code where an access can 9715occur beyond the end-of-region if the field is non-aligned but 9716extends to the very end of the parent region (resulted in an 9717AE_AML_REGION_LIMIT exception.) 9718 9719Fixed a problem with ACPI Fixed Events where an RT Clock handler 9720would not get invoked on an RTC event. The RTC event bitmasks for 9721the PM1 registers were not being initialized properly. 9722 9723Implemented support for executing _STA and _INI methods for 9724Processor objects. Although this is currently not part of the 9725ACPI specification, there is existing ASL code that depends on the 9726init-time execution of these methods. 9727 9728Implemented and deployed a GetDescriptorName function to decode 9729the various types of internal descriptors. Guards against null 9730descriptors during debug output also. 9731 9732Implemented and deployed a GetNodeName function to extract the 4- 9733character namespace node name. This function simplifies the debug 9734and error output, as well as guarding against null pointers during 9735output. 9736 9737Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 9738simplify the debug and error output of 64-bit integers. This 9739macro replaces the HIDWORD and LODWORD macros for dumping these 9740integers. 9741 9742Updated the implementation of the Stall() operator to only call 9743AcpiOsStall(), and also return an error if the operand is larger 9744than 255. This preserves the required behavior of not 9745relinquishing the processor, as would happen if AcpiOsSleep() was 9746called for "long stalls". 9747 9748Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 9749initialized are now treated as NOOPs. 9750 9751Cleaned up a handful of warnings during 64-bit generation. 9752 9753Fixed a reported error where and incorrect GPE number was passed 9754to the GPE dispatch handler. This value is only used for error 9755output, however. Used this opportunity to clean up and streamline 9756the GPE dispatch code. 9757 9758Code and Data Size: Current and previous core subsystem library 9759sizes are shown below. These are the code and data sizes for the 9760acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9761these values do not include any ACPI driver or OSPM code. The 9762 9763debug version of the code includes the debug output trace 9764mechanism and has a much larger code and data size. Note that 9765these values will vary depending on the efficiency of the compiler 9766and the compiler options used during generation. 9767 9768 Previous Release (20031002): 9769 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 9770 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 9771 Current Release: 9772 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 9773 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 9774 9775 97762) iASL Compiler/Disassembler: 9777 9778Updated the iASL compiler to return an error if the operand to the 9779Stall() operator is larger than 255. 9780 9781 9782---------------------------------------- 978302 October 2003. Summary of changes for version 20031002: 9784 9785 97861) ACPI CA Core Subsystem: 9787 9788Fixed a problem with Index Fields where the index was not 9789incremented for fields that require multiple writes to the 9790index/data registers (Fields that are wider than the data 9791register.) 9792 9793Fixed a problem with all Field objects where a write could go 9794beyond the end-of-field if the field was larger than the access 9795granularity and therefore required multiple writes to complete the 9796request. An extra write beyond the end of the field could happen 9797inadvertently. 9798 9799Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 9800would incorrectly be returned if the width of the Data Register 9801was larger than the specified field access width. 9802 9803Completed fixes for LoadTable() and Unload() and verified their 9804operation. Implemented full support for the "DdbHandle" object 9805throughout the ACPI CA subsystem. 9806 9807Implemented full support for the MADT and ECDT tables in the ACPI 9808CA header files. Even though these tables are not directly 9809consumed by ACPI CA, the header definitions are useful for ACPI 9810device drivers. 9811 9812Integrated resource descriptor fixes posted to the Linux ACPI 9813list. This included checks for minimum descriptor length, and 9814support for trailing NULL strings within descriptors that have 9815optional string elements. 9816 9817Code and Data Size: Current and previous core subsystem library 9818sizes are shown below. These are the code and data sizes for the 9819acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9820these values do not include any ACPI driver or OSPM code. The 9821debug version of the code includes the debug output trace 9822mechanism and has a much larger code and data size. Note that 9823these values will vary depending on the efficiency of the compiler 9824and the compiler options used during generation. 9825 9826 Previous Release (20030918): 9827 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 9828 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 9829 Current Release: 9830 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 9831 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 9832 9833 98342) iASL Compiler: 9835 9836Implemented detection of non-ASCII characters within the input 9837source ASL file. This catches attempts to compile binary (AML) 9838files early in the compile, with an informative error message. 9839 9840Fixed a problem where the disassembler would fault if the output 9841filename could not be generated or if the output file could not be 9842opened. 9843 9844---------------------------------------- 984518 September 2003. Summary of changes for version 20030918: 9846 9847 98481) ACPI CA Core Subsystem: 9849 9850Found and fixed a longstanding problem with the late execution of 9851the various deferred AML opcodes (such as Operation Regions, 9852Buffer Fields, Buffers, and Packages). If the name string 9853specified for the name of the new object placed the object in a 9854scope other than the current scope, the initialization/execution 9855of the opcode failed. The solution to this problem was to 9856implement a mechanism where the late execution of such opcodes 9857does not attempt to lookup/create the name a second time in an 9858incorrect scope. This fixes the "region size computed 9859incorrectly" problem. 9860 9861Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 9862Global Lock AE_BAD_PARAMETER error. 9863 9864Fixed several 64-bit issues with prototypes, casting and data 9865types. 9866 9867Removed duplicate prototype from acdisasm.h 9868 9869Fixed an issue involving EC Operation Region Detach (Shaohua Li) 9870 9871Code and Data Size: Current and previous core subsystem library 9872sizes are shown below. These are the code and data sizes for the 9873acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9874these values do not include any ACPI driver or OSPM code. The 9875debug version of the code includes the debug output trace 9876mechanism and has a much larger code and data size. Note that 9877these values will vary depending on the efficiency of the compiler 9878and the compiler options used during generation. 9879 9880 Previous Release: 9881 9882 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 9883 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 9884 Current Release: 9885 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 9886 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 9887 9888 98892) Linux: 9890 9891Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 9892correct sleep time in seconds. 9893 9894---------------------------------------- 989514 July 2003. Summary of changes for version 20030619: 9896 98971) ACPI CA Core Subsystem: 9898 9899Parse SSDTs in order discovered, as opposed to reverse order 9900(Hrvoje Habjanic) 9901 9902Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 9903Klausner, 9904 Nate Lawson) 9905 9906 99072) Linux: 9908 9909Dynamically allocate SDT list (suggested by Andi Kleen) 9910 9911proc function return value cleanups (Andi Kleen) 9912 9913Correctly handle NMI watchdog during long stalls (Andrew Morton) 9914 9915Make it so acpismp=force works (reported by Andrew Morton) 9916 9917 9918---------------------------------------- 991919 June 2003. Summary of changes for version 20030619: 9920 99211) ACPI CA Core Subsystem: 9922 9923Fix To/FromBCD, eliminating the need for an arch-specific #define. 9924 9925Do not acquire a semaphore in the S5 shutdown path. 9926 9927Fix ex_digits_needed for 0. (Takayoshi Kochi) 9928 9929Fix sleep/stall code reversal. (Andi Kleen) 9930 9931Revert a change having to do with control method calling 9932semantics. 9933 99342) Linux: 9935 9936acpiphp update (Takayoshi Kochi) 9937 9938Export acpi_disabled for sonypi (Stelian Pop) 9939 9940Mention acpismp=force in config help 9941 9942Re-add acpitable.c and acpismp=force. This improves backwards 9943 9944compatibility and also cleans up the code to a significant degree. 9945 9946Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 9947 9948---------------------------------------- 994922 May 2003. Summary of changes for version 20030522: 9950 99511) ACPI CA Core Subsystem: 9952 9953Found and fixed a reported problem where an AE_NOT_FOUND error 9954occurred occasionally during _BST evaluation. This turned out to 9955be an Owner ID allocation issue where a called method did not get 9956a new ID assigned to it. Eventually, (after 64k calls), the Owner 9957ID UINT16 would wraparound so that the ID would be the same as the 9958caller's and the called method would delete the caller's 9959namespace. 9960 9961Implemented extended error reporting for control methods that are 9962aborted due to a run-time exception. Output includes the exact 9963AML instruction that caused the method abort, a dump of the method 9964locals and arguments at the time of the abort, and a trace of all 9965nested control method calls. 9966 9967Modified the interpreter to allow the creation of buffers of zero 9968length from the AML code. Implemented new code to ensure that no 9969attempt is made to actually allocate a memory buffer (of length 9970zero) - instead, a simple buffer object with a NULL buffer pointer 9971and length zero is created. A warning is no longer issued when 9972the AML attempts to create a zero-length buffer. 9973 9974Implemented a workaround for the "leading asterisk issue" in 9975_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 9976asterisk is automatically removed if present in any HID, UID, or 9977CID strings. The iASL compiler will still flag this asterisk as 9978an error, however. 9979 9980Implemented full support for _CID methods that return a package of 9981multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 9982now additionally returns a device _CID list if present. This 9983required a change to the external interface in order to pass an 9984ACPI_BUFFER object as a parameter since the _CID list is of 9985variable length. 9986 9987Fixed a problem with the new AE_SAME_HANDLER exception where 9988handler initialization code did not know about this exception. 9989 9990Code and Data Size: Current and previous core subsystem library 9991sizes are shown below. These are the code and data sizes for the 9992acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 9993these values do not include any ACPI driver or OSPM code. The 9994debug version of the code includes the debug output trace 9995mechanism and has a much larger code and data size. Note that 9996these values will vary depending on the efficiency of the compiler 9997and the compiler options used during generation. 9998 9999 Previous Release (20030509): 10000 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 10001 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 10002 Current Release: 10003 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 10004 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 10005 10006 100072) Linux: 10008 10009Fixed a bug in which we would reinitialize the ACPI interrupt 10010after it was already working, thus disabling all ACPI and the IRQs 10011for any other device sharing the interrupt. (Thanks to Stian 10012Jordet) 10013 10014Toshiba driver update (John Belmonte) 10015 10016Return only 0 or 1 for our interrupt handler status (Andrew 10017Morton) 10018 10019 100203) iASL Compiler: 10021 10022Fixed a reported problem where multiple (nested) ElseIf() 10023statements were not handled correctly by the compiler, resulting 10024in incorrect warnings and incorrect AML code. This was a problem 10025in both the ASL parser and the code generator. 10026 10027 100284) Documentation: 10029 10030Added changes to existing interfaces, new exception codes, and new 10031text concerning reference count object management versus garbage 10032collection. 10033 10034---------------------------------------- 1003509 May 2003. Summary of changes for version 20030509. 10036 10037 100381) ACPI CA Core Subsystem: 10039 10040Changed the subsystem initialization sequence to hold off 10041installation of address space handlers until the hardware has been 10042initialized and the system has entered ACPI mode. This is because 10043the installation of space handlers can cause _REG methods to be 10044run. Previously, the _REG methods could potentially be run before 10045ACPI mode was enabled. 10046 10047Fixed some memory leak issues related to address space handler and 10048notify handler installation. There were some problems with the 10049reference count mechanism caused by the fact that the handler 10050objects are shared across several namespace objects. 10051 10052Fixed a reported problem where reference counts within the 10053namespace were not properly updated when named objects created by 10054method execution were deleted. 10055 10056Fixed a reported problem where multiple SSDTs caused a deletion 10057issue during subsystem termination. Restructured the table data 10058structures to simplify the linked lists and the related code. 10059 10060Fixed a problem where the table ID associated with secondary 10061tables (SSDTs) was not being propagated into the namespace objects 10062created by those tables. This would only present a problem for 10063tables that are unloaded at run-time, however. 10064 10065Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 10066type as the length parameter (instead of UINT32). 10067 10068Solved a long-standing problem where an ALREADY_EXISTS error 10069appears on various systems. This problem could happen when there 10070are multiple PCI_Config operation regions under a single PCI root 10071bus. This doesn't happen very frequently, but there are some 10072systems that do this in the ASL. 10073 10074Fixed a reported problem where the internal DeleteNode function 10075was incorrectly handling the case where a namespace node was the 10076first in the parent's child list, and had additional peers (not 10077the only child, but first in the list of children.) 10078 10079Code and Data Size: Current core subsystem library sizes are shown 10080below. These are the code and data sizes for the acpica.lib 10081produced by the Microsoft Visual C++ 6.0 compiler, and these 10082values do not include any ACPI driver or OSPM code. The debug 10083version of the code includes the debug output trace mechanism and 10084has a much larger code and data size. Note that these values will 10085vary depending on the efficiency of the compiler and the compiler 10086options used during generation. 10087 10088 Previous Release 10089 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 10090 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 10091 Current Release: 10092 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 10093 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 10094 10095 100962) Linux: 10097 10098Allow ":" in OS override string (Ducrot Bruno) 10099 10100Kobject fix (Greg KH) 10101 10102 101033 iASL Compiler/Disassembler: 10104 10105Fixed a problem in the generation of the C source code files (AML 10106is emitted in C source statements for BIOS inclusion) where the 10107Ascii dump that appears within a C comment at the end of each line 10108could cause a compile time error if the AML sequence happens to 10109have an open comment or close comment sequence embedded. 10110 10111 10112---------------------------------------- 1011324 April 2003. Summary of changes for version 20030424. 10114 10115 101161) ACPI CA Core Subsystem: 10117 10118Support for big-endian systems has been implemented. Most of the 10119support has been invisibly added behind big-endian versions of the 10120ACPI_MOVE_* macros. 10121 10122Fixed a problem in AcpiHwDisableGpeBlock() and 10123AcpiHwClearGpeBlock() where an incorrect offset was passed to the 10124low level hardware write routine. The offset parameter was 10125actually eliminated from the low level read/write routines because 10126they had become obsolete. 10127 10128Fixed a problem where a handler object was deleted twice during 10129the removal of a fixed event handler. 10130 10131 101322) Linux: 10133 10134A fix for SMP systems with link devices was contributed by 10135 10136Compaq's Dan Zink. 10137 10138(2.5) Return whether we handled the interrupt in our IRQ handler. 10139(Linux ISRs no longer return void, so we can propagate the handler 10140return value from the ACPI CA core back to the OS.) 10141 10142 10143 101443) Documentation: 10145 10146The ACPI CA Programmer Reference has been updated to reflect new 10147interfaces and changes to existing interfaces. 10148 10149---------------------------------------- 1015028 March 2003. Summary of changes for version 20030328. 10151 101521) ACPI CA Core Subsystem: 10153 10154The GPE Block Device support has been completed. New interfaces 10155are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 10156interfaces (enable, disable, clear, getstatus) have been split 10157into separate interfaces for Fixed Events and General Purpose 10158Events (GPEs) in order to support GPE Block Devices properly. 10159 10160Fixed a problem where the error message "Failed to acquire 10161semaphore" would appear during operations on the embedded 10162controller (EC). 10163 10164Code and Data Size: Current core subsystem library sizes are shown 10165below. These are the code and data sizes for the acpica.lib 10166produced by the Microsoft Visual C++ 6.0 compiler, and these 10167values do not include any ACPI driver or OSPM code. The debug 10168version of the code includes the debug output trace mechanism and 10169has a much larger code and data size. Note that these values will 10170vary depending on the efficiency of the compiler and the compiler 10171options used during generation. 10172 10173 Previous Release 10174 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 10175 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 10176 Current Release: 10177 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 10178 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 10179 10180 10181---------------------------------------- 1018228 February 2003. Summary of changes for version 20030228. 10183 10184 101851) ACPI CA Core Subsystem: 10186 10187The GPE handling and dispatch code has been completely overhauled 10188in preparation for support of GPE Block Devices (ID ACPI0006). 10189This affects internal data structures and code only; there should 10190be no differences visible externally. One new file has been 10191added, evgpeblk.c 10192 10193The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 10194fields that are used to determine the GPE block lengths. The 10195REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 10196structures are ignored. This is per the ACPI specification but it 10197isn't very clear. The full 256 Block 0/1 GPEs are now supported 10198(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 10199 10200In the SCI interrupt handler, removed the read of the PM1_CONTROL 10201register to look at the SCI_EN bit. On some machines, this read 10202causes an SMI event and greatly slows down SCI events. (This may 10203in fact be the cause of slow battery status response on some 10204systems.) 10205 10206Fixed a problem where a store of a NULL string to a package object 10207could cause the premature deletion of the object. This was seen 10208during execution of the battery _BIF method on some systems, 10209resulting in no battery data being returned. 10210 10211Added AcpiWalkResources interface to simplify parsing of resource 10212lists. 10213 10214Code and Data Size: Current core subsystem library sizes are shown 10215below. These are the code and data sizes for the acpica.lib 10216produced by the Microsoft Visual C++ 6.0 compiler, and these 10217values do not include any ACPI driver or OSPM code. The debug 10218version of the code includes the debug output trace mechanism and 10219has a much larger code and data size. Note that these values will 10220vary depending on the efficiency of the compiler and the compiler 10221options used during generation. 10222 10223 Previous Release 10224 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 10225 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 10226 Current Release: 10227 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 10228 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 10229 10230 102312) Linux 10232 10233S3 fixes (Ole Rohne) 10234 10235Update ACPI PHP driver with to use new acpi_walk_resource API 10236(Bjorn Helgaas) 10237 10238Add S4BIOS support (Pavel Machek) 10239 10240Map in entire table before performing checksum (John Stultz) 10241 10242Expand the mem= cmdline to allow the specification of reserved and 10243ACPI DATA blocks (Pavel Machek) 10244 10245Never use ACPI on VISWS 10246 10247Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 10248 10249Revert a change that allowed P_BLK lengths to be 4 or 5. This is 10250causing us to think that some systems support C2 when they really 10251don't. 10252 10253Do not count processor objects for non-present CPUs (Thanks to 10254Dominik Brodowski) 10255 10256 102573) iASL Compiler: 10258 10259Fixed a problem where ASL include files could not be found and 10260opened. 10261 10262Added support for the _PDC reserved name. 10263 10264 10265---------------------------------------- 1026622 January 2003. Summary of changes for version 20030122. 10267 10268 102691) ACPI CA Core Subsystem: 10270 10271Added a check for constructs of the form: Store (Local0, Local0) 10272where Local0 is not initialized. Apparently, some BIOS 10273programmers believe that this is a NOOP. Since this store doesn't 10274do anything anyway, the new prototype behavior will ignore this 10275error. This is a case where we can relax the strict checking in 10276the interpreter in the name of compatibility. 10277 10278 102792) Linux 10280 10281The AcpiSrc Source Conversion Utility has been released with the 10282Linux package for the first time. This is the utility that is 10283used to convert the ACPI CA base source code to the Linux version. 10284 10285(Both) Handle P_BLK lengths shorter than 6 more gracefully 10286 10287(Both) Move more headers to include/acpi, and delete an unused 10288header. 10289 10290(Both) Move drivers/acpi/include directory to include/acpi 10291 10292(Both) Boot functions don't use cmdline, so don't pass it around 10293 10294(Both) Remove include of unused header (Adrian Bunk) 10295 10296(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 10297the 10298former now also includes the latter, acpiphp.h only needs the one, 10299now. 10300 10301(2.5) Make it possible to select method of bios restoring after S3 10302resume. [=> no more ugly ifdefs] (Pavel Machek) 10303 10304(2.5) Make proc write interfaces work (Pavel Machek) 10305 10306(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 10307 10308(2.5) Break out ACPI Perf code into its own module, under cpufreq 10309(Dominik Brodowski) 10310 10311(2.4) S4BIOS support (Ducrot Bruno) 10312 10313(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 10314Visinoni) 10315 10316 103173) iASL Compiler: 10318 10319Added support to disassemble SSDT and PSDTs. 10320 10321Implemented support to obtain SSDTs from the Windows registry if 10322available. 10323 10324 10325---------------------------------------- 1032609 January 2003. Summary of changes for version 20030109. 10327 103281) ACPI CA Core Subsystem: 10329 10330Changed the behavior of the internal Buffer-to-String conversion 10331function. The current ACPI specification states that the contents 10332of the buffer are "converted to a string of two-character 10333hexadecimal numbers, each separated by a space". Unfortunately, 10334this definition is not backwards compatible with existing ACPI 1.0 10335implementations (although the behavior was not defined in the ACPI 103361.0 specification). The new behavior simply copies data from the 10337buffer to the string until a null character is found or the end of 10338the buffer is reached. The new String object is always null 10339terminated. This problem was seen during the generation of _BIF 10340battery data where incorrect strings were returned for battery 10341type, etc. This will also require an errata to the ACPI 10342specification. 10343 10344Renamed all instances of NATIVE_UINT and NATIVE_INT to 10345ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 10346 10347Copyright in all module headers (both Linux and non-Linux) has be 10348updated to 2003. 10349 10350Code and Data Size: Current core subsystem library sizes are shown 10351below. These are the code and data sizes for the acpica.lib 10352produced by the Microsoft Visual C++ 6.0 compiler, and these 10353values do not include any ACPI driver or OSPM code. The debug 10354version of the code includes the debug output trace mechanism and 10355has a much larger code and data size. Note that these values will 10356vary depending on the efficiency of the compiler and the compiler 10357options used during generation. 10358 10359 Previous Release 10360 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 10361 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 10362 Current Release: 10363 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 10364 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 10365 10366 103672) Linux 10368 10369Fixed an oops on module insertion/removal (Matthew Tippett) 10370 10371(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 10372 10373(2.5) Replace pr_debug (Randy Dunlap) 10374 10375(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 10376 10377(Both) Eliminate spawning of thread from timer callback, in favor 10378of schedule_work() 10379 10380(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 10381 10382(Both) Added define for Fixed Function HW region (Matthew Wilcox) 10383 10384(Both) Add missing statics to button.c (Pavel Machek) 10385 10386Several changes have been made to the source code translation 10387utility that generates the Linux Code in order to make the code 10388more "Linux-like": 10389 10390All typedefs on structs and unions have been removed in keeping 10391with the Linux coding style. 10392 10393Removed the non-Linux SourceSafe module revision number from each 10394module header. 10395 10396Completed major overhaul of symbols to be lowercased for linux. 10397Doubled the number of symbols that are lowercased. 10398 10399Fixed a problem where identifiers within procedure headers and 10400within quotes were not fully lower cased (they were left with a 10401starting capital.) 10402 10403Some C macros whose only purpose is to allow the generation of 16- 10404bit code are now completely removed in the Linux code, increasing 10405readability and maintainability. 10406 10407---------------------------------------- 10408 1040912 December 2002. Summary of changes for version 20021212. 10410 10411 104121) ACPI CA Core Subsystem: 10413 10414Fixed a problem where the creation of a zero-length AML Buffer 10415would cause a fault. 10416 10417Fixed a problem where a Buffer object that pointed to a static AML 10418buffer (in an ACPI table) could inadvertently be deleted, causing 10419memory corruption. 10420 10421Fixed a problem where a user buffer (passed in to the external 10422ACPI CA interfaces) could be overwritten if the buffer was too 10423small to complete the operation, causing memory corruption. 10424 10425Fixed a problem in the Buffer-to-String conversion code where a 10426string of length one was always returned, regardless of the size 10427of the input Buffer object. 10428 10429Removed the NATIVE_CHAR data type across the entire source due to 10430lack of need and lack of consistent use. 10431 10432Code and Data Size: Current core subsystem library sizes are shown 10433below. These are the code and data sizes for the acpica.lib 10434produced by the Microsoft Visual C++ 6.0 compiler, and these 10435values do not include any ACPI driver or OSPM code. The debug 10436version of the code includes the debug output trace mechanism and 10437has a much larger code and data size. Note that these values will 10438vary depending on the efficiency of the compiler and the compiler 10439options used during generation. 10440 10441 Previous Release 10442 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 10443 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 10444 Current Release: 10445 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 10446 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 10447 10448 10449---------------------------------------- 1045005 December 2002. Summary of changes for version 20021205. 10451 104521) ACPI CA Core Subsystem: 10453 10454Fixed a problem where a store to a String or Buffer object could 10455cause corruption of the DSDT if the object type being stored was 10456the same as the target object type and the length of the object 10457being stored was equal to or smaller than the original (existing) 10458target object. This was seen to cause corruption of battery _BIF 10459buffers if the _BIF method modified the buffer on the fly. 10460 10461Fixed a problem where an internal error was generated if a control 10462method invocation was used in an OperationRegion, Buffer, or 10463Package declaration. This was caused by the deferred parsing of 10464the control method and thus the deferred creation of the internal 10465method object. The solution to this problem was to create the 10466internal method object at the moment the method is encountered in 10467the first pass - so that subsequent references to the method will 10468able to obtain the required parameter count and thus properly 10469parse the method invocation. This problem presented itself as an 10470AE_AML_INTERNAL during the pass 1 parse phase during table load. 10471 10472Fixed a problem where the internal String object copy routine did 10473not always allocate sufficient memory for the target String object 10474and caused memory corruption. This problem was seen to cause 10475"Allocation already present in list!" errors as memory allocation 10476became corrupted. 10477 10478Implemented a new function for the evaluation of namespace objects 10479that allows the specification of the allowable return object 10480types. This simplifies a lot of code that checks for a return 10481object of one or more specific objects returned from the 10482evaluation (such as _STA, etc.) This may become and external 10483function if it would be useful to ACPI-related drivers. 10484 10485Completed another round of prefixing #defines with "ACPI_" for 10486clarity. 10487 10488Completed additional code restructuring to allow more modular 10489linking for iASL compiler and AcpiExec. Several files were split 10490creating new files. New files: nsparse.c dsinit.c evgpe.c 10491 10492Implemented an abort mechanism to terminate an executing control 10493method via the AML debugger. This feature is useful for debugging 10494control methods that depend (wait) for specific hardware 10495responses. 10496 10497Code and Data Size: Current core subsystem library sizes are shown 10498below. These are the code and data sizes for the acpica.lib 10499produced by the Microsoft Visual C++ 6.0 compiler, and these 10500values do not include any ACPI driver or OSPM code. The debug 10501version of the code includes the debug output trace mechanism and 10502has a much larger code and data size. Note that these values will 10503vary depending on the efficiency of the compiler and the compiler 10504options used during generation. 10505 10506 Previous Release 10507 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10508 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 10509 Current Release: 10510 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 10511 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 10512 10513 105142) iASL Compiler/Disassembler 10515 10516Fixed a compiler code generation problem for "Interrupt" Resource 10517Descriptors. If specified in the ASL, the optional "Resource 10518Source Index" and "Resource Source" fields were not inserted into 10519the correct location within the AML resource descriptor, creating 10520an invalid descriptor. 10521 10522Fixed a disassembler problem for "Interrupt" resource descriptors. 10523The optional "Resource Source Index" and "Resource Source" fields 10524were ignored. 10525 10526 10527---------------------------------------- 1052822 November 2002. Summary of changes for version 20021122. 10529 10530 105311) ACPI CA Core Subsystem: 10532 10533Fixed a reported problem where an object stored to a Method Local 10534or Arg was not copied to a new object during the store - the 10535object pointer was simply copied to the Local/Arg. This caused 10536all subsequent operations on the Local/Arg to also affect the 10537original source of the store operation. 10538 10539Fixed a problem where a store operation to a Method Local or Arg 10540was not completed properly if the Local/Arg contained a reference 10541(from RefOf) to a named field. The general-purpose store-to- 10542namespace-node code is now used so that this case is handled 10543automatically. 10544 10545Fixed a problem where the internal object copy routine would cause 10546a protection fault if the object being copied was a Package and 10547contained either 1) a NULL package element or 2) a nested sub- 10548package. 10549 10550Fixed a problem with the GPE initialization that resulted from an 10551ambiguity in the ACPI specification. One section of the 10552specification states that both the address and length of the GPE 10553block must be zero if the block is not supported. Another section 10554implies that only the address need be zero if the block is not 10555supported. The code has been changed so that both the address and 10556the length must be non-zero to indicate a valid GPE block (i.e., 10557if either the address or the length is zero, the GPE block is 10558invalid.) 10559 10560Code and Data Size: Current core subsystem library sizes are shown 10561below. These are the code and data sizes for the acpica.lib 10562produced by the Microsoft Visual C++ 6.0 compiler, and these 10563values do not include any ACPI driver or OSPM code. The debug 10564version of the code includes the debug output trace mechanism and 10565has a much larger code and data size. Note that these values will 10566vary depending on the efficiency of the compiler and the compiler 10567options used during generation. 10568 10569 Previous Release 10570 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 10571 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 10572 Current Release: 10573 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10574 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 10575 10576 105772) Linux 10578 10579Cleaned up EC driver. Exported an external EC read/write 10580interface. By going through this, other drivers (most notably 10581sonypi) will be able to serialize access to the EC. 10582 10583 105843) iASL Compiler/Disassembler 10585 10586Implemented support to optionally generate include files for both 10587ASM and C (the -i switch). This simplifies BIOS development by 10588automatically creating include files that contain external 10589declarations for the symbols that are created within the 10590 10591(optionally generated) ASM and C AML source files. 10592 10593 10594---------------------------------------- 1059515 November 2002. Summary of changes for version 20021115. 10596 105971) ACPI CA Core Subsystem: 10598 10599Fixed a memory leak problem where an error during resolution of 10600 10601method arguments during a method invocation from another method 10602failed to cleanup properly by deleting all successfully resolved 10603argument objects. 10604 10605Fixed a problem where the target of the Index() operator was not 10606correctly constructed if the source object was a package. This 10607problem has not been detected because the use of a target operand 10608with Index() is very rare. 10609 10610Fixed a problem with the Index() operator where an attempt was 10611made to delete the operand objects twice. 10612 10613Fixed a problem where an attempt was made to delete an operand 10614twice during execution of the CondRefOf() operator if the target 10615did not exist. 10616 10617Implemented the first of perhaps several internal create object 10618functions that create and initialize a specific object type. This 10619consolidates duplicated code wherever the object is created, thus 10620shrinking the size of the subsystem. 10621 10622Implemented improved debug/error messages for errors that occur 10623during nested method invocations. All executing method pathnames 10624are displayed (with the error) as the call stack is unwound - thus 10625simplifying debug. 10626 10627Fixed a problem introduced in the 10/02 release that caused 10628premature deletion of a buffer object if a buffer was used as an 10629ASL operand where an integer operand is required (Thus causing an 10630implicit object conversion from Buffer to Integer.) The change in 10631the 10/02 release was attempting to fix a memory leak (albeit 10632incorrectly.) 10633 10634Code and Data Size: Current core subsystem library sizes are shown 10635below. These are the code and data sizes for the acpica.lib 10636produced by the Microsoft Visual C++ 6.0 compiler, and these 10637values do not include any ACPI driver or OSPM code. The debug 10638version of the code includes the debug output trace mechanism and 10639has a much larger code and data size. Note that these values will 10640vary depending on the efficiency of the compiler and the compiler 10641options used during generation. 10642 10643 Previous Release 10644 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 10645 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 10646 Current Release: 10647 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 10648 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 10649 10650 106512) Linux 10652 10653Changed the implementation of the ACPI semaphores to use down() 10654instead of down_interruptable(). It is important that the 10655execution of ACPI control methods not be interrupted by signals. 10656Methods must run to completion, or the system may be left in an 10657unknown/unstable state. 10658 10659Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 10660(Shawn Starr) 10661 10662 106633) iASL Compiler/Disassembler 10664 10665 10666Changed the default location of output files. All output files 10667are now placed in the current directory by default instead of in 10668the directory of the source file. This change may affect some 10669existing makefiles, but it brings the behavior of the compiler in 10670line with other similar tools. The location of the output files 10671can be overridden with the -p command line switch. 10672 10673 10674---------------------------------------- 1067511 November 2002. Summary of changes for version 20021111. 10676 10677 106780) ACPI Specification 2.0B is released and is now available at: 10679http://www.acpi.info/index.html 10680 10681 106821) ACPI CA Core Subsystem: 10683 10684Implemented support for the ACPI 2.0 SMBus Operation Regions. 10685This includes the early detection and handoff of the request to 10686the SMBus region handler (avoiding all of the complex field 10687support code), and support for the bidirectional return packet 10688from an SMBus write operation. This paves the way for the 10689development of SMBus drivers in each host operating system. 10690 10691Fixed a problem where the semaphore WAIT_FOREVER constant was 10692defined as 32 bits, but must be 16 bits according to the ACPI 10693specification. This had the side effect of causing ASL 10694Mutex/Event timeouts even though the ASL code requested a wait 10695forever. Changed all internal references to the ACPI timeout 10696parameter to 16 bits to prevent future problems. Changed the name 10697of WAIT_FOREVER to ACPI_WAIT_FOREVER. 10698 10699Code and Data Size: Current core subsystem library sizes are shown 10700below. These are the code and data sizes for the acpica.lib 10701produced by the Microsoft Visual C++ 6.0 compiler, and these 10702values do not include any ACPI driver or OSPM code. The debug 10703version of the code includes the debug output trace mechanism and 10704has a much larger code and data size. Note that these values will 10705vary depending on the efficiency of the compiler and the compiler 10706options used during generation. 10707 10708 Previous Release 10709 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10710 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 10711 Current Release: 10712 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 10713 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 10714 10715 107162) Linux 10717 10718Module loading/unloading fixes (John Cagle) 10719 10720 107213) iASL Compiler/Disassembler 10722 10723Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 10724 10725Implemented support for the disassembly of all SMBus protocol 10726keywords (SMBQuick, SMBWord, etc.) 10727 10728---------------------------------------- 1072901 November 2002. Summary of changes for version 20021101. 10730 10731 107321) ACPI CA Core Subsystem: 10733 10734Fixed a problem where platforms that have a GPE1 block but no GPE0 10735block were not handled correctly. This resulted in a "GPE 10736overlap" error message. GPE0 is no longer required. 10737 10738Removed code added in the previous release that inserted nodes 10739into the namespace in alphabetical order. This caused some side- 10740effects on various machines. The root cause of the problem is 10741still under investigation since in theory, the internal ordering 10742of the namespace nodes should not matter. 10743 10744 10745Enhanced error reporting for the case where a named object is not 10746found during control method execution. The full ACPI namepath 10747(name reference) of the object that was not found is displayed in 10748this case. 10749 10750Note: as a result of the overhaul of the namespace object types in 10751the previous release, the namespace nodes for the predefined 10752scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 10753instead of ACPI_TYPE_ANY. This simplifies the namespace 10754management code but may affect code that walks the namespace tree 10755looking for specific object types. 10756 10757Code and Data Size: Current core subsystem library sizes are shown 10758below. These are the code and data sizes for the acpica.lib 10759produced by the Microsoft Visual C++ 6.0 compiler, and these 10760values do not include any ACPI driver or OSPM code. The debug 10761version of the code includes the debug output trace mechanism and 10762has a much larger code and data size. Note that these values will 10763vary depending on the efficiency of the compiler and the compiler 10764options used during generation. 10765 10766 Previous Release 10767 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 10768 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 10769 Current Release: 10770 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 10771 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 10772 10773 107742) Linux 10775 10776Fixed a problem introduced in the previous release where the 10777Processor and Thermal objects were not recognized and installed in 10778/proc. This was related to the scope type change described above. 10779 10780 107813) iASL Compiler/Disassembler 10782 10783Implemented the -g option to get all of the required ACPI tables 10784from the registry and save them to files (Windows version of the 10785compiler only.) The required tables are the FADT, FACS, and DSDT. 10786 10787Added ACPI table checksum validation during table disassembly in 10788order to catch corrupted tables. 10789 10790 10791---------------------------------------- 1079222 October 2002. Summary of changes for version 20021022. 10793 107941) ACPI CA Core Subsystem: 10795 10796Implemented a restriction on the Scope operator that the target 10797must already exist in the namespace at the time the operator is 10798encountered (during table load or method execution). In other 10799words, forward references are not allowed and Scope() cannot 10800create a new object. This changes the previous behavior where the 10801interpreter would create the name if not found. This new behavior 10802correctly enables the search-to-root algorithm during namespace 10803lookup of the target name. Because of this upsearch, this fixes 10804the known Compaq _SB_.OKEC problem and makes both the AML 10805interpreter and iASL compiler compatible with other ACPI 10806implementations. 10807 10808Completed a major overhaul of the internal ACPI object types for 10809the ACPI Namespace and the associated operand objects. Many of 10810these types had become obsolete with the introduction of the two- 10811pass namespace load. This cleanup simplifies the code and makes 10812the entire namespace load mechanism much clearer and easier to 10813understand. 10814 10815Improved debug output for tracking scope opening/closing to help 10816diagnose scoping issues. The old scope name as well as the new 10817scope name are displayed. Also improved error messages for 10818problems with ASL Mutex objects and error messages for GPE 10819problems. 10820 10821Cleaned up the namespace dump code, removed obsolete code. 10822 10823All string output (for all namespace/object dumps) now uses the 10824common ACPI string output procedure which handles escapes properly 10825and does not emit non-printable characters. 10826 10827Fixed some issues with constants in the 64-bit version of the 10828local C library (utclib.c) 10829 10830 108312) Linux 10832 10833EC Driver: No longer attempts to acquire the Global Lock at 10834interrupt level. 10835 10836 108373) iASL Compiler/Disassembler 10838 10839Implemented ACPI 2.0B grammar change that disallows all Type 1 and 108402 opcodes outside of a control method. This means that the 10841"executable" operators (versus the "namespace" operators) cannot 10842be used at the table level; they can only be used within a control 10843method. 10844 10845Implemented the restriction on the Scope() operator where the 10846target must already exist in the namespace at the time the 10847operator is encountered (during ASL compilation). In other words, 10848forward references are not allowed and Scope() cannot create a new 10849object. This makes the iASL compiler compatible with other ACPI 10850implementations and makes the Scope() implementation adhere to the 10851ACPI specification. 10852 10853Fixed a problem where namepath optimization for the Alias operator 10854was optimizing the wrong path (of the two namepaths.) This caused 10855a "Missing alias link" error message. 10856 10857Fixed a problem where an "unknown reserved name" warning could be 10858incorrectly generated for names like "_SB" when the trailing 10859underscore is not used in the original ASL. 10860 10861Fixed a problem where the reserved name check did not handle 10862NamePaths with multiple NameSegs correctly. The first nameseg of 10863the NamePath was examined instead of the last NameSeg. 10864 10865 10866---------------------------------------- 10867 1086802 October 2002. Summary of changes for this release. 10869 10870 108711) ACPI CA Core Subsystem version 20021002: 10872 10873Fixed a problem where a store/copy of a string to an existing 10874string did not always set the string length properly in the String 10875object. 10876 10877Fixed a reported problem with the ToString operator where the 10878behavior was identical to the ToHexString operator instead of just 10879simply converting a raw buffer to a string data type. 10880 10881Fixed a problem where CopyObject and the other "explicit" 10882conversion operators were not updating the internal namespace node 10883type as part of the store operation. 10884 10885Fixed a memory leak during implicit source operand conversion 10886where the original object was not deleted if it was converted to a 10887new object of a different type. 10888 10889Enhanced error messages for all problems associated with namespace 10890lookups. Common procedure generates and prints the lookup name as 10891well as the formatted status. 10892 10893Completed implementation of a new design for the Alias support 10894within the namespace. The existing design did not handle the case 10895where a new object was assigned to one of the two names due to the 10896use of an explicit conversion operator, resulting in the two names 10897pointing to two different objects. The new design simply points 10898the Alias name to the original name node - not to the object. 10899This results in a level of indirection that must be handled in the 10900name resolution mechanism. 10901 10902Code and Data Size: Current core subsystem library sizes are shown 10903below. These are the code and data sizes for the acpica.lib 10904produced by the Microsoft Visual C++ 6.0 compiler, and these 10905values do not include any ACPI driver or OSPM code. The debug 10906version of the code includes the debug output trace mechanism and 10907has a larger code and data size. Note that these values will vary 10908depending on the efficiency of the compiler and the compiler 10909options used during generation. 10910 10911 Previous Release 10912 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 10913 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 10914 Current Release: 10915 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 10916 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 10917 10918 109192) Linux 10920 10921Initialize thermal driver's timer before it is used. (Knut 10922Neumann) 10923 10924Allow handling negative celsius values. (Kochi Takayoshi) 10925 10926Fix thermal management and make trip points. R/W (Pavel Machek) 10927 10928Fix /proc/acpi/sleep. (P. Christeas) 10929 10930IA64 fixes. (David Mosberger) 10931 10932Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 10933 10934Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 10935Brodowski) 10936 10937 109383) iASL Compiler/Disassembler 10939 10940Clarified some warning/error messages. 10941 10942 10943---------------------------------------- 1094418 September 2002. Summary of changes for this release. 10945 10946 109471) ACPI CA Core Subsystem version 20020918: 10948 10949Fixed a reported problem with reference chaining (via the Index() 10950and RefOf() operators) in the ObjectType() and SizeOf() operators. 10951The definition of these operators includes the dereferencing of 10952all chained references to return information on the base object. 10953 10954Fixed a problem with stores to indexed package elements - the 10955existing code would not complete the store if an "implicit 10956conversion" was not performed. In other words, if the existing 10957object (package element) was to be replaced completely, the code 10958didn't handle this case. 10959 10960Relaxed typechecking on the ASL "Scope" operator to allow the 10961target name to refer to an object of type Integer, String, or 10962Buffer, in addition to the scoping object types (Device, 10963predefined Scopes, Processor, PowerResource, and ThermalZone.) 10964This allows existing AML code that has workarounds for a bug in 10965Windows to function properly. A warning is issued, however. This 10966affects both the AML interpreter and the iASL compiler. Below is 10967an example of this type of ASL code: 10968 10969 Name(DEB,0x00) 10970 Scope(DEB) 10971 { 10972 10973Fixed some reported problems with 64-bit integer support in the 10974local implementation of C library functions (clib.c) 10975 10976 109772) Linux 10978 10979Use ACPI fix map region instead of IOAPIC region, since it is 10980undefined in non-SMP. 10981 10982Ensure that the SCI has the proper polarity and trigger, even on 10983systems that do not have an interrupt override entry in the MADT. 10984 109852.5 big driver reorganization (Pat Mochel) 10986 10987Use early table mapping code from acpitable.c (Andi Kleen) 10988 10989New blacklist entries (Andi Kleen) 10990 10991Blacklist improvements. Split blacklist code out into a separate 10992file. Move checking the blacklist to very early. Previously, we 10993would use ACPI tables, and then halfway through init, check the 10994blacklist -- too late. Now, it's early enough to completely fall- 10995back to non-ACPI. 10996 10997 109983) iASL Compiler/Disassembler version 20020918: 10999 11000Fixed a problem where the typechecking code didn't know that an 11001alias could point to a method. In other words, aliases were not 11002being dereferenced during typechecking. 11003 11004 11005---------------------------------------- 1100629 August 2002. Summary of changes for this release. 11007 110081) ACPI CA Core Subsystem Version 20020829: 11009 11010If the target of a Scope() operator already exists, it must be an 11011object type that actually opens a scope -- such as a Device, 11012Method, Scope, etc. This is a fatal runtime error. Similar error 11013check has been added to the iASL compiler also. 11014 11015Tightened up the namespace load to disallow multiple names in the 11016same scope. This previously was allowed if both objects were of 11017the same type. (i.e., a lookup was the same as entering a new 11018name). 11019 11020 110212) Linux 11022 11023Ensure that the ACPI interrupt has the proper trigger and 11024polarity. 11025 11026local_irq_disable is extraneous. (Matthew Wilcox) 11027 11028Make "acpi=off" actually do what it says, and not use the ACPI 11029interpreter *or* the tables. 11030 11031Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 11032Takayoshi) 11033 11034 110353) iASL Compiler/Disassembler Version 20020829: 11036 11037Implemented namepath optimization for name declarations. For 11038example, a declaration like "Method (\_SB_.ABCD)" would get 11039optimized to "Method (ABCD)" if the declaration is within the 11040\_SB_ scope. This optimization is in addition to the named 11041reference path optimization first released in the previous 11042version. This would seem to complete all possible optimizations 11043for namepaths within the ASL/AML. 11044 11045If the target of a Scope() operator already exists, it must be an 11046object type that actually opens a scope -- such as a Device, 11047Method, Scope, etc. 11048 11049Implemented a check and warning for unreachable code in the same 11050block below a Return() statement. 11051 11052Fixed a problem where the listing file was not generated if the 11053compiler aborted if the maximum error count was exceeded (200). 11054 11055Fixed a problem where the typechecking of method return values was 11056broken. This includes the check for a return value when the 11057method is invoked as a TermArg (a return value is expected.) 11058 11059Fixed a reported problem where EOF conditions during a quoted 11060string or comment caused a fault. 11061 11062 11063---------------------------------------- 1106415 August 2002. Summary of changes for this release. 11065 110661) ACPI CA Core Subsystem Version 20020815: 11067 11068Fixed a reported problem where a Store to a method argument that 11069contains a reference did not perform the indirect store correctly. 11070This problem was created during the conversion to the new 11071reference object model - the indirect store to a method argument 11072code was not updated to reflect the new model. 11073 11074Reworked the ACPI mode change code to better conform to ACPI 2.0, 11075handle corner cases, and improve code legibility (Kochi Takayoshi) 11076 11077Fixed a problem with the pathname parsing for the carat (^) 11078prefix. The heavy use of the carat operator by the new namepath 11079optimization in the iASL compiler uncovered a problem with the AML 11080interpreter handling of this prefix. In the case where one or 11081more carats precede a single nameseg, the nameseg was treated as 11082standalone and the search rule (to root) was inadvertently 11083applied. This could cause both the iASL compiler and the 11084interpreter to find the wrong object or to miss the error that 11085should occur if the object does not exist at that exact pathname. 11086 11087Found and fixed the problem where the HP Pavilion DSDT would not 11088load. This was a relatively minor tweak to the table loading code 11089(a problem caused by the unexpected encounter with a method 11090invocation not within a control method), but it does not solve the 11091overall issue of the execution of AML code at the table level. 11092This investigation is still ongoing. 11093 11094Code and Data Size: Current core subsystem library sizes are shown 11095below. These are the code and data sizes for the acpica.lib 11096produced by the Microsoft Visual C++ 6.0 compiler, and these 11097values do not include any ACPI driver or OSPM code. The debug 11098version of the code includes the debug output trace mechanism and 11099has a larger code and data size. Note that these values will vary 11100depending on the efficiency of the compiler and the compiler 11101options used during generation. 11102 11103 Previous Release 11104 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 11105 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 11106 Current Release: 11107 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 11108 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 11109 11110 111112) Linux 11112 11113Remove redundant slab.h include (Brad Hards) 11114 11115Fix several bugs in thermal.c (Herbert Nachtnebel) 11116 11117Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 11118 11119Change acpi_system_suspend to use updated irq functions (Pavel 11120Machek) 11121 11122Export acpi_get_firmware_table (Matthew Wilcox) 11123 11124Use proper root proc entry for ACPI (Kochi Takayoshi) 11125 11126Fix early-boot table parsing (Bjorn Helgaas) 11127 11128 111293) iASL Compiler/Disassembler 11130 11131Reworked the compiler options to make them more consistent and to 11132use two-letter options where appropriate. We were running out of 11133sensible letters. This may break some makefiles, so check the 11134current options list by invoking the compiler with no parameters. 11135 11136Completed the design and implementation of the ASL namepath 11137optimization option for the compiler. This option optimizes all 11138references to named objects to the shortest possible path. The 11139first attempt tries to utilize a single nameseg (4 characters) and 11140the "search-to-root" algorithm used by the interpreter. If that 11141cannot be used (because either the name is not in the search path 11142or there is a conflict with another object with the same name), 11143the pathname is optimized using the carat prefix (usually a 11144shorter string than specifying the entire path from the root.) 11145 11146Implemented support to obtain the DSDT from the Windows registry 11147(when the disassembly option is specified with no input file). 11148Added this code as the implementation for AcpiOsTableOverride in 11149the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 11150utility) to scan memory for the DSDT to the AcpiOsTableOverride 11151function in the DOS OSL to make the disassembler truly OS 11152independent. 11153 11154Implemented a new option to disassemble and compile in one step. 11155When used without an input filename, this option will grab the 11156DSDT from the local machine, disassemble it, and compile it in one 11157step. 11158 11159Added a warning message for invalid escapes (a backslash followed 11160by any character other than the allowable escapes). This catches 11161the quoted string error "\_SB_" (which should be "\\_SB_" ). 11162 11163Also, there are numerous instances in the ACPI specification where 11164this error occurs. 11165 11166Added a compiler option to disable all optimizations. This is 11167basically the "compatibility mode" because by using this option, 11168the AML code will come out exactly the same as other ASL 11169compilers. 11170 11171Added error messages for incorrectly ordered dependent resource 11172functions. This includes: missing EndDependentFn macro at end of 11173dependent resource list, nested dependent function macros (both 11174start and end), and missing StartDependentFn macro. These are 11175common errors that should be caught at compile time. 11176 11177Implemented _OSI support for the disassembler and compiler. _OSI 11178must be included in the namespace for proper disassembly (because 11179the disassembler must know the number of arguments.) 11180 11181Added an "optimization" message type that is optional (off by 11182default). This message is used for all optimizations - including 11183constant folding, integer optimization, and namepath optimization. 11184 11185---------------------------------------- 1118625 July 2002. Summary of changes for this release. 11187 11188 111891) ACPI CA Core Subsystem Version 20020725: 11190 11191The AML Disassembler has been enhanced to produce compilable ASL 11192code and has been integrated into the iASL compiler (see below) as 11193well as the single-step disassembly for the AML debugger and the 11194disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 11195resource templates and macros are fully supported. The 11196disassembler has been tested on over 30 different AML files, 11197producing identical AML when the resulting disassembled ASL file 11198is recompiled with the same ASL compiler. 11199 11200Modified the Resource Manager to allow zero interrupts and zero 11201dma channels during the GetCurrentResources call. This was 11202causing problems on some platforms. 11203 11204Added the AcpiOsRedirectOutput interface to the OSL to simplify 11205output redirection for the AcpiOsPrintf and AcpiOsVprintf 11206interfaces. 11207 11208Code and Data Size: Current core subsystem library sizes are shown 11209below. These are the code and data sizes for the acpica.lib 11210produced by the Microsoft Visual C++ 6.0 compiler, and these 11211values do not include any ACPI driver or OSPM code. The debug 11212version of the code includes the debug output trace mechanism and 11213has a larger code and data size. Note that these values will vary 11214depending on the efficiency of the compiler and the compiler 11215options used during generation. 11216 11217 Previous Release 11218 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 11219 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 11220 Current Release: 11221 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 11222 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 11223 11224 112252) Linux 11226 11227Fixed a panic in the EC driver (Dominik Brodowski) 11228 11229Implemented checksum of the R/XSDT itself during Linux table scan 11230(Richard Schaal) 11231 11232 112333) iASL compiler 11234 11235The AML disassembler is integrated into the compiler. The "-d" 11236option invokes the disassembler to completely disassemble an 11237input AML file, producing as output a text ASL file with the 11238extension ".dsl" (to avoid name collisions with existing .asl 11239source files.) A future enhancement will allow the disassembler 11240to obtain the BIOS DSDT from the registry under Windows. 11241 11242Fixed a problem with the VendorShort and VendorLong resource 11243descriptors where an invalid AML sequence was created. 11244 11245Implemented a fix for BufferData term in the ASL parser. It was 11246inadvertently defined twice, allowing invalid syntax to pass and 11247causing reduction conflicts. 11248 11249Fixed a problem where the Ones opcode could get converted to a 11250value of zero if "Ones" was used where a byte, word or dword value 11251was expected. The 64-bit value is now truncated to the correct 11252size with the correct value. 11253 11254 11255 11256---------------------------------------- 1125702 July 2002. Summary of changes for this release. 11258 11259 112601) ACPI CA Core Subsystem Version 20020702: 11261 11262The Table Manager code has been restructured to add several new 11263features. Tables that are not required by the core subsystem 11264(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 11265validated in any way and are returned from AcpiGetFirmwareTable if 11266requested. The AcpiOsTableOverride interface is now called for 11267each table that is loaded by the subsystem in order to allow the 11268host to override any table it chooses. Previously, only the DSDT 11269could be overridden. Added one new files, tbrsdt.c and 11270tbgetall.c. 11271 11272Fixed a problem with the conversion of internal package objects to 11273external objects (when a package is returned from a control 11274method.) The return buffer length was set to zero instead of the 11275proper length of the package object. 11276 11277Fixed a reported problem with the use of the RefOf and DeRefOf 11278operators when passing reference arguments to control methods. A 11279new type of Reference object is used internally for references 11280produced by the RefOf operator. 11281 11282Added additional error messages in the Resource Manager to explain 11283AE_BAD_DATA errors when they occur during resource parsing. 11284 11285Split the AcpiEnableSubsystem into two primitives to enable a 11286finer granularity initialization sequence. These two calls should 11287be called in this order: AcpiEnableSubsystem (flags), 11288AcpiInitializeObjects (flags). The flags parameter remains the 11289same. 11290 11291 112922) Linux 11293 11294Updated the ACPI utilities module to understand the new style of 11295fully resolved package objects that are now returned from the core 11296subsystem. This eliminates errors of the form: 11297 11298 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 11299 acpi_utils-0430 [145] acpi_evaluate_reference: 11300 Invalid element in package (not a device reference) 11301 11302The method evaluation utility uses the new buffer allocation 11303scheme instead of calling AcpiEvaluate Object twice. 11304 11305Added support for ECDT. This allows the use of the Embedded 11306 11307Controller before the namespace has been fully initialized, which 11308is necessary for ACPI 2.0 support, and for some laptops to 11309initialize properly. (Laptops using ECDT are still rare, so only 11310limited testing was performed of the added functionality.) 11311 11312Fixed memory leaks in the EC driver. 11313 11314Eliminated a brittle code structure in acpi_bus_init(). 11315 11316Eliminated the acpi_evaluate() helper function in utils.c. It is 11317no longer needed since acpi_evaluate_object can optionally 11318allocate memory for the return object. 11319 11320Implemented fix for keyboard hang when getting battery readings on 11321some systems (Stephen White) 11322 11323PCI IRQ routing update (Dominik Brodowski) 11324 11325Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 11326support 11327 11328---------------------------------------- 1132911 June 2002. Summary of changes for this release. 11330 11331 113321) ACPI CA Core Subsystem Version 20020611: 11333 11334Fixed a reported problem where constants such as Zero and One 11335appearing within _PRT packages were not handled correctly within 11336the resource manager code. Originally reported against the ASL 11337compiler because the code generator now optimizes integers to 11338their minimal AML representation (i.e. AML constants if possible.) 11339The _PRT code now handles all AML constant opcodes correctly 11340(Zero, One, Ones, Revision). 11341 11342Fixed a problem with the Concatenate operator in the AML 11343interpreter where a buffer result object was incorrectly marked as 11344not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 11345 11346All package sub-objects are now fully resolved before they are 11347returned from the external ACPI interfaces. This means that name 11348strings are resolved to object handles, and constant operators 11349(Zero, One, Ones, Revision) are resolved to Integers. 11350 11351Implemented immediate resolution of the AML Constant opcodes 11352(Zero, One, Ones, Revision) to Integer objects upon detection 11353within the AML stream. This has simplified and reduced the 11354generated code size of the subsystem by eliminating about 10 11355switch statements for these constants (which previously were 11356contained in Reference objects.) The complicating issues are that 11357the Zero opcode is used as a "placeholder" for unspecified 11358optional target operands and stores to constants are defined to be 11359no-ops. 11360 11361Code and Data Size: Current core subsystem library sizes are shown 11362below. These are the code and data sizes for the acpica.lib 11363produced by the Microsoft Visual C++ 6.0 compiler, and these 11364values do not include any ACPI driver or OSPM code. The debug 11365version of the code includes the debug output trace mechanism and 11366has a larger code and data size. Note that these values will vary 11367depending on the efficiency of the compiler and the compiler 11368options used during generation. 11369 11370 Previous Release 11371 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 11372 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 11373 Current Release: 11374 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 11375 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 11376 11377 113782) Linux 11379 11380 11381Added preliminary support for obtaining _TRA data for PCI root 11382bridges (Bjorn Helgaas). 11383 11384 113853) iASL Compiler Version X2046: 11386 11387Fixed a problem where the "_DDN" reserved name was defined to be a 11388control method with one argument. There are no arguments, and 11389_DDN does not have to be a control method. 11390 11391Fixed a problem with the Linux version of the compiler where the 11392source lines printed with error messages were the wrong lines. 11393This turned out to be the "LF versus CR/LF" difference between 11394Windows and Unix. This appears to be the longstanding issue 11395concerning listing output and error messages. 11396 11397Fixed a problem with the Linux version of compiler where opcode 11398names within error messages were wrong. This was caused by a 11399slight difference in the output of the Flex tool on Linux versus 11400Windows. 11401 11402Fixed a problem with the Linux compiler where the hex output files 11403contained some garbage data caused by an internal buffer overrun. 11404 11405 11406---------------------------------------- 1140717 May 2002. Summary of changes for this release. 11408 11409 114101) ACPI CA Core Subsystem Version 20020517: 11411 11412Implemented a workaround to an BIOS bug discovered on the HP 11413OmniBook where the FADT revision number and the table size are 11414inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 11415behavior is to fallback to using only the ACPI 1.0 fields of the 11416FADT if the table is too small to be a ACPI 2.0 table as claimed 11417by the revision number. Although this is a BIOS bug, this is a 11418case where the workaround is simple enough and with no side 11419effects, so it seemed prudent to add it. A warning message is 11420issued, however. 11421 11422Implemented minimum size checks for the fixed-length ACPI tables - 11423- the FADT and FACS, as well as consistency checks between the 11424revision number and the table size. 11425 11426Fixed a reported problem in the table override support where the 11427new table pointer was incorrectly treated as a physical address 11428instead of a logical address. 11429 11430Eliminated the use of the AE_AML_ERROR exception and replaced it 11431with more descriptive codes. 11432 11433Fixed a problem where an exception would occur if an ASL Field was 11434defined with no named Field Units underneath it (used by some 11435index fields). 11436 11437Code and Data Size: Current core subsystem library sizes are shown 11438below. These are the code and data sizes for the acpica.lib 11439produced by the Microsoft Visual C++ 6.0 compiler, and these 11440values do not include any ACPI driver or OSPM code. The debug 11441version of the code includes the debug output trace mechanism and 11442has a larger code and data size. Note that these values will vary 11443depending on the efficiency of the compiler and the compiler 11444options used during generation. 11445 11446 Previous Release 11447 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 11448 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 11449 Current Release: 11450 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 11451 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 11452 11453 11454 114552) Linux 11456 11457Much work done on ACPI init (MADT and PCI IRQ routing support). 11458(Paul D. and Dominik Brodowski) 11459 11460Fix PCI IRQ-related panic on boot (Sam Revitch) 11461 11462Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 11463 11464Fix "MHz" typo (Dominik Brodowski) 11465 11466Fix RTC year 2000 issue (Dominik Brodowski) 11467 11468Preclude multiple button proc entries (Eric Brunet) 11469 11470Moved arch-specific code out of include/platform/aclinux.h 11471 114723) iASL Compiler Version X2044: 11473 11474Implemented error checking for the string used in the EISAID macro 11475(Usually used in the definition of the _HID object.) The code now 11476strictly enforces the PnP format - exactly 7 characters, 3 11477uppercase letters and 4 hex digits. 11478 11479If a raw string is used in the definition of the _HID object 11480(instead of the EISAID macro), the string must contain all 11481alphanumeric characters (e.g., "*PNP0011" is not allowed because 11482of the asterisk.) 11483 11484Implemented checking for invalid use of ACPI reserved names for 11485most of the name creation operators (Name, Device, Event, Mutex, 11486OperationRegion, PowerResource, Processor, and ThermalZone.) 11487Previously, this check was only performed for control methods. 11488 11489Implemented an additional check on the Name operator to emit an 11490error if a reserved name that must be implemented in ASL as a 11491control method is used. We know that a reserved name must be a 11492method if it is defined with input arguments. 11493 11494The warning emitted when a namespace object reference is not found 11495during the cross reference phase has been changed into an error. 11496The "External" directive should be used for names defined in other 11497modules. 11498 11499 115004) Tools and Utilities 11501 11502The 16-bit tools (adump16 and aexec16) have been regenerated and 11503tested. 11504 11505Fixed a problem with the output of both acpidump and adump16 where 11506the indentation of closing parentheses and brackets was not 11507 11508aligned properly with the parent block. 11509 11510 11511---------------------------------------- 1151203 May 2002. Summary of changes for this release. 11513 11514 115151) ACPI CA Core Subsystem Version 20020503: 11516 11517Added support a new OSL interface that allows the host operating 11518 11519system software to override the DSDT found in the firmware - 11520AcpiOsTableOverride. With this interface, the OSL can examine the 11521version of the firmware DSDT and replace it with a different one 11522if desired. 11523 11524Added new external interfaces for accessing ACPI registers from 11525device drivers and other system software - AcpiGetRegister and 11526AcpiSetRegister. This was simply an externalization of the 11527existing AcpiHwBitRegister interfaces. 11528 11529Fixed a regression introduced in the previous build where the 11530ASL/AML CreateField operator always returned an error, 11531"destination must be a NS Node". 11532 11533Extended the maximum time (before failure) to successfully enable 11534ACPI mode to 3 seconds. 11535 11536Code and Data Size: Current core subsystem library sizes are shown 11537below. These are the code and data sizes for the acpica.lib 11538produced by the Microsoft Visual C++ 6.0 compiler, and these 11539values do not include any ACPI driver or OSPM code. The debug 11540version of the code includes the debug output trace mechanism and 11541has a larger code and data size. Note that these values will vary 11542depending on the efficiency of the compiler and the compiler 11543options used during generation. 11544 11545 Previous Release 11546 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 11547 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 11548 Current Release: 11549 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 11550 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 11551 11552 115532) Linux 11554 11555Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 11556free. While 3 out of 4 of our in-house systems work fine, the last 11557one still hangs when testing the LAPIC timer. 11558 11559Renamed many files in 2.5 kernel release to omit "acpi_" from the 11560name. 11561 11562Added warning on boot for Presario 711FR. 11563 11564Sleep improvements (Pavel Machek) 11565 11566ACPI can now be built without CONFIG_PCI enabled. 11567 11568IA64: Fixed memory map functions (JI Lee) 11569 11570 115713) iASL Compiler Version X2043: 11572 11573Added support to allow the compiler to be integrated into the MS 11574VC++ development environment for one-button compilation of single 11575files or entire projects -- with error-to-source-line mapping. 11576 11577Implemented support for compile-time constant folding for the 11578Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 11579specification. This allows the ASL writer to use expressions 11580instead of Integer/Buffer/String constants in terms that must 11581evaluate to constants at compile time and will also simplify the 11582emitted AML in any such sub-expressions that can be folded 11583(evaluated at compile-time.) This increases the size of the 11584compiler significantly because a portion of the ACPI CA AML 11585interpreter is included within the compiler in order to pre- 11586evaluate constant expressions. 11587 11588 11589Fixed a problem with the "Unicode" ASL macro that caused the 11590compiler to fault. (This macro is used in conjunction with the 11591_STR reserved name.) 11592 11593Implemented an AML opcode optimization to use the Zero, One, and 11594Ones opcodes where possible to further reduce the size of integer 11595constants and thus reduce the overall size of the generated AML 11596code. 11597 11598Implemented error checking for new reserved terms for ACPI version 115992.0A. 11600 11601Implemented the -qr option to display the current list of ACPI 11602reserved names known to the compiler. 11603 11604Implemented the -qc option to display the current list of ASL 11605operators that are allowed within constant expressions and can 11606therefore be folded at compile time if the operands are constants. 11607 11608 116094) Documentation 11610 11611Updated the Programmer's Reference for new interfaces, data types, 11612and memory allocation model options. 11613 11614Updated the iASL Compiler User Reference to apply new format and 11615add information about new features and options. 11616 11617---------------------------------------- 1161819 April 2002. Summary of changes for this release. 11619 116201) ACPI CA Core Subsystem Version 20020419: 11621 11622The source code base for the Core Subsystem has been completely 11623cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 11624versions. The Lint option files used are included in the 11625/acpi/generate/lint directory. 11626 11627Implemented enhanced status/error checking across the entire 11628Hardware manager subsystem. Any hardware errors (reported from 11629the OSL) are now bubbled up and will abort a running control 11630method. 11631 11632 11633Fixed a problem where the per-ACPI-table integer width (32 or 64) 11634was stored only with control method nodes, causing a fault when 11635non-control method code was executed during table loading. The 11636solution implemented uses a global variable to indicate table 11637width across the entire ACPI subsystem. Therefore, ACPI CA does 11638not support mixed integer widths across different ACPI tables 11639(DSDT, SSDT). 11640 11641Fixed a problem where NULL extended fields (X fields) in an ACPI 116422.0 ACPI FADT caused the table load to fail. Although the 11643existing ACPI specification is a bit fuzzy on this topic, the new 11644behavior is to fall back on a ACPI 1.0 field if the corresponding 11645ACPI 2.0 X field is zero (even though the table revision indicates 11646a full ACPI 2.0 table.) The ACPI specification will be updated to 11647clarify this issue. 11648 11649Fixed a problem with the SystemMemory operation region handler 11650where memory was always accessed byte-wise even if the AML- 11651specified access width was larger than a byte. This caused 11652problems on systems with memory-mapped I/O. Memory is now 11653accessed with the width specified. On systems that do not support 11654non-aligned transfers, a check is made to guarantee proper address 11655alignment before proceeding in order to avoid an AML-caused 11656alignment fault within the kernel. 11657 11658 11659Fixed a problem with the ExtendedIrq resource where only one byte 11660of the 4-byte Irq field was extracted. 11661 11662Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 11663function was out of date and required a rewrite. 11664 11665Code and Data Size: Current core subsystem library sizes are shown 11666below. These are the code and data sizes for the acpica.lib 11667produced by the Microsoft Visual C++ 6.0 compiler, and these 11668values do not include any ACPI driver or OSPM code. The debug 11669version of the code includes the debug output trace mechanism and 11670has a larger code and data size. Note that these values will vary 11671depending on the efficiency of the compiler and the compiler 11672options used during generation. 11673 11674 Previous Release 11675 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 11676 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 11677 Current Release: 11678 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 11679 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 11680 11681 116822) Linux 11683 11684PCI IRQ routing fixes (Dominik Brodowski) 11685 11686 116873) iASL Compiler Version X2042: 11688 11689Implemented an additional compile-time error check for a field 11690unit whose size + minimum access width would cause a run-time 11691access beyond the end-of-region. Previously, only the field size 11692itself was checked. 11693 11694The Core subsystem and iASL compiler now share a common parse 11695object in preparation for compile-time evaluation of the type 116963/4/5 ASL operators. 11697 11698 11699---------------------------------------- 11700Summary of changes for this release: 03_29_02 11701 117021) ACPI CA Core Subsystem Version 20020329: 11703 11704Implemented support for late evaluation of TermArg operands to 11705Buffer and Package objects. This allows complex expressions to be 11706used in the declarations of these object types. 11707 11708Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 117091.0, if the field was larger than 32 bits, it was returned as a 11710buffer - otherwise it was returned as an integer. In ACPI 2.0, 11711the field is returned as a buffer only if the field is larger than 1171264 bits. The TableRevision is now considered when making this 11713conversion to avoid incompatibility with existing ASL code. 11714 11715Implemented logical addressing for AcpiOsGetRootPointer. This 11716allows an RSDP with either a logical or physical address. With 11717this support, the host OS can now override all ACPI tables with 11718one logical RSDP. Includes implementation of "typed" pointer 11719support to allow a common data type for both physical and logical 11720pointers internally. This required a change to the 11721AcpiOsGetRootPointer interface. 11722 11723Implemented the use of ACPI 2.0 Generic Address Structures for all 11724GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 11725mapped I/O for these ACPI features. 11726 11727Initialization now ignores not only non-required tables (All 11728tables other than the FADT, FACS, DSDT, and SSDTs), but also does 11729not validate the table headers of unrecognized tables. 11730 11731Fixed a problem where a notify handler could only be 11732installed/removed on an object of type Device. All "notify" 11733 11734objects are now supported -- Devices, Processor, Power, and 11735Thermal. 11736 11737Removed most verbosity from the ACPI_DB_INFO debug level. Only 11738critical information is returned when this debug level is enabled. 11739 11740Code and Data Size: Current core subsystem library sizes are shown 11741below. These are the code and data sizes for the acpica.lib 11742produced by the Microsoft Visual C++ 6.0 compiler, and these 11743values do not include any ACPI driver or OSPM code. The debug 11744version of the code includes the debug output trace mechanism and 11745has a larger code and data size. Note that these values will vary 11746depending on the efficiency of the compiler and the compiler 11747options used during generation. 11748 11749 Previous Release 11750 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 11751 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 11752 Current Release: 11753 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 11754 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 11755 11756 117572) Linux: 11758 11759The processor driver (acpi_processor.c) now fully supports ACPI 117602.0-based processor performance control (e.g. Intel(R) 11761SpeedStep(TM) technology) Note that older laptops that only have 11762the Intel "applet" interface are not supported through this. The 11763'limit' and 'performance' interface (/proc) are fully functional. 11764[Note that basic policy for controlling performance state 11765transitions will be included in the next version of ospmd.] The 11766idle handler was modified to more aggressively use C2, and PIIX4 11767errata handling underwent a complete overhaul (big thanks to 11768Dominik Brodowski). 11769 11770Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 11771based devices in the ACPI namespace are now dynamically bound 11772(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 11773This allows, among other things, ACPI to resolve bus numbers for 11774subordinate PCI bridges. 11775 11776Enhanced PCI IRQ routing to get the proper bus number for _PRT 11777entries defined underneath PCI bridges. 11778 11779Added IBM 600E to bad bios list due to invalid _ADR value for 11780PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 11781 11782In the process of adding full MADT support (e.g. IOAPIC) for IA32 11783(acpi.c, mpparse.c) -- stay tuned. 11784 11785Added back visual differentiation between fixed-feature and 11786control-method buttons in dmesg. Buttons are also subtyped (e.g. 11787button/power/PWRF) to simplify button identification. 11788 11789We no longer use -Wno-unused when compiling debug. Please ignore 11790any "_THIS_MODULE defined but not used" messages. 11791 11792Can now shut down the system using "magic sysrq" key. 11793 11794 117953) iASL Compiler version 2041: 11796 11797Fixed a problem where conversion errors for hex/octal/decimal 11798constants were not reported. 11799 11800Implemented a fix for the General Register template Address field. 11801This field was 8 bits when it should be 64. 11802 11803Fixed a problem where errors/warnings were no longer being emitted 11804within the listing output file. 11805 11806Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 11807exactly 4 characters, alphanumeric only. 11808 11809 11810 11811 11812---------------------------------------- 11813Summary of changes for this release: 03_08_02 11814 11815 118161) ACPI CA Core Subsystem Version 20020308: 11817 11818Fixed a problem with AML Fields where the use of the "AccessAny" 11819keyword could cause an interpreter error due to attempting to read 11820or write beyond the end of the parent Operation Region. 11821 11822Fixed a problem in the SystemMemory Operation Region handler where 11823an attempt was made to map memory beyond the end of the region. 11824This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 11825errors on some Linux systems. 11826 11827Fixed a problem where the interpreter/namespace "search to root" 11828algorithm was not functioning for some object types. Relaxed the 11829internal restriction on the search to allow upsearches for all 11830external object types as well as most internal types. 11831 11832 118332) Linux: 11834 11835We now use safe_halt() macro versus individual calls to sti | hlt. 11836 11837Writing to the processor limit interface should now work. "echo 1" 11838will increase the limit, 2 will decrease, and 0 will reset to the 11839 11840default. 11841 11842 118433) ASL compiler: 11844 11845Fixed segfault on Linux version. 11846 11847 11848---------------------------------------- 11849Summary of changes for this release: 02_25_02 11850 118511) ACPI CA Core Subsystem: 11852 11853 11854Fixed a problem where the GPE bit masks were not initialized 11855properly, causing erratic GPE behavior. 11856 11857Implemented limited support for multiple calling conventions. The 11858code can be generated with either the VPL (variable parameter 11859list, or "C") convention, or the FPL (fixed parameter list, or 11860"Pascal") convention. The core subsystem is about 3.4% smaller 11861when generated with FPL. 11862 11863 118642) Linux 11865 11866Re-add some /proc/acpi/event functionality that was lost during 11867the rewrite 11868 11869Resolved issue with /proc events for fixed-feature buttons showing 11870up as the system device. 11871 11872Fixed checks on C2/C3 latencies to be inclusive of maximum values. 11873 11874Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 11875 11876Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 11877 11878Fixed limit interface & usage to fix bugs with passive cooling 11879hysterisis. 11880 11881Restructured PRT support. 11882 11883 11884---------------------------------------- 11885Summary of changes for this label: 02_14_02 11886 11887 118881) ACPI CA Core Subsystem: 11889 11890Implemented support in AcpiLoadTable to allow loading of FACS and 11891FADT tables. 11892 11893Suport for the now-obsolete interim 0.71 64-bit ACPI tables has 11894been removed. All 64-bit platforms should be migrated to the ACPI 118952.0 tables. The actbl71.h header has been removed from the source 11896tree. 11897 11898All C macros defined within the subsystem have been prefixed with 11899"ACPI_" to avoid collision with other system include files. 11900 11901Removed the return value for the two AcpiOsPrint interfaces, since 11902it is never used and causes lint warnings for ignoring the return 11903value. 11904 11905Added error checking to all internal mutex acquire and release 11906calls. Although a failure from one of these interfaces is 11907probably a fatal system error, these checks will cause the 11908immediate abort of the currently executing method or interface. 11909 11910Fixed a problem where the AcpiSetCurrentResources interface could 11911fault. This was a side effect of the deployment of the new memory 11912allocation model. 11913 11914Fixed a couple of problems with the Global Lock support introduced 11915in the last major build. The "common" (1.0/2.0) internal FACS was 11916being overwritten with the FACS signature and clobbering the 11917Global Lock pointer. Also, the actual firmware FACS was being 11918unmapped after construction of the "common" FACS, preventing 11919access to the actual Global Lock field within it. The "common" 11920internal FACS is no longer installed as an actual ACPI table; it 11921is used simply as a global. 11922 11923Code and Data Size: Current core subsystem library sizes are shown 11924below. These are the code and data sizes for the acpica.lib 11925produced by the Microsoft Visual C++ 6.0 compiler, and these 11926values do not include any ACPI driver or OSPM code. The debug 11927version of the code includes the debug output trace mechanism and 11928has a larger code and data size. Note that these values will vary 11929depending on the efficiency of the compiler and the compiler 11930options used during generation. 11931 11932 Previous Release (02_07_01) 11933 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 11934 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 11935 Current Release: 11936 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 11937 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 11938 11939 119402) Linux 11941 11942Updated Linux-specific code for core macro and OSL interface 11943changes described above. 11944 11945Improved /proc/acpi/event. It now can be opened only once and has 11946proper poll functionality. 11947 11948Fixed and restructured power management (acpi_bus). 11949 11950Only create /proc "view by type" when devices of that class exist. 11951 11952Fixed "charging/discharging" bug (and others) in acpi_battery. 11953 11954Improved thermal zone code. 11955 11956 119573) ASL Compiler, version X2039: 11958 11959 11960Implemented the new compiler restriction on ASL String hex/octal 11961escapes to non-null, ASCII values. An error results if an invalid 11962value is used. (This will require an ACPI 2.0 specification 11963change.) 11964 11965AML object labels that are output to the optional C and ASM source 11966are now prefixed with both the ACPI table signature and table ID 11967to help guarantee uniqueness within a large BIOS project. 11968 11969 11970---------------------------------------- 11971Summary of changes for this label: 02_01_02 11972 119731) ACPI CA Core Subsystem: 11974 11975ACPI 2.0 support is complete in the entire Core Subsystem and the 11976ASL compiler. All new ACPI 2.0 operators are implemented and all 11977other changes for ACPI 2.0 support are complete. With 11978simultaneous code and data optimizations throughout the subsystem, 11979ACPI 2.0 support has been implemented with almost no additional 11980cost in terms of code and data size. 11981 11982Implemented a new mechanism for allocation of return buffers. If 11983the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 11984be allocated on behalf of the caller. Consolidated all return 11985buffer validation and allocation to a common procedure. Return 11986buffers will be allocated via the primary OSL allocation interface 11987since it appears that a separate pool is not needed by most users. 11988If a separate pool is required for these buffers, the caller can 11989still use the original mechanism and pre-allocate the buffer(s). 11990 11991Implemented support for string operands within the DerefOf 11992operator. 11993 11994Restructured the Hardware and Event managers to be table driven, 11995simplifying the source code and reducing the amount of generated 11996code. 11997 11998Split the common read/write low-level ACPI register bitfield 11999procedure into a separate read and write, simplifying the code 12000considerably. 12001 12002Obsoleted the AcpiOsCallocate OSL interface. This interface was 12003used only a handful of times and didn't have enough critical mass 12004for a separate interface. Replaced with a common calloc procedure 12005in the core. 12006 12007Fixed a reported problem with the GPE number mapping mechanism 12008that allows GPE1 numbers to be non-contiguous with GPE0. 12009Reorganized the GPE information and shrunk a large array that was 12010originally large enough to hold info for all possible GPEs (256) 12011to simply large enough to hold all GPEs up to the largest GPE 12012number on the machine. 12013 12014Fixed a reported problem with resource structure alignment on 64- 12015bit platforms. 12016 12017Changed the AcpiEnableEvent and AcpiDisableEvent external 12018interfaces to not require any flags for the common case of 12019enabling/disabling a GPE. 12020 12021Implemented support to allow a "Notify" on a Processor object. 12022 12023Most TBDs in comments within the source code have been resolved 12024and eliminated. 12025 12026 12027Fixed a problem in the interpreter where a standalone parent 12028prefix (^) was not handled correctly in the interpreter and 12029debugger. 12030 12031Removed obsolete and unnecessary GPE save/restore code. 12032 12033Implemented Field support in the ASL Load operator. This allows a 12034table to be loaded from a named field, in addition to loading a 12035table directly from an Operation Region. 12036 12037Implemented timeout and handle support in the external Global Lock 12038interfaces. 12039 12040Fixed a problem in the AcpiDump utility where pathnames were no 12041longer being generated correctly during the dump of named objects. 12042 12043Modified the AML debugger to give a full display of if/while 12044predicates instead of just one AML opcode at a time. (The 12045predicate can have several nested ASL statements.) The old method 12046was confusing during single stepping. 12047 12048Code and Data Size: Current core subsystem library sizes are shown 12049below. These are the code and data sizes for the acpica.lib 12050produced by the Microsoft Visual C++ 6.0 compiler, and these 12051values do not include any ACPI driver or OSPM code. The debug 12052version of the code includes the debug output trace mechanism and 12053has a larger code and data size. Note that these values will vary 12054depending on the efficiency of the compiler and the compiler 12055options used during generation. 12056 12057 Previous Release (12_18_01) 12058 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 12059 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 12060 Current Release: 12061 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 12062 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 12063 120642) Linux 12065 12066 Implemented fix for PIIX reverse throttling errata (Processor 12067driver) 12068 12069Added new Limit interface (Processor and Thermal drivers) 12070 12071New thermal policy (Thermal driver) 12072 12073Many updates to /proc 12074 12075Battery "low" event support (Battery driver) 12076 12077Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 12078 12079IA32 - IA64 initialization unification, no longer experimental 12080 12081Menuconfig options redesigned 12082 120833) ASL Compiler, version X2037: 12084 12085Implemented several new output features to simplify integration of 12086AML code into firmware: 1) Output the AML in C source code with 12087labels for each named ASL object. The original ASL source code 12088is interleaved as C comments. 2) Output the AML in ASM source code 12089with labels and interleaved ASL source. 3) Output the AML in 12090raw hex table form, in either C or ASM. 12091 12092Implemented support for optional string parameters to the 12093LoadTable operator. 12094 12095Completed support for embedded escape sequences within string 12096literals. The compiler now supports all single character escapes 12097as well as the Octal and Hex escapes. Note: the insertion of a 12098null byte into a string literal (via the hex/octal escape) causes 12099the string to be immediately terminated. A warning is issued. 12100 12101Fixed a problem where incorrect AML was generated for the case 12102where an ASL namepath consists of a single parent prefix ( 12103 12104) with no trailing name segments. 12105 12106The compiler has been successfully generated with a 64-bit C 12107compiler. 12108 12109 12110 12111 12112---------------------------------------- 12113Summary of changes for this label: 12_18_01 12114 121151) Linux 12116 12117Enhanced blacklist with reason and severity fields. Any table's 12118signature may now be used to identify a blacklisted system. 12119 12120Call _PIC control method to inform the firmware which interrupt 12121model the OS is using. Turn on any disabled link devices. 12122 12123Cleaned up busmgr /proc error handling (Andreas Dilger) 12124 12125 2) ACPI CA Core Subsystem: 12126 12127Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 12128while loop) 12129 12130Completed implementation of the ACPI 2.0 "Continue", 12131"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 12132operators. All new ACPI 2.0 operators are now implemented in both 12133the ASL compiler and the AML interpreter. The only remaining ACPI 121342.0 task is support for the String data type in the DerefOf 12135operator. Fixed a problem with AcquireMutex where the status code 12136was lost if the caller had to actually wait for the mutex. 12137 12138Increased the maximum ASL Field size from 64K bits to 4G bits. 12139 12140Completed implementation of the external Global Lock interfaces -- 12141AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 12142Handler parameters were added. 12143 12144Completed another pass at removing warnings and issues when 12145compiling with 64-bit compilers. The code now compiles cleanly 12146with the Intel 64-bit C/C++ compiler. Most notably, the pointer 12147add and subtract (diff) macros have changed considerably. 12148 12149 12150Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1215164-bit platforms, 32-bits on all others. This type is used 12152wherever memory allocation and/or the C sizeof() operator is used, 12153and affects the OSL memory allocation interfaces AcpiOsAllocate 12154and AcpiOsCallocate. 12155 12156Implemented sticky user breakpoints in the AML debugger. 12157 12158Code and Data Size: Current core subsystem library sizes are shown 12159below. These are the code and data sizes for the acpica.lib 12160produced by the Microsoft Visual C++ 6.0 compiler, and these 12161values do not include any ACPI driver or OSPM code. The debug 12162version of the code includes the debug output trace mechanism and 12163has a larger code and data size. Note that these values will vary 12164depending on the efficiency of the compiler and the compiler 12165options used during generation. 12166 12167 Previous Release (12_05_01) 12168 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 12169 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 12170 Current Release: 12171 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 12172 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 12173 12174 3) ASL Compiler, version X2034: 12175 12176Now checks for (and generates an error if detected) the use of a 12177Break or Continue statement without an enclosing While statement. 12178 12179 12180Successfully generated the compiler with the Intel 64-bit C 12181compiler. 12182 12183 ---------------------------------------- 12184Summary of changes for this label: 12_05_01 12185 12186 1) ACPI CA Core Subsystem: 12187 12188The ACPI 2.0 CopyObject operator is fully implemented. This 12189operator creates a new copy of an object (and is also used to 12190bypass the "implicit conversion" mechanism of the Store operator.) 12191 12192The ACPI 2.0 semantics for the SizeOf operator are fully 12193implemented. The change is that performing a SizeOf on a 12194reference object causes an automatic dereference of the object to 12195tha actual value before the size is evaluated. This behavior was 12196undefined in ACPI 1.0. 12197 12198The ACPI 2.0 semantics for the Extended IRQ resource descriptor 12199have been implemented. The interrupt polarity and mode are now 12200independently set. 12201 12202Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 12203appearing in Package objects were not properly converted to 12204integers when the internal Package was converted to an external 12205object (via the AcpiEvaluateObject interface.) 12206 12207Fixed a problem with the namespace object deletion mechanism for 12208objects created by control methods. There were two parts to this 12209problem: 1) Objects created during the initialization phase method 12210parse were not being deleted, and 2) The object owner ID mechanism 12211to track objects was broken. 12212 12213Fixed a problem where the use of the ASL Scope operator within a 12214control method would result in an invalid opcode exception. 12215 12216Fixed a problem introduced in the previous label where the buffer 12217length required for the _PRT structure was not being returned 12218correctly. 12219 12220Code and Data Size: Current core subsystem library sizes are shown 12221below. These are the code and data sizes for the acpica.lib 12222produced by the Microsoft Visual C++ 6.0 compiler, and these 12223values do not include any ACPI driver or OSPM code. The debug 12224version of the code includes the debug output trace mechanism and 12225has a larger code and data size. Note that these values will vary 12226depending on the efficiency of the compiler and the compiler 12227options used during generation. 12228 12229 Previous Release (11_20_01) 12230 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 12231 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 12232 12233 Current Release: 12234 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 12235 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 12236 12237 2) Linux: 12238 12239Updated all files to apply cleanly against 2.4.16. 12240 12241Added basic PCI Interrupt Routing Table (PRT) support for IA32 12242(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 12243version supports both static and dyanmic PRT entries, but dynamic 12244entries are treated as if they were static (not yet 12245reconfigurable). Architecture- specific code to use this data is 12246absent on IA32 but should be available shortly. 12247 12248Changed the initialization sequence to start the ACPI interpreter 12249(acpi_init) prior to initialization of the PCI driver (pci_init) 12250in init/main.c. This ordering is required to support PRT and 12251facilitate other (future) enhancement. A side effect is that the 12252ACPI bus driver and certain device drivers can no longer be loaded 12253as modules. 12254 12255Modified the 'make menuconfig' options to allow PCI Interrupt 12256Routing support to be included without the ACPI Bus and other 12257device drivers. 12258 12259 3) ASL Compiler, version X2033: 12260 12261Fixed some issues with the use of the new CopyObject and 12262DataTableRegion operators. Both are fully functional. 12263 12264 ---------------------------------------- 12265Summary of changes for this label: 11_20_01 12266 12267 20 November 2001. Summary of changes for this release. 12268 12269 1) ACPI CA Core Subsystem: 12270 12271Updated Index support to match ACPI 2.0 semantics. Storing a 12272Integer, String, or Buffer to an Index of a Buffer will store only 12273the least-significant byte of the source to the Indexed buffer 12274byte. Multiple writes are not performed. 12275 12276Fixed a problem where the access type used in an AccessAs ASL 12277operator was not recorded correctly into the field object. 12278 12279Fixed a problem where ASL Event objects were created in a 12280signalled state. Events are now created in an unsignalled state. 12281 12282The internal object cache is now purged after table loading and 12283initialization to reduce the use of dynamic kernel memory -- on 12284the assumption that object use is greatest during the parse phase 12285of the entire table (versus the run-time use of individual control 12286methods.) 12287 12288ACPI 2.0 variable-length packages are now fully operational. 12289 12290Code and Data Size: Code and Data optimizations have permitted new 12291feature development with an actual reduction in the library size. 12292Current core subsystem library sizes are shown below. These are 12293the code and data sizes for the acpica.lib produced by the 12294Microsoft Visual C++ 6.0 compiler, and these values do not include 12295any ACPI driver or OSPM code. The debug version of the code 12296includes the debug output trace mechanism and has a larger code 12297and data size. Note that these values will vary depending on the 12298efficiency of the compiler and the compiler options used during 12299generation. 12300 12301 Previous Release (11_09_01): 12302 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 12303 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 12304 12305 Current Release: 12306 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 12307 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 12308 12309 2) Linux: 12310 12311Enhanced the ACPI boot-time initialization code to allow the use 12312of Local APIC tables for processor enumeration on IA-32, and to 12313pave the way for a fully MPS-free boot (on SMP systems) in the 12314near future. This functionality replaces 12315arch/i386/kernel/acpitables.c, which was introduced in an earlier 123162.4.15-preX release. To enable this feature you must add 12317"acpi_boot=on" to the kernel command line -- see the help entry 12318for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 12319the works... 12320 12321Restructured the configuration options to allow boot-time table 12322parsing support without inclusion of the ACPI Interpreter (and 12323other) code. 12324 12325NOTE: This release does not include fixes for the reported events, 12326power-down, and thermal passive cooling issues (coming soon). 12327 12328 3) ASL Compiler: 12329 12330Added additional typechecking for Fields within restricted access 12331Operation Regions. All fields within EC and CMOS regions must be 12332declared with ByteAcc. All fields withing SMBus regions must be 12333declared with the BufferAcc access type. 12334 12335Fixed a problem where the listing file output of control methods 12336no longer interleaved the actual AML code with the ASL source 12337code. 12338 12339 12340 12341 12342---------------------------------------- 12343Summary of changes for this label: 11_09_01 12344 123451) ACPI CA Core Subsystem: 12346 12347Implemented ACPI 2.0-defined support for writes to fields with a 12348Buffer, String, or Integer source operand that is smaller than the 12349target field. In these cases, the source operand is zero-extended 12350to fill the target field. 12351 12352Fixed a problem where a Field starting bit offset (within the 12353parent operation region) was calculated incorrectly if the 12354 12355alignment of the field differed from the access width. This 12356affected CreateWordField, CreateDwordField, CreateQwordField, and 12357possibly other fields that use the "AccessAny" keyword. 12358 12359Fixed a problem introduced in the 11_02_01 release where indirect 12360stores through method arguments did not operate correctly. 12361 123622) Linux: 12363 12364Implemented boot-time ACPI table parsing support 12365(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 12366facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 12367legacy BIOS interfaces (e.g. MPS) for the configuration of system 12368processors, memory, and interrupts during setup_arch(). Note that 12369this patch does not include the required architecture-specific 12370changes required to apply this information -- subsequent patches 12371will be posted for both IA32 and IA64 to achieve this. 12372 12373Added low-level sleep support for IA32 platforms, courtesy of Pat 12374Mochel. This allows IA32 systems to transition to/from various 12375sleeping states (e.g. S1, S3), although the lack of a centralized 12376driver model and power-manageable drivers will prevent its 12377(successful) use on most systems. 12378 12379Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 12380submenu, unified IA32 and IA64 options, added new "Boot using ACPI 12381tables" option, etc. 12382 12383Increased the default timeout for the EC driver from 1ms to 10ms 12384(1000 cycles of 10us) to try to address AE_TIME errors during EC 12385transactions. 12386 12387 ---------------------------------------- 12388Summary of changes for this label: 11_02_01 12389 123901) ACPI CA Core Subsystem: 12391 12392ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 12393(QWordAcc keyword). All ACPI 2.0 64-bit support is now 12394implemented. 12395 12396OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 12397changes to support ACPI 2.0 Qword field access. Read/Write 12398PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 12399accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 12400the value parameter for the address space handler interface is now 12401an ACPI_INTEGER. OSL implementations of these interfaces must now 12402handle the case where the Width parameter is 64. 12403 12404Index Fields: Fixed a problem where unaligned bit assembly and 12405disassembly for IndexFields was not supported correctly. 12406 12407Index and Bank Fields: Nested Index and Bank Fields are now 12408supported. During field access, a check is performed to ensure 12409that the value written to an Index or Bank register is not out of 12410the range of the register. The Index (or Bank) register is 12411written before each access to the field data. Future support will 12412include allowing individual IndexFields to be wider than the 12413DataRegister width. 12414 12415Fields: Fixed a problem where the AML interpreter was incorrectly 12416attempting to write beyond the end of a Field/OpRegion. This was 12417a boundary case that occurred when a DWORD field was written to a 12418BYTE access OpRegion, forcing multiple writes and causing the 12419interpreter to write one datum too many. 12420 12421Fields: Fixed a problem with Field/OpRegion access where the 12422starting bit address of a field was incorrectly calculated if the 12423current access type was wider than a byte (WordAcc, DwordAcc, or 12424QwordAcc). 12425 12426Fields: Fixed a problem where forward references to individual 12427FieldUnits (individual Field names within a Field definition) were 12428not resolved during the AML table load. 12429 12430Fields: Fixed a problem where forward references from a Field 12431definition to the parent Operation Region definition were not 12432resolved during the AML table load. 12433 12434Fields: Duplicate FieldUnit names within a scope are now detected 12435during AML table load. 12436 12437Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 12438returned an incorrect name for the root node. 12439 12440Code and Data Size: Code and Data optimizations have permitted new 12441feature development with an actual reduction in the library size. 12442Current core subsystem library sizes are shown below. These are 12443the code and data sizes for the acpica.lib produced by the 12444Microsoft Visual C++ 6.0 compiler, and these values do not include 12445any ACPI driver or OSPM code. The debug version of the code 12446includes the debug output trace mechanism and has a larger code 12447and data size. Note that these values will vary depending on the 12448efficiency of the compiler and the compiler options used during 12449generation. 12450 12451 Previous Release (10_18_01): 12452 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 12453 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 12454 12455 Current Release: 12456 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 12457 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 12458 12459 2) Linux: 12460 12461Improved /proc processor output (Pavel Machek) Re-added 12462MODULE_LICENSE("GPL") to all modules. 12463 12464 3) ASL Compiler version X2030: 12465 12466Duplicate FieldUnit names within a scope are now detected and 12467flagged as errors. 12468 12469 4) Documentation: 12470 12471Programmer Reference updated to reflect OSL and address space 12472handler interface changes described above. 12473 12474---------------------------------------- 12475Summary of changes for this label: 10_18_01 12476 12477ACPI CA Core Subsystem: 12478 12479Fixed a problem with the internal object reference count mechanism 12480that occasionally caused premature object deletion. This resolves 12481all of the outstanding problem reports where an object is deleted 12482in the middle of an interpreter evaluation. Although this problem 12483only showed up in rather obscure cases, the solution to the 12484problem involved an adjustment of all reference counts involving 12485objects attached to namespace nodes. 12486 12487Fixed a problem with Field support in the interpreter where 12488writing to an aligned field whose length is an exact multiple (2 12489or greater) of the field access granularity would cause an attempt 12490to write beyond the end of the field. 12491 12492The top level AML opcode execution functions within the 12493interpreter have been renamed with a more meaningful and 12494consistent naming convention. The modules exmonad.c and 12495exdyadic.c were eliminated. New modules are exoparg1.c, 12496exoparg2.c, exoparg3.c, and exoparg6.c. 12497 12498Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 12499 12500Fixed a problem where the AML debugger was causing some internal 12501objects to not be deleted during subsystem termination. 12502 12503Fixed a problem with the external AcpiEvaluateObject interface 12504where the subsystem would fault if the named object to be 12505evaluated refered to a constant such as Zero, Ones, etc. 12506 12507Fixed a problem with IndexFields and BankFields where the 12508subsystem would fault if the index, data, or bank registers were 12509not defined in the same scope as the field itself. 12510 12511Added printf format string checking for compilers that support 12512this feature. Corrected more than 50 instances of issues with 12513format specifiers within invocations of ACPI_DEBUG_PRINT 12514throughout the core subsystem code. 12515 12516The ASL "Revision" operator now returns the ACPI support level 12517implemented in the core - the value "2" since the ACPI 2.0 support 12518is more than 50% implemented. 12519 12520Enhanced the output of the AML debugger "dump namespace" command 12521to output in a more human-readable form. 12522 12523Current core subsystem library code sizes are shown below. These 12524 12525are the code and data sizes for the acpica.lib produced by the 12526Microsoft Visual C++ 6.0 compiler, and these values do not include 12527any ACPI driver or OSPM code. The debug version of the code 12528includes the full debug trace mechanism -- leading to a much 12529 12530larger code and data size. Note that these values will vary 12531depending on the efficiency of the compiler and the compiler 12532options used during generation. 12533 12534 Previous Label (09_20_01): 12535 Non-Debug Version: 65K Code, 5K Data, 70K Total 12536 Debug Version: 138K Code, 58K Data, 196K Total 12537 12538 This Label: 12539 12540 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 12541 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 12542 12543Linux: 12544 12545Implemented a "Bad BIOS Blacklist" to track machines that have 12546known ASL/AML problems. 12547 12548Enhanced the /proc interface for the thermal zone driver and added 12549support for _HOT (the critical suspend trip point). The 'info' 12550file now includes threshold/policy information, and allows setting 12551of _SCP (cooling preference) and _TZP (polling frequency) values 12552to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 12553frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 12554preference to the passive/quiet mode (if supported by the ASL). 12555 12556Implemented a workaround for a gcc bug that resuted in an OOPs 12557when loading the control method battery driver. 12558 12559 ---------------------------------------- 12560Summary of changes for this label: 09_20_01 12561 12562 ACPI CA Core Subsystem: 12563 12564The AcpiEnableEvent and AcpiDisableEvent interfaces have been 12565modified to allow individual GPE levels to be flagged as wake- 12566enabled (i.e., these GPEs are to remain enabled when the platform 12567sleeps.) 12568 12569The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 12570support wake-enabled GPEs. This means that upon entering the 12571sleep state, all GPEs that are not wake-enabled are disabled. 12572When leaving the sleep state, these GPEs are reenabled. 12573 12574A local double-precision divide/modulo module has been added to 12575enhance portability to OS kernels where a 64-bit math library is 12576not available. The new module is "utmath.c". 12577 12578Several optimizations have been made to reduce the use of CPU 12579stack. Originally over 2K, the maximum stack usage is now below 125802K at 1860 bytes (1.82k) 12581 12582Fixed a problem with the AcpiGetFirmwareTable interface where the 12583root table pointer was not mapped into a logical address properly. 12584 12585Fixed a problem where a NULL pointer was being dereferenced in the 12586interpreter code for the ASL Notify operator. 12587 12588Fixed a problem where the use of the ASL Revision operator 12589returned an error. This operator now returns the current version 12590of the ACPI CA core subsystem. 12591 12592Fixed a problem where objects passed as control method parameters 12593to AcpiEvaluateObject were always deleted at method termination. 12594However, these objects may end up being stored into the namespace 12595by the called method. The object reference count mechanism was 12596applied to these objects instead of a force delete. 12597 12598Fixed a problem where static strings or buffers (contained in the 12599AML code) that are declared as package elements within the ASL 12600code could cause a fault because the interpreter would attempt to 12601delete them. These objects are now marked with the "static 12602object" flag to prevent any attempt to delete them. 12603 12604Implemented an interpreter optimization to use operands directly 12605from the state object instead of extracting the operands to local 12606variables. This reduces stack use and code size, and improves 12607performance. 12608 12609The module exxface.c was eliminated as it was an unnecessary extra 12610layer of code. 12611 12612Current core subsystem library code sizes are shown below. These 12613are the code and data sizes for the acpica.lib produced by the 12614Microsoft Visual C++ 6.0 compiler, and these values do not include 12615any ACPI driver or OSPM code. The debug version of the code 12616includes the full debug trace mechanism -- leading to a much 12617larger code and data size. Note that these values will vary 12618depending on the efficiency of the compiler and the compiler 12619options used during generation. 12620 12621 Non-Debug Version: 65K Code, 5K Data, 70K Total 12622(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 12623Total (Previously 195K) 12624 12625Linux: 12626 12627Support for ACPI 2.0 64-bit integers has been added. All ACPI 12628Integer objects are now 64 bits wide 12629 12630All Acpi data types and structures are now in lower case. Only 12631Acpi macros are upper case for differentiation. 12632 12633 Documentation: 12634 12635Changes to the external interfaces as described above. 12636 12637 ---------------------------------------- 12638Summary of changes for this label: 08_31_01 12639 12640 ACPI CA Core Subsystem: 12641 12642A bug with interpreter implementation of the ASL Divide operator 12643was found and fixed. The implicit function return value (not the 12644explicit store operands) was returning the remainder instead of 12645the quotient. This was a longstanding bug and it fixes several 12646known outstanding issues on various platforms. 12647 12648The ACPI_DEBUG_PRINT and function trace entry/exit macros have 12649been further optimized for size. There are 700 invocations of the 12650DEBUG_PRINT macro alone, so each optimization reduces the size of 12651the debug version of the subsystem significantly. 12652 12653A stack trace mechanism has been implemented. The maximum stack 12654usage is about 2K on 32-bit platforms. The debugger command "stat 12655stack" will display the current maximum stack usage. 12656 12657All public symbols and global variables within the subsystem are 12658now prefixed with the string "Acpi". This keeps all of the 12659symbols grouped together in a kernel map, and avoids conflicts 12660with other kernel subsystems. 12661 12662Most of the internal fixed lookup tables have been moved into the 12663code segment via the const operator. 12664 12665Several enhancements have been made to the interpreter to both 12666reduce the code size and improve performance. 12667 12668Current core subsystem library code sizes are shown below. These 12669are the code and data sizes for the acpica.lib produced by the 12670Microsoft Visual C++ 6.0 compiler, and these values do not include 12671any ACPI driver or OSPM code. The debug version of the code 12672includes the full debug trace mechanism which contains over 700 12673invocations of the DEBUG_PRINT macro, 500 function entry macro 12674invocations, and over 900 function exit macro invocations -- 12675leading to a much larger code and data size. Note that these 12676values will vary depending on the efficiency of the compiler and 12677the compiler options used during generation. 12678 12679 Non-Debug Version: 64K Code, 5K Data, 69K Total 12680Debug Version: 137K Code, 58K Data, 195K Total 12681 12682 Linux: 12683 12684Implemented wbinvd() macro, pending a kernel-wide definition. 12685 12686Fixed /proc/acpi/event to handle poll() and short reads. 12687 12688 ASL Compiler, version X2026: 12689 12690Fixed a problem introduced in the previous label where the AML 12691 12692code emitted for package objects produced packages with zero 12693length. 12694 12695 ---------------------------------------- 12696Summary of changes for this label: 08_16_01 12697 12698ACPI CA Core Subsystem: 12699 12700The following ACPI 2.0 ASL operators have been implemented in the 12701AML interpreter (These are already supported by the Intel ASL 12702compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 12703ToBuffer. Support for 64-bit AML constants is implemented in the 12704AML parser, debugger, and disassembler. 12705 12706The internal memory tracking mechanism (leak detection code) has 12707been upgraded to reduce the memory overhead (a separate tracking 12708block is no longer allocated for each memory allocation), and now 12709supports all of the internal object caches. 12710 12711The data structures and code for the internal object caches have 12712been coelesced and optimized so that there is a single cache and 12713memory list data structure and a single group of functions that 12714implement generic cache management. This has reduced the code 12715size in both the debug and release versions of the subsystem. 12716 12717The DEBUG_PRINT macro(s) have been optimized for size and replaced 12718by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 12719different, because it generates a single call to an internal 12720function. This results in a savings of about 90 bytes per 12721invocation, resulting in an overall code and data savings of about 1272216% in the debug version of the subsystem. 12723 12724 Linux: 12725 12726Fixed C3 disk corruption problems and re-enabled C3 on supporting 12727machines. 12728 12729Integrated low-level sleep code by Patrick Mochel. 12730 12731Further tweaked source code Linuxization. 12732 12733Other minor fixes. 12734 12735 ASL Compiler: 12736 12737Support for ACPI 2.0 variable length packages is fixed/completed. 12738 12739Fixed a problem where the optional length parameter for the ACPI 127402.0 ToString operator. 12741 12742Fixed multiple extraneous error messages when a syntax error is 12743detected within the declaration line of a control method. 12744 12745 ---------------------------------------- 12746Summary of changes for this label: 07_17_01 12747 12748ACPI CA Core Subsystem: 12749 12750Added a new interface named AcpiGetFirmwareTable to obtain any 12751ACPI table via the ACPI signature. The interface can be called at 12752any time during kernel initialization, even before the kernel 12753virtual memory manager is initialized and paging is enabled. This 12754allows kernel subsystems to obtain ACPI tables very early, even 12755before the ACPI CA subsystem is initialized. 12756 12757Fixed a problem where Fields defined with the AnyAcc attribute 12758could be resolved to the incorrect address under the following 12759conditions: 1) the field width is larger than 8 bits and 2) the 12760parent operation region is not defined on a DWORD boundary. 12761 12762Fixed a problem where the interpreter is not being locked during 12763namespace initialization (during execution of the _INI control 12764methods), causing an error when an attempt is made to release it 12765later. 12766 12767ACPI 2.0 support in the AML Interpreter has begun and will be 12768ongoing throughout the rest of this year. In this label, The Mod 12769operator is implemented. 12770 12771Added a new data type to contain full PCI addresses named 12772ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 12773and Function values. 12774 12775 Linux: 12776 12777Enhanced the Linux version of the source code to change most 12778capitalized ACPI type names to lowercase. For example, all 12779instances of ACPI_STATUS are changed to acpi_status. This will 12780result in a large diff, but the change is strictly cosmetic and 12781aligns the CA code closer to the Linux coding standard. 12782 12783OSL Interfaces: 12784 12785The interfaces to the PCI configuration space have been changed to 12786add the PCI Segment number and to split the single 32-bit combined 12787DeviceFunction field into two 16-bit fields. This was 12788accomplished by moving the four values that define an address in 12789PCI configuration space (segment, bus, device, and function) to 12790the new ACPI_PCI_ID structure. 12791 12792The changes to the PCI configuration space interfaces led to a 12793reexamination of the complete set of address space access 12794interfaces for PCI, I/O, and Memory. The previously existing 18 12795interfaces have proven difficult to maintain (any small change 12796must be propagated across at least 6 interfaces) and do not easily 12797allow for future expansion to 64 bits if necessary. Also, on some 12798systems, it would not be appropriate to demultiplex the access 12799width (8, 16, 32,or 64) before calling the OSL if the 12800corresponding native OS interfaces contain a similar access width 12801parameter. For these reasons, the 18 address space interfaces 12802have been replaced by these 6 new ones: 12803 12804AcpiOsReadPciConfiguration 12805AcpiOsWritePciConfiguration 12806AcpiOsReadMemory 12807AcpiOsWriteMemory 12808AcpiOsReadPort 12809AcpiOsWritePort 12810 12811Added a new interface named AcpiOsGetRootPointer to allow the OSL 12812to perform the platform and/or OS-specific actions necessary to 12813obtain the ACPI RSDP table pointer. On IA-32 platforms, this 12814interface will simply call down to the CA core to perform the low- 12815memory search for the table. On IA-64, the RSDP is obtained from 12816EFI. Migrating this interface to the OSL allows the CA core to 12817 12818remain OS and platform independent. 12819 12820Added a new interface named AcpiOsSignal to provide a generic 12821"function code and pointer" interface for various miscellaneous 12822signals and notifications that must be made to the host OS. The 12823first such signals are intended to support the ASL Fatal and 12824Breakpoint operators. In the latter case, the AcpiOsBreakpoint 12825interface has been obsoleted. 12826 12827The definition of the AcpiFormatException interface has been 12828changed to simplify its use. The caller no longer must supply a 12829buffer to the call; A pointer to a const string is now returned 12830directly. This allows the call to be easily used in printf 12831statements, etc. since the caller does not have to manage a local 12832buffer. 12833 12834 12835 ASL Compiler, Version X2025: 12836 12837The ACPI 2.0 Switch/Case/Default operators have been implemented 12838and are fully functional. They will work with all ACPI 1.0 12839interpreters, since the operators are simply translated to If/Else 12840pairs. 12841 12842The ACPI 2.0 ElseIf operator is implemented and will also work 12843with 1.0 interpreters, for the same reason. 12844 12845Implemented support for ACPI 2.0 variable-length packages. These 12846packages have a separate opcode, and their size is determined by 12847the interpreter at run-time. 12848 12849Documentation The ACPI CA Programmer Reference has been updated to 12850reflect the new interfaces and changes to existing interfaces. 12851 12852 ------------------------------------------ 12853Summary of changes for this label: 06_15_01 12854 12855 ACPI CA Core Subsystem: 12856 12857Fixed a problem where a DWORD-accessed field within a Buffer 12858object would get its byte address inadvertently rounded down to 12859the nearest DWORD. Buffers are always Byte-accessible. 12860 12861 ASL Compiler, version X2024: 12862 12863Fixed a problem where the Switch() operator would either fault or 12864hang the compiler. Note however, that the AML code for this ACPI 128652.0 operator is not yet implemented. 12866 12867Compiler uses the new AcpiOsGetTimer interface to obtain compile 12868timings. 12869 12870Implementation of the CreateField operator automatically converts 12871a reference to a named field within a resource descriptor from a 12872byte offset to a bit offset if required. 12873 12874Added some missing named fields from the resource descriptor 12875support. These are the names that are automatically created by the 12876compiler to reference fields within a descriptor. They are only 12877valid at compile time and are not passed through to the AML 12878interpreter. 12879 12880Resource descriptor named fields are now typed as Integers and 12881subject to compile-time typechecking when used in expressions. 12882 12883 ------------------------------------------ 12884Summary of changes for this label: 05_18_01 12885 12886 ACPI CA Core Subsystem: 12887 12888Fixed a couple of problems in the Field support code where bits 12889from adjacent fields could be returned along with the proper field 12890bits. Restructured the field support code to improve performance, 12891readability and maintainability. 12892 12893New DEBUG_PRINTP macro automatically inserts the procedure name 12894into the output, saving hundreds of copies of procedure name 12895strings within the source, shrinking the memory footprint of the 12896debug version of the core subsystem. 12897 12898 Source Code Structure: 12899 12900The source code directory tree was restructured to reflect the 12901current organization of the component architecture. Some files 12902and directories have been moved and/or renamed. 12903 12904 Linux: 12905 12906Fixed leaking kacpidpc processes. 12907 12908Fixed queueing event data even when /proc/acpi/event is not 12909opened. 12910 12911 ASL Compiler, version X2020: 12912 12913Memory allocation performance enhancement - over 24X compile time 12914improvement on large ASL files. Parse nodes and namestring 12915buffers are now allocated from a large internal compiler buffer. 12916 12917The temporary .SRC file is deleted unless the "-s" option is 12918specified 12919 12920The "-d" debug output option now sends all output to the .DBG file 12921instead of the console. 12922 12923"External" second parameter is now optional 12924 12925"ElseIf" syntax now properly allows the predicate 12926 12927Last operand to "Load" now recognized as a Target operand 12928 12929Debug object can now be used anywhere as a normal object. 12930 12931ResourceTemplate now returns an object of type BUFFER 12932 12933EISAID now returns an object of type INTEGER 12934 12935"Index" now works with a STRING operand 12936 12937"LoadTable" now accepts optional parameters 12938 12939"ToString" length parameter is now optional 12940 12941"Interrupt (ResourceType," parse error fixed. 12942 12943"Register" with a user-defined region space parse error fixed 12944 12945Escaped backslash at the end of a string ("\\") scan/parse error 12946fixed 12947 12948"Revision" is now an object of type INTEGER. 12949 12950 12951 12952------------------------------------------ 12953Summary of changes for this label: 05_02_01 12954 12955Linux: 12956 12957/proc/acpi/event now blocks properly. 12958 12959Removed /proc/sys/acpi. You can still dump your DSDT from 12960/proc/acpi/dsdt. 12961 12962 ACPI CA Core Subsystem: 12963 12964Fixed a problem introduced in the previous label where some of the 12965"small" resource descriptor types were not recognized. 12966 12967Improved error messages for the case where an ASL Field is outside 12968the range of the parent operation region. 12969 12970 ASL Compiler, version X2018: 12971 12972 12973Added error detection for ASL Fields that extend beyond the length 12974of the parent operation region (only if the length of the region 12975is known at compile time.) This includes fields that have a 12976minimum access width that is smaller than the parent region, and 12977individual field units that are partially or entirely beyond the 12978extent of the parent. 12979 12980 12981 12982------------------------------------------ 12983Summary of changes for this label: 04_27_01 12984 12985 ACPI CA Core Subsystem: 12986 12987Fixed a problem where the namespace mutex could be released at the 12988wrong time during execution of AcpiRemoveAddressSpaceHandler. 12989 12990Added optional thread ID output for debug traces, to simplify 12991debugging of multiple threads. Added context switch notification 12992when the debug code realizes that a different thread is now 12993executing ACPI code. 12994 12995Some additional external data types have been prefixed with the 12996string "ACPI_" for consistency. This may effect existing code. 12997The data types affected are the external callback typedefs - e.g., 12998 12999WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 13000 13001 Linux: 13002 13003Fixed an issue with the OSL semaphore implementation where a 13004thread was waking up with an error from receiving a SIGCHLD 13005signal. 13006 13007Linux version of ACPI CA now uses the system C library for string 13008manipulation routines instead of a local implementation. 13009 13010Cleaned up comments and removed TBDs. 13011 13012 ASL Compiler, version X2017: 13013 13014Enhanced error detection and reporting for all file I/O 13015operations. 13016 13017 Documentation: 13018 13019Programmer Reference updated to version 1.06. 13020 13021 13022 13023------------------------------------------ 13024Summary of changes for this label: 04_13_01 13025 13026 ACPI CA Core Subsystem: 13027 13028Restructured support for BufferFields and RegionFields. 13029BankFields support is now fully operational. All known 32-bit 13030limitations on field sizes have been removed. Both BufferFields 13031and (Operation) RegionFields are now supported by the same field 13032management code. 13033 13034Resource support now supports QWORD address and IO resources. The 1303516/32/64 bit address structures and the Extended IRQ structure 13036have been changed to properly handle Source Resource strings. 13037 13038A ThreadId of -1 is now used to indicate a "mutex not acquired" 13039condition internally and must never be returned by AcpiOsThreadId. 13040This reserved value was changed from 0 since Unix systems allow a 13041thread ID of 0. 13042 13043Linux: 13044 13045Driver code reorganized to enhance portability 13046 13047Added a kernel configuration option to control ACPI_DEBUG 13048 13049Fixed the EC driver to honor _GLK. 13050 13051ASL Compiler, version X2016: 13052 13053Fixed support for the "FixedHw" keyword. Previously, the FixedHw 13054address space was set to 0, not 0x7f as it should be. 13055 13056 ------------------------------------------ 13057Summary of changes for this label: 03_13_01 13058 13059 ACPI CA Core Subsystem: 13060 13061During ACPI initialization, the _SB_._INI method is now run if 13062present. 13063 13064Notify handler fix - notifies are deferred until the parent method 13065completes execution. This fixes the "mutex already acquired" 13066issue seen occasionally. 13067 13068Part of the "implicit conversion" rules in ACPI 2.0 have been 13069found to cause compatibility problems with existing ASL/AML. The 13070convert "result-to-target-type" implementation has been removed 13071for stores to method Args and Locals. Source operand conversion 13072is still fully implemented. Possible changes to ACPI 2.0 13073specification pending. 13074 13075Fix to AcpiRsCalculatePciRoutingTableLength to return correct 13076length. 13077 13078Fix for compiler warnings for 64-bit compiles. 13079 13080 Linux: 13081 13082/proc output aligned for easier parsing. 13083 13084Release-version compile problem fixed. 13085 13086New kernel configuration options documented in Configure.help. 13087 13088IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 13089context" message. 13090 13091 OSPM: 13092 13093Power resource driver integrated with bus manager. 13094 13095Fixed kernel fault during active cooling for thermal zones. 13096 13097Source Code: 13098 13099The source code tree has been restructured. 13100 13101 13102 13103------------------------------------------ 13104Summary of changes for this label: 03_02_01 13105 13106 Linux OS Services Layer (OSL): 13107 13108Major revision of all Linux-specific code. 13109 13110Modularized all ACPI-specific drivers. 13111 13112Added new thermal zone and power resource drivers. 13113 13114Revamped /proc interface (new functionality is under /proc/acpi). 13115 13116New kernel configuration options. 13117 13118 Linux known issues: 13119 13120New kernel configuration options not documented in Configure.help 13121yet. 13122 13123 13124Module dependencies not currently implemented. If used, they 13125should be loaded in this order: busmgr, power, ec, system, 13126processor, battery, ac_adapter, button, thermal. 13127 13128Modules will not load if CONFIG_MODVERSION is set. 13129 13130IBM 600E - entering S5 may reboot instead of shutting down. 13131 13132IBM 600E - Sleep button may generate "Invalid <NULL> context" 13133message. 13134 13135Some systems may fail with "execution mutex already acquired" 13136message. 13137 13138 ACPI CA Core Subsystem: 13139 13140Added a new OSL Interface, AcpiOsGetThreadId. This was required 13141for the deadlock detection code. Defined to return a non-zero, 32- 13142bit thread ID for the currently executing thread. May be a non- 13143zero constant integer on single-thread systems. 13144 13145Implemented deadlock detection for internal subsystem mutexes. We 13146may add conditional compilation for this code (debug only) later. 13147 13148ASL/AML Mutex object semantics are now fully supported. This 13149includes multiple acquires/releases by owner and support for the 13150 13151Mutex SyncLevel parameter. 13152 13153A new "Force Release" mechanism automatically frees all ASL 13154Mutexes that have been acquired but not released when a thread 13155exits the interpreter. This forces conformance to the ACPI spec 13156("All mutexes must be released when an invocation exits") and 13157prevents deadlocked ASL threads. This mechanism can be expanded 13158(later) to monitor other resource acquisitions if OEM ASL code 13159continues to misbehave (which it will). 13160 13161Several new ACPI exception codes have been added for the Mutex 13162support. 13163 13164Recursive method calls are now allowed and supported (the ACPI 13165spec does in fact allow recursive method calls.) The number of 13166recursive calls is subject to the restrictions imposed by the 13167SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 13168parameter. 13169 13170Implemented support for the SyncLevel parameter for control 13171methods (ACPI 2.0 feature) 13172 13173Fixed a deadlock problem when multiple threads attempted to use 13174the interpreter. 13175 13176Fixed a problem where the string length of a String package 13177element was not always set in a package returned from 13178AcpiEvaluateObject. 13179 13180Fixed a problem where the length of a String package element was 13181not always included in the length of the overall package returned 13182from AcpiEvaluateObject. 13183 13184Added external interfaces (Acpi*) to the ACPI debug memory 13185manager. This manager keeps a list of all outstanding 13186allocations, and can therefore detect memory leaks and attempts to 13187free memory blocks more than once. Useful for code such as the 13188power manager, etc. May not be appropriate for device drivers. 13189Performance with the debug code enabled is slow. 13190 13191The ACPI Global Lock is now an optional hardware element. 13192 13193 ASL Compiler Version X2015: 13194 13195Integrated changes to allow the compiler to be generated on 13196multiple platforms. 13197 13198Linux makefile added to generate the compiler on Linux 13199 13200 Source Code: 13201 13202All platform-specific headers have been moved to their own 13203subdirectory, Include/Platform. 13204 13205New source file added, Interpreter/ammutex.c 13206 13207New header file, Include/acstruct.h 13208 13209 Documentation: 13210 13211The programmer reference has been updated for the following new 13212interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 13213 13214 ------------------------------------------ 13215Summary of changes for this label: 02_08_01 13216 13217Core ACPI CA Subsystem: Fixed a problem where an error was 13218incorrectly returned if the return resource buffer was larger than 13219the actual data (in the resource interfaces). 13220 13221References to named objects within packages are resolved to the 13222 13223full pathname string before packages are returned directly (via 13224the AcpiEvaluateObject interface) or indirectly via the resource 13225interfaces. 13226 13227Linux OS Services Layer (OSL): 13228 13229Improved /proc battery interface. 13230 13231 13232Added C-state debugging output and other miscellaneous fixes. 13233 13234ASL Compiler Version X2014: 13235 13236All defined method arguments can now be used as local variables, 13237including the ones that are not actually passed in as parameters. 13238The compiler tracks initialization of the arguments and issues an 13239exception if they are used without prior assignment (just like 13240locals). 13241 13242The -o option now specifies a filename prefix that is used for all 13243output files, including the AML output file. Otherwise, the 13244default behavior is as follows: 1) the AML goes to the file 13245specified in the DSDT. 2) all other output files use the input 13246source filename as the base. 13247 13248 ------------------------------------------ 13249Summary of changes for this label: 01_25_01 13250 13251Core ACPI CA Subsystem: Restructured the implementation of object 13252store support within the interpreter. This includes support for 13253the Store operator as well as any ASL operators that include a 13254target operand. 13255 13256Partially implemented support for Implicit Result-to-Target 13257conversion. This is when a result object is converted on the fly 13258to the type of an existing target object. Completion of this 13259support is pending further analysis of the ACPI specification 13260concerning this matter. 13261 13262CPU-specific code has been removed from the subsystem (hardware 13263directory). 13264 13265New Power Management Timer functions added 13266 13267Linux OS Services Layer (OSL): Moved system state transition code 13268to the core, fixed it, and modified Linux OSL accordingly. 13269 13270Fixed C2 and C3 latency calculations. 13271 13272 13273We no longer use the compilation date for the version message on 13274initialization, but retrieve the version from AcpiGetSystemInfo(). 13275 13276Incorporated for fix Sony VAIO machines. 13277 13278Documentation: The Programmer Reference has been updated and 13279reformatted. 13280 13281 13282ASL Compiler: Version X2013: Fixed a problem where the line 13283numbering and error reporting could get out of sync in the 13284presence of multiple include files. 13285 13286 ------------------------------------------ 13287Summary of changes for this label: 01_15_01 13288 13289Core ACPI CA Subsystem: 13290 13291Implemented support for type conversions in the execution of the 13292ASL Concatenate operator (The second operand is converted to 13293match the type of the first operand before concatenation.) 13294 13295Support for implicit source operand conversion is partially 13296implemented. The ASL source operand types Integer, Buffer, and 13297String are freely interchangeable for most ASL operators and are 13298converted by the interpreter on the fly as required. Implicit 13299Target operand conversion (where the result is converted to the 13300target type before storing) is not yet implemented. 13301 13302Support for 32-bit and 64-bit BCD integers is implemented. 13303 13304Problem fixed where a field read on an aligned field could cause a 13305read past the end of the field. 13306 13307New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 13308does not return a value, but the caller expects one. (The ASL 13309compiler flags this as a warning.) 13310 13311ASL Compiler: 13312 13313Version X2011: 133141. Static typechecking of all operands is implemented. This 13315prevents the use of invalid objects (such as using a Package where 13316an Integer is required) at compile time instead of at interpreter 13317run-time. 133182. The ASL source line is printed with ALL errors and warnings. 133193. Bug fix for source EOF without final linefeed. 133204. Debug option is split into a parse trace and a namespace trace. 133215. Namespace output option (-n) includes initial values for 13322integers and strings. 133236. Parse-only option added for quick syntax checking. 133247. Compiler checks for duplicate ACPI name declarations 13325 13326Version X2012: 133271. Relaxed typechecking to allow interchangeability between 13328strings, integers, and buffers. These types are now converted by 13329the interpreter at runtime. 133302. Compiler reports time taken by each internal subsystem in the 13331debug output file. 13332 13333 13334 ------------------------------------------ 13335Summary of changes for this label: 12_14_00 13336 13337ASL Compiler: 13338 13339This is the first official release of the compiler. Since the 13340compiler requires elements of the Core Subsystem, this label 13341synchronizes everything. 13342 13343------------------------------------------ 13344Summary of changes for this label: 12_08_00 13345 13346 13347Fixed a problem where named references within the ASL definition 13348of both OperationRegions and CreateXXXFields did not work 13349properly. The symptom was an AE_AML_OPERAND_TYPE during 13350initialization of the region/field. This is similar (but not 13351related internally) to the problem that was fixed in the last 13352label. 13353 13354Implemented both 32-bit and 64-bit support for the BCD ASL 13355functions ToBCD and FromBCD. 13356 13357Updated all legal headers to include "2000" in the copyright 13358years. 13359 13360 ------------------------------------------ 13361Summary of changes for this label: 12_01_00 13362 13363Fixed a problem where method invocations within the ASL definition 13364of both OperationRegions and CreateXXXFields did not work 13365properly. The symptom was an AE_AML_OPERAND_TYPE during 13366initialization of the region/field: 13367 13368 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 13369[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 13370(0x3005) 13371 13372Fixed a problem where operators with more than one nested 13373subexpression would fail. The symptoms were varied, by mostly 13374AE_AML_OPERAND_TYPE errors. This was actually a rather serious 13375problem that has gone unnoticed until now. 13376 13377 Subtract (Add (1,2), Multiply (3,4)) 13378 13379Fixed a problem where AcpiGetHandle didn't quite get fixed in the 13380previous build (The prefix part of a relative path was handled 13381incorrectly). 13382 13383Fixed a problem where Operation Region initialization failed if 13384the operation region name was a "namepath" instead of a simple 13385"nameseg". Symptom was an AE_NO_OPERAND error. 13386 13387Fixed a problem where an assignment to a local variable via the 13388indirect RefOf mechanism only worked for the first such 13389assignment. Subsequent assignments were ignored. 13390 13391 ------------------------------------------ 13392Summary of changes for this label: 11_15_00 13393 13394ACPI 2.0 table support with backwards support for ACPI 1.0 and the 133950.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 13396the AML interpreter does NOT have support for the new 2.0 ASL 13397grammar terms at this time. 13398 13399All ACPI hardware access is via the GAS structures in the ACPI 2.0 13400FADT. 13401 13402All physical memory addresses across all platforms are now 64 bits 13403wide. Logical address width remains dependent on the platform 13404(i.e., "void *"). 13405 13406AcpiOsMapMemory interface changed to a 64-bit physical address. 13407 13408The AML interpreter integer size is now 64 bits, as per the ACPI 134092.0 specification. 13410 13411For backwards compatibility with ACPI 1.0, ACPI tables with a 13412revision number less than 2 use 32-bit integers only. 13413 13414Fixed a problem where the evaluation of OpRegion operands did not 13415always resolve them to numbers properly. 13416 13417------------------------------------------ 13418Summary of changes for this label: 10_20_00 13419 13420Fix for CBN_._STA issue. This fix will allow correct access to 13421CBN_ OpRegions when the _STA returns 0x8. 13422 13423Support to convert ACPI constants (Ones, Zeros, One) to actual 13424values before a package object is returned 13425 13426Fix for method call as predicate to if/while construct causing 13427incorrect if/while behavior 13428 13429Fix for Else block package lengths sometimes calculated wrong (if 13430block > 63 bytes) 13431 13432Fix for Processor object length field, was always zero 13433 13434Table load abort if FACP sanity check fails 13435 13436Fix for problem with Scope(name) if name already exists 13437 13438Warning emitted if a named object referenced cannot be found 13439(resolved) during method execution. 13440 13441 13442 13443 13444 13445------------------------------------------ 13446Summary of changes for this label: 9_29_00 13447 13448New table initialization interfaces: AcpiInitializeSubsystem no 13449longer has any parameters AcpiFindRootPointer - Find the RSDP (if 13450necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 13451>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 13452AcpiLoadTables 13453 13454Note: These interface changes require changes to all existing OSDs 13455 13456The PCI_Config default address space handler is always installed 13457at the root namespace object. 13458 13459------------------------------------------- 13460Summary of changes for this label: 09_15_00 13461 13462The new initialization architecture is implemented. New 13463interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 13464AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 13465 13466(Namespace is automatically loaded when a table is loaded) 13467 13468The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1346952 bytes to 32 bytes. There is usually one of these for every 13470namespace object, so the memory savings is significant. 13471 13472Implemented just-in-time evaluation of the CreateField operators. 13473 13474Bug fixes for IA-64 support have been integrated. 13475 13476Additional code review comments have been implemented 13477 13478The so-called "third pass parse" has been replaced by a final walk 13479through the namespace to initialize all operation regions (address 13480spaces) and fields that have not yet been initialized during the 13481execution of the various _INI and REG methods. 13482 13483New file - namespace/nsinit.c 13484 13485------------------------------------------- 13486Summary of changes for this label: 09_01_00 13487 13488Namespace manager data structures have been reworked to change the 13489primary object from a table to a single object. This has 13490resulted in dynamic memory savings of 3X within the namespace and 134912X overall in the ACPI CA subsystem. 13492 13493Fixed problem where the call to AcpiEvFindPciRootBuses was 13494inadvertently left commented out. 13495 13496Reduced the warning count when generating the source with the GCC 13497compiler. 13498 13499Revision numbers added to each module header showing the 13500SourceSafe version of the file. Please refer to this version 13501number when giving us feedback or comments on individual modules. 13502 13503The main object types within the subsystem have been renamed to 13504clarify their purpose: 13505 13506ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 13507ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 13508ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 13509 13510NOTE: no changes to the initialization sequence are included in 13511this label. 13512 13513------------------------------------------- 13514Summary of changes for this label: 08_23_00 13515 13516Fixed problem where TerminateControlMethod was being called 13517multiple times per method 13518 13519Fixed debugger problem where single stepping caused a semaphore to 13520be oversignalled 13521 13522Improved performance through additional parse object caching - 13523added ACPI_EXTENDED_OP type 13524 13525------------------------------------------- 13526Summary of changes for this label: 08_10_00 13527 13528Parser/Interpreter integration: Eliminated the creation of 13529complete parse trees for ACPI tables and control methods. 13530Instead, parse subtrees are created and then deleted as soon as 13531they are processed (Either entered into the namespace or executed 13532by the interpreter). This reduces the use of dynamic kernel 13533memory significantly. (about 10X) 13534 13535Exception codes broken into classes and renumbered. Be sure to 13536recompile all code that includes acexcep.h. Hopefully we won't 13537have to renumber the codes again now that they are split into 13538classes (environment, programmer, AML code, ACPI table, and 13539internal). 13540 13541Fixed some additional alignment issues in the Resource Manager 13542subcomponent 13543 13544Implemented semaphore tracking in the AcpiExec utility, and fixed 13545several places where mutexes/semaphores were being unlocked 13546without a corresponding lock operation. There are no known 13547semaphore or mutex "leaks" at this time. 13548 13549Fixed the case where an ASL Return operator is used to return an 13550unnamed package. 13551 13552------------------------------------------- 13553Summary of changes for this label: 07_28_00 13554 13555Fixed a problem with the way addresses were calculated in 13556AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 13557manifested itself when a Field was created with WordAccess or 13558DwordAccess, but the field unit defined within the Field was less 13559 13560than a Word or Dword. 13561 13562Fixed a problem in AmlDumpOperands() module's loop to pull 13563operands off of the operand stack to display information. The 13564problem manifested itself as a TLB error on 64-bit systems when 13565accessing an operand stack with two or more operands. 13566 13567Fixed a problem with the PCI configuration space handlers where 13568context was getting confused between accesses. This required a 13569change to the generic address space handler and address space 13570setup definitions. Handlers now get both a global handler context 13571(this is the one passed in by the user when executing 13572AcpiInstallAddressSpaceHandler() and a specific region context 13573that is unique to each region (For example, the _ADR, _SEG and 13574_BBN values associated with a specific region). The generic 13575function definitions have changed to the following: 13576 13577typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 13578UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 13579*HandlerContext, // This used to be void *Context void 13580*RegionContext); // This is an additional parameter 13581 13582typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 13583RegionHandle, UINT32 Function, void *HandlerContext, void 13584**RegionContext); // This used to be **ReturnContext 13585 13586------------------------------------------- 13587Summary of changes for this label: 07_21_00 13588 13589Major file consolidation and rename. All files within the 13590interpreter have been renamed as well as most header files. This 13591was done to prevent collisions with existing files in the host 13592OSs -- filenames such as "config.h" and "global.h" seem to be 13593quite common. The VC project files have been updated. All 13594makefiles will require modification. 13595 13596The parser/interpreter integration continues in Phase 5 with the 13597implementation of a complete 2-pass parse (the AML is parsed 13598twice) for each table; This avoids the construction of a huge 13599parse tree and therefore reduces the amount of dynamic memory 13600required by the subsystem. Greater use of the parse object cache 13601means that performance is unaffected. 13602 13603Many comments from the two code reviews have been rolled in. 13604 13605The 64-bit alignment support is complete. 13606 13607------------------------------------------- 13608Summary of changes for this label: 06_30_00 13609 13610With a nod and a tip of the hat to the technology of yesteryear, 13611we've added support in the source code for 80 column output 13612devices. The code is now mostly constrained to 80 columns or 13613less to support environments and editors that 1) cannot display 13614or print more than 80 characters on a single line, and 2) cannot 13615disable line wrapping. 13616 13617A major restructuring of the namespace data structure has been 13618completed. The result is 1) cleaner and more 13619understandable/maintainable code, and 2) a significant reduction 13620in the dynamic memory requirement for each named ACPI object 13621(almost half). 13622 13623------------------------------------------- 13624Summary of changes for this label: 06_23_00 13625 13626Linux support has been added. In order to obtain approval to get 13627the ACPI CA subsystem into the Linux kernel, we've had to make 13628quite a few changes to the base subsystem that will affect all 13629users (all the changes are generic and OS- independent). The 13630effects of these global changes have been somewhat far reaching. 13631Files have been merged and/or renamed and interfaces have been 13632renamed. The major changes are described below. 13633 13634Osd* interfaces renamed to AcpiOs* to eliminate namespace 13635pollution/confusion within our target kernels. All OSD 13636interfaces must be modified to match the new naming convention. 13637 13638Files merged across the subsystem. A number of the smaller source 13639and header files have been merged to reduce the file count and 13640increase the density of the existing files. There are too many 13641to list here. In general, makefiles that call out individual 13642files will require rebuilding. 13643 13644Interpreter files renamed. All interpreter files now have the 13645prefix am* instead of ie* and is*. 13646 13647Header files renamed: The acapi.h file is now acpixf.h. The 13648acpiosd.h file is now acpiosxf.h. We are removing references to 13649the acronym "API" since it is somewhat windowsy. The new name is 13650"external interface" or xface or xf in the filenames.j 13651 13652 13653All manifest constants have been forced to upper case (some were 13654mixed case.) Also, the string "ACPI_" has been prepended to many 13655(not all) of the constants, typedefs, and structs. 13656 13657The globals "DebugLevel" and "DebugLayer" have been renamed 13658"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 13659 13660All other globals within the subsystem are now prefixed with 13661"AcpiGbl_" Internal procedures within the subsystem are now 13662prefixed with "Acpi" (with only a few exceptions). The original 13663two-letter abbreviation for the subcomponent remains after "Acpi" 13664- for example, CmCallocate became AcpiCmCallocate. 13665 13666Added a source code translation/conversion utility. Used to 13667generate the Linux source code, it can be modified to generate 13668other types of source as well. Can also be used to cleanup 13669existing source by removing extraneous spaces and blank lines. 13670Found in tools/acpisrc/* 13671 13672OsdUnMapMemory was renamed to OsdUnmapMemory and then 13673AcpiOsUnmapMemory. (UnMap became Unmap). 13674 13675A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 13676When set to one, this indicates that the caller wants to use the 13677 13678semaphore as a mutex, not a counting semaphore. ACPI CA uses 13679both types. However, implementers of this call may want to use 13680different OS primitives depending on the type of semaphore 13681requested. For example, some operating systems provide separate 13682 13683"mutex" and "semaphore" interfaces - where the mutex interface is 13684much faster because it doesn't have all the overhead of a full 13685semaphore implementation. 13686 13687Fixed a deadlock problem where a method that accesses the PCI 13688address space can block forever if it is the first access to the 13689space. 13690 13691------------------------------------------- 13692Summary of changes for this label: 06_02_00 13693 13694Support for environments that cannot handle unaligned data 13695accesses (e.g. firmware and OS environments devoid of alignment 13696handler technology namely SAL/EFI and the IA-64 Linux kernel) has 13697been added (via configurable macros) in these three areas: - 13698Transfer of data from the raw AML byte stream is done via byte 13699moves instead of word/dword/qword moves. - External objects are 13700aligned within the user buffer, including package elements (sub- 13701objects). - Conversion of name strings to UINT32 Acpi Names is now 13702done byte-wise. 13703 13704The Store operator was modified to mimic Microsoft's 13705implementation when storing to a Buffer Field. 13706 13707Added a check of the BM_STS bit before entering C3. 13708 13709The methods subdirectory has been obsoleted and removed. A new 13710file, cmeval.c subsumes the functionality. 13711 13712A 16-bit (DOS) version of AcpiExec has been developed. The 13713makefile is under the acpiexec directory. 13714