Path: blob/main/sys/contrib/dev/acpica/changes.txt
48253 views
----------------------------------------17 August 2025. Summary of changes for version 20250807:23Major changes:45Added option to skip the global lock for SMM - Huacai Chen67Fixed non-NUL terminated string implementations - Ahmed Salem89Fixed CCEL and CDAT templates - Ahmed Salem1011Fixed a major Linux kernel bug (UAF) that was triggered by unequal number of method parameters (definition) vs arguments (invocation) in different places - Peter Williams, Hans de Goede, Rafael Wysocki1213Define distinct D3 states (D3Hot and D3Cold) that help clarify the device behavior support - Aymeric Wibo1415A few cleanups, improvements to existing table supports, small fixes, spelling corrections etc.161718----------------------------------------194 April 2025. Summary of changes for version 20250404:2021Major changes:2223Update all the copyright continuation year to 2025 in the license header of all files2425Add complete support for 3 new ACPI tables - MRRM,ERDT and RIMT (Tony Luck & V L Sunil)2627Add a license file to the project which is a great improvement (Dionna Glaze)2829Update DMAR and TPM2 tables to support their latest versions (Alexey Neyman and Stuart Yoder)3031A few fixes including local cache allocation, FFixedHW Region, attribute packing, string vs. non-string char array, vsnprintf()etc. along with some comments, spelling errors and code alignment (multiple awesome contributors)323334----------------------------------------3512 December 2024. Summary of changes for version 20241212:3637Major changes:3839Fix 2 critical CVE addressing memory leaks - Seunghun Han4041EINJ V2 updates - Zaid Alali (Ampere Computing)4243CDAT updates - Ira Weiny (Intel Corporation)4445Fix mutex handling, do not release ones that were never acquired - Daniil Tatianin4647Experiment with new tag name format Ryyyy_mm_dd to solve chronological sorting problems484950----------------------------------------5127 September 2024. Summary of changes for version 20240927:5253Major changes:5455Fix the acpixf.h file which caused issues for the last release (before this) 202408275657Fix the pointer offset for the SLIC table5859Verify the local environment and GitHub commits are all in sync which was a problem with the second from last release (before this)20240322 (aka 20240323 - date issue)60616263----------------------------------------6427 August 2024. Summary of changes for version 20240827:6566Major changes:6768Fix the PHAT table working: ensure that the PHAT firmware health record offset works correctly, fix various sub-table offsets, prevent segmentation faults when encountering invalid device paths. Contributed by: Armin Wolf <[email protected]>6970Fix the optional table 4-byte signature. Contributed by: Daniil Tatianin <[email protected]>7172Correct the dumping of SLIC and DBG2 tables. Contributed by: Al Stone (Fedora) <[email protected]>7374Add support for QWordPCC and DWordPCC by Jose Marinho (ARM)7576Fix the integer to hex string conversions by Armin Wolf7778Detecting FACS in reduced HW mode and allowing setting waking vector thereby waking up from S3 state7980Fixing issues with crossing page boundaries when mapping operation regions by Raju Rangoju, Sanath S and Mario Limonciello (AMD)8182Update the support for IORT, HMAT, MPAM, AEST, CEDT, SPCR etc. tables8384Fix multiple issues with table parsing, compilation and disassembly by Myra DeMere (Google)8586Allow for more flexibility in _DSM usage.878889----------------------------------------9022 March 2024. Summary of changes for version 20240322:9192Major changes:9394Update all the license header year from 2023 to 2024.9596Fix table argument ordering to work properly with iasl.9798Get rid of the annoying repeated warning types in MSVC and Windows.99100Fix a test in ASLTS with edge case failure.101102Fix a couple of issues with how GPEs are counted and enabled.103104Add new tables for various architectures/OS, mainly RISC-V and also update many more.105106Add an option to either make the output deterministic or non-deterministic.107108Remove redundant checks, duplicated code and fix spellings in various files.109110Fix flex arrays for C++ compilers and also make ACPICA overall more compatible with different compilers which throw warnings related to memory sanitization etc.111112113----------------------------------------11428 June 2023. Summary of changes for version 20230628:1151160) Global changes:117118Fixed a problem with the ASL/AML Timer() operator. Discovered by UBSAN: ?array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of range for type 'acpi_operand_object?. Added AML_NO_OPERAND_RESOLVE flag to Timer (since there are no runtime arguments). Reported by: Abhishek Mainkar [email protected].119120Added a define for size of acpi_srat_generic_affinity DeviceHandle. Replaced a magic number with a define. The Linux kernel code will utilize this. Reported by Dave Jiang [email protected].121122Added support for _DSC (Deepest State for Configuration) as per ACPI 6.5.1231241) ACPICA kernel-resident subsystem:125126Added port definitions for CDAT SSLBIS. Add upstream port and any port definitions for SSLBIS. Reported by: Dave Jiang [email protected].127128Fixed misspelled CDAT DSMAS define: ACPI_CEDT_DSMAS_NON_VOLATILE -> ACPI_CDAT_DSMAS_NON_VOLATILE. Reported by: Dave Jiang [email protected].1291301) ACPICA kernel-resident subsystem:131132Fix GCC 12 dangling-pointer warning. We're storing a persistent pointer to an ephemeral local variable which technically is a dangling pointer and the compiler is correct. However, since we never indirect the pointer, this is a safe operation and we can suppress the warning.133134Also, some C run-times (like MUSL) aren't including <stdint.h> indirectly so we must include it explicitly or we won't have the type definition for uintptr_t.1351362) iASL Compiler/Disassembler and ACPICA tools:.137138IASL/RHCT: Enable dumping and compiling newly added nodes. The RHCT table is updated with new nodes. Add compile and dump functionality for these new structures.139140AcpiExec: Added a new command, ?interrupt?. The Interrupt command simulates an interrupt with a IntID (GSIV) equal to the first argument of the call/invocation. The acpiexec code simulates the behavior by OSPM: execute the _EVT method of the GED device associated with that IntID. Submitted by: Jose Marinho [email protected].141142AcpiExec: Detect GED device and keep track of _EVT. The GED device is described by a _HID of ACPI0013. This code traverses the namespace identifying all GED devices. For each GED device in the namespace we record the Interrupt object and the _EVT method. This information is used when an interrupt is simulated via the ?interrupt? command. Submitted by: Jose Marinho [email protected].143----------------------------------------14431 March 2023. Summary of changes for version 20230331:145146This release is available at https://acpica.org/downloads1471480) Global changes:149150151Update all copyright notices to the year 2023. This effects all source152modules, as well as utility signons.153Add OS-specific support for Zephyr RTOS.154Fix miscellaneous code that accesses various objects.155Remove some dead code.156Add C ?Flexible Array? support.157Add support for 64 bit LoongArch compilation.158Add first batch of RISC-V related definitions.159Performed a global automated update to remove tabs, fix indentation160issues, etc.1611621) ACPICA kernel-resident subsystem:163164hwvalid: Drop port I/O validation.1651662) ACPICA tools and utilities:167168iASL: Added full macro support in the preprocessor. Example:169#define ABCD(a,b,c,d) a+b+c-d170171Known macro support limitations (at this time):172No support for multi-line #define macros (backslash continuation173lines)174No support for the C-style ternary operator175No support for the stringizing operator (#)176No support for the concatenation (token pasting) operator (##)177No support for variable number of macro arguments178179Add support for AMD Secure Processor Table (ASPT) version 1.180Add support for Arm's MPAM ACPI table version 2.181ACPI 6.5: MADT: add support for trace buffer extension in GICC.182Headers: Delete bogus NodeArray array of pointers from AEST table.183PHAT table support is still ongoing.184185186----------------------------------------18720 October 2022. Summary of changes for version 20221020:188189This release is available at https://acpica.org/downloads1901910) Global changes:192193Allow disabling of -Werror. For distro maintainers having `-Werror` can194delay update of GCC. Since every GCC release might add new warnings that195were not yet captured, it might break the build of packages. With this196change, distros can now build with `NOWERROR=TRUE` instead of patching197either the errors or the makefiles. The default behavior keeps on using198`-Werror`.1992001) ACPICA kernel-resident subsystem:201202Added support for FFH Operation Region special context data. FFH(Fixed203Function Hardware) Opregion is approved to be added in ACPI 6.5 via code204first approach[1]. It requires special context data similar to GPIO and205Generic Serial Bus as it needs to know platform specific offset and206length.207208Reverted this commit "executer/exsystem: Warn about sleeps greater than20910 ms." Due to user complaints about valid sleeps greater than 10ms seen210in some existing machines -- generating lots of warnings.211212Do not touch VGA memory when EBDA < 1KiB. The ACPICA code assumes that213EBDA region must be at least 1KiB in size. Because this is not214guaranteed, it might happen that while scanning the memory for RSDP215pointer, the kernel touches memory above 640KiB. This is unwanted as the216VGA memory range may not be decoded or even present when running under217virtualization.218219Check that EBDA pointer is in valid memory. If the memory at 0x40e is220uninitialized, the retrieved physical memory address of EBDA may be221beyond the low memory (i.e. above 640K). If so, the kernel may222unintentionally access the VGA memory, that might not be decoded or even223present in case of virtualization.2242252) iASL Compiler/Disassembler and ACPICA tools:226227Completed the existing partial support for the CDAT "table". Although228this isn't technically an ACPI table (It doesn't go into the XSDT), it is229possible to support this table in the Data Table compiler. Created one230new file, "utilities/utcksum.c", used to centralize checksum231generation/validation into one location. Includes changes to makefiles232and MSVC project files.233234Updated support for the IORT table - update to version E.e235236Added CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table237238iASL: Added CCEL table to both compiler/disassembler.239240iASL: NHLT table: Fixed compilation of optional undocumented fields241242iASL: Fix iASL compile error due to ACPI_TDEL_OFFSET. Commit # 10e4763243("iASL: Add CCEL table to both compiler/disassembler") introduced the244iASL build issue. The issue is due to using ACPI_TDEL_OFFSET for CCEL245table member reference. To fix it, change ACPI_TDEL_OFFSET with246ACPI_CCEL_OFFSET.247248----------------------------------------24931 March 2022. Summary of changes for version 20220331:2502510) Global changes:252253Update all copyright notices to the year 2022. This effects all source254modules, as well as utility signons.2552562571) ACPICA kernel-resident subsystem:258259For the ASL Sleep() operator, issue a warning if the sleep value is260greater than 10 Milliseconds. Quick boottime is important, so warn about261sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350262ms, so excessive delays should be called out. 10 ms is chosen randomly,263but three of such delays would already make up ten percent of the264boottime.265266Namespace: Avoid attempting to walk the Namespace if the Namespace does267not exist.268269AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the270LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a271pass/fail integer. Now load returns a pass/fail integer, as well as272storing the return value in an optional 2nd argument.273274Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid275"performing pointer subtraction with a null pointer has undefined276behavior" compiler warnings, use uintptr_t and offsetof() that are always277available during Linux kernel builds to define ACPI_UINTPTR_T and the278ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code279in the Linux kernel.280281Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted282by superm1.283284executer/exsystem: Inform users about ACPI spec violation for the Stall()285operator. Values greater than 100 microseconds violate the ACPI286specification, so warn users about it. From the ACPI Specification287version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*:288> The implementation of Stall is OS-specific, but must not relinquish289> control of the processor. Because of this, delays longer than 100290> microseconds must use Sleep instead of Stall.2912922932) iASL Compiler/Disassembler and ACPICA tools:294295Data Table Compiler/Disassembler: Add support for the APMT table - ARM296Performance Monitoring Unit table. Submitted by @bwicaksononv.297298Data Table Compiler/Disassembler: For MADT, add support for the OEM-299defined subtables (Types 0x80-0x7F).300301Data Table Compiler: Fixed a problem with support for the SDEV table,302where a subtable Length was not computed correctly.303304Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT305Acpi table support.306307Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and308add template. Submitted by MasterDrogo.309310Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz:311iASL/NHLT: Rename linux specific structures to DeviceInfo to improve312readability of the code.313iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint.314Undocumented bytes at the end of Endpoint Descriptor can be present315independently of Linux-specific structures. Their size can also vary.316iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4317bytes of size and then an amount of bytes specified by size. All of the318terminators that I've seen had a size equal to 4, but theoretically it319can vary.320321iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C).322323iASL: Remove a remark due to excessive output. Removed a remark for324duplicate Offset() operators, due to a user complaint.325326----------------------------------------32717 December 2021. Summary of changes for version 20211217:3283291) ACPICA kernel-resident subsystem:330331Hardware: Do not flush CPU cache when entering S4 and S5. According to332ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to333S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of334the sleep state. Blind cache flush on entering S5 causes problems for335TDX.336337Avoid subobject buffer overflow when validating RSDP signature. Since the338Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to339it is only to a 4-char array, and so trying to read past the 4th340character, as will be done when it is an RSDP, reads beyond the bounds of341the accessed member. Contributed by jrtc27.342343Add support for PCC Opregion special context data. PCC Opregion added in344ACPIC 6.3 requires special context data similar to GPIO and Generic345Serial Bus as it needs to know the internal PCC buffer and its length as346well as the PCC channel index when the opregion handler is being executed347by the OSPM. Adds support for the special context data needed by PCC348Opregion. Submitted by Sudeep Holla <[email protected]>3493502) iASL Compiler/Disassembler and ACPICA tools:351352iASL: Completed compiler support for the NHLT ACPI table.353354iASL/NHLT table: Fixed a reported problem where a fault would occur355during disassembly of a "Linux-Specific" section if the "Specific Data"356part was not present.357358iASL: Added full support (compiler and disassembler) for the AGDI ACPI359table. Contributed by: Ilkka Koskinen <[email protected]>.360361iASL: Added full support for the TDEL ACPI table.362363iASL table compiler: FADT support updates:3641) Allow the 32-bit DSDT address to be zero.3652) Issue error if both the 32-bit and 64-bit DSDT addresses are zero.366367iASL: Fix unaligned accesses to local cache allocations. Contributed by368jrtc27.369370iASL: Open binary input files in binary mode, not text mode Affects371binary input AML files, as well as binary data table files, for372disassembly.373374----------------------------------------37530 September 2021. Summary of changes for version 20210930:376377This release is available at https://acpica.org/downloads3783791) ACPICA kernel-resident subsystem:380381Hardware: Avoid evaluating methods too early during system resume. During382wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called383and it tries to get memory from the OS in order to evaluate a control384method, but if KFENCE is enabled in the Linux kernel, the memory385allocation attempt causes an IRQ work to be queued and a self-IPI to be386sent to the CPU running the code which requires the memory controller to387be ready, so if that happens too early in the wakeup path, it doesn't388work.389390Prevent that from taking place by calling AcpiGetSleepTypeData() for S0391upfront, when preparing to enter a given sleep state, and saving the data392obtained by it for later use during system wakeup.393394Added a new _OSI string, "Windows 2020". Posted by superm1.3953962) iASL Compiler/Disassembler and ACPICA tools:397398iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS399objects:400New/latest rules: Under a Device Object:4011) If _PRS is present, must have _CRS and _SRS4022) If _SRS is present, must have _PRS (_PRS requires _CRS and403_SRS)4043) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS405requires _CRS and _SRS)4064) If _SRS is present, probably should have a _DIS (Remark only)407408iASL table disassembler: Added disassembly support for the NHLT ACPI409table. Note: support for Vendor-defined microphone arrays and SNR410extensions are not supported at this time -- mostly due to a lack of411example tables. Actual compiler support for NHLT is forthcoming.412413Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It414uses the same subtable structure as the existing Generic Initiator415Affinity type.416417Added the flag for online capable in the MADT, introduced in ACPI 6.3.418Posted by superm1.4194203) ACPICA documentation: Updated the legal info (that appears at the421start of the Documents) to clarify distribution rights that are granted.422423424----------------------------------------42530 July 2021. Summary of changes for version 20210730:426427This release is available at https://acpica.org/downloads4284291) ACPICA kernel-resident subsystem:4304312) iASL Compiler/Disassembler and ACPICA tools:432433iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021).434Under the Device Object:4351) If _DIS is present, must have a _CRS and _SRS4362) If _PRS is present, must have a _CRS, _DIS, and _SRS4373) If _SRS is present, must have a _CRS and _DIS438A warning will be issued for each of these cases.439Note: For existing ASL/projects, these warnings may be disabled by440specifying this on the command line:441"-vw 3141"442443iASL Table Disassembler/Table compiler: Fix for WPBT table with no444command-line arguments. Handle the case where the Command-line445Arguments table field does not exist (zero).446447Headers: Add new DBG2 Serial Port Subtypes448The Microsoft Debug Port Table 2 (DBG2) specification revision449September 21, 2020 comprises additional Serial Port Subtypes [1].450Reflect that in the actbl1.h header file. Submitted by:451semihalf-wojtas-marcin452453iASL: Add full support for the AEST table (data compiler)454Includes support in the table compiler and the disassembler.455456Add PRMT module header to facilitate parsing.457This structure is used in to parse PRMT in other Operating Systems458that relies on using subtable headers in order to parse ACPI tables.459Although the PRMT doesn't have "subtables" it has a list of module460information structures that act as subtables.461462iASL: Table disassembler: Add missing strings to decode subtable types.463Includes the MADT and CEDT tables.464465466----------------------------------------46704 June 2021. Summary of changes for version 20210604:4684691) ACPICA kernel-resident subsystem:470471Cleaned up (delete) the context mutex during local address handler object472deletion.473474Fixed a memory leak caused by the _CID repair function.475476Added support for PlatformRtMechanism OperationRegion handler. Adds a new477utility function, AcpiUtConvertUuidToString. Writing a buffer to a478PlatformRtMechanism fieldunit invokes a bidirectional transaction. The479input buffer contains 26 bytes containing 9 bytes of status, a command480byte and a 16-byte UUID. This change will simply pass this incoming481buffer to a handler registered by the OS.4824832) iASL Compiler/Disassembler and ACPICA tools:484485Added full support for the PRMT ACPI table (Platform Runtime Mechanism486Table). Includes support in the iASL compiler, the disassembler, and the487template generator.488489Added full support for the BDAT (BIOS Data ACPI Table) ACPI table.490491Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI492table.493494Added full support for the SVKL (Storage Volume Key Location Table) ACPI495table. Header file support from Kuppuswamy Sathyanarayanan496<[email protected]>.497498Completed full support for the IVRS (I/O Virtualization Reporting499Structure) ACPI table. Added compiler support for IVRS, updated500disassembler support. Adds a new utility, UtIsIdInteger, to determine if501a HID/CID is an integer or a string.502503Headers: Added more structs to the CEDT table: CXL fixed memory window504structure.505506ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure.507508----------------------------------------50931 March 2021. Summary of changes for version 20210331:510511This release is available at https://acpica.org/downloads, and includes512all ACPI 6.4 support5135141) ACPICA kernel-resident subsystem:515ACPI 6.4: iASL: deprecate DDBHandleObj keyword516Always create namespace nodes using AcpiNsCreateNode(). ACPICA is517allocating an object using kmalloc(), but then frees it518using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.519Fixed a race condition in generic serial bus operation region handler.520Fixed by Hans de Goede.5215222) iASL Compiler/Disassembler and ACPICA tools:523524ACPI 6.4: NFIT: add Location Cookie field525ACPI 6.4: HMAT: add new fields/flags526ACPI 6.4: Add new flags in SRAT527ACPI 6.4: add SDEV secure access components528ACPI 6.4: add Csi2Bus resource template529ACPI 6.4: add support for PHAT table530ACPI 6.4: add support for PMTT table531Add disassembly support for the IVRS table. Compilation of the table is532not yet complete.533Fixed a potential infinite loop due to type mismatch. The for-loop is534using a UINT8 counter and comparing the upper535limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In536the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i537will wrap around to zero and the loop will never exit. I suspect538the AslGbl_ExpectedMessagesIndex is never that high, but fixing539this does future proof the code and cleans up static analysis540warnings.Colin King.541iASL/TableCompiler: update it with IORT table E.b revision changes. From542shamiali2008.543iASL/TableCompiler: Add compilation support for the VIOT table. Signed-544off-by: Jean-Philippe Brucker.545iASL/TableCompiler: Add compilation support for CEDT table. Also, update546the CEDT template.547548----------------------------------------54905 January 2021. Summary of changes for version 20210105:550551This release is available at https://acpica.org/downloads5525535541) ACPICA kernel-resident subsystem:555556Updated all copyrights to 2021. This affects all ACPICA source code557modules.5585592) iASL Compiler/Disassembler and ACPICA tools:560561ASL test suite (ASLTS): Updated all copyrights to 2021.562563Tools and utilities: Updated all signon copyrights to 2021.564565iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC,566MTMR. Al Stone.567568569----------------------------------------57017 December 2020. Summary of changes for version 20201217:571572This release is available at https://acpica.org/downloads5735745751) ACPICA kernel-resident subsystem:576577Note: The implementation of ACPI 6.4 is underway, and is expected to be578mostly finished next month, when ACPI 6.4 is released.579580From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added581several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to582enable this.583584AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.585These included a few casts, as well as a null pointer check.586587Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on588implicit fallthrough, as well as __attribute__((__fallthrough__)) and589comments to explicitly denote that cases of fallthrough were intentional.590Clang also supports this warning and statement attribute, but not the591comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature592of GCC. With assistance from @nickdesaulniers.5935942) iASL Compiler/Disassembler and ACPICA tools:595596Added improvement to method call analysis by saving the return type and597relaxing certain cases of type checking.598599iASL Table Compiler: Improved info messages. Added a message to the -T600option for when the default template (DSDT) is used.601Also added a note for when multiple SSDTs are created with a DSDT that602the SSDTs are created in the same file as the DSDT.603604605----------------------------------------60660713 November 2020. Summary of changes for version 20201113:608609This release is available at https://acpica.org/downloads6106116121) ACPICA kernel-resident subsystem:613614Interpreter: fixed a memory leak by using use existing buffer in _HID615repair. There was a memory leak that occurred when a _CID object is616defined as a package containing string objects. When _CID is checked for617any possible repairs, it calls a helper function to repair _HID (because618_CID basically contains multiple _HID entries). The _HID repair function619assumes that string objects are standalone objects that are not contained620inside of any packages. The _HID repair function replaced the string621object with a brand new object and attempted to delete the old object by622decrementing the reference count of the old object. Strings inside of623packages have a reference count of 2 so the _HID repair function leaves624this object in a dangling state and causes a memory leak. Instead of625allocating a brand new object and removing the old object, use the626existing object when repairing the _HID object.627628Added function trace macros to improve namespace debugging. The namespace629repair mechanism does not have function tracing macros. Add several trace630macros to improve debuggability.631632Handle "orphan" _REG methods for GPIO OpRegions. Before this change633AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no634matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry635Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.636The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific637UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads638to potential issues with checks for OpRegion availability, or in other639words checks if _REG has been called for the OpRegion which the ACPI code640wants to use. Except for the "orphan" EC handling, ACPICA core does not641call _REG on an ACPI node which does not define an OpRegion matching the642type being registered; and the reference design DSDT, from which most643Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor644UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins645were assigned ACPI controlled functions in the reference design. Together646this leads to the perfect storm, at least on the Cherry Trail based647Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code648and has added the Cherry Trail specific UserDefined(0x93) opregion to its649GPO2 ACPI node to access this pin. But it uses a "has _REG been called"650availability check for the standard GeneralPurposeIo OpRegion. This651clearly is a bug in the DSDT, but this does work under Windows. This652issue leads to the intel vbtn driver reporting the device always being in653tablet-mode at boot, even if it is in laptop mode. Which in turn causes654userspace to ignore touchpad events. So in other words, this issue causes655the touchpad to not work at boot. This change fixes this by extending the656"orphan" _REG method handling to also apply to GPIO address-space657handlers.6586596602) iASL Compiler/Disassembler and ACPICA tools:661662iASL: Added more info to namespace dump file (-ln option). In a separate663section of the dump file (after the main namespace dump), emit the full664pathname for each namespace node, its type, and the ASL filename and line665number where it is declared.666667AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -668x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value669is omitted, all iASL exceptions are displayed.670671iASL: Use StringLiteral instead of StringData for some ASL macros. The672use of the stringData rule allows for some "string" oriented opcodes673(Such as ToString, ToHexString, etc.) None of which make sense with the674macros in question. This change modifies the StringData part of the rule675for these macros to a simple string literal - thus disallowing the use676of ToString, ToHexString, etc.677The following ASL operators (macros) are affected:678EisaId679Fprintf680Printf681ToUuid682Unicode683Note: The MS compiler requires the use of string literals for these684operators also.685686iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search687the list of "known" UUIDs for the input to the ToUUID macro.688689Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the690NFIT table.691692693----------------------------------------69469525 September 2020. Summary of changes for version 20200925:696697This release is available at https://acpica.org/downloads6986997001) ACPICA kernel-resident subsystem:701702Preserve memory opregion mappings. The ACPICA's strategy with respect to703the handling of memory mappings associated with memory operation regions704is to avoid mapping the entire region at once which may be problematic at705least in principle (for example, it may lead to conflicts with706overlapping mappings having different attributes created by drivers). It707may also be wasteful, because memory opregions on some systems take up708vastchunks of address space while the fields in those regions actually709accessed by AML are sparsely distributed.710711For this reason, a one-page "window" is mapped for a given opregion on712the first memory access through it and if that "window" does not cover an713address range accessed through that opregion subsequently, it is unmapped714and a new "window" is mapped to replace it. Next, if the new "window" is715not sufficient to access memory through the opregion in question in the716future, it will be replaced with yet another "window" and so on. That717may lead to a suboptimal sequence of memory mapping and unmapping718operations, for example if two fields in one opregion separated from each719other by a sufficiently wide chunk of unused address space are accessed720in an alternating pattern.721722Added support for 64 bit risc-v compilation. Useful for acpica tools and723incorporating ACPICA into the Firmware Test Suite. Colin Ian King724<[email protected]>.725726Added support for SMBus predefined names (from SMBus Control Method727Interface Specification, Version 1.0, December 10, 1999. New predefined728names:729_SBA730_SBI731_SBR732_SBT733_SBW734735AML Disassembler: Added a new command, "All <NameSeg>". This command will736evaluate all objects in the current namespace whose NameString contains737the input NameSeg as the last element of the NameString. Useful for738debugging.7397407412) iASL Compiler/Disassembler and ACPICA tools:742743iASL: fixed a crash that occurred when predefined objects return packages744with lengths that exceed the initializer list.745746iASL: added more detail to external resolution error message when747compiling multiple definition blocks.748749iASL: added a remark for an attempt to create a nameseg or namestring750containing lower-case letters. This should prevent declaring multiple751namesegs or namestrings in an attempt to refer to different objects (with752different cases), but actually refer to the same object(s).753754iASL: improve alias analysis by saving object type. If the alias is a755method type, the parameter count is also recorded.756757AcpiExec: Increase the default loop timeout value. Was 1 second, is now75810 seconds. Prevents unnecessary timeouts when executing control methods759from the command line.760761AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal762list. Includes:763Memory Device764Generic Buttons Device765NVDIMM Root Device766Control Method Battery767Device Graphs for _DSD method768Hierarchical Data Extension769....ARM CoreSight Graph770771----------------------------------------77277377417 July 2020. Summary of changes for version 20200717:775776This release is available at https://acpica.org/downloads7777787791) ACPICA kernel-resident subsystem:780781Do not increment OperationRegion reference counts for field units. Recent782server firmware has revealed that this reference count can overflow on783large servers that declare many field units (thousands) under the same784OperationRegion. This occurs because each field unit declaration will add785a reference count to the source OperationRegion. This release solves the786reference count overflow for OperationRegion objects by preventing787fieldUnits from incrementing their parent OperationRegion's reference788count.789790Replaced one-element arrays with flexible-arrays, which were introduced791in C99.792793Restored the readme file containing the directions for generation of794ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is795located at: generate/msvc2017/readme.txt7967972) iASL Compiler/Disassembler and ACPICA tools:798799iASL: Fixed a regression found in version 20200214. Prevent iASL from800emitting an extra byte of garbage data when control methods declared a801single parameter type without using braces. This extra byte is known to802cause a blue screen on the Windows AML interpreter.803804iASL: Made a change to allow external declarations to specify the type of805a named object even when some name segments are not defined.806This change allows the following ASL code to compile (When DEV0 is not807defined or not defined yet):808809External (\_SB.DEV0.OBJ1, IntObj)810External (\_SB.DEV0, DeviceObj)811812iASL: Fixed a problem where method names in "Alias ()" statement could be813misinterpreted. They are now interpreted correctly as method invocations.814815iASL: capture a method parameter count (Within the Method info segment,816as well as the argument node) when using parameter type lists.817818----------------------------------------81982082128 May 2020. Summary of changes for version 20200528:8228238241) ACPICA kernel-resident subsystem:825826Removed old/obsolete Visual Studio files which were used to build the827Windows versions of the ACPICA tools. Since we have moved to Visual828Studio 2017, we are no longer supporting Visual Studio 2006 and 2009829project files. The new subdirectory and solution file are located at:830831acpica/generate/msvc2017/AcpiComponents.sln8328338342) iASL Compiler/Disassembler and ACPICA tools:835836iASL: added support for a new OperationRegion Address Space (subtype):837PlatformRtMechanism. Support for this new keyword is being released for838early prototyping. It will appear in the next release of the ACPI839specification.840841iASL: do not optimize the NameString parameter of the CondRefOf operator.842In the previous iASL compiler release, the NameString parameter of the843CondRefOf was optimized. There is evidence that some implementations of844the AML interpreter do not perform the recursive search-to-parent search845during the execution of the CondRefOf operator. Therefore, the CondRefOf846operator behaves differently when the NameString parameter is a single847name segment (a NameSeg) as opposed to a full NamePath (starting at the848root scope) or a NameString containing parent prefixes.849850iASL: Prevent an inadvertent remark message. This change prevents a851remark if within a control method the following exist:8521) An Operation Region is defined, and8532) A Field operator is defined that refers to the region.854This happens because at the top level, the Field operator does not855actually create a new named object, it simply references the operation856region.857858Removed support for the acpinames utility. The acpinames was a simple859utility used to populate and display the ACPI namespace without executing860any AML code. However, ACPICA now supports executable opcodes outside of861control methods. This means that executable AML opcodes such as If and862Store opcodes need to be executed during table load. Therefore, acpinames863would need to be updated to match the same behavior as the acpiexec864utility and since acpiexec can already dump the entire namespace (via the865'namespace' command), we no longer have the need to maintain acpinames.866867In order to dump the contents of the ACPI namespace using acpiexec,868execute the following command from the command line:869870acpiexec -b "n" [aml files]871872----------------------------------------87387487530 April 2020. Summary of changes for version 20200430:8768771) ACPICA kernel-resident subsystem:878879Cleaned up the coding style of a couple of global variables880(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.881AcpiProtocolLengths was made static, and the definition of882AcpiGbl_NextCmdNum was moved to acglobal.h.8838848852) iASL Compiler/Disassembler and ACPICA tools:886887iASL DataTable Compiler: Fixed a segfault on errors that aren't directly888associated with a field.889890Disassembler: has been made more resilient so that it will continue to891parse AML even if the AML generates ACPI namespace errors. This enables892iASL to disassemble some AML that may have been compiled using older893versions of iASL that no longer compile with newer versions of iASL.894895iASL: Fixed the required parameters for _NIH and _NIG. Previously, there896was a mixup where _NIG required one parameter and _NIH required zero897parameters. This change swaps these parameter requirements. Now it is898required that _NIH must be called with one parameter and _NIG requires899zero parameters.900901iASL: Allow use of undefined externals as long as they are protected by902an if (CondRefOf (...)) block when compiling multiple definition blocks.903904iASL: Fixed the type override behavior of named objects that are declared905as External. External declarations will no longer override the type of906the actual definition if it already exists.907908AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable909command line wildcard support on Windows. Note: the AcpiNames utility is910essentially redundant with the AcpiExec utility (using the "namespace"911command) and is therefore deprecated. It will be removed in future912releases of ACPICA.913914Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*915operators. The disassembler is intended to emit existing ASL code as-is.916Therefore, error messages emitted during disassembly should be ignored or917handled in a way such that the disassembler can continue to parse the918AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op919parsing for create operators in order to complete parsing ASL termlists.920921iASL DataTable Compiler: IVRS table: fix potentially uninitialized922variable warning. Some compilers catch potential uninitialized variables.923This is done by examining branches of if/else statements. This change924replaces an "else if" with an "else" to fix the uninitialized variable925warning.926927928----------------------------------------92926 March 2020. Summary of changes for version 20200326:9309319321) ACPICA kernel-resident subsystem:933934Performed a code clean-up to prevent build errors on early versions of935GCC-10.936937Added the NHLT table signature. iASL data table compiler/disassembler938support for this table is coming soon.9399409412) iASL Compiler/Disassembler and ACPICA tools:942943AcpiExec: Fixed several problems with the namespace initialization file944(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS945errors, several seg faults, and enhancements to line parsing within the946init file. In addition, each object found in the init file and it's new947value is displayed, as well as any such entries that do not have a948corresponding name in the namespace. For reference, the syntax for the949various supported data types are presented below:950PCHG 0x777788889999BBBB // Integer951\DEV1.STR1 "XYZ" // String952BUF1 (88 99 AA) // Buffer953PKG1 [0x1111 0x2222] // Package954\BF1 0x7980 // BufferField955RCRV 0x0123456789ABCDEF // Field Unit956957iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro958can be used anywhere in a given ASL file to configure iASL to expect an959iASL compiler error code on the line where this macro was placed. If the960error code does not exist, an error is generated. This is intended to be961used for ACPICA's ASL test suite, but can be used by ASL developers as962well.963964iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD965IVRS table parsing supported only IVHD type 10h structures. Parsing an966IVHD type 11h caused the iasl to report unknown subtable type. Add967necessary structure definition for IVHD type 11h and apply correct968parsing method based on subtable type. Micha? ?ygowski.969970iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name971According to AMD IOMMU Specification Revision 3.05 the reserved field972should be IOMMU Feature Reporting. Change the name of the field to the973correct one. Micha? ?ygowski.974975acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch976based on suggestions by David Seifert and Benjamin Berg.977978iASL: table compiler: removed an unused variable (DtCompilerParserResult)979causing linking errors. Patch based on suggestions by David Seifert and980Benjamin Berg.981982iASL: table compiler: make LexBuffer static to avoid linking errors in983newer compilers. Patch based on suggestions by David Seifert and Benjamin984Berg.985986iASL: fixed type matching between External and Named objects. External987object types can only be expressed with ACPI object type values that are988defined in the ACPI spec. However, iASL uses ACPI object type values that989are local to ACPICA in addition to the values defined in the ACPI spec.990This change implements type matching to map some object type values991specific to ACPICA to ones that are defined in the ACPI spec.992993iASL: Dropped the type mismatch compiler error that can arise from994External declarations to a warning. This warning can occur when there is995a type difference between the external declaration and the actual object996declaration (when compiling multiple files/modules simultaneously).997998iASL: removed an incorrect error message regarding externals. This change999removes an incorrect error that is emitted when a duplicate external1000declaration does not contain a type that opens a scope. This is incorrect1001because the duplicate external with conflicting types are already caught1002by iASL and it doesn't make any sense to enforce what this conflicting1003type should be.10041005AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be1006surrounded by parens. Otherwise, a logical statement that applies a1007logical not operator to this macro could result in a computation that1008applies the operator to the left side of the logical and but not the1009right. Reported-by: John Levon <[email protected]>10101011Fixed a problem with the local version of sprint(): On 32-bit, the1012provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,1013String + Size will wrap, meaning End < Start, and1014AcpiUtBoundStringOutput() will never output anything as a result. The1015symptom seen of this was acpixtract failing to output anything -- with a1016custom build that included utprint.c. Signed-off-by: John Levon1017<[email protected]>10181019iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the1020ACPI specification.102110221023----------------------------------------102414 February 2020. Summary of changes for version 20200214:1025102610271) ACPICA kernel-resident subsystem:10281029Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered1030in a guest when it receives a sleep trigger from the hypervisor. When the1031guest resumes from this power state, it does not see the SleepEnabled1032bit. In other words, the sleepHibernation (S4) is triggered in a guest1033when it receives a sleep trigger from the hypervisor. When the guest1034resumes from this power state, it does not see the SleepEnabled bit. In1035other words, the sleep button is not enabled on waking from an S4 state.1036This causes subsequent invocation of sleep state to fail since the1037guest.button is not enabled on waking from an S4 state. This causes1038subsequent invocation of sleep state to fail in the guest. Fix this1039problem by enabling the sleep button in ACPI legacy wake. From Anchal1040Agarwal <[email protected]>.10411042Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used1043for checking the status bits of all enabled GPEs in one go. It is needed1044to distinguish spurious SCIs from genuine ones when deciding whether or1045not to wake up the system from suspend-to-idle.10461047Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be1048using HOST in their environment to represent the host name for their1049machines. Avoid this problem by renaming this variable from HOST to1050ACPI_HOST.10511052MSVC 2017 project files: Enable multiprocessor generation to improve1053build performance.10541055Added a macro to get the byte width of a Generic Address structure. New1056ACPI_ACCESS_BYTE_WIDTH is in addition to the existing1057ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.1058105910602) iASL Compiler/Disassembler and ACPICA tools:10611062iASL: Implemented full support for the (optional, rarely used) ReturnType1063and ParameterTypesList for the Method, Function, and External operators.1064For Method declarations, the number of individual ParameterTypes must1065match the declaration of the number of arguments (NumArgs). This also1066Fixes a problem with the External operator where extra/extraneous bytes1067were emitted in the AML code if the optional ReturnType/ParameterTypes1068were specified for a MethodObj declaration.1069New error message:10701) Method NumArgs count does not match length of ParameterTypes list10711072iASL: Implemented detection of type mismatches between External1073declarations and named object declarations. Also, detect type mismatches1074between multiple External declarations of the same Name.1075New error messages:10761) Type mismatch between external declaration and actual object1077declaration detected10782) Type mismatch between multiple external declarations detected10791080iASL: Implemented new error messages for External operators that specify1081a ReturnType and/or ParameterTypesList for any object type other than1082control methods (MethodObj).1083New error messages:10841) Return type is only allowed for Externals declared as MethodObj10852) Parameter type is only allowed for Externals declared as MethodObj10861087iASL: Implemented two new remark/warning messages for ASL code that1088creates named objects from within a control method. This is very1089inefficient since the named object must be created and deleted each time1090the method is executed.1091New messages:10921) Creation of named objects within a method is highly inefficient, use1093globals or method local variables instead (remark)10942) Static OperationRegion should be declared outside control method1095(warning)10961097iASL: Improved illegal forward reference detection by adding support to1098detect forward-reference method invocations.10991100iASL: Detect and issue an error message for NameStrings that contain too1101many individual NameSegs (>255). This is an AML limitation that is1102defined in the ACPI specification.1103New message:11041) NameString contains too many NameSegs (>255)11051106acpidump: windows: use GetSystemFirmwareTable API for all tables except1107SSDT. By using this API, acpidump is able to get all tables in the XSDT11081109iASL: Removed unused parser file and updated msvc2017 project files.1110Removed the obsolete AslCompiler.y from the repository.11111112iASL: msvc2017: Fixed macros in the file dependency list to prevent1113unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).11141115Disassembler: Prevent spilling error messages to the output file. All1116errors are directed to the console instead. These error messages1117prevented re-compilation of the resulting disassembled ASL output file1118(.DSL).111911201121----------------------------------------112210 January 2020. Summary of changes for version 20200110:1123112411251) ACPICA kernel-resident subsystem:11261127Updated all copyrights to 2020. This affects all ACPICA source code1128modules.1129113011312) iASL Compiler/Disassembler and ACPICA tools:11321133ASL test suite (ASLTS): Updated all copyrights to 2020.11341135Tools and utilities: Updated all signon copyrights to 2020.11361137iASL: fix forward reference analysis for field declarations. Fixes1138forward reference analysis for field declarations by searching the1139parent scope for the named object when the object is not present in1140the current scope.11411142iASL: Improved the error output for ALREADY_EXISTS errors. Now, the1143full pathname of the name that already exists is printed.11441145iASL: Enhance duplicate Case() detection for buffers. Add check for1146buffers with no initializer list (these buffers will be filled with1147zeros at runtime.)114811491150----------------------------------------115113 December 2019. Summary of changes for version 20191213:1152115311541) ACPICA kernel-resident subsystem:11551156Return a Buffer object for all fields created via the CreateField1157operator. Previously, an Integer would be returned if the size of1158the field was less than or equal to the current size of an Integer.1159Although this goes against the ACPI specification, it provides1160compatibility with other ACPI implementations. Also updated the1161ASLTS test suite to reflect this new behavior.116211632) iASL Compiler/Disassembler and ACPICA tools:11641165iASL: Implemented detection of (and throw an error for) duplicate1166values for Case statements within a single Switch statement. Duplicate1167Integers, Strings, and Buffers are supported.11681169iASL: Fix error logging issue during multiple file compilation --1170Switch to the correct input file during error node creation.11711172iASL: For duplicate named object creation, now emit an error instead1173of a warning - since this will cause a runtime error.11741175AcpiSrc: Add unix line-ending support for non-Windows builds.11761177iASL: Add an error condition for an attempt to create a NameString1178with > 255 NameSegs (the max allowable via the AML definition).117911801181----------------------------------------118218 October 2019. Summary of changes for version 20191018:1183118411851) ACPICA kernel-resident subsystem:11861187Debugger: added a new command: ?Fields [address space ID]?. This command1188dumps the contents of all field units that are defined within the1189namespace with a particular address space ID.11901191Modified the external interface AcpiLoadTable() to return a table index.1192This table index can be used for unloading a table for debugging.1193ACPI_STATUS1194AcpiLoadTable (1195ACPI_TABLE_HEADER *Table,1196UINT32 *TableIndex))11971198Implemented a new external interface: AcpiUnloadTable() This new function1199takes a table index as an argument and unloads the table. Useful for1200debugging only.1201ACPI_STATUS1202AcpiUnloadTable (1203UINT32 TableIndex))12041205Ported the AcpiNames utility to use the new table initialization1206sequence. The utility was broken before this change. Also, it was1207required to include most of the AML interpreter into the utility in order1208to process table initialization (module-level code execution.)12091210Update for results from running Clang V8.0.1. This fixes all "dead1211assignment" warnings. There are still several "Dereference of NULL1212pointer" warnings, but these have been found to be false positive1213warnings.1214121512162) iASL Compiler/Disassembler and ACPICA tools:12171218iASL: numerous table compiler changes to ensure that the usage of1219yacc/bison syntax is POSIX-compliant.12201221iASL/disassembler: several simple bug fixes in the data table1222disassembler.12231224Acpiexec: expanded the initialization file (the -fi option) to initialize1225strings, buffers, packages, and field units.122612271228----------------------------------------122916 August 2019. Summary of changes for version 20190816:12301231This release is available at https://acpica.org/downloads1232123312341) ACPICA kernel-resident subsystem:12351236Modified the OwnerId mechanism to allow for more Owner Ids. The previous1237limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT1238exceptions on machines with a large number of initialization threads,1239many CPU cores and nested initialization control methods.12401241Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for1242checking if the given GPE (as represented by a GPE device handle and a1243GPE number) is currently active and dispatching it (if that's the case)1244outside of interrupt context.12451246Table load: exit the interpreter before initializing objects within the1247new table This prevents re-acquiring the interpreter lock when loading1248tables12491250Added the "Windows 2019" string to the _OSI support (version 1903). Jung-1251uk Kim12521253Macros: removed pointer math on a null pointer. Causes warnings on some1254compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR1255instead of using arithmetic.12561257Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used1258across all "printf-like" internal functions. Also, cleanup all calls to1259such functions (both in 32-bit mode and 64-bit mode) now that they are1260analyzed by the gcc compiler via ACPI_PRINTF_LIKE.1261126212632) iASL Compiler/Disassembler and ACPICA tools:12641265iASL: implemented a new data table compiler flex/bison front-end. This1266change is internal and is not intended to result in changes to the1267compiled code. This new compiler front-end can be invoked using the -tp1268option for now, until the old mechanism is removed.12691270ASLTS: Implemented a new data table compiler test suite. This test suite1271generates all table templates and compile/disassemble/re-compile/binary-1272compare each file.12731274iASL: return -1 if AML files were not generated due to compiler errors12751276iASL: added a warning on use of the now-legacy ASL Processor () keyword.12771278iASL: added an error on _UID object declaration that returns a String1279within a Processor () declaration. A _UID for a processor must be an1280Integer.12811282iASL: added a null terminator to name strings that consist only of1283multiple parent prefixes (^)12841285iASL: added support to compile both ASL and data table files in a single1286command.12871288Updated the tool generation project files that were recently migrated to1289MSVC 2017 to eliminate all new warnings. The new project files appear in1290the directory \acpica\generate\msvc2017. This change effectively1291deprecates the older project files in \acpica\generate\msvc9.129212931294----------------------------------------129503 July 2019. Summary of changes for version 20190703:1296129712981) ACPICA kernel-resident subsystem:12991300Remove legacy module-level support code. There were still some remnants1301of the legacy module-level code executions. Since we no longer support1302this option, this is essentially dead code and has been removed from the1303ACPICA source.13041305iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root1306scope. If these named objects are declared outside the root scope, they1307will not be invoked by any host Operating System.13081309Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC1310one) can be enabled in two situations. First, the GPEs with existing _Lxx1311and _Exx methods are enabled implicitly by ACPICA during system1312initialization. Second, the GPEs without these methods (like GPEs listed1313by _PRW objects for wakeup devices) need to be enabled directly by the1314code that is going to use them (e.g. ACPI power management or device1315drivers).13161317In the former case, if the status of a given GPE is set to start with,1318its handler method (either _Lxx or _Exx) needs to be invoked to take care1319of the events (possibly) signaled before the GPE was enabled. In the1320latter case, however, the first caller of AcpiEnableGpe() for a given GPE1321should not be expected to care about any events that might be signaled1322through it earlier. In that case, it is better to clear the status of1323the GPE before enabling it, to prevent stale events from triggering1324unwanted actions (like spurious system resume, for example).13251326For this reason, modify AcpiEvAddGpeReference() to take an additional1327boolean argument indicating whether or not the GPE status needs to be1328cleared when its reference counter changes from zero to one and make1329AcpiEnableGpe() pass TRUE to it through that new argument.1330133113322) iASL Compiler/Disassembler and ACPICA tools:13331334The tool generation process has been migrated to MSVC 2017, and all1335project files have been upgraded. The new project files appear in the1336directory \acpica\generate\msvc2017. This change effectively deprecates1337the older project files in \acpica\generate\msvc9.13381339iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root1340scope. If these named objects are declared outside the root scope, they1341will not be invoked by any host Operating System13421343----------------------------------------134409 May 2019. Summary of changes for version 20190509:1345134613471) ACPICA kernel-resident subsystem:13481349Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling1350them") that causes problems with Thunderbolt controllers to occur if a1351dock device is connected at init time (the xhci_hcd and thunderbolt1352modules crash which prevents peripherals connected through them from1353working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:1354Dispatch active GPEs at init time") to get undone, so the problem1355addressed by commit ecc1165b8b74 appears again as a result of it.1356135713582) iASL Compiler/Disassembler and ACPICA tools:13591360Reverted iASL: Additional forward reference detection. This change1361reverts forward reference detection for field declarations. The feature1362unintentionally emitted AML bytecode with incorrect package lengths for1363some ASL code related to Fields and OperationRegions. This malformed AML1364can cause systems to crash1365during boot. The malformed AML bytecode is emitted in iASL version136620190329 and 20190405.13671368iASL: improve forward reference detection. This change improves forward1369reference detection for named objects inside of scopes. If a parse object1370has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to1371a named object that is declared later in the AML bytecode. This is1372allowed if the reference is inside of a method and the declaration is1373outside of a method like so:13741375DefinitionBlock(...)1376{1377Method (TEST)1378{1379Return (NUM0)1380}1381Name (NUM0,0)1382}13831384However, if the declaration and reference are both in the same method or1385outside any methods, this is a forward reference and should be marked as1386an error because it would result in runtime errors.13871388DefinitionBlock(...)1389{1390Name (BUFF, Buffer (NUM0) {}) // Forward reference1391Name (NUM0, 0x0)13921393Method (TEST)1394{1395Local0 = NUM11396Name (NUM1, 0x1) // Forward reference1397return (Local0)1398}1399}14001401iASL: Implemented additional buffer overflow analysis for BufferField1402declarations. Check if a buffer index argument to a create buffer field1403operation is beyond the end of the target buffer.14041405This affects these AML operators:14061407AML_CREATE_FIELD_OP1408AML_CREATE_BIT_FIELD_OP1409AML_CREATE_BYTE_FIELD_OP1410AML_CREATE_WORD_FIELD_OP1411AML_CREATE_DWORD_FIELD_OP1412AML_CREATE_QWORD_FIELD_OP14131414There are three conditions that must be satisfied in order to allow this1415validation at compile time:141614171) The length of the target buffer must be an integer constant14182) The index specified in the create* must be an integer constant14193) For CreateField, the bit length argument must be non-zero.14201421Example:1422Name (BUF1, Buffer() {1,2})1423CreateField (BUF1, 7, 9, CF03) // 3: ERR14241425dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR1426Error 6165 - ^ Buffer index beyond end of1427target buffer142814291430----------------------------------------143105 April 2019. Summary of changes for version 20190405:1432143314341) ACPICA kernel-resident subsystem:14351436Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop1437unconditionally clearing ACPI IRQs during suspend/resume") was added1438earlier to stop clearing of event status bits unconditionally on suspend1439and resume paths. Though this change fixed an issue on suspend path, it1440introduced regressions on several resume paths. In the case of S0ix,1441events are enabled as part of device suspend path. If status bits for the1442events are set when they are enabled, it could result in premature wake1443from S0ix. If status is cleared for any event that is being enabled so1444that any stale events are cleared out. In case of S0ix, events are1445enabled as part of device suspend path. If status bits for the events are1446set when they are enabled, it could result in premature wake from S0ix.14471448This change ensures that status is cleared for any event that is being1449enabled so that any stale events are cleared out.1450145114522) iASL Compiler/Disassembler and ACPICA tools:14531454iASL: Implemented an enhanced multiple file compilation that combines1455named objects from all input files to a single namespace. With this1456feature, any unresolved external declarations as well as duplicate named1457object declarations can be detected during compilation rather than1458generating errors much later at runtime. The following commands are1459examples that utilize this feature:1460iasl dsdt.asl ssdt.asl1461iasl dsdt.asl ssdt1.asl ssdt2.asl1462iasl dsdt.asl ssdt*.asl14631464----------------------------------------146529 March 2019. Summary of changes for version 20190329:1466146714681) ACPICA kernel-resident subsystem:14691470Namespace support: Remove the address nodes from global list after method1471termination. The global address list contains pointers to namespace nodes1472that represent Operation Regions. This change properly removes Operation1473Region namespace nodes that are declared dynamically during method1474execution.14751476Linux: Use a different debug default than ACPICA. There was a divergence1477between Linux and the ACPICA codebases. In order to resolve this1478divergence, Linux now declares its own debug default in aclinux.h14791480Renamed some internal macros to improve code understanding and1481maintenance. The macros below all operate on single 4-character ACPI1482NameSegs, not generic strings (old -> new):1483ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE1484ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG1485ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG14861487Fix for missing comma in array declaration for the AcpiGbl_GenericNotify1488table.14891490Test suite: Update makefiles, add PCC operation region support1491149214932) iASL Compiler/Disassembler and Tools:14941495iASL: Implemented additional illegal forward reference detection. Now1496detect and emit an error upon detection of a forward reference from a1497Field to an Operation Region. This will fail at runtime if allowed to1498pass the compiler.14991500AcpiExec: Add an address list check for dynamic Operation Regions. This1501feature performs a sanity test for each node the global address list.1502This is done in order to ensure that all dynamic operation regions are1503properly removed from the global address list and no dangling pointers1504are left behind.15051506Disassembler: Improved generation of resource pathnames. This change1507improves the code that generates resource descriptor and resource tag1508pathnames. The original code used a bunch of str* C library functions1509that caused warnings on some compilers.15101511iASL: Removed some uses of strncpy and replaced with memmove. The strncpy1512function can overwrite buffers if the calling code is not very careful.1513In the case of generating a module/table header, use of memmove is a1514better implementation.1515151615173) Status of new features that have not been completed at this time:15181519iASL: Implementing an enhanced multiple file compilation into a single1520namespace feature (Status): This feature will be released soon, and1521allows multiple ASL files to be compiled into the same single namespace.1522By doing so, any unresolved external declarations as well as duplicate1523named object declarations can be detected during compilation (rather than1524later during runtime). The following commands are examples that utilize1525this feature:1526iasl dsdt.asl ssdt.asl1527iasl dsdt.asl ssdt1.asl ssdt2.asl1528iasl dsdt.asl ssdt*.asl15291530ASL tutorial status: Feedback is being gathered internally and the1531current plan is to publish this tutorial on the ACPICA website after a1532final review by a tech writer.15331534----------------------------------------153515 February 2019. Summary of changes for version 20190215:1536153715380) Support for ACPI specification version 6.3:15391540Add PCC operation region support for the AML interpreter. This adds PCC1541operation region support in the AML interpreter and a default handler for1542acpiexec. The change also renames the PCC region address space keyword to1543PlatformCommChannel.15441545Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.1546These methods provide OSPM with health information and device boot1547status.15481549PDTT: Add TriggerOrder to the PCC Identifier structure. The field value1550defines if the trigger needs to be invoked by OSPM before or at the end1551of kernel crash dump processing/handling operation.15521553SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT1554is used for describing devices such as heterogeneous processors,1555accelerators, GPUs, and IO devices with integrated compute or DMA1556engines.15571558MADT: Add support for statistical profiling in GICC. Statistical1559profiling extension (SPE) is an architecture-specific feature for ARM.15601561MADT: Add online capable flag. If this bit is set, system hardware1562supports enabling this processor during OS runtime.15631564New Error Disconnect Recover Notification value. There are a number of1565scenarios where system Firmware in collaboration with hardware may1566disconnect one or more devices from the rest of the system for purposes1567of error containment. Firmware can use this new notification value to1568alert OSPM of such a removal.15691570PPTT: New additional fields in Processor Structure Flags. These flags1571provide more information about processor topology.15721573NFIT/Disassembler: Change a field name from "Address Range" to "Region1574Type".15751576HMAT updates: make several existing fields to be reserved as well as1577rename subtable 0 to "memory proximity domain attributes".15781579GTDT: Add support for new GTDT Revision 3. This revision adds information1580for the EL2 timer.15811582iASL: Update the HMAT example template for new fields.15831584iASL: Add support for the new revision of the GTDT (Rev 3).1585158615871) ACPICA kernel-resident subsystem:15881589AML Parser: fix the main AML parse loop to correctly skip erroneous1590extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-1591byte extended opcodes. If an error occurs during an AML table load, the1592AML parser will continue loading the table by skipping the offending1593opcode. This implements a "load table at any cost" philosophy.1594159515962) iASL Compiler/Disassembler and Tools:15971598iASL: Add checks for illegal object references, such as a reference1599outside of method to an object within a method. Such an object is only1600temporary.16011602iASL: Emit error for creation of a zero-length operation region. Such a1603region is rather pointless. If encountered, a runtime error is also1604implemented in the interpreter.16051606Debugger: Fix a possible fault with the "test objects" command.16071608iASL: Makefile: support parent directory filenames containing embedded1609spaces.16101611iASL: Update the TPM2 template to revision 4.16121613iASL: Add the ability to report specific warnings or remarks as errors.16141615Disassembler: Disassemble OEMx tables as actual AML byte code.1616Previously, these tables were treated as "unknown table".16171618iASL: Add definition and disassembly for TPM2 revision 3.16191620iASL: Add support for TPM2 rev 3 compilation.162116221623----------------------------------------162408 January 2019. Summary of changes for version 20190108:1625162616271) ACPICA kernel-resident subsystem:16281629Updated all copyrights to 2019. This affects all source code modules.1630163116322) iASL Compiler/Disassembler and Tools:16331634ASL test suite (ASLTS): Updated all copyrights to 2019.16351636Tools: Updated all signon copyrights to 2019.16371638AcpiExec: Added a new option to dump extra information concerning any1639memory leaks detected by the internal object/cache tracking mechanism. -1640va16411642iASL: Updated the table template for the TPM2 table to the newest version1643of the table (Revision 4)164416451646----------------------------------------164713 December 2018. Summary of changes for version 20181213:1648164916501) ACPICA Kernel-resident Subsystem:16511652Fixed some buffer length issues with the GenericSerialBus, related to two1653of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,1654which are rarely seen in the field. For these, the LEN field of the ASL1655buffer is now ignored. Hans de Goede16561657Implemented a new object evaluation trace mechanism for control methods1658and data objects. This includes nested control methods. It is1659particularly useful for examining the ACPI execution during system1660initialization since the output is relatively terse. The flag below1661enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:1662#define ACPI_LV_EVALUATION 0x0008000016631664Examples:1665Enter evaluation : _SB.PCI0._INI (Method)1666Exit evaluation : _SB.PCI0._INI1667Enter evaluation : _OSI (Method)1668Exit evaluation : _OSI1669Enter evaluation : _SB.PCI0.TEST (Method)1670Nested method call : _SB.PCI0.NST11671Exit nested method : _SB.PCI0.NST11672Exit evaluation : _SB.PCI0.TEST16731674Added two recently-defined _OSI strings. See1675https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-1676osi.1677"Windows 2018"1678"Windows 2018.2"16791680Update for buffer-to-string conversions via the ToHexString ASL operator.1681A "0x" is now prepended to each of the hex values in the output string.1682This provides compatibility with other ACPI implementations. The ACPI1683specification is somewhat vague on this issue.1684Example output string after conversion:1685"0x01,0x02,0x03,0x04,0x05,0x06"16861687Return a run-time error for TermArg expressions within individual package1688elements. Although this is technically supported by the ASL grammar,1689other ACPI implementations do not support this either. Also, this fixes a1690fault if this type of construct is ever encountered (it never has been).1691169216932) iASL Compiler/Disassembler and Tools:16941695iASL: Implemented a new compile option (-ww) that will promote individual1696warnings and remarks to errors. This is intended to enhance the firmware1697build process.16981699AcpiExec: Implemented a new command-line option (-eo) to support the new1700object evaluation trace mechanism described above.17011702Disassembler: Added support to disassemble OEMx tables as AML/ASL tables1703instead of a "unknown table" message.17041705AcpiHelp: Improved support for the "special" predefined names such as1706_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be1707used for "xx" and "x".17081709----------------------------------------171031 October 2018. Summary of changes for version 20181031:171117121713An Operation Region regression was fixed by properly adding address1714ranges to a global list during initialization. This allows OS to1715accurately check for overlapping regions between native devices (such as1716PCI) and Operation regions as well as checking for region conflicts1717between two Operation Regions.17181719Added support for the 2-byte extended opcodes in the code/feature that1720attempts to continue parsing during the table load phase. Skip parsing1721Device declarations (and other extended opcodes) when an error occurs1722during parsing. Previously, only single-byte opcodes were supported.17231724Cleanup: Simplified the module-level code support by eliminating a1725useless global variable (AcpiGbl_GroupModuleLeveCode).1726172717282) iASL Compiler/Disassembler and Tools:17291730iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE1731could cause a fault in the preprocessor. This was an inadvertent side-1732effect from moving more allocations/frees to the local cache/memory1733mechanism.17341735iASL: Enhanced error detection by validating that all NameSeg elements1736within a NamePatch actually exist. The previous behavior was spotty at1737best, and such errors could be improperly ignored at compiler time (never1738at runtime, however. There are two new error messages, as shown in the1739examples below:17401741dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1)1742Error 6161 - ^ One or more objects within1743the Pathname do not exist (TTTT.BXXX)17441745dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)1746Error 6160 - One or more prefix Scopes do not exist ^1747(BBBB.CBF1)17481749iASL: Disassembler/table-compiler: Added support for the static data1750table TPM2 revision 3 (an older version of TPM2). The support has been1751added for the compiler and the disassembler.17521753Fixed compilation of DOS format data table file on Unix/Linux systems.1754iASL now properly detects line continuations (\) for DOS format data1755table definition language files on when executing on Unix/Linux.17561757----------------------------------------175803 October 2018. Summary of changes for version 20181003:1759176017612) iASL Compiler/Disassembler and Tools:17621763Fixed a regression introduced in version 20180927 that could cause the1764compiler to fault, especially with NamePaths containing one or more1765carats (^). Such as: ^^_SB_PCI017661767Added a new remark for the Sleep() operator when the sleep time operand1768is larger than one second. This is a very long time for the ASL/BIOS code1769and may not be what was intended by the ASL writer.17701771----------------------------------------177227 September 2018. Summary of changes for version 20180927:1773177417751) ACPICA kernel-resident subsystem:17761777Updated the GPE support to clear the status of all ACPI events when1778entering any/all sleep states in order to avoid premature wakeups. In1779theory, this may cause some wakeup events to be missed, but the1780likelihood of this is small. This change restores the original behavior1781of the ACPICA code in order to fix a regression seen from the previous1782"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.1783This regression could cause some systems to incorrectly wake immediately.17841785Updated the execution of the _REG methods during initialization and1786namespace loading to bring the behavior into closer conformance to the1787ACPI specification and other ACPI implementations:17881789From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):1790"Control methods must assume all operation regions are inaccessible1791until the _REG(RegionSpace, 1) method is executed"17921793"The exceptions to this rule are:17941. OSPM must guarantee that the following operation regions are always1795accessible:1796SystemIO operation regions.1797SystemMemory operation regions when accessing memory returned by the1798System Address Map reporting interfaces."17991800Since the state of both the SystemIO and SystemMemory address spaces are1801defined by the specification to never change, this ACPICA change ensures1802that now _REG is never called on them. This solves some problems seen in1803the field and provides compatibility with other ACPI implementations. An1804update to the upcoming new version of the ACPI specification will help1805clarify this behavior.18061807Updated the implementation of support for the Generic Serial Bus. For the1808"bidirectional" protocols, the internal implementation now automatically1809creates a return data buffer of the maximum size (255). This handles the1810worst-case for data that is returned from the serial bus handler, and1811fixes some problems seen in the field. This new buffer is directly1812returned to the ASL. As such, there is no true "bidirectional" buffer,1813which matches the ACPI specification. This is the reason for the "double1814store" seen in the example ASL code in the specification, shown below:18151816Word Process Call (AttribProcessCall):1817OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)1818Field(TOP1, BufferAcc, NoLock, Preserve)1819{1820FLD1, 8, // Virtual register at command value 1.1821}18221823Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer1824// as BUFF1825CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)18261827Store(0x5416, DATA) // Save 0x5416 into the data buffer1828Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call1829transaction1830// This is the "double store". The write to1831// FLD1 returns a new buffer, which is stored1832// back into BUFF with the second Store.1833183418352) iASL Compiler/Disassembler and Tools:18361837iASL: Implemented detection of extraneous/redundant uses of the Offset()1838operator within a Field Unit list. A remark is now issued for these. For1839example, the first two of the Offset() operators below are extraneous.1840Because both the compiler and the interpreter track the offsets1841automatically, these Offsets simply refer to the current offset and are1842unnecessary. Note, when optimization is enabled, the iASL compiler will1843in fact remove the redundant Offset operators and will not emit any AML1844code for them.18451846OperationRegion (OPR1, SystemMemory, 0x100, 0x100)1847Field (OPR1)1848{1849Offset (0), // Never needed1850FLD1, 32,1851Offset (4), // Redundant, offset is already 4 (bytes)1852FLD2, 8,1853Offset (64), // OK use of Offset.1854FLD3, 16,1855}1856dsdt.asl 14: Offset (0),1857Remark 2158 - ^ Unnecessary/redundant use of Offset1858operator18591860dsdt.asl 16: Offset (4),1861Remark 2158 - ^ Unnecessary/redundant use of Offset1862operator18631864----------------------------------------186510 August 2018. Summary of changes for version 20180810:1866186718681) ACPICA kernel-resident subsystem:18691870Initial ACPI table loading: Attempt to continue loading ACPI tables1871regardless of malformed AML. Since migrating table initialization to the1872new module-level code support, the AML interpreter rejected tables upon1873any ACPI error encountered during table load. This is a problem because1874non-serious ACPI errors during table load do not necessarily mean that1875the entire definition block (DSDT or SSDT) is invalid. This change1876improves the table loading by ignoring some types of errors that can be1877generated by incorrect AML. This can range from object type errors, scope1878errors, and index errors.18791880Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs1881during suspend/resume. The status of ACPI events is no longer cleared1882when entering the ACPI S5 system state (power off) which caused some1883systems to power up immediately after turning off power in certain1884situations. This was a functional regression. It was fixed by clearing1885the status of all ACPI events again when entering S5 (for system-wide1886suspend or hibernation the clearing of the status of all events is not1887desirable, as it might cause the kernel to miss wakeup events sometimes).1888Rafael Wysocki.1889189018912) iASL Compiler/Disassembler and Tools:18921893AcpiExec: Enhanced the -fi option (Namespace initialization file). Field1894elements listed in the initialization file were previously initialized1895after the table load and before executing module-level code blocks.1896Recent changes in the module-level code support means that the table load1897becomes a large control method execution. If fields are used within1898module-level code and we are executing with the -fi option, the1899initialization values were used to initialize the namespace object(s)1900only after the table was finished loading. This change Provides an early1901initialization of objects specified in the initialization file so that1902field unit values are populated during the table load (not after the1903load).19041905AcpiExec: Fixed a small memory leak regression that could result in1906warnings during exit of the utility. These warnings were similar to1907these:19080002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]19090002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x000119101911----------------------------------------191229 June 2018. Summary of changes for version 20180629:1913191419151) iASL Compiler/Disassembler and Tools:19161917iASL: Fixed a regression related to the use of the ASL External1918statement. Error checking for the use of the External() statement has1919been relaxed. Previously, a restriction on the use of External meant that1920the referenced named object was required to be defined in a different1921table (an SSDT). Thus it would be an error to declare an object as an1922external and then define the same named object in the same table. For1923example:1924DefinitionBlock (...)1925{1926External (DEV1)1927Device (DEV1){...} // This was an error1928}1929However, this behavior has caused regressions in some existing ASL code,1930because there is code that depends on named objects and externals (with1931the same name) being declared in the same table. This change will allow1932the ASL code above to compile without errors or warnings.19331934iASL: Implemented ASL language extensions for four operators to make some1935of their arguments optional instead of required:19361) Field (RegionName, AccessType, LockRule, UpdateRule)19372) BankField (RegionName, BankName, BankValue,1938AccessType, LockRule, UpdateRule)19393) IndexField (IndexName, DataName,1940AccessType, LockRule, UpdateRule)1941For the Field operators above, the AccessType, LockRule, and UpdateRule1942are now optional arguments. The default values are:1943AccessType: AnyAcc1944LockRule: NoLock1945UpdateRule: Preserve19464) Mutex (MutexName, SyncLevel)1947For this operator, the SyncLevel argument is now optional. This argument1948is rarely used in any meaningful way by ASL code, and thus it makes sense1949to make it optional. The default value is:1950SyncLevel: 019511952iASL: Attempted use of the ASL Unload() operator now results in the1953following warning:1954"Unload is not supported by all operating systems"1955This is in fact very true, and the Unload operator may be completely1956deprecated in the near future.19571958AcpiExec: Fixed a regression for the -fi option (Namespace initialization1959file. Recent changes in the ACPICA module-level code support altered the1960table load/initialization sequence . This means that the table load has1961become a large method execution of the table itself. If Operation Region1962Fields are used within any module-level code and the -fi option was1963specified, the initialization values were populated only after the table1964had completely finished loading (and thus the module-level code had1965already been executed). This change moves the initialization of objects1966listed in the initialization file to before the table is executed as a1967method. Field unit values are now initialized before the table execution1968is performed.19691970----------------------------------------197131 May 2018. Summary of changes for version 20180531:1972197319741) ACPICA kernel-resident Subsystem:19751976Implemented additional support to help ensure that a DSDT or SSDT is1977fully loaded even if errors are incurred during the load. The majority of1978the problems that are seen is the failure of individual AML operators1979that occur during execution of any module-level code (MLC) existing in1980the table. This support adds a mechanism to abort the current ASL1981statement (AML opcode), emit an error message, and to simply move on to1982the next opcode -- instead of aborting the entire table load. This is1983different than the execution of a control method where the entire method1984is aborted upon any error. The goal is to perform a very "best effort" to1985load the ACPI tables. The most common MLC errors that have been seen in1986the field are direct references to unresolved ASL/AML symbols (referenced1987directly without the use of the CondRefOf operator to validate the1988symbol). This new ACPICA behavior is now compatible with other ACPI1989implementations.19901991Interpreter: The Unload AML operator is no longer supported for the1992reasons below. An AE_NOT_IMPLEMENTED exception is returned.19931) A correct implementation on at least some hosts may not be possible.19942) Other ACPI implementations do not correctly/fully support it.19953) It requires host device driver support which is not known to exist.1996(To properly support namespace unload out from underneath.)19974) This AML operator has never been seen in the field.19981999Parser: Added a debug option to dump AML parse sub-trees as they are2000being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is2001ACPI_DB_PARSE_TREES.20022003Debugger: Reduced the verbosity for errors incurred during table load and2004module-level code execution.20052006Completed an investigation into adding a namespace node "owner list"2007instead of the current "owner ID" associated with namespace nodes. This2008list would link together all nodes that are owned by an individual2009control method. The purpose would be to enhance control method execution2010by speeding up cleanup during method exit (all namespace nodes created by2011a method are deleted upon method termination.) Currently, the entire2012namespace must be searched for matching owner IDs if (and only if) the2013method creates named objects outside of the local scope. However, by far2014the most common case is that methods create objects locally, not outside2015the method scope. There is already an ACPICA optimization in place that2016only searches the entire namespace in the rare case of a method creating2017objects elsewhere in the namespace. Therefore, it is felt that the2018overhead of adding an additional pointer to each namespace node to2019implement the owner list makes this feature unnecessary.2020202120222) iASL Compiler/Disassembler and Tools:20232024iASL, Disassembler, and Template generator: Implemented support for2025Revision D of the IORT table. Adds a new subtable that is used to specify2026SMMUv3 PMCGs. rmurphy-arm.20272028Disassembler: Restored correct table header validation for the "special"2029ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI2030table header and must be special-cased. This was a regression that has2031been present for apparently a long time.20322033AcpiExec: Reduced verbosity of the local exception handler implemented2034within acpiexec. This handler is invoked by ACPICA upon any exceptions2035generated during control method execution. A new option was added: -vh2036restores the original verbosity level if desired.20372038AcpiExec: Changed the default base from decimal to hex for the -x option2039(set debug level). This simplifies the use of this option and matches the2040behavior of the corresponding iASL -x option.20412042AcpiExec: Restored a force-exit on multiple control-c (sigint)2043interrupts. This allows program termination even if other issues cause2044the control-c to fail.20452046ASL test suite (ASLTS): Added tests for the recently implemented package2047element resolution mechanism that allows forward references to named2048objects from individual package elements (this mechanism provides2049compatibility with other ACPI implementations.)205020512052----------------------------------------20538 May 2018. Summary of changes for version 20180508:2054205520561) ACPICA kernel-resident subsystem:20572058Completed the new (recently deployed) package resolution mechanism for2059the Load and LoadTable ASL/AML operators. This fixes a regression that2060was introduced in version 20180209 that could result in an2061AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table2062(SSDT) that contains package objects.2063206420652) iASL Compiler/Disassembler and Tools:20662067AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than20681 MB. This change allows for table offsets within the acpidump file to be2069up to 8 characters. These changes are backwards compatible with existing2070acpidump files.207120722073----------------------------------------207427 April 2018. Summary of changes for version 20180427:2075207620771) ACPICA kernel-resident subsystem:20782079Debugger: Added support for Package objects in the "Test Objects"2080command. This command walks the entire namespace and evaluates all named2081data objects (Integers, Strings, Buffers, and now Packages).20822083Improved error messages for the namespace root node. Originally, the root2084was referred to by the confusing string "\___". This has been replaced by2085"Namespace Root" for clarification.20862087Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin2088Ian King <[email protected]>.2089209020912) iASL Compiler/Disassembler and Tools:20922093iASL: Implemented support to detect and flag illegal forward references.2094For compatibility with other ACPI implementations, these references are2095now illegal at the root level of the DSDT or SSDTs. Forward references2096have always been illegal within control methods. This change should not2097affect existing ASL/AML code because of the fact that these references2098have always been illegal in the other ACPI implementation.20992100iASL: Added error messages for the case where a table OEM ID and OEM2101TABLE ID strings are longer than the ACPI-defined length. Previously,2102these strings were simply silently truncated.21032104iASL: Enhanced the -tc option (which creates an AML hex file in C,2105suitable for import into a firmware project):21061) Create a unique name for the table, to simplify use of multiple2107SSDTs.21082) Add a protection #ifdef in the file, similar to a .h header file.2109With assistance from Sami Mujawar, [email protected] and Evan Lloyd,2110[email protected]21112112AcpiExec: Added a new option, -df, to disable the local fault handler.2113This is useful during debugging, where it may be desired to drop into a2114debugger on a fault.21152116----------------------------------------211713 March 2018. Summary of changes for version 20180313:2118211921201) ACPICA kernel-resident subsystem:21212122Implemented various improvements to the GPE support:212321241) Dispatch all active GPEs at initialization time so that no GPEs are2125lost.21262) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled2127before devices are enumerated.21283) Don't unconditionally clear ACPI IRQs during suspend/resume, so that2129IRQs are not lost.21304) Add parallel GPE handling to eliminate the possibility of dispatching2131the same GPE twice.21325) Dispatch any pending GPEs after enabling for the first time.21332134AcpiGetObjectInfo - removed support for the _STA method. This was causing2135problems on some platforms.21362137Added a new _OSI string, "Windows 2017.2".21382139Cleaned up and simplified the module-level code support. These changes2140are in preparation for the eventual removal of the legacy MLC support2141(deferred execution), replaced by the new MLC architecture which executes2142the MLC as a table is loaded (DSDT/SSDTs).21432144Changed a compile-time option to a runtime option. Changes the option to2145ignore ACPI table load-time package resolution errors into a runtime2146option. Used only for platforms that generate many AE_NOT_FOUND errors2147during boot. AcpiGbl_IgnorePackageResolutionErrors.21482149Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some2150ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid2151compilation errors from unused variables (seen with some compilers).2152215321542) iASL Compiler/Disassembler and Tools:21552156ASLTS: parallelized execution in order to achieve an (approximately) 2X2157performance increase.21582159ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves2160error reporting.21612162----------------------------------------216309 February 2018. Summary of changes for version 20180209:2164216521661) ACPICA kernel-resident subsystem:21672168Completed the final integration of the recent changes to Package Object2169handling and the module-level AML code support. This allows forward2170references from individual package elements when the package object is2171declared from within module-level code blocks. Provides compatibility2172with other ACPI implementations.21732174The new architecture for the AML module-level code has been completed and2175is now the default for the ACPICA code. This new architecture executes2176the module-level code in-line as the ACPI table is loaded/parsed instead2177of the previous architecture which deferred this code until after the2178table was fully loaded. This solves some ASL code ordering issues and2179provides compatibility with other ACPI implementations. At this time,2180there is an option to fallback to the earlier architecture, but this2181support is deprecated and is planned to be completely removed later this2182year.21832184Added a compile-time option to ignore AE_NOT_FOUND exceptions during2185resolution of named reference elements within Package objects. Although2186this is potentially a serious problem, it can generate a lot of2187noise/errors on platforms whose firmware carries around a bunch of unused2188Package objects. To disable these errors, define2189ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All2190errors are always reported for ACPICA applications such as AcpiExec.21912192Fixed a regression related to the explicit type-conversion AML operators2193(ToXXXX). The regression was introduced early in 2017 but was not seen2194until recently because these operators are not fully supported by other2195ACPI implementations and are thus rarely used by firmware developers. The2196operators are defined by the ACPI specification to not implement the2197"implicit result object conversion". The regression incorrectly2198introduced this object conversion for the following explicit conversion2199operators:2200ToInteger2201ToString2202ToBuffer2203ToDecimalString2204ToHexString2205ToBCD2206FromBCD2207220822092) iASL Compiler/Disassembler and Tools:22102211iASL: Fixed a problem with the compiler constant folding feature as2212related to the ToXXXX explicit conversion operators. These operators do2213not support the "implicit result object conversion" by definition. Thus,2214ASL expressions that use these operators cannot be folded to a simple2215Store operator because Store implements the implicit conversion. This2216change uses the CopyObject operator for the ToXXXX operator folding2217instead. CopyObject is defined to not implement implicit result2218conversions and is thus appropriate for folding the ToXXXX operators.22192220iASL: Changed the severity of an error condition to a simple warning for2221the case where a symbol is declared both locally and as an external2222symbol. This accommodates existing ASL code.22232224AcpiExec: The -ep option to enable the new architecture for module-level2225code has been removed. It is replaced by the -dp option which instead has2226the opposite effect: it disables the new architecture (the default) and2227enables the legacy architecture. When the legacy code is removed in the2228future, the -dp option will be removed also.22292230----------------------------------------223105 January 2018. Summary of changes for version 20180105:2232223322341) ACPICA kernel-resident subsystem:22352236Updated all copyrights to 2018. This affects all source code modules.22372238Fixed a possible build error caused by an unresolved reference to the2239AcpiUtSafeStrncpy function.22402241Removed NULL pointer arithmetic in the various pointer manipulation2242macros. All "(void *) NULL" constructs are converted to "(void *) 0".2243This eliminates warnings/errors in newer C compilers. Jung-uk Kim.22442245Added support for A32 ABI compilation, which uses the ILP32 model. Anuj2246Mittal.2247224822492) iASL Compiler/Disassembler and Tools:22502251ASLTS: Updated all copyrights to 2018.22522253Tools: Updated all signon copyrights to 2018.22542255AcpiXtract: Fixed a regression related to ACPI table signatures where the2256signature was truncated to 3 characters (instead of 4).22572258AcpiExec: Restore the original terminal mode after the use of the -v and2259-vd options.22602261ASLTS: Deployed the iASL __METHOD__ macro across the test suite.22622263----------------------------------------226414 December 2017. Summary of changes for version 20171214:2265226622671) ACPICA kernel-resident subsystem:22682269Fixed a regression in the external (public) AcpiEvaluateObjectTyped2270interface where the optional "pathname" argument had inadvertently become2271a required argument returning an error if omitted (NULL pointer2272argument).22732274Fixed two possible memory leaks related to the recently developed "late2275resolution" of reference objects within ASL Package Object definitions.22762277Added two recently defined _OSI strings: "Windows 2016" and "Windows22782017". Mario Limonciello.22792280Implemented and deployed a safer version of the C library function2281strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the2282creation of unterminated strings as a possible result of a standard2283strncpy.22842285Cleaned up and restructured the global variable file (acglobal.h). There2286are many changes, but no functional changes.2287228822892) iASL Compiler/Disassembler and Tools:22902291iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the2292optional OemData field at the end of the table was incorrectly required2293for proper compilation. It is now correctly an optional field.22942295ASLTS: The entire suite was converted from standard ASL to the ASL+2296language, using the ASL-to-ASL+ converter which is integrated into the2297iASL compiler. A binary compare of all output files has verified the2298correctness of the conversion.22992300iASL: Fixed the source code build for platforms where "char" is unsigned.2301This affected the iASL lexer only. Jung-uk Kim.23022303----------------------------------------230410 November 2017. Summary of changes for version 20171110:2305230623071) ACPICA kernel-resident subsystem:23082309This release implements full support for ACPI 6.2A:2310NFIT - Added a new subtable, "Platform Capabilities Structure"2311No other changes to ACPICA were required, since ACPI 6.2A is primarily an2312errata release of the specification.23132314Other ACPI table changes:2315IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo2316PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy2317Linton23182319Utilities: Modified the string/integer conversion functions to use2320internal 64-bit divide support instead of a native divide. On 32-bit2321platforms, a 64-bit divide typically requires a library function which2322may not be present in the build (kernel or otherwise).23232324Implemented a targeted error message for timeouts returned from the2325Embedded Controller device driver. This is seen frequently enough to2326special-case an AE_TIME returned from an EC operation region access:2327"Timeout from EC hardware or EC device driver"23282329Changed the "ACPI Exception" message prefix to "ACPI Error" so that all2330runtime error messages have the identical prefix.2331233223332) iASL Compiler/Disassembler and Tools:23342335AcpiXtract: Fixed a problem with table header detection within the2336acpidump file. Processing a table could be ended early if a 0x40 (@)2337appears in the original binary table, resulting in the @ symbol appearing2338in the decoded ASCII field at the end of the acpidump text line. The2339symbol caused acpixtract to incorrectly think it had reached the end of2340the current table and the beginning of a new table.23412342AcpiXtract: Added an option (-f) to ignore some errors during table2343extraction. This initial implementation ignores non-ASCII and non-2344printable characters found in the acpidump text file.23452346TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics2347for ASLTS. This feature is used to track memory allocations from2348different memory caches within the ACPICA code. At the end of an ASLTS2349run, these memory statistics are recorded and stored in a log file.23502351Debugger (user-space version): Implemented a simple "Background" command.2352Creates a new thread to execute a control method in the background, while2353control returns to the debugger prompt to allow additional commands.2354Syntax: Background <Namepath> [Arguments]23552356----------------------------------------235729 September 2017. Summary of changes for version 20170929:2358235923601) ACPICA kernel-resident subsystem:23612362Redesigned and implemented an improved ASL While() loop timeout2363mechanism. This mechanism is used to prevent infinite loops in the kernel2364AML interpreter caused by either non-responsive hardware or incorrect AML2365code. The new implementation uses AcpiOsGetTimer instead of a simple2366maximum loop count, and is thus more accurate and constant across2367different machines. The default timeout is currently 30 seconds, but this2368may be adjusted later.23692370Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to2371better reflect the new implementation of the loop timeout mechanism.23722373Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support2374and to fix an off-by-one error. Jung-uk Kim.23752376Fixed an EFI build problem by updating the makefiles to for a new file2377that was added, utstrsuppt.c2378237923802) iASL Compiler/Disassembler and Tools:23812382Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This2383includes support in the table disassembler, compiler, and template2384generator.23852386iASL: Added an exception for an illegal type of recursive method2387invocation. If a method creates named objects, the first recursive call2388will fail at runtime. This change adds an error detection at compile time2389to catch the problem up front. Note: Marking such a method as2390"serialized" will not help with this problem, because the same thread can2391acquire the method mutex more than once. Example compiler and runtime2392output:23932394Method (MTH1)2395{2396Name (INT1, 1)2397MTH1 ()2398}23992400dsdt.asl 22: MTH1 ()2401Error 6152 - ^ Illegal recursive call to method2402that creates named objects (MTH1)24032404Previous runtime exception:2405ACPI Error: [INT1] Namespace lookup failure,2406AE_ALREADY_EXISTS (20170831/dswload2-465)24072408iASL: Updated support for External() opcodes to improve namespace2409management and error detection. These changes are related to issues seen2410with multiple-segment namespace pathnames within External declarations,2411such as below:24122413External(\_SB.PCI0.GFX0, DeviceObj)2414External(\_SB.PCI0.GFX0.ALSI)24152416iASL: Implemented support for multi-line error/warning messages. This2417enables more detailed and helpful error messages as below, from the2418initial deployment for the duplicate names error:24192420DSDT.iiii 1692: Device(PEG2) {2421Error 6074 - ^ Name already exists in scope2422(PEG2)24232424Original name creation/declaration below:2425DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj)24262427AcpiXtract: Added additional flexibility to support differing input hex2428dump formats. Specifically, hex dumps that contain partial disassembly2429and/or comments within the ACPI table data definition. There exist some2430dump utilities seen in the field that create this type of hex dump (such2431as Simics). For example:24322433DSDT @ 0xdfffd0c0 (10999 bytes)2434Signature DSDT2435Length 109992436Revision 12437Checksum 0xf3 (Ok)2438OEM_ID BXPC2439OEM_table_id BXDSDT2440OEM_revision 12441Creator_id 12805934812442Creator_revision 53739934524430000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 002444...24452af0: 5f 4c 30 46 00 a4 0124462447Test suite: Miscellaneous changes/fixes:2448More cleanup and simplification of makefiles2449Continue compilation of test cases after a compile failure2450Do not perform binary compare unless both files actually exist24512452iASL: Performed some code/module restructuring. Moved all memory2453allocation functions to new modules. Two new files, aslallocate.c and2454aslcache.c24552456----------------------------------------245731 August 2017. Summary of changes for version 20170831:2458245924601) ACPICA kernel-resident subsystem:24612462Implemented internal support for full 64-bit addresses that appear in all2463Generic Address Structure (GAS) structures. Previously, only the lower 322464bits were used. Affects the use of GAS structures in the FADT and other2465tables, as well as the GAS structures passed to the AcpiRead and2466AcpiWrite public external interfaces that are used by drivers. Lv Zheng.24672468Added header support for the PDTT ACPI table (Processor Debug Trigger2469Table). Full support in the iASL Data Table Compiler and disassembler is2470forthcoming.2471247224732) iASL Compiler/Disassembler and Tools:24742475iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor2476Properties Topology Table) where a flag bit was specified in the wrong2477bit position ("Line Size Valid", bit 6).24782479iASL: Implemented support for Octal integer constants as defined by the2480ASL language grammar, per the ACPI specification. Any integer constant2481that starts with a zero is an octal constant. For example,2482Store (037777, Local0) /* Octal constant */2483Store (0x3FFF, Local0) /* Hex equivalent */2484Store (16383, Local0) /* Decimal equivalent */24852486iASL: Improved overflow detection for 64-bit string conversions during2487compilation of integer constants. "Overflow" in this case means a string2488that represents an integer that is too large to fit into a 64-bit value.2489Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to2490the low-order 32 bits with a warning, as previously implemented. Several2491new exceptions are defined that indicate a 64-bit overflow, as well as2492the base (radix) that was used during the attempted conversion. Examples:2493Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW2494Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW2495Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW24962497iASL: Added a warning for the case where a ResourceTemplate is declared2498with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In2499this case, the resulting template is created with a single END_TAG2500descriptor, which is essentially useless.25012502iASL: Expanded the -vw option (ignore specific warnings/remarks) to2503include compilation error codes as well.25042505----------------------------------------250628 July 2017. Summary of changes for version 20170728:2507250825091) ACPICA kernel-resident subsystem:25102511Fixed a regression seen with small resource descriptors that could cause2512an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.25132514AML interpreter: Implemented a new feature that allows forward references2515from individual named references within package objects that are2516contained within blocks of "module-level code". This provides2517compatibility with other ACPI implementations and supports existing2518firmware that depends on this feature. Example:25192520Name (ABCD, 1)2521If (ABCD) /* An If() at module-level */2522{2523Name (PKG1, Package()2524{2525INT1 /* Forward reference to object INT12526*/2527})2528Name (INT1, 0x1234)2529}25302531AML Interpreter: Fixed a problem with the Alias() operator where aliases2532to some ASL objects were not handled properly. Objects affected are:2533Mutex, Event, and OperationRegion.25342535AML Debugger: Enhanced to properly handle AML Alias objects. These2536objects have one level of indirection which was not fully supported by2537the debugger.25382539Table Manager: Added support to detect and ignore duplicate SSDTs within2540the XSDT/RSDT. This error in the XSDT has been seen in the field.25412542EFI and EDK2 support:2543Enabled /WX flag for MSVC builds2544Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer2545Added local support for 64-bit multiply and shift operations2546Added support to compile acpidump.efi on Windows2547Added OSL function stubs for interfaces not used under EFI25482549Added additional support for the _DMA predefined name. _DMA returns a2550buffer containing a resource template. This change add support within the2551resource manager (AcpiWalkResourceBuffer) to walk and parse this list of2552resource descriptors. Lorenzo Pieralisi <[email protected]>2553255425552) iASL Compiler/Disassembler and Tools:25562557iASL: Fixed a problem where the internal input line buffer(s) could2558overflow if there are very long lines in the input ASL source code file.2559Implemented buffer management that automatically increases the size of2560the buffers as necessary.25612562iASL: Added an option (-vx) to "expect" particular remarks, warnings and2563errors. If the specified exception is not raised during compilation, the2564compiler emits an error. This is intended to support the ASL test suite,2565but may be useful in other contexts.25662567iASL: Implemented a new predefined macro, __METHOD__, which returns a2568string containing the name of the current control method that is being2569compiled.25702571iASL: Implemented debugger and table compiler support for the SDEI ACPI2572table (Software Delegated Exception Interface). James Morse2573<[email protected]>25742575Unix/Linux makefiles: Added an option to disable compile optimizations.2576The disable occurs when the NOOPT flag is set to TRUE.2577[email protected]25782579Acpidump: Added support for multiple DSDT and FACS tables. This can occur2580when there are different tables for 32-bit versus 64-bit.25812582Enhanced error reporting for the ASL test suite (ASLTS) by removing2583unnecessary/verbose text, and emit the actual line number where an error2584has occurred. These changes are intended to improve the usefulness of the2585test suite.25862587----------------------------------------258829 June 2017. Summary of changes for version 20170629:2589259025911) ACPICA kernel-resident subsystem:25922593Tables: Implemented a deferred ACPI table verification. This is useful2594for operating systems where the tables cannot be verified in the early2595initialization stage due to early memory mapping limitations on some2596architectures. Lv Zheng.25972598Tables: Removed the signature validation for dynamically loaded tables.2599Provides compatibility with other ACPI implementations. Previously, only2600SSDT tables were allowed, as per the ACPI specification. Now, any table2601signature can be used via the Load() operator. Lv Zheng.26022603Tables: Fixed several mutex issues that could cause errors during table2604acquisition. Lv Zheng.26052606Tables: Fixed a problem where an ACPI warning could be generated if a2607null pointer was passed to the AcpiPutTable interface. Lv Zheng.26082609Tables: Added a mechanism to handle imbalances for the AcpiGetTable and2610AcpiPutTable interfaces. This applies to the "late stage" table loading2611when the use of AcpiPutTable is no longer required (since the system2612memory manager is fully running and available). Lv Zheng.26132614Fixed/Reverted a regression during processing of resource descriptors2615that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG2616exception in this case.26172618Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the2619I/O Remapping specification. Robin Murphy <[email protected]>26202621Interpreter: Fixed a possible fault if an Alias operator with an invalid2622or duplicate target is encountered during Alias creation in2623AcpiExCreateAlias. Alex James <[email protected]>26242625Added an option to use designated initializers for function pointers.2626Kees Cook <[email protected]>2627262826292) iASL Compiler/Disassembler and Tools:26302631iASL: Allow compilation of External declarations with target pathnames2632that refer to existing named objects within the table. Erik Schmauss.26332634iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a2635FieldUnit name also is declared via External in the same table. Erik2636Schmauss.26372638iASL: Allow existing scope names within pathnames used in External2639statements. For example:2640External (ABCD.EFGH) // ABCD exists, but EFGH is truly external2641Device (ABCD)26422643iASL: IORT ACPI table: Implemented changes required to decode the new2644Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table2645compiler. Ganapatrao Kulkarni <[email protected]>26462647Disassembler: Don't abort disassembly on errors from External()2648statements. Erik Schmauss.26492650Disassembler: fixed a possible fault when one of the Create*Field2651operators references a Resource Template. ACPICA Bugzilla 1396.26522653iASL: In the source code, resolved some naming inconsistences across the2654parsing support. Fixes confusion between "Parse Op" and "Parse Node".2655Adds a new file, aslparseop.c26562657----------------------------------------265831 May 2017. Summary of changes for version 20170531:2659266026610) ACPI 6.2 support:26622663The ACPI specification version 6.2 has been released and is available at2664http://uefi.org/specifications26652666This version of ACPICA fully supports the ACPI 6.2 specification. Changes2667are summarized below.26682669New ACPI tables (Table Compiler/Disassembler/Templates):2670HMAT (Heterogeneous Memory Attributes Table)2671WSMT (Windows SMM Security Mitigation Table)2672PPTT (Processor Properties Topology Table)26732674New subtables for existing ACPI tables:2675HEST (New subtable, Arch-deferred machine check)2676SRAT (New subtable, Arch-specific affinity structure)2677PCCT (New subtables, Extended PCC subspaces (types 3 and 4))26782679Simple updates for existing ACPI tables:2680BGRT (two new flag bits)2681HEST (New bit defined for several subtables, GHES_ASSIST)26822683New Resource Descriptors and Resource macros (Compiler/Disassembler):2684PinConfig()2685PinFunction()2686PinGroup()2687PinGroupConfig()2688PinGroupFunction()2689New type for hardware error notification (section 18.3.2.9)26902691New predefined names/methods (Compiler/Interpreter):2692_HMA (Heterogeneous Memory Attributes)2693_LSI (Label Storage Information)2694_LSR (Label Storage Read)2695_LSW (Label Storage Write)26962697ASL grammar/macro changes (Compiler):2698For() ASL macro, implemented with the AML while operator2699Extensions to Concatenate operator2700Support for multiple definition blocks in same ASL file2701Clarification for Buffer operator2702Allow executable AML code underneath all scopes (Devices, etc.)2703Clarification/change for the _OSI return value2704ASL grammar update for reference operators2705Allow a zero-length string for AML filename in DefinitionBlock27062707Miscellaneous:2708New device object notification value2709Remove a notify value (0x0C) for graceful shutdown2710New UUIDs for processor/cache properties and2711physical package property2712New _HID, ACPI0014 (Wireless Power Calibration Device)2713271427151) ACPICA kernel-resident subsystem:27162717Added support to disable ACPI events on hardware-reduced platforms.2718Eliminates error messages of the form "Could not enable fixed event". Lv2719Zheng27202721Fixed a problem using Device/Thermal objects with the ObjectType and2722DerefOf ASL operators. This support had not been fully/properly2723implemented.27242725Fixed a problem where if a Buffer object containing a resource template2726was longer than the actual resource template, an error was generated --2727even though the AML is legal. This case has been seen in the field.27282729Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.2730The values for DUAL_PIC and MULTIPLE_APIC were reversed.27312732Added header file changes for the TPM2 ACPI table. Update to new version2733of the TCG specification. Adds a new TPM2 subtable for ARM SMC.27342735Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.2736These interfaces are intended to be used only in conjunction with the2737predefined _DLM method (Device Lock Method). "This object appears in a2738device scope when AML access to the device must be synchronized with the2739OS environment".27402741Example Code and Data Size: These are the sizes for the OS-independent2742acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The2743debug version of the code includes the debug output trace mechanism and2744has a much larger code and data size.27452746Current Release:2747Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total2748Debug Version: 204.0K Code, 84.3K Data, 288.3K Total2749Previous Release:2750Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total2751Debug Version: 207.5K Code, 82.7K Data, 290.2K Total2752275327542) iASL Compiler/Disassembler and Tools:27552756iASL: Fixed a problem where an External() declaration could not refer to2757a Field Unit. Erik Schmauss.27582759Disassembler: Improved support for the Switch/Case operators. This2760feature will disassemble AML code back to the original Switch operators2761when possible, instead of an If..Else sequence. David Box27622763iASL and disassembler: Improved the handling of multiple extraneous2764parentheses for both ASL input and disassembled ASL output.27652766Improved the behavior of the iASL compiler and disassembler to detect2767improper use of external declarations27682769Disassembler: Now aborts immediately upon detection of an unknown AML2770opcode. The AML parser has no real way to recover from this, and can2771result in the creation of an ill-formed parse tree that causes errors2772later during the disassembly.27732774All tools: Fixed a problem where the Unix application OSL did not handle2775control-c correctly. For example, a control-c could incorrectly wake the2776debugger.27772778AcpiExec: Improved the Control-C handling and added a handler for2779segmentation faults (SIGSEGV). Supports both Windows and Unix-like2780environments.27812782Reduced the verbosity of the generic unix makefiles. Previously, each2783compilation displayed the full set of compiler options. This has been2784eliminated as the options are easily inspected within the makefiles. Each2785compilation now results in a single line of output.27862787----------------------------------------278803 March 2017. Summary of changes for version 20170303:2789279027910) ACPICA licensing:27922793The licensing information at the start of each source code module has2794been updated. In addition to the Intel license, the dual GPLv2/BSD2795license has been added for completeness. Now, a single version of the2796source code should be suitable for all ACPICA customers. This is the2797major change for this release since it affects all source code modules.2798279928001) ACPICA kernel-resident subsystem:28012802Fixed two issues with the common asltypes.h header that could cause2803problems in some environments: (Kim Jung-uk)2804Removed typedef for YY_BUFFER_STATE ?2805Fixes an error with earlier versions of Flex.2806Removed use of FILE typedef (which is only defined in stdio.h)2807280828092) iASL Compiler/Disassembler and Tools:28102811Disassembler: fixed a regression introduced in 20170224. A fix for a2812memory leak related to resource descriptor tags (names) could fault when2813the disassembler was generated with 64-bit compilers.28142815The ASLTS test suite has been updated to implement a new testing2816architecture. During generation of the suite from ASL source, both the2817ASL and ASL+ compilers are now validated, as well as the disassembler2818itself (Erik Schmauss). The architecture executes as follows:28192820For every ASL source module:2821Compile (legacy ASL compilation)2822Disassemble the resulting AML to ASL+ source code2823Compile the new ASL+ module2824Perform a binary compare on the legacy AML and the new ASL+ AML2825The ASLTS suite then executes normally using the AML binaries.28262827----------------------------------------282824 February 2017. Summary of changes for version 20170224:2829283028311) ACPICA kernel-resident subsystem:28322833Interpreter: Fixed two issues with the control method return value auto-2834repair feature, where an attempt to double-delete an internal object2835could result in an ACPICA warning (for _CID repair and others). No fault2836occurs, however, because the attempted deletion (actually a release to an2837internal cache) is detected and ignored via object poisoning.28382839Debugger: Fixed an AML interpreter mutex issue during the single stepping2840of control methods. If certain debugger commands are executed during2841stepping, a mutex acquire/release error could occur. Lv Zheng.28422843Fixed some issues generating ACPICA with the Intel C compiler by2844restoring the original behavior and compiler-specific include file in2845acenv.h. Lv Zheng.28462847Example Code and Data Size: These are the sizes for the OS-independent2848acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The2849debug version of the code includes the debug output trace mechanism and2850has a much larger code and data size.28512852Current Release:2853Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total2854Debug Version: 207.5K Code, 82.7K Data, 290.2K Total2855Previous Release:2856Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total2857Debug Version: 201.5K Code, 82.2K Data, 283.7K Total2858285928602) iASL Compiler/Disassembler and Tools:28612862iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion2863tool has been designed, implemented, and included in this release. The2864key feature of this utility is that the original comments within the2865input ASL file are preserved during the conversion process, and included2866within the converted ASL+ file -- thus creating a transparent conversion2867of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.28682869Usage: iasl -ca <ASL-filename> // Output is a .dsl file with2870converted code28712872iASL/Disassembler: Improved the detection and correct disassembly of2873Switch/Case operators. This feature detects sequences of if/elseif/else2874operators that originated from ASL Switch/Case/Default operators and2875emits the original operators. David Box.28762877iASL: Improved the IORT ACPI table support in the following areas. Lv2878Zheng:2879Clear MappingOffset if the MappingCount is zero.2880Fix the disassembly of the SMMU GSU interrupt offset.2881Update the template file for the IORT table.28822883Disassembler: Enhanced the detection and disassembly of resource2884template/descriptor within a Buffer object. An EndTag descriptor is now2885required to have a zero second byte, since all known ASL compilers emit2886this. This helps eliminate incorrect decisions when a buffer is2887disassembled (false positives on resource templates).28882889----------------------------------------289019 January 2017. Summary of changes for version 20170119:2891289228931) General ACPICA software:28942895Entire source code base: Added the 2017 copyright to all source code2896legal/licensing module headers and utility/tool signons. This includes2897the standard Linux dual-license header. This affects virtually every file2898in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and2899the ACPICA test suite.2900290129022) iASL Compiler/Disassembler and Tools:29032904iASL: Removed/fixed an inadvertent remark when a method argument2905containing a reference is used as a target operand within the method (and2906never used as a simple argument), as in the example below. Jeffrey Hugo.29072908dsdt.asl 1507: Store(0x1, Arg0)2909Remark 2146 - ^ Method Argument is never used (Arg0)29102911All tools: Removed the bit width of the compiler that generated the tool2912from the common signon for all user space tools. This proved to be2913confusing and unnecessary. This includes similar removal of HARDWARE_NAME2914from the generic makefiles (Thomas Petazzoni). Example below.29152916Old:2917ASL+ Optimizing Compiler version 20170119-322918ASL+ Optimizing Compiler version 20170119-6429192920New:2921ASL+ Optimizing Compiler version 2017011929222923----------------------------------------292422 December 2016. Summary of changes for version 20161222:2925292629271) ACPICA kernel-resident subsystem:29282929AML Debugger: Implemented a new mechanism to simplify and enhance2930debugger integration into all environments, including kernel debuggers2931and user-space utilities, as well as remote debug services. This2932mechanism essentially consists of new OSL interfaces to support debugger2933initialization/termination, as well as wait/notify interfaces to perform2934the debugger handshake with the host. Lv Zheng.29352936New OSL interfaces:2937AcpiOsInitializeDebugger (void)2938AcpiOsTerminateDebugger (void)2939AcpiOsWaitCommandReady (void)2940AcpiOsNotifyCommandComplete (void)29412942New OS services layer:2943osgendbg.c -- Example implementation, and used for AcpiExec29442945Update for Generic Address Space (GAS) support: Although the AccessWidth2946and/or BitOffset fields of the GAS are not often used, this change now2947fully supports these fields. This affects the internal support for FADT2948registers, registers in other ACPI data tables, and the AcpiRead and2949AcpiWrite public interfaces. Lv Zheng.29502951Sleep support: In order to simplify integration of ACPI sleep for the2952various host operating systems, a new OSL interface has been introduced.2953AcpiOsEnterSleep allows the host to perform any required operations2954before the final write to the sleep control register(s) is performed by2955ACPICA. Lv Zheng.29562957New OSL interface:2958AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)29592960Called from these internal interfaces:2961AcpiHwLegacySleep2962AcpiHwExtendedSleep29632964EFI support: Added a very small EFI/ACPICA example application. Provides2965a simple demo for EFI integration, as well as assisting with resolution2966of issues related to customer ACPICA/EFI integration. Lv Zheng. See:29672968source/tools/efihello/efihello.c29692970Local C library: Implemented several new functions to enhance ACPICA2971portability, for environments where these clib functions are not2972available (such as EFI). Lv Zheng:2973putchar2974getchar2975strpbrk2976strtok2977memmove29782979Fixed a regression where occasionally a valid resource descriptor was2980incorrectly detected as invalid at runtime, and a2981AE_AML_NO_RESOURCE_END_TAG was returned.29822983Fixed a problem with the recently implemented support that enables2984control method invocations as Target operands to many ASL operators.2985Warnings of this form: "Needed type [Reference], found [Processor]" were2986seen at runtime for some method invocations.29872988Example Code and Data Size: These are the sizes for the OS-independent2989acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The2990debug version of the code includes the debug output trace mechanism and2991has a much larger code and data size.29922993Current Release:2994Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total2995Debug Version: 201.7K Code, 82.7K Data, 284.4K Total2996Previous Release:2997Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total2998Debug Version: 201.3K Code, 82.7K Data, 284.0K Total2999300030012) iASL Compiler/Disassembler and Tools:30023003Disassembler: Enhanced output by adding the capability to detect and3004disassemble ASL Switch/Case statements back to the original ASL source3005code instead of if/else blocks. David Box.30063007AcpiHelp: Split a large file into separate files based upon3008functionality/purpose. New files are:3009ahaml.c3010ahasl.c30113012----------------------------------------301317 November 2016. Summary of changes for version 20161117:3014301530161) ACPICA kernel-resident subsystem:30173018Table Manager: Fixed a regression introduced in 20160729, "FADT support3019cleanup". This was an attempt to remove all references in the source to3020the FADT version 2, which never was a legal version number. It was3021skipped because it was an early version of 64-bit support that was3022eventually abandoned for the current 64-bit support.30233024Interpreter: Fixed a problem where runtime implicit conversion was3025incorrectly disabled for the ASL operators below. This brings the3026behavior into compliance with the ACPI specification:3027FromBCD3028ToBCD3029ToDecimalString3030ToHexString3031ToInteger3032ToBuffer30333034Table Manager: Added a new public interface, AcpiPutTable, used to3035release and free an ACPI table returned by AcpiGetTable and related3036interfaces. Lv Zheng.30373038Example Code and Data Size: These are the sizes for the OS-independent3039acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3040debug version of the code includes the debug output trace mechanism and3041has a much larger code and data size.30423043Current Release:3044Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total3045Debug Version: 201.3K Code, 82.7K Data, 284.0K Total3046Previous Release:3047Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total3048Debug Version: 200.7K Code, 82.1K Data, 282.8K Total3049305030512) iASL Compiler/Disassembler and Tools:30523053Disassembler: Fixed a regression for disassembly of Resource Template.3054Detection of templates in the AML stream missed some types of templates.30553056iASL: Fixed a problem where an Access Size error was returned for the PCC3057address space when the AccessSize of the GAS register is greater than a3058DWORD. Hoan Tran.30593060iASL: Implemented several grammar changes for the operators below. These3061changes are slated for the next version of the ACPI specification:3062RefOf - Disallow method invocation as an operand3063CondRefOf - Disallow method invocation as an operand3064DerefOf - Disallow operands that use the result from operators3065that3066do not return a reference (Changed TermArg to3067SuperName).30683069iASL: Control method invocations are now allowed for Target operands, as3070per the ACPI specification. Removed error for using a control method3071invocation as a Target operand.30723073Disassembler: Improved detection of Resource Templates, Unicode, and3074Strings within Buffer objects. These subtypes do not contain a specific3075opcode to indicate the originating ASL code, and they must be detected by3076other means within the disassembler.30773078iASL: Implemented an optimization improvement for 32-bit ACPI tables3079(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode3080only after 64-bit to 32-bit truncation. A truncation warning message is3081still emitted, however.30823083AcpiXtract: Implemented handling for both types of line terminators (LF3084or CR/LF) so that it can accept AcpiDump output files from any system.3085Peter Wu.30863087AcpiBin: Added two new options for comparing AML files:3088-a: compare and display ALL mismatches3089-o: start compare at this offset into the second file30903091----------------------------------------309230 September 2016. Summary of changes for version 20160930:3093309430951) ACPICA kernel-resident subsystem:30963097Fixed a regression in the internal AcpiTbFindTable function where a non3098AE_OK exception could inadvertently be returned even if the function did3099not fail. This problem affects the following operators:3100DataTableRegion3101LoadTable31023103Fixed a regression in the LoadTable operator where a load to any3104namespace location other than the root no longer worked properly.31053106Increased the maximum loop count value that will result in the3107AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to3108prevent infinite loops within the AML interpreter and thus the host OS3109kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to31101,048,575).31113112Moved the AcpiGbl_MaxLoopIterations configuration variable to the public3113acpixf.h file. This allows hosts to easily configure the maximum loop3114count at runtime.31153116Removed an illegal character in the strtoul64.c file. This character3117caused errors with some C compilers.31183119Example Code and Data Size: These are the sizes for the OS-independent3120acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3121debug version of the code includes the debug output trace mechanism and3122has a much larger code and data size.31233124Current Release:3125Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total3126Debug Version: 200.7K Code, 82.1K Data, 282.8K Total3127Previous Release:3128Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total3129Debug Version: 200.3K Code, 82.1K Data, 282.4K Total3130313131322) iASL Compiler/Disassembler and Tools:31333134Disassembler: Fixed a problem with the conversion of Else{If{ blocks into3135the simpler ASL ElseIf keyword. During the conversion, a trailing If3136block could be lost and missing from the disassembled output.31373138iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,3139the missing rule caused a parse error when using the Index operator as an3140operand to ObjectType. This construct now compiles properly. Example:3141ObjectType(PKG1[4]).31423143iASL: Correctly handle unresolved symbols in the hardware map file (-lm3144option). Previously, unresolved symbols could cause a protection fault.3145Such symbols are now marked as unresolved in the map file.31463147iASL: Implemented support to allow control method invocations as an3148operand to the ASL DeRefOf operator. Example:3149DeRefOf(MTH1(Local0))31503151Disassembler: Improved support for the ToPLD ASL macro. Detection of a3152possible _PLD buffer now includes examination of both the normal buffer3153length (16 or 20) as well as the surrounding AML package length.31543155Disassembler: Fixed a problem with the decoding of complex expressions3156within the Divide operator for ASL+. For the case where both the quotient3157and remainder targets are specified, the entire statement cannot be3158disassembled. Previously, the output incorrectly contained a mix of ASL-3159and ASL+ operators. This mixed statement causes a syntax error when3160compiled. Example:3161Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly3162disassembled to:3163Divide (INT1 + 6, 128, RSLT, QUOT)31643165iASL/Tools: Added support to process AML and non-AML ACPI tables3166consistently. For the disassembler and AcpiExec, allow all types of ACPI3167tables (AML and data tables). For the iASL -e option, allow only AML3168tables (DSDT/SSDT).31693170----------------------------------------317131 August 2016. Summary of changes for version 20160831:3172317331741) ACPICA kernel-resident subsystem:31753176Improve support for the so-called "module-level code", which is defined3177to be math, logical and control AML opcodes that appear outside of any3178control method. This change improves the support by adding more opcodes3179that can be executed in the manner. Some other issues have been solved,3180and the ASL grammar changes to support such code under all scope3181operators (Device, etc.) are complete. Lv Zheng.31823183UEFI support: these OSL functions have been implemented. This is an3184additional step toward supporting the AcpiExec utility natively (with3185full hardware access) under UEFI. Marcelo Ferreira.3186AcpiOsReadPciConfiguration3187AcpiOsWritePciConfiguration31883189Fixed a possible mutex error during control method auto-serialization. Lv3190Zheng.31913192Updated support for the Generic Address Structure by fully implementing3193all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv3194Zheng.31953196Updated the return value for the internal _OSI method. Instead of31970xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF3198for 64-bit ACPI tables. This fixes an incompatibility with other ACPI3199implementations, and will be reflected and clarified in the next version3200of the ACPI specification.32013202Implemented two new table events that can be passed to an ACPICA table3203handler. These events are used to indicate a table installation or3204uninstallation. These events are used in addition to existed table load3205and unload events. Lv Zheng.32063207Implemented a cleanup for all internal string-to-integer conversions.3208Consolidate multiple versions of this functionality and limit possible3209bases to either 10 or 16 to simplify the code. Adds a new file,3210utstrtoul64.32113212Cleanup the inclusion order of the various compiler-specific headers.3213This simplifies build configuration management. The compiler-specific3214headers are now split out from the host-specific headers. Lv Zheng.32153216Example Code and Data Size: These are the sizes for the OS-independent3217acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3218debug version of the code includes the debug output trace mechanism and3219has a much larger code and data size.32203221Current Release:3222Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total3223Debug Version: 200.3K Code, 82.1K Data, 282.4K Total3224322532262) iASL Compiler/Disassembler and Tools:32273228iASL/AcpiExec: Added a command line option to display the build date/time3229of the tool (-vd). This can be useful to verify that the correct version3230of the tools are being used.32313232AML Debugger: Implemented a new subcommand ("execute predef") to execute3233all predefined control methods and names within the current namespace.3234This can be useful for debugging problems with ACPI tables and the ACPI3235namespace.32363237----------------------------------------323829 July 2016. Summary of changes for version 20160729:3239324032411) ACPICA kernel-resident subsystem:32423243Implemented basic UEFI support for the various ACPICA tools. This3244includes:32451) An OSL to implement the various AcpiOs* interfaces on UEFI.32462) Support to obtain the ACPI tables on UEFI.32473) Local implementation of required C library functions not available on3248UEFI.32494) A front-end (main) function for the tools for UEFI-related3250initialization.32513252The initial deployment of this support is the AcpiDump utility executing3253as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").3254Current environments supported are Linux/Unix. MSVC generation is not3255supported at this time. See the generate/efi/README file for build3256instructions. Lv Zheng.32573258Future plans include porting the AcpiExec utility to execute natively on3259the platform with I/O and memory access. This will allow viewing/dump of3260the platform namespace and native execution of ACPI control methods that3261access the actual hardware. To fully implement this support, the OSL3262functions below must be implemented with UEFI interfaces. Any community3263help in the implementation of these functions would be appreciated:3264AcpiOsReadPort3265AcpiOsWritePort3266AcpiOsReadMemory3267AcpiOsWriteMemory3268AcpiOsReadPciConfiguration3269AcpiOsWritePciConfiguration32703271Restructured and standardized the C library configuration for ACPICA,3272resulting in the various configuration options below. This includes a3273global restructuring of the compiler-dependent and platform-dependent3274include files. These changes may affect the existing platform-dependent3275configuration files on some hosts. Lv Zheng.32763277The current C library configuration options appear below. For any issues,3278it may be helpful to examine the existing compiler-dependent and3279platform-dependent files as examples. Lv Zheng.328032811) Linux kernel:3282ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C3283library.3284ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.32852) Unix/Windows/BSD applications:3286ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C3287library.3288ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.32893) UEFI applications:3290ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C3291library.3292ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.32934) UEFI applications (EDK2/StdLib):3294ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.3295ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.329632973298AML interpreter: "module-level code" support. Allows for execution of so-3299called "executable" AML code (math/logical operations, etc.) outside of3300control methods not just at the module level (top level) but also within3301any scope declared outside of a control method - Scope{}, Device{},3302Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.33033304Simplified the configuration of the "maximum AML loops" global option by3305adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be3306modified at runtime.330733083309Example Code and Data Size: These are the sizes for the OS-independent3310acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3311debug version of the code includes the debug output trace mechanism and3312has a much larger code and data size.33133314Current Release:3315Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total3316Debug Version: 199.0K Code, 81.8K Data, 280.8K Total3317331833192) iASL Compiler/Disassembler and Tools:33203321iASL: Add full support for the RASF ACPI table (RAS Features Table).3322Includes disassembler, data table compiler, and header support.33233324iASL Expand "module-level code" support. Allows for3325compilation/disassembly of so-called "executable" AML code (math/logical3326operations, etc.) outside of control methods not just at the module level3327(top level) but also within any scope declared outside of a control3328method - Scope{}, Device{}, Processor{}, PowerResource{}, and3329ThermalZone{}.33303331AcpiDump: Added support for dumping all SSDTs on newer versions of3332Windows. These tables are now easily available -- SSDTs are not available3333through the registry on older versions.33343335----------------------------------------333627 May 2016. Summary of changes for version 20160527:3337333833391) ACPICA kernel-resident subsystem:33403341Temporarily reverted the new arbitrary bit length/alignment support in3342AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been3343a number of regressions with the new code that need to be fully resolved3344and tested before this support can be finally integrated into ACPICA.3345Apologies for any inconveniences these issues may have caused.33463347The ACPI message macros are not configurable (ACPI_MSG_ERROR,3348ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,3349and ACPI_MSG_BIOS_WARNING). Lv Zheng.33503351Fixed a couple of GCC warnings associated with the use of the -Wcast-qual3352option. Adds a new return macro, return_STR. Junk-uk Kim.33533354Example Code and Data Size: These are the sizes for the OS-independent3355acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3356debug version of the code includes the debug output trace mechanism and3357has a much larger code and data size.33583359Current Release:3360Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total3361Debug Version: 201.5K Code, 82.2K Data, 283.7K Total3362Previous Release:3363Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total3364Debug Version: 200.9K Code, 82.2K Data, 283.1K Total33653366----------------------------------------336722 April 2016. Summary of changes for version 20160422:336833691) ACPICA kernel-resident subsystem:33703371Fixed a regression in the GAS (generic address structure) arbitrary bit3372support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior3373and incorrect return values. Lv Zheng. ACPICA BZ 1270.33743375ACPI 6.0: Added support for new/renamed resource macros. One new argument3376was added to each of these macros, and the original name has been3377deprecated. The AML disassembler will always disassemble to the new3378names. Support for the new macros was added to iASL, disassembler,3379resource manager, and the acpihelp utility. ACPICA BZ 1274.33803381I2cSerialBus -> I2cSerialBusV23382SpiSerialBus -> SpiSerialBusV23383UartSerialBus -> UartSerialBusV233843385ACPI 6.0: Added support for a new integer field that was appended to the3386package object returned by the _BIX method. This adds iASL compile-time3387and AML runtime error checking. ACPICA BZ 1273.33883389ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm3390Subspace Type2" (Headers, Disassembler, and data table compiler).33913392Example Code and Data Size: These are the sizes for the OS-independent3393acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3394debug version of the code includes the debug output trace mechanism and3395has a much larger code and data size.33963397Current Release:3398Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total3399Debug Version: 201.5K Code, 82.2K Data, 283.7K Total3400Previous Release:3401Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total3402Debug Version: 201.0K Code, 82.0K Data, 283.0K Total3403340434052) iASL Compiler/Disassembler and Tools:34063407iASL: Implemented an ASL grammar extension to allow/enable executable3408"module-level code" to be created and executed under the various3409operators that create new scopes. This type of AML code is already3410supported in all known AML interpreters, and the grammar change will3411appear in the next version of the ACPI specification. Simplifies the3412conditional runtime creation of named objects under these object types:34133414Device3415PowerResource3416Processor3417Scope3418ThermalZone34193420iASL: Implemented a new ASL extension, a "For" loop macro to add greater3421ease-of-use to the ASL language. The syntax is similar to the3422corresponding C operator, and is implemented with the existing AML While3423opcode -- thus requiring no changes to existing AML interpreters.34243425For (Initialize, Predicate, Update) {TermList}34263427Grammar:3428ForTerm :=3429For (3430Initializer // Nothing | TermArg => ComputationalData3431Predicate // Nothing | TermArg => ComputationalData3432Update // Nothing | TermArg => ComputationalData3433) {TermList}343434353436iASL: The _HID/_ADR detection and validation has been enhanced to search3437under conditionals in order to allow these objects to be conditionally3438created at runtime.34393440iASL: Fixed several issues with the constant folding feature. The3441improvement allows better detection and resolution of statements that can3442be folded at compile time. ACPICA BZ 1266.34433444iASL/Disassembler: Fixed a couple issues with the Else{If{}...}3445conversion to the ASL ElseIf operator where incorrect ASL code could be3446generated.34473448iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where3449sometimes an extra (and extraneous) set of parentheses were emitted for3450some combinations of operators. Although this did not cause any problems3451with recompilation of the disassembled code, it made the code more3452difficult to read. David Box. ACPICA BZ 1231.34533454iASL: Changed to ignore the unreferenced detection for predefined names3455of resource descriptor elements, when the resource descriptor is3456created/defined within a control method.34573458iASL: Disassembler: Fix a possible fault with externally declared Buffer3459objects.34603461----------------------------------------346218 March 2016. Summary of changes for version 20160318:346334641) ACPICA kernel-resident subsystem:34653466Added support for arbitrary bit lengths and bit offsets for registers3467defined by the Generic Address Structure. Previously, only aligned bit3468lengths of 8/16/32/64 were supported. This was sufficient for many years,3469but recently some machines have been seen that require arbitrary bit-3470level support. ACPICA BZ 1240. Lv Zheng.34713472Fixed an issue where the \_SB._INI method sometimes must be evaluated3473before any _REG methods are evaluated. Lv Zheng.34743475Implemented several changes related to ACPI table support3476(Headers/Disassembler/TableCompiler):3477NFIT: For ACPI 6.1, updated to add some additional new fields and3478constants.3479FADT: Updated a warning message and set compliance to ACPI 6.1 (Version34806).3481DMAR: Added new constants per the 10/2014 DMAR spec.3482IORT: Added new subtable per the 10/2015 IORT spec.3483HEST: For ACPI 6.1, added new constants and new subtable.3484DBG2: Added new constants per the 12/2015 DBG2 spec.3485FPDT: Fixed several incorrect fields, add the FPDT boot record structure.3486ACPICA BZ 1249.3487ERST/EINJ: Updated disassembler with new "Execute Timings" actions.34883489Updated header support for the DMAR table to match the current version of3490the related spec.34913492Added extensions to the ASL Concatenate operator to allow any ACPI object3493to be passed as an operand. Any object other than Integer/String/Buffer3494simply returns a string containing the object type. This extends the3495usefulness of the Printf macros. Previously, Concatenate would abort the3496control method if a non-data object was encountered.34973498ACPICA source code: Deployed the C "const" keyword across the source code3499where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).35003501Example Code and Data Size: These are the sizes for the OS-independent3502acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3503debug version of the code includes the debug output trace mechanism and3504has a much larger code and data size.35053506Current Release:3507Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total3508Debug Version: 201.0K Code, 82.0K Data, 283.0K Total3509Previous Release:3510Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total3511Debug Version: 200.4K Code, 82.0K Data, 282.4K Total3512351335142) iASL Compiler/Disassembler and Tools:35153516iASL/Disassembler: Improved the heuristic used to determine the number of3517arguments for an externally defined control method (a method in another3518table). Although this is an improvement, there is no deterministic way to3519"guess" the number of method arguments. Only the ACPI 6.0 External opcode3520will completely solve this problem as it is deployed (automatically) in3521newer BIOS code.35223523iASL/Disassembler: Fixed an ordering issue for emitted External() ASL3524statements that could cause errors when the disassembled file is3525compiled. ACPICA BZ 1243. David Box.35263527iASL: Fixed a regression caused by the merger of the two versions of the3528local strtoul64. Because of a dependency on a global variable, strtoul643529could return an error for integers greater than a 32-bit value. ACPICA BZ35301260.35313532iASL: Fixed a regression where a fault could occur for an ASL Return3533statement if it invokes a control method that is not resolved. ACPICA BZ35341264.35353536AcpiXtract: Improved input file validation: detection of binary files and3537non-acpidump text files.35383539----------------------------------------354012 February 2016. Summary of changes for version 20160212:354135421) ACPICA kernel-resident subsystem:35433544Implemented full support for the ACPI 6.1 specification (released in3545January). This version of the specification is available at:3546http://www.uefi.org/specifications35473548Only a relatively small number of changes were required in ACPICA to3549support ACPI 6.1, in these areas:3550- New predefined names3551- New _HID values3552- A new subtable for HEST3553- A few other header changes for new values35543555Ensure \_SB_._INI is executed before any _REG methods are executed. There3556appears to be existing BIOS code that relies on this behavior. Lv Zheng.35573558Reverted a change made in version 20151218 which enabled method3559invocations to be targets of various ASL operators (SuperName and Target3560grammar elements). While the new behavior is supported by the ACPI3561specification, other AML interpreters do not support this behavior and3562never will. The ACPI specification will be updated for ACPI 6.2 to remove3563this support. Therefore, the change was reverted to the original ACPICA3564behavior.35653566ACPICA now supports the GCC 6 compiler.35673568Current Release: (Note: build changes increased sizes)3569Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total3570Debug Version: 200.4K Code, 82.0K Data, 282.4K Total3571Previous Release:3572Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total3573Debug Version: 200.4K Code, 81.9K Data, 282.3K Total3574357535762) iASL Compiler/Disassembler and Tools:35773578Completed full support for the ACPI 6.0 External() AML opcode. The3579compiler emits an external AML opcode for each ASL External statement.3580This opcode is used by the disassembler to assist with the disassembly of3581external control methods by specifying the required number of arguments3582for the method. AML interpreters do not use this opcode. To ensure that3583interpreters do not even see the opcode, a block of one or more external3584opcodes is surrounded by an "If(0)" construct. As this feature becomes3585commonly deployed in BIOS code, the ability of disassemblers to correctly3586disassemble AML code will be greatly improved. David Box.35873588iASL: Implemented support for an optional cross-reference output file.3589The -lx option will create a the cross-reference file with the suffix3590"xrf". Three different types of cross-reference are created in this file:3591- List of object references made from within each control method3592- Invocation (caller) list for each user-defined control method3593- List of references to each non-method object in the namespace35943595iASL: Method invocations as ASL Target operands are now disallowed and3596flagged as errors in preparation for ACPI 6.2 (see the description of the3597problem above).35983599----------------------------------------36008 January 2016. Summary of changes for version 20160108:360136021) ACPICA kernel-resident subsystem:36033604Updated all ACPICA copyrights and signons to 2016: Added the 20163605copyright to all source code module headers and utility/tool signons.3606This includes the standard Linux dual-license header. This affects3607virtually every file in the ACPICA core subsystem, iASL compiler, all3608ACPICA utilities, and the ACPICA test suite.36093610Fixed a regression introduced in version 20151218 concerning the3611execution of so-called module-level ASL/AML code. Namespace objects3612created under a module-level If() construct were not properly/fully3613entered into the namespace and could cause an interpreter fault when3614accessed.36153616Example Code and Data Size: These are the sizes for the OS-independent3617acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3618debug version of the code includes the debug output trace mechanism and3619has a much larger code and data size.36203621Current Release:3622Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total3623Debug Version: 200.4K Code, 81.9K Data, 282.4K Total3624Previous Release:3625Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total3626Debug Version: 200.3K Code, 81.9K Data, 282.3K Total3627362836292) iASL Compiler/Disassembler and Tools:36303631Fixed a problem with the compilation of the GpioIo and GpioInt resource3632descriptors. The _PIN field name was incorrectly defined to be an array3633of 32-bit values, but the _PIN values are in fact 16 bits each. This3634would cause incorrect bit width warnings when using Word (16-bit) fields3635to access the descriptors.363636373638----------------------------------------363918 December 2015. Summary of changes for version 20151218:364036411) ACPICA kernel-resident subsystem:36423643Implemented per-AML-table execution of "module-level code" as individual3644ACPI tables are loaded into the namespace during ACPICA initialization.3645In other words, any module-level code within an AML table is executed3646immediately after the table is loaded, instead of batched and executed3647after all of the tables have been loaded. This provides compatibility3648with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,3649David Box.36503651To fully support the feature above, the default operation region handlers3652for the SystemMemory, SystemIO, and PCI_Config address spaces are now3653installed before any ACPI tables are loaded. This enables module-level3654code to access these address spaces during the table load and module-3655level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David3656Box.36573658Implemented several changes to the internal _REG support in conjunction3659with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples3660utilities for the changes above. Although these tools were changed, host3661operating systems that simply use the default handlers for SystemMemory,3662SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.36633664For example, in the code below, DEV1 is conditionally added to the3665namespace by the DSDT via module-level code that accesses an operation3666region. The SSDT references DEV1 via the Scope operator. DEV1 must be3667created immediately after the DSDT is loaded in order for the SSDT to3668successfully reference DEV1. Previously, this code would cause an3669AE_NOT_EXIST exception during the load of the SSDT. Now, this code is3670fully supported by ACPICA.36713672DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)3673{3674OperationRegion (OPR1, SystemMemory, 0x400, 32)3675Field (OPR1, AnyAcc, NoLock, Preserve)3676{3677FLD1, 13678}3679If (FLD1)3680{3681Device (\DEV1)3682{3683}3684}3685}3686DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)3687{3688External (\DEV1, DeviceObj)3689Scope (\DEV1)3690{3691}3692}36933694Fixed an AML interpreter problem where control method invocations were3695not handled correctly when the invocation was itself a SuperName argument3696to another ASL operator. In these cases, the method was not invoked.3697ACPICA BZ 1002. Affects the following ASL operators that have a SuperName3698argument:3699Store3700Acquire, Wait3701CondRefOf, RefOf3702Decrement, Increment3703Load, Unload3704Notify3705Signal, Release, Reset3706SizeOf37073708Implemented automatic String-to-ObjectReference conversion support for3709packages returned by predefined names (such as _DEP). A common BIOS error3710is to add double quotes around an ObjectReference namepath, which turns3711the reference into an unexpected string object. This support detects the3712problem and corrects it before the package is returned to the caller that3713invoked the method. Lv Zheng.37143715Implemented extensions to the Concatenate operator. Concatenate now3716accepts any type of object, it is not restricted to simply3717Integer/String/Buffer. For objects other than these 3 basic data types,3718the argument is treated as a string containing the name of the object3719type. This expands the utility of Concatenate and the Printf/Fprintf3720macros. ACPICA BZ 1222.37213722Cleaned up the output of the ASL Debug object. The timer() value is now3723optional and no longer emitted by default. Also, the basic data types of3724Integer/String/Buffer are simply emitted as their values, without a data3725type string -- since the data type is obvious from the output. ACPICA BZ37261221.37273728Example Code and Data Size: These are the sizes for the OS-independent3729acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3730debug version of the code includes the debug output trace mechanism and3731has a much larger code and data size.37323733Current Release:3734Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total3735Debug Version: 200.3K Code, 81.9K Data, 282.3K Total3736Previous Release:3737Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total3738Debug Version: 199.6K Code, 81.8K Data, 281.4K Total3739374037412) iASL Compiler/Disassembler and Tools:37423743iASL: Fixed some issues with the ASL Include() operator. This operator3744was incorrectly defined in the iASL parser rules, causing a new scope to3745be opened for the code within the include file. This could lead to3746several issues, including allowing ASL code that is technically illegal3747and not supported by AML interpreters. Note, this does not affect the3748related #include preprocessor operator. ACPICA BZ 1212.37493750iASL/Disassembler: Implemented support for the ASL ElseIf operator. This3751operator is essentially an ASL macro since there is no AML opcode3752associated with it. The code emitted by the iASL compiler for ElseIf is3753an Else opcode followed immediately by an If opcode. The disassembler3754will now emit an ElseIf if it finds an Else immediately followed by an3755If. This simplifies the decoded ASL, especially for deeply nested3756If..Else and large Switch constructs. Thus, the disassembled code more3757closely follows the original source ASL. ACPICA BZ 1211. Example:37583759Old disassembly:3760Else3761{3762If (Arg0 == 0x02)3763{3764Local0 = 0x053765}3766}37673768New disassembly:3769ElseIf (Arg0 == 0x02)3770{3771Local0 = 0x053772}37733774AcpiExec: Added support for the new module level code behavior and the3775early region installation. This required a small change to the3776initialization, since AcpiExec must install its own operation region3777handlers.37783779AcpiExec: Added support to make the debug object timer optional. Default3780is timer disabled. This cleans up the debug object output -- the timer3781data is rarely used.37823783AcpiExec: Multiple ACPI tables are now loaded in the order that they3784appear on the command line. This can be important when there are3785interdependencies/references between the tables.37863787iASL/Templates. Add support to generate template files with multiple3788SSDTs within a single output file. Also added ommand line support to3789specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ37901223, 1225.379137923793----------------------------------------379424 November 2015. Summary of changes for version 20151124:379537961) ACPICA kernel-resident subsystem:37973798Fixed a possible regression for a previous update to FADT handling. The3799FADT no longer has a fixed table ID, causing some issues with code that3800was hardwired to a specific ID. Lv Zheng.38013802Fixed a problem where the method auto-serialization could interfere with3803the current SyncLevel. This change makes the auto-serialization support3804transparent to the SyncLevel support and management.38053806Removed support for the _SUB predefined name in AcpiGetObjectInfo. This3807interface is intended for early access to the namespace during the3808initial namespace device discovery walk. The _SUB method has been seen to3809access operation regions in some cases, causing errors because the3810operation regions are not fully initialized.38113812AML Debugger: Fixed some issues with the terminate/quit/exit commands3813that can cause faults. Lv Zheng.38143815AML Debugger: Add thread ID support so that single-step mode only applies3816to the AML Debugger thread. This prevents runtime errors within some3817kernels. Lv Zheng.38183819Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx3820methods that are invoked by this interface are optional, removed warnings3821emitted for the case where one or more of these methods do not exist.3822ACPICA BZ 1208, original change by Prarit Bhargava.38233824Made a major pass through the entire ACPICA source code base to3825standardize formatting that has diverged a bit over time. There are no3826functional changes, but this will of course cause quite a few code3827differences from the previous ACPICA release.38283829Example Code and Data Size: These are the sizes for the OS-independent3830acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3831debug version of the code includes the debug output trace mechanism and3832has a much larger code and data size.38333834Current Release:3835Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total3836Debug Version: 199.6K Code, 81.8K Data, 281.4K Total3837Previous Release:3838Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total3839Debug Version: 199.3K Code, 81.4K Data, 280.7K Total3840384138422) iASL Compiler/Disassembler and Tools:38433844iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple3845definition blocks within a single ASL file and the resulting AML file.3846Support for this type of file was also added to the various tools that3847use binary AML files: acpiexec, acpixtract, and the AML disassembler. The3848example code below shows two definition blocks within the same file:38493850DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",38510x12345678)3852{3853}3854DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)3855{3856}38573858iASL: Enhanced typechecking for the Name() operator. All expressions for3859the value of the named object must be reduced/folded to a single constant3860at compile time, as per the ACPI specification (the AML definition of3861Name()).38623863iASL: Fixed some code indentation issues for the -ic and -ia options (C3864and assembly headers). Now all emitted code correctly begins in column 1.38653866iASL: Added an error message for an attempt to open a Scope() on an3867object defined in an SSDT. The DSDT is always loaded into the namespace3868first, so any attempt to open a Scope on an SSDT object will fail at3869runtime.387038713872----------------------------------------387330 September 2015. Summary of changes for version 20150930:387438751) ACPICA kernel-resident subsystem:38763877Debugger: Implemented several changes and bug fixes to assist support for3878the in-kernel version of the AML debugger. Lv Zheng.3879- Fix the "predefined" command for in-kernel debugger.3880- Do not enter debug command loop for the help and version commands.3881- Disallow "execute" command during execution/single-step of a method.38823883Interpreter: Updated runtime typechecking for all operators that have3884target operands. The operand is resolved and validated that it is legal.3885For example, the target cannot be a non-data object such as a Device,3886Mutex, ThermalZone, etc., as per the ACPI specification.38873888Debugger: Fixed the double-mutex user I/O handshake to work when local3889deadlock detection is enabled.38903891Debugger: limited display of method locals and arguments (LocalX and3892ArgX) to only those that have actually been initialized. This prevents3893lines of extraneous output.38943895Updated the definition of the NFIT table to correct the bit polarity of3896one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED38973898Example Code and Data Size: These are the sizes for the OS-independent3899acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3900debug version of the code includes the debug output trace mechanism and3901has a much larger code and data size.39023903Current Release:3904Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total3905Debug Version: 199.3K Code, 81.4K Data, 280.7K Total3906Previous Release:3907Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total3908Debug Version: 198.6K Code, 80.9K Data, 279.5K Total3909391039112) iASL Compiler/Disassembler and Tools:39123913iASL: Improved the compile-time typechecking for operands of many of the3914ASL operators:39153916-- Added an option to disable compiler operand/operator typechecking (-3917ot).39183919-- For the following operators, the TermArg operands are now validated3920when possible to be Integer data objects: BankField, OperationRegion,3921DataTableRegion, Buffer, and Package.39223923-- Store (Source, Target): Both the source and target operands are3924resolved and checked that the operands are both legal. For example,3925neither operand can be a non-data object such as a Device, Mutex,3926ThermalZone, etc. Note, as per the ACPI specification, the CopyObject3927operator can be used to store an object to any type of target object.39283929-- Store (Source, Target): If the source is a Package object, the target3930must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target3931is a Package, the source must also be a Package.39323933-- Store (Source, Target): A warning is issued if the source and target3934resolve to the identical named object.39353936-- Store (Source, <method invocation>): An error is generated for the3937target method invocation, as this construct is not supported by the AML3938interpreter.39393940-- For all ASL math and logic operators, the target operand must be a3941data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This3942includes the function return value also.39433944-- External declarations are also included in the typechecking where3945possible. External objects defined using the UnknownObj keyword cannot be3946typechecked, however.39473948iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index3949operator:3950- Legacy code: Index(PKG1, 3)3951- New ASL+ code: PKG1[3]3952This completes the ACPI 6.0 ASL+ support as it was the only operator not3953supported.39543955iASL: Fixed the file suffix for the preprocessor output file (.i). Two3956spaces were inadvertently appended to the filename, causing file access3957and deletion problems on some systems.39583959ASL Test Suite (ASLTS): Updated the master makefile to generate all3960possible compiler output files when building the test suite -- thus3961exercising these features of the compiler. These files are automatically3962deleted when the test suite exits.396339643965----------------------------------------396618 August 2015. Summary of changes for version 20150818:396739681) ACPICA kernel-resident subsystem:39693970Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv3971Zheng. ACPICA BZ 1186.39723973Completed development to ensure that the ACPICA Disassembler and Debugger3974are fully standalone components of ACPICA. Removed cross-component3975dependences. Lv Zheng.39763977The max-number-of-AML-loops is now runtime configurable (previously was3978compile-time only). This is essentially a loop timeout to force-abort3979infinite AML loops. ACPCIA BZ 1192.39803981Debugger: Cleanup output to dump ACPI names and namepaths without any3982trailing underscores. Lv Zheng. ACPICA BZ 1135.39833984Removed unnecessary conditional compilations across the Debugger and3985Disassembler components where entire modules could be left uncompiled.39863987The aapits test is deprecated and has been removed from the ACPICA git3988tree. The test has never been completed and has not been maintained, thus3989becoming rather useless. ACPICA BZ 1015, 794.39903991A batch of small changes to close bugzilla and other reports:3992- Remove duplicate code for _PLD processing. ACPICA BZ 1176.3993- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.3994- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.3995- ACPI table support: general cleanup and simplification. Lv Zheng, Bob3996Moore.3997- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.3998ACPICA BZ 1184.3999- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML4000operators.4001- Debugger: Split debugger initialization/termination interfaces. Lv4002Zheng.4003- AcpiExec: Emit OemTableId for SSDTs during the load phase for table4004identification.4005- AcpiExec: Add debug message during _REG method phase during table4006load/init.4007- AcpiNames: Fix a regression where some output was missing and no longer4008emitted.4009- Debugger: General cleanup and simplification. Lv Zheng.4010- Disassembler: Cleanup use of several global option variables. Lv Zheng.40114012Example Code and Data Size: These are the sizes for the OS-independent4013acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4014debug version of the code includes the debug output trace mechanism and4015has a much larger code and data size.40164017Current Release:4018Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total4019Debug Version: 198.6K Code, 80.9K Data, 279.5K Total4020Previous Release:4021Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total4022Debug Version: 197.8K Code, 81.5K Data, 279.3K Total4023402440252) iASL Compiler/Disassembler and Tools:40264027AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT4028were not handled properly and caused load errors. Now, properly invoke4029and use the ACPICA auto-reallocate mechanism for ACPI table data4030structures. ACPICA BZ 118840314032AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA4033BZ 1190.40344035AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For4036AcpiExec, this means that no control methods (like _REG/_INI/_STA) are4037executed during initialization. ACPICA BZ 1187, 1189.40384039iASL/Disassembler: Implemented a prototype "listing" mode that emits AML4040that corresponds to each disassembled ASL statement, to simplify4041debugging. ACPICA BZ 1191.40424043Debugger: Add option to the "objects" command to display a summary of the4044current namespace objects (Object type and count). This is displayed if4045the command is entered with no arguments.40464047AcpiNames: Add -x option to specify debug level, similar to AcpiExec.404840494050----------------------------------------405117 July 2015. Summary of changes for version 20150717:405240531) ACPICA kernel-resident subsystem:40544055Improved the partitioning between the Debugger and Disassembler4056components. This allows the Debugger to be used standalone within kernel4057code without the Disassembler (which is used for single stepping also).4058This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.40594060Debugger: Implemented a new command to trace the execution of control4061methods (Trace). This is especially useful for the in-kernel version of4062the debugger when file I/O may not be available for method trace output.4063See the ACPICA reference for more information. Lv Zheng.40644065Moved all C library prototypes (used for the local versions of these4066functions when requested) to a new header, acclib.h4067Cleaned up the use of non-ANSI C library functions. These functions are4068implemented locally in ACPICA. Moved all such functions to a common4069source file, utnonansi.c40704071Debugger: Fixed a problem with the "!!" command (get last command4072executed) where the debugger could enter an infinite loop and eventually4073crash.40744075Removed the use of local macros that were used for some of the standard C4076library functions to automatically cast input parameters. This mostly4077affected the is* functions where the input parameter is defined to be an4078int. This required a few modifications to the main ACPICA source code to4079provide casting for these functions and eliminate possible compiler4080warnings for these parameters.40814082Across the source code, added additional status/error checking to resolve4083issues discovered by static source code analysis tools such as Coverity.40844085Example Code and Data Size: These are the sizes for the OS-independent4086acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4087debug version of the code includes the debug output trace mechanism and4088has a much larger code and data size.40894090Current Release:4091Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total4092Debug Version: 197.8K Code, 81.5K Data, 279.3K Total4093Previous Release:4094Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total4095Debug Version: 196.2K Code, 81.0K Data, 277.2K Total4096409740982) iASL Compiler/Disassembler and Tools:40994100iASL: Fixed a regression where the device map file feature no longer4101worked properly when used in conjunction with the disassembler. It only4102worked properly with the compiler itself.41034104iASL: Implemented a new warning for method LocalX variables that are set4105but never used (similar to a C compiler such as gcc). This also applies4106to ArgX variables that are not defined by the parent method, and are4107instead (legally) used as local variables.41084109iASL/Preprocessor: Finished the pass-through of line numbers from the4110preprocessor to the compiler. This ensures that compiler errors/warnings4111have the correct original line numbers and filenames, regardless of any4112#include files.41134114iASL/Preprocessor: Fixed a couple of issues with comment handling and the4115pass-through of comments to the preprocessor output file (which becomes4116the compiler input file). Also fixed a problem with // comments that4117appear after a math expression.41184119iASL: Added support for the TCPA server table to the table compiler and4120template generator. (The client table was already previously supported)41214122iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to4123identify the iASL compiler.41244125Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined4126multiple times. The new names are ACPI_SIGN_NEGATIVE and4127ACPI_SIGN_POSITIVE.41284129AcpiHelp: Update to expand help messages for the iASL preprocessor4130directives.413141324133----------------------------------------413419 June 2015. Summary of changes for version 20150619:41354136Two regressions in version 20150616 have been addressed:41374138Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,4139etc.) This update changes ACPICA to only use the standard headers for4140functions, or the prototypes for the local versions of the C library4141functions. Across the source code, this required some additional casts4142for some Clib invocations for portability. Moved all local prototypes to4143a new file, acclib.h41444145Fixes several problems with recent changes to the handling of the FACS4146table that could cause some systems not to boot.414741484149----------------------------------------415016 June 2015. Summary of changes for version 20150616:4151415241531) ACPICA kernel-resident subsystem:41544155Across the entire ACPICA source code base, the various macros for the C4156library functions (such as ACPI_STRLEN, etc.) have been removed and4157replaced by the standard C library names (strlen, etc.) The original4158purpose for these macros is no longer applicable. This simplification4159reduces the number of macros used in the ACPICA source code4160significantly, improving readability and maintainability.41614162Implemented support for a new ACPI table, the OSDT. This table, the4163"override" SDT, can be loaded directly by the host OS at boot time. It4164enables the replacement of existing namespace objects that were installed4165via the DSDT and/or SSDTs. The primary purpose for this is to replace4166buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated4167for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob4168Moore.41694170Added support for systems with (improperly) two FACS tables -- a "32-bit"4171table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit4172X field). This change will support both automatically. There continues to4173be systems found with this issue. This support requires a change to the4174AcpiSetFirmwareWakingVector interface. Also, a public global variable has4175been added to allow the host to select which FACS is desired4176(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more4177details Lv Zheng.41784179Added a new feature to allow for systems that do not contain an FACS.4180Although this is already supported on hardware-reduced platforms, the4181feature has been extended for all platforms. The reasoning is that we do4182not want to abort the entire ACPICA initialization just because the4183system is seriously buggy and has no FACS.41844185Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were4186not correctly transcribed from the ACPI specification in ACPICA version418720150515.41884189Implemented support for the _CLS object in the AcpiGetObjectInfo external4190interface.41914192Updated the definitions of the TCPA and TPM2 ACPI tables to the more4193recent TCG ACPI Specification, December 14, 2014. Table disassembler and4194compiler also updated. Note: The TCPA "server" table is not supported by4195the disassembler/table-compiler at this time.41964197ACPI 6.0: Added definitions for the new GIC version field in the MADT.41984199Example Code and Data Size: These are the sizes for the OS-independent4200acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4201debug version of the code includes the debug output trace mechanism and4202has a much larger code and data size.42034204Current Release:4205Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total4206Debug Version: 196.2K Code, 81.0K Data, 277.2K Total4207Previous Release:4208Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total4209Debug Version: 195.2K Code, 80.8K Data, 276.0K Total4210421142122) iASL Compiler/Disassembler and Tools:42134214Disassembler: Fixed a problem with the new symbolic operator disassembler4215where incorrect ASL code could be emitted in some cases for the "non-4216commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and4217ShiftRight. The actual problem cases seem to be rather unusual in common4218ASL code, however. David Box.42194220Modified the linux version of acpidump to obtain ACPI tables from not4221just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv4222Zheng.42234224iASL: Fixed a problem where the user preprocessor output file (.i)4225contained extra data that was not expected. The compiler was using this4226file as a temporary file and passed through #line directives in order to4227keep compiler error messages in sync with the input file and line number4228across multiple include files. The (.i) is no longer a temporary file as4229the compiler uses a new, different file for the original purpose.42304231iASL: Fixed a problem where comments within the original ASL source code4232file were not passed through to the preprocessor output file, nor any4233listing files.42344235iASL: Fixed some issues for the handling of the "#include" preprocessor4236directive and the similar (but not the same) "Include" ASL operator.42374238iASL: Add support for the new OSDT in both the disassembler and compiler.42394240iASL: Fixed a problem with the constant folding support where a Buffer4241object could be incorrectly generated (incorrectly formed) during a4242conversion to a Store() operator.42434244AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new4245description text for the _REV predefined name. _REV now permanently4246returns 2, as per the ACPI 6.0 specification.42474248Debugger: Enhanced the output of the Debug ASL object for references4249produced by the Index operator. For Buffers and strings, only output the4250actual byte pointed to by the index. For packages, only print the single4251package element decoded by the index. Previously, the entire4252buffer/string/package was emitted.42534254iASL/Table-compiler: Fixed a regression where the "generic" data types4255were no longer recognized, causing errors.425642574258----------------------------------------425915 May 2015. Summary of changes for version 20150515:42604261This release implements most of ACPI 6.0 as described below.426242631) ACPICA kernel-resident subsystem:42644265Implemented runtime argument checking and return value checking for all4266new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,4267_MTL, _PRR, _RDI, _RST, _TFP, _TSN.42684269Example Code and Data Size: These are the sizes for the OS-independent4270acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4271debug version of the code includes the debug output trace mechanism and4272has a much larger code and data size.42734274Current Release:4275Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total4276Debug Version: 195.2K Code, 80.8K Data, 276.0K Total4277Previous Release:4278Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total4279Debug Version: 192.8K Code, 79.9K Data, 272.7K Total4280428142822) iASL Compiler/Disassembler and Tools:42834284iASL compiler: Added compile-time support for all new ACPI 6.0 predefined4285names (argument count validation and return value typechecking.)42864287iASL disassembler and table compiler: implemented support for all new4288ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.42894290iASL disassembler and table compiler: Added ACPI 6.0 changes to existing4291tables: FADT, MADT.42924293iASL preprocessor: Added a new directive to enable inclusion of binary4294blobs into ASL code. The new directive is #includebuffer. It takes a4295binary file as input and emits a named ascii buffer object into the ASL4296code.42974298AcpiHelp: Added support for all new ACPI 6.0 predefined names.42994300AcpiHelp: Added a new option, -d, to display all iASL preprocessor4301directives.43024303AcpiHelp: Added a new option, -t, to display all known/supported ACPI4304tables.430543064307----------------------------------------430810 April 2015. Summary of changes for version 20150410:43094310Reverted a change introduced in version 20150408 that caused4311a regression in the disassembler where incorrect operator4312symbols could be emitted.431343144315----------------------------------------431608 April 2015. Summary of changes for version 20150408:4317431843191) ACPICA kernel-resident subsystem:43204321Permanently set the return value for the _REV predefined name. It now4322returns 2 (was 5). This matches other ACPI implementations. _REV will be4323deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 24324for ACPI 2.0 and later. It should never be used to differentiate or4325identify operating systems.43264327Added the "Windows 2015" string to the _OSI support. ACPICA will now4328return TRUE to a query with this string.43294330Fixed several issues with the local version of the printf function.43314332Added the C99 compiler option (-std=c99) to the Unix makefiles.43334334Current Release:4335Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total4336Debug Version: 195.2K Code, 80.7K Data, 275.9K Total4337Previous Release:4338Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4339Debug Version: 192.1K Code, 79.8K Data, 271.9K Total4340434143422) iASL Compiler/Disassembler and Tools:43434344iASL: Implemented an enhancement to the constant folding feature to4345transform the parse tree to a simple Store operation whenever possible:4346Add (2, 3, X) ==> is converted to: Store (5, X)4347X = 2 + 3 ==> is converted to: Store (5, X)43484349Updated support for the SLIC table (Software Licensing Description Table)4350in both the Data Table compiler and the disassembler. The SLIC table4351support now conforms to "Microsoft Software Licensing Tables (SLIC and4352MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data4353following the ACPI header is now defined to be "Proprietary Data", and as4354such, can only be entered or displayed as a hex data block.43554356Implemented full support for the MSDM table as described in the document4357above. Note: The format of MSDM is similar to SLIC. Any MSDM data4358following the ACPI header is defined to be "Proprietary Data", and can4359only be entered or displayed as a hex data block.43604361Implemented the -Pn option for the iASL Table Compiler (was only4362implemented for the ASL compiler). This option disables the iASL4363preprocessor.43644365Disassembler: For disassembly of Data Tables, added a comment field4366around the Ascii equivalent data that is emitted as part of the "Raw4367Table Data" block. This prevents the iASL Preprocessor from possible4368confusion if/when the table is compiled.43694370Disassembler: Added an option (-df) to force the disassembler to assume4371that the table being disassembled contains valid AML. This feature is4372useful for disassembling AML files that contain ACPI signatures other4373than DSDT or SSDT (such as OEMx or other signatures).43744375Changes for the EFI version of the tools:43761) Fixed a build error/issue43772) Fixed a cast warning43784379iASL: Fixed a path issue with the __FILE__ operator by making the4380directory prefix optional within the internal SplitInputFilename4381function.43824383Debugger: Removed some unused global variables.43844385Tests: Updated the makefile for proper generation of the AAPITS suite.438643874388----------------------------------------438904 February 2015. Summary of changes for version 20150204:43904391ACPICA kernel-resident subsystem:43924393Updated all ACPICA copyrights and signons to 2014. Added the 20144394copyright to all module headers and signons, including the standard Linux4395header. This affects virtually every file in the ACPICA core subsystem,4396iASL compiler, all ACPICA utilities, and the test suites.43974398Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.4399A raw gpe handling mechanism was created to allow better handling of GPE4400storms that aren't easily managed by the normal handler. The raw handler4401allows disabling/renabling of the GPE so that interrupt storms can be4402avoided in cases where events cannot be timely serviced. In this4403scenario, handlers should use the AcpiSetGpe() API to disable/enable the4404GPE. This API will leave the reference counts undisturbed, thereby4405preventing unintentional clearing of the GPE when the intent in only to4406temporarily disable it. Raw handlers allow enabling and disabling of a4407GPE by removing GPE register locking. As such, raw handlers much provide4408their own locks while using GPE API's to protect access to GPE data4409structures.4410Lv Zheng44114412Events: Always modify GPE registers under the GPE lock.4413Applies GPE lock around AcpiFinishGpe() to protect access to GPE register4414values. Reported as bug by [email protected].44154416Unix makefiles: Separate option to disable optimizations and4417_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the4418NOOPT disable option and creates a separate flag (NOFORTIFY) for this4419purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined4420errors when building ACPICA. This allows disabling the option without4421also having to disable optimazations.4422David Box44234424Current Release:4425Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total4426Debug Version: 199.2K Code, 82.4K Data, 281.6K Total44274428--4429--------------------------------------443007 November 2014. Summary of changes for version 20141107:44314432This release is available at https://acpica.org/downloads44334434This release introduces and implements language extensions to ASL that4435provide support for symbolic ("C-style") operators and expressions. These4436language extensions are known collectively as ASL+.4437443844391) iASL Compiler/Disassembler and Tools:44404441Disassembler: Fixed a problem with disassembly of the UartSerialBus4442macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.4443Box.44444445Disassembler: Fixed the Unicode macro support to add escape sequences.4446All non-printable ASCII values are emitted as escape sequences, as well4447as the standard escapes for quote and backslash. Ensures that the4448disassembled macro can be correctly recompiled.44494450iASL: Added Printf/Fprintf macros for formatted output. These macros are4451translated to existing AML Concatenate and Store operations. Printf4452writes to the ASL Debug object. Fprintf allows the specification of an4453ASL name as the target. Only a single format specifier is required, %o,4454since the AML interpreter dynamically converts objects to the required4455type. David E. Box.44564457(old) Store (Concatenate (Concatenate (Concatenate (Concatenate4458(Concatenate (Concatenate (Concatenate ("", Arg0),4459": Unexpected value for "), Arg1), ", "), Arg2),4460" at line "), Arg3), Debug)44614462(new) Printf ("%o: Unexpected value for %o, %o at line %o",4463Arg0, Arg1, Arg2, Arg3)44644465(old) Store (Concatenate (Concatenate (Concatenate (Concatenate4466("", Arg1), ": "), Arg0), " Successful"), STR1)44674468(new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)44694470iASL: Added debug options (-bp, -bt) to dynamically prune levels of the4471ASL parse tree before the AML code is generated. This allows blocks of4472ASL code to be removed in order to help locate and identify problem4473devices and/or code. David E. Box.44744475AcpiExec: Added support (-fi) for an optional namespace object4476initialization file. This file specifies initial values for namespace4477objects as necessary for debugging and testing different ASL code paths4478that may be taken as a result of BIOS options.4479448044812) Overview of symbolic operator support for ASL (ASL+)4482-------------------------------------------------------44834484As an extension to the ASL language, iASL implements support for symbolic4485(C-style) operators for math and logical expressions. This can greatly4486simplify ASL code as well as improve both readability and4487maintainability. These language extensions can exist concurrently with4488all legacy ASL code and expressions.44894490The symbolic extensions are 100% compatible with existing AML4491interpreters, since no new AML opcodes are created. To implement the4492extensions, the iASL compiler transforms the symbolic expressions into4493the legacy ASL/AML equivalents at compile time.44944495Full symbolic expressions are supported, along with the standard C4496precedence and associativity rules.44974498Full disassembler support for the symbolic expressions is provided, and4499creates an automatic migration path for existing ASL code to ASL+ code4500via the disassembly process. By default, the disassembler now emits ASL+4501code with symbolic expressions. An option (-dl) is provided to force the4502disassembler to emit legacy ASL code if desired.45034504Below is the complete list of the currently supported symbolic operators4505with examples. See the iASL User Guide for additional information.450645074508ASL+ Syntax Legacy ASL Equivalent4509----------- ---------------------45104511// Math operators45124513Z = X + Y Add (X, Y, Z)4514Z = X - Y Subtract (X, Y, Z)4515Z = X * Y Multiply (X, Y, Z)4516Z = X / Y Divide (X, Y, , Z)4517Z = X % Y Mod (X, Y, Z)4518Z = X << Y ShiftLeft (X, Y, Z)4519Z = X >> Y ShiftRight (X, Y, Z)4520Z = X & Y And (X, Y, Z)4521Z = X | Y Or (X, Y, Z)4522Z = X ^ Y Xor (X, Y, Z)4523Z = ~X Not (X, Z)4524X++ Increment (X)4525X-- Decrement (X)45264527// Logical operators45284529(X == Y) LEqual (X, Y)4530(X != Y) LNotEqual (X, Y)4531(X < Y) LLess (X, Y)4532(X > Y) LGreater (X, Y)4533(X <= Y) LLessEqual (X, Y)4534(X >= Y) LGreaterEqual (X, Y)4535(X && Y) LAnd (X, Y)4536(X || Y) LOr (X, Y)4537(!X) LNot (X)45384539// Assignment and compound assignment operations45404541X = Y Store (Y, X)4542X += Y Add (X, Y, X)4543X -= Y Subtract (X, Y, X)4544X *= Y Multiply (X, Y, X)4545X /= Y Divide (X, Y, , X)4546X %= Y Mod (X, Y, X)4547X <<= Y ShiftLeft (X, Y, X)4548X >>= Y ShiftRight (X, Y, X)4549X &= Y And (X, Y, X)4550X |= Y Or (X, Y, X)4551X ^= Y Xor (X, Y, X)4552455345543) ASL+ Examples:4555-----------------45564557Legacy ASL:4558If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (4559And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,45600x03FB),45610x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))4562{4563And (MEMB, 0xFFFFFFF0, SRMB)4564Store (MEMB, Local2)4565Store (PDBM, Local1)4566And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)4567Store (SRMB, MEMB)4568Or (PDBM, 0x02, PDBM)4569}45704571ASL+ version:4572If (((R510 & 0x03FB) == 0x02E0) ||4573((R520 & 0x03FB) == 0x02E0) ||4574((R530 & 0x03FB) == 0x02E0) ||4575((R540 & 0x03FB) == 0x02E0))4576{4577SRMB = (MEMB & 0xFFFFFFF0)4578Local2 = MEMB4579Local1 = PDBM4580PDBM &= 0xFFFFFFFFFFFFFFF94581MEMB = SRMB4582PDBM |= 0x024583}45844585Legacy ASL:4586Store (0x1234, Local1)4587Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)4588Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)4589Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)4590Store (Index (PKG1, 0x03), Local6)4591Store (Add (Local3, Local2), Debug)4592Add (Local1, 0x0F, Local2)4593Add (Local1, Multiply (Local2, Local3), Local2)4594Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)45954596ASL+ version:4597Local1 = 0x12344598Local3 = (((Local1 + TEST) + 0x20) * Local2)4599Local3 = (Local2 * ((Local1 + TEST) + 0x20))4600Local3 = (Local1 + (TEST + (0x20 * Local2)))4601Local6 = Index (PKG1, 0x03)4602Debug = (Local3 + Local2)4603Local2 = (Local1 + 0x0F)4604Local2 = (Local1 + (Local2 * Local3))4605Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))460646074608----------------------------------------460926 September 2014. Summary of changes for version 20140926:461046111) ACPICA kernel-resident subsystem:46124613Updated the GPIO operation region handler interface (GeneralPurposeIo).4614In order to support GPIO Connection objects with multiple pins, along4615with the related Field objects, the following changes to the interface4616have been made: The Address is now defined to be the offset in bits of4617the field unit from the previous invocation of a Connection. It can be4618viewed as a "Pin Number Index" into the connection resource descriptor.4619The BitWidth is the exact bit width of the field. It is usually one bit,4620but not always. See the ACPICA reference guide (section 8.8.6.2.1) for4621additional information and examples.46224623GPE support: During ACPICA/GPE initialization, ensure that all GPEs with4624corresponding _Lxx/_Exx methods are disabled (they may have been enabled4625by the firmware), so that they cannot fire until they are enabled via4626AcpiUpdateAllGpes. Rafael J. Wysocki.46274628Added a new return flag for the Event/GPE status interfaces --4629AcpiGetEventStatus and AcpiGetGpeStatus. The new4630ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or4631GPE currently has a handler associated with it, and can thus actually4632affect the system. Lv Zheng.46334634Example Code and Data Size: These are the sizes for the OS-independent4635acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4636debug version of the code includes the debug output trace mechanism and4637has a much larger code and data size.46384639Current Release:4640Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total4641Debug Version: 192.8K Code, 79.9K Data, 272.7K Total4642Previous Release:4643Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4644Debug Version: 192.1K Code, 79.8K Data, 271.9K Total464546462) iASL Compiler/Disassembler and Tools:46474648iASL: Fixed a memory allocation/free regression introduced in 201408284649that could cause the compiler to crash. This was introduced inadvertently4650during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,46511113.46524653iASL: Removed two error messages that have been found to create false4654positives, until they can be fixed and fully validated (ACPICA BZ 1112):46551) Illegal forward reference within a method46562) Illegal reference across two methods46574658iASL: Implemented a new option (-lm) to create a hardware mapping file4659that summarizes all GPIO, I2C, SPI, and UART connections. This option4660works for both the compiler and disassembler. See the iASL compiler user4661guide for additional information and examples (section 6.4.6).46624663AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to4664version 2. This corrects the AE_BAD_HEADER exception seen on systems with4665a version 1 RSDP. Lv Zheng ACPICA BZ 1097.46664667AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode4668unless STDIN is actually a terminal. Assists with batch-mode processing.4669ACPICA BZ 1114.46704671Disassembler/AcpiHelp: Added another large group of recognized _HID4672values.467346744675----------------------------------------467628 August 2014. Summary of changes for version 20140828:467746781) ACPICA kernel-resident subsystem:46794680Fixed a problem related to the internal use of the Timer() operator where4681a 64-bit divide could cause an attempted link to a double-precision math4682library. This divide is not actually necessary, so the code was4683restructured to eliminate it. Lv Zheng.46844685ACPI 5.1: Added support for the runtime validation of the _DSD package4686(similar to the iASL support).46874688ACPI 5.1/Headers: Added support for the GICC affinity subtable to the4689SRAT table. Hanjun Guo <[email protected]>.46904691Example Code and Data Size: These are the sizes for the OS-independent4692acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4693debug version of the code includes the debug output trace mechanism and4694has a much larger code and data size.46954696Current Release:4697Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4698Debug Version: 192.1K Code, 79.8K Data, 271.9K Total4699Previous Release:4700Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total14701Debug Version: 192.0K Code, 79.7K Data, 271.7K Total470247032) iASL Compiler/Disassembler and Tools:47044705AcpiExec: Fixed a problem on unix systems where the original terminal4706state was not always properly restored upon exit. Seen when using the -v4707option. ACPICA BZ 1104.47084709iASL: Fixed a problem with the validation of the ranges/length within the4710Memory24 resource descriptor. There was a boundary condition when the4711range was equal to the (length -1) caused by the fact that these values4712are defined in 256-byte blocks, not bytes. ACPICA BZ 109847134714Disassembler: Fixed a problem with the GpioInt descriptor interrupt4715polarity4716flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword4717is4718now supported properly.47194720ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported4721in the disassembler, data table compiler, and table template generator.47224723iASL: Added a requirement for Device() objects that one of either a _HID4724or _ADR must exist within the scope of a Device, as per the ACPI4725specification. Remove a similar requirement that was incorrectly in place4726for the _DSD object.47274728iASL: Added error detection for illegal named references within control4729methods that would cause runtime failures. Now trapped as errors are: 1)4730References to objects within a non-parent control method. 2) Forward4731references (within a method) -- for control methods, AML interpreters use4732a one-pass parse of control methods. ACPICA BZ 1008.47334734iASL: Added error checking for dependencies related to the _PSx power4735methods. ACPICA BZ 1029.47361) For _PS0, one of these must exist within the same scope: _PS1, _PS2,4737_PS3.47382) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same4739scope.47404741iASL and table compiler: Cleanup miscellaneous memory leaks by fully4742deploying the existing object and string caches and adding new caches for4743the table compiler.47444745iASL: Split the huge parser source file into multiple subfiles to improve4746manageability. Generation now requires the M4 macro preprocessor, which4747is part of the Bison distribution on both unix and windows platforms.47484749AcpiSrc: Fixed and removed all extraneous warnings generated during4750entire ACPICA source code scan and/or conversion.475147524753----------------------------------------4754475524 July 2014. Summary of changes for version 20140724:47564757The ACPI 5.1 specification has been released and is available at:4758http://uefi.org/specs/access4759476047610) ACPI 5.1 support in ACPICA:47624763ACPI 5.1 is fully supported in ACPICA as of this release.47644765New predefined names. Support includes iASL and runtime ACPICA4766validation.4767_CCA (Cache Coherency Attribute).4768_DSD (Device-Specific Data). David Box.47694770Modifications to existing ACPI tables. Support includes headers, iASL4771Data Table compiler, disassembler, and the template generator.4772FADT - New fields and flags. Graeme Gregory.4773GTDT - One new subtable and new fields. Tomasz Nowicki.4774MADT - Two new subtables. Tomasz Nowicki.4775PCCT - One new subtable.47764777Miscellaneous.4778New notification type for System Resource Affinity change events.4779478047811) ACPICA kernel-resident subsystem:47824783Fixed a regression introduced in 20140627 where a fault can happen during4784the deletion of Alias AML namespace objects. The problem affected both4785the core ACPICA and the ACPICA tools including iASL and AcpiExec.47864787Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a4788simple mechanism to enable wake GPEs that have no associated handler or4789control method. Rafael Wysocki.47904791Updated the AcpiEnableGpe interface to disallow the enable if there is no4792handler or control method associated with the particular GPE. This will4793help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.47944795Updated GPE handling and dispatch by disabling the GPE before clearing4796the status bit for edge-triggered GPEs. Lv Zheng.47974798Added Timer() support to the AML Debug object. The current timer value is4799now displayed with each invocation of (Store to) the debug object to4800enable simple generation of execution times for AML code (method4801execution for example.) ACPICA BZ 1093.48024803Example Code and Data Size: These are the sizes for the OS-independent4804acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4805debug version of the code includes the debug output trace mechanism and4806has a much larger code and data size.48074808Current Release:4809Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total4810Debug Version: 192.0K Code, 79.7K Data, 271.7K Total4811Previous Release:4812Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total4813Debug Version: 191.7K Code, 79.6K Data, 271.3K Total4814481548162) iASL Compiler/Disassembler and Tools:48174818Fixed an issue with the recently added local printf implementation,4819concerning width/precision specifiers that could cause incorrect output.4820Lv Zheng. ACPICA BZ 1094.48214822Disassembler: Added support to detect buffers that contain UUIDs and4823disassemble them to an invocation of the ToUUID operator. Also emit4824commented descriptions of known ACPI-related UUIDs.48254826AcpiHelp: Added support to display known ACPI-related UUIDs. New option,4827-u. Adds three new files.48284829iASL: Update table compiler and disassembler for DMAR table changes that4830were introduced in September 2013. With assistance by David Woodhouse.48314832----------------------------------------483327 June 2014. Summary of changes for version 20140627:483448351) ACPICA kernel-resident subsystem:48364837Formatted Output: Implemented local versions of standard formatted output4838utilities such as printf, etc. Over time, it has been discovered that4839there are in fact many portability issues with printf, and the addition4840of this feature will fix/prevent these issues once and for all. Some4841known issues are summarized below:484248431) Output of 64-bit values is not portable. For example, UINT64 is %ull4844for the Linux kernel and is %uI64 for some MSVC versions.48452) Invoking printf consistently in a manner that is portable across both484632-bit and 64-bit platforms is difficult at best in many situations.48473) The output format for pointers varies from system to system (leading4848zeros especially), and leads to inconsistent output from ACPICA across4849platforms.48504) Certain platform-specific printf formats may conflict with ACPICA use.48515) If there is no local C library available, ACPICA now has local support4852for printf.48534854-- To address these printf issues in a complete manner, ACPICA now4855directly implements a small subset of printf format specifiers, only4856those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.48574858Implemented support for ACPICA generation within the EFI environment.4859Initially, the AcpiDump utility is supported in the UEFI shell4860environment. Lv Zheng.48614862Added a new external interface, AcpiLogError, to improve ACPICA4863portability. This allows the host to redirect error messages from the4864ACPICA utilities. Lv Zheng.48654866Added and deployed new OSL file I/O interfaces to improve ACPICA4867portability:4868AcpiOsOpenFile4869AcpiOsCloseFile4870AcpiOsReadFile4871AcpiOsWriteFile4872AcpiOsGetFileOffset4873AcpiOsSetFileOffset4874There are C library implementations of these functions in the new file4875service_layers/oslibcfs.c -- however, the functions can be implemented by4876the local host in any way necessary. Lv Zheng.48774878Implemented a mechanism to disable/enable ACPI table checksum validation4879at runtime. This can be useful when loading tables very early during OS4880initialization when it may not be possible to map the entire table in4881order to compute the checksum. Lv Zheng.48824883Fixed a buffer allocation issue for the Generic Serial Bus support.4884Originally, a fixed buffer length was used. This change allows for4885variable-length buffers based upon the protocol indicated by the field4886access attributes. Reported by Lan Tianyu. Lv Zheng.48874888Fixed a problem where an object detached from a namespace node was not4889properly terminated/cleared and could cause a circular list problem if4890reattached. ACPICA BZ 1063. David Box.48914892Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.48934894Fixed a possible memory leak in an error return path within the function4895AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.48964897Example Code and Data Size: These are the sizes for the OS-independent4898acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4899debug version of the code includes the debug output trace mechanism and4900has a much larger code and data size.49014902Current Release:4903Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total4904Debug Version: 191.7K Code, 79.6K Data, 271.3K Total4905Previous Release:4906Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total4907Debug Version: 189.5K Code, 79.7K Data, 269.2K Total4908490949102) iASL Compiler/Disassembler and Tools:49114912Disassembler: Add dump of ASCII equivalent text within a comment at the4913end of each line of the output for the Buffer() ASL operator.49144915AcpiDump: Miscellaneous changes:4916Fixed repetitive table dump in -n mode.4917For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if4918the ACPI 2.0 GUID fails.49194920iASL: Fixed a problem where the compiler could fault if incorrectly given4921an acpidump output file as input. ACPICA BZ 1088. David Box.49224923AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if4924they are invoked without any arguments.49254926Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ49271086. Colin Ian King.49284929Disassembler: Cleaned up a block of code that extracts a parent Op4930object. Added a comment that explains that the parent is guaranteed to be4931valid in this case. ACPICA BZ 1069.493249334934----------------------------------------493524 April 2014. Summary of changes for version 20140424:493649371) ACPICA kernel-resident subsystem:49384939Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.4940Some of these tables are known to contain a trailing NULL entry. Lv4941Zheng.49424943Removed an extraneous error message for the case where there are a large4944number of system GPEs (> 124). This was the "32-bit FADT register is too4945long to convert to GAS struct" message, which is irrelevant for GPEs4946since the GPEx_BLK_LEN fields of the FADT are always used instead of the4947(limited capacity) GAS bit length. Also, several changes to ensure proper4948support for GPE numbers > 255, where some "GPE number" fields were 8-bits4949internally.49504951Implemented and deployed additional configuration support for the public4952ACPICA external interfaces. Entire classes of interfaces can now be4953easily modified or configured out, replaced by stubbed inline functions4954by default. Lv Zheng.49554956Moved all public ACPICA runtime configuration globals to the public4957ACPICA external interface file for convenience. Also, removed some4958obsolete/unused globals. See the file acpixf.h. Lv Zheng.49594960Documentation: Added a new section to the ACPICA reference describing the4961maximum number of GPEs that can be supported by the FADT-defined GPEs in4962block zero and one. About 1200 total. See section 4.4.1 of the ACPICA4963reference.49644965Example Code and Data Size: These are the sizes for the OS-independent4966acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4967debug version of the code includes the debug output trace mechanism and4968has a much larger code and data size.49694970Current Release:4971Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total4972Debug Version: 189.5K Code, 79.7K Data, 269.2K Total4973Previous Release:4974Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total4975Debug Version: 189.7K Code, 79.5K Data, 269.2K Total4976497749782) iASL Compiler/Disassembler and Tools:49794980iASL and disassembler: Add full support for the LPIT table (Low Power4981Idle Table). Includes support in the disassembler, data table compiler,4982and template generator.49834984AcpiDump utility:49851) Add option to force the use of the RSDT (over the XSDT).49862) Improve validation of the RSDP signature (use 8 chars instead of 4).49874988iASL: Add check for predefined packages that are too large. For4989predefined names that contain subpackages, check if each subpackage is4990too large. (Check for too small already exists.)49914992Debugger: Updated the GPE command (which simulates a GPE by executing the4993GPE code paths in ACPICA). The GPE device is now optional, and defaults4994to the GPE 0/1 FADT-defined blocks.49954996Unix application OSL: Update line-editing support. Add additional error4997checking and take care not to reset terminal attributes on exit if they4998were never set. This should help guarantee that the terminal is always4999left in the previous state on program exit.500050015002----------------------------------------500325 March 2014. Summary of changes for version 20140325:500450051) ACPICA kernel-resident subsystem:50065007Updated the auto-serialize feature for control methods. This feature5008automatically serializes all methods that create named objects in order5009to prevent runtime errors. The update adds support to ignore the5010currently executing AML SyncLevel when invoking such a method, in order5011to prevent disruption of any existing SyncLevel priorities that may exist5012in the AML code. Although the use of SyncLevels is relatively rare, this5013change fixes a regression where an AE_AML_MUTEX_ORDER exception can5014appear on some machines starting with the 20140214 release.50155016Added a new external interface to allow the host to install ACPI tables5017very early, before the namespace is even created. AcpiInstallTable gives5018the host additional flexibility for ACPI table management. Tables can be5019installed directly by the host as if they had originally appeared in the5020XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables5021(anything except the DSDT and FACS). Adds a new file, tbdata.c, along5022with additional internal restructuring and cleanup. See the ACPICA5023Reference for interface details. Lv Zheng.50245025Added validation of the checksum for all incoming dynamically loaded5026tables (via external interfaces or via AML Load/LoadTable operators). Lv5027Zheng.50285029Updated the use of the AcpiOsWaitEventsComplete interface during Notify5030and GPE handler removal. Restructured calls to eliminate possible race5031conditions. Lv Zheng.50325033Added a warning for the use/execution of the ASL/AML Unload (table)5034operator. This will help detect and identify machines that use this5035operator if and when it is ever used. This operator has never been seen5036in the field and the usage model and possible side-effects of the drastic5037runtime action of a full table removal are unknown.50385039Reverted the use of #pragma push/pop which was introduced in the 201402145040release. It appears that push and pop are not implemented by enough5041compilers to make the use of this feature feasible for ACPICA at this5042time. However, these operators may be deployed in a future ACPICA5043release.50445045Added the missing EXPORT_SYMBOL macros for the install and remove SCI5046handler interfaces.50475048Source code generation:50491) Disabled the use of the "strchr" macro for the gcc-specific5050generation. For some versions of gcc, this macro can periodically expose5051a compiler bug which in turn causes compile-time error(s).50522) Added support for PPC64 compilation. Colin Ian King.50535054Example Code and Data Size: These are the sizes for the OS-independent5055acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5056debug version of the code includes the debug output trace mechanism and5057has a much larger code and data size.50585059Current Release:5060Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total5061Debug Version: 189.7K Code, 79.5K Data, 269.2K Total5062Previous Release:5063Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total5064Debug Version: 188.6K Code, 79.0K Data, 267.6K Total5065506650672) iASL Compiler/Disassembler and Tools:50685069Disassembler: Added several new features to improve the readability of5070the resulting ASL code. Extra information is emitted within comment5071fields in the ASL code:50721) Known _HID/_CID values are decoded to descriptive text.50732) Standard values for the Notify() operator are decoded to descriptive5074text.50753) Target operands are expanded to full pathnames (in a comment) when5076possible.50775078Disassembler: Miscellaneous updates for extern() handling:50791) Abort compiler if file specified by -fe option does not exist.50802) Silence unnecessary warnings about argument count mismatches.50813) Update warning messages concerning unresolved method externals.50824) Emit "UnknownObj" keyword for externals whose type cannot be5083determined.50845085AcpiHelp utility:50861) Added the -a option to display both the ASL syntax and the AML5087encoding for an input ASL operator. This effectively displays all known5088information about an ASL operator with one AcpiHelp invocation.50892) Added substring match support (similar to a wildcard) for the -i5090(_HID/PNP IDs) option.50915092iASL/Disassembler: Since this tool does not yet support execution on big-5093endian machines, added detection of endianness and an error message if5094execution is attempted on big-endian. Support for big-endian within iASL5095is a feature that is on the ACPICA to-be-done list.50965097AcpiBin utility:50981) Remove option to extract binary files from an acpidump; this function5099is made obsolete by the AcpiXtract utility.51002) General cleanup of open files and allocated buffers.510151025103----------------------------------------510414 February 2014. Summary of changes for version 20140214:510551061) ACPICA kernel-resident subsystem:51075108Implemented a new mechanism to proactively prevent problems with ill-5109behaved reentrant control methods that create named ACPI objects. This5110behavior is illegal as per the ACPI specification, but is nonetheless5111frequently seen in the field. Previously, this could lead to an5112AE_ALREADY_EXISTS exception if the method was actually entered by more5113than one thread. This new mechanism detects such methods at table load5114time and marks them "serialized" to prevent reentrancy. A new global5115option, AcpiGbl_AutoSerializeMethods, has been added to disable this5116feature if desired. This mechanism and global option obsoletes and5117supersedes the previous AcpiGbl_SerializeAllMethods option.51185119Added the "Windows 2013" string to the _OSI support. ACPICA will now5120respond TRUE to _OSI queries with this string. It is the stated policy of5121ACPICA to add new strings to the _OSI support as soon as possible after5122they are defined. See the full ACPICA _OSI policy which has been added to5123the utilities/utosi.c file.51245125Hardened/updated the _PRT return value auto-repair code:51261) Do not abort the repair on a single subpackage failure, continue to5127check all subpackages.51282) Add check for the minimum subpackage length (4).51293) Properly handle extraneous NULL package elements.51305131Added support to avoid the possibility of infinite loops when traversing5132object linked lists. Never allow an infinite loop, even in the face of5133corrupted object lists.51345135ACPICA headers: Deployed the use of #pragma pack(push) and #pragma5136pack(pop) directives to ensure that the ACPICA headers are independent of5137compiler settings or other host headers.51385139Example Code and Data Size: These are the sizes for the OS-independent5140acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5141debug version of the code includes the debug output trace mechanism and5142has a much larger code and data size.51435144Current Release:5145Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total5146Debug Version: 188.6K Code, 79.0K Data, 267.6K Total5147Previous Release:5148Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total5149Debug Version: 187.5K Code, 78.3K Data, 265.8K Total5150515151522) iASL Compiler/Disassembler and Tools:51535154iASL/Table-compiler: Fixed a problem with support for the SPMI table. The5155first reserved field was incorrectly forced to have a value of zero. This5156change correctly forces the field to have a value of one. ACPICA BZ 1081.51575158Debugger: Added missing support for the "Extra" and "Data" subobjects5159when displaying object data.51605161Debugger: Added support to display entire object linked lists when5162displaying object data.51635164iASL: Removed the obsolete -g option to obtain ACPI tables from the5165Windows registry. This feature has been superseded by the acpidump5166utility.516751685169----------------------------------------517014 January 2014. Summary of changes for version 20140114:517151721) ACPICA kernel-resident subsystem:51735174Updated all ACPICA copyrights and signons to 2014. Added the 20145175copyright to all module headers and signons, including the standard Linux5176header. This affects virtually every file in the ACPICA core subsystem,5177iASL compiler, all ACPICA utilities, and the test suites.51785179Improved parameter validation for AcpiInstallGpeBlock. Added the5180following checks:51811) The incoming device handle refers to type ACPI_TYPE_DEVICE.51822) There is not already a GPE block attached to the device.5183Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a5184device.51855186Correctly support "references" in the ACPI_OBJECT. This change fixes the5187support to allow references (namespace nodes) to be passed as arguments5188to control methods via the evaluate object interface. This is probably5189most useful for testing purposes, however.51905191Improved support for 32/64 bit physical addresses in printf()-like5192output. This change improves the support for physical addresses in printf5193debug statements and other output on both 32-bit and 64-bit hosts. It5194consistently outputs the appropriate number of bytes for each host. The5195%p specifier is unsatisfactory since it does not emit uniform output on5196all hosts/clib implementations (on some, leading zeros are not supported,5197leading to difficult-to-read output).51985199Example Code and Data Size: These are the sizes for the OS-independent5200acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5201debug version of the code includes the debug output trace mechanism and5202has a much larger code and data size.52035204Current Release:5205Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total5206Debug Version: 187.5K Code, 78.3K Data, 265.8K Total5207Previous Release:5208Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total5209Debug Version: 185.6K Code, 77.3K Data, 262.9K Total5210521152122) iASL Compiler/Disassembler and Tools:52135214iASL: Fix a possible fault when using the Connection() operator. Fixes a5215problem if the parent Field definition for the Connection operator refers5216to an operation region that does not exist. ACPICA BZ 1064.52175218AcpiExec: Load of local test tables is now optional. The utility has the5219capability to load some various tables to test features of ACPICA.5220However, there are enough of them that the output of the utility became5221confusing. With this change, only the required local tables are displayed5222(RSDP, XSDT, etc.) along with the actual tables loaded via the command5223line specification. This makes the default output simler and easier to5224understand. The -el command line option restores the original behavior5225for testing purposes.52265227AcpiExec: Added support for overlapping operation regions. This change5228expands the simulation of operation regions by supporting regions that5229overlap within the given address space. Supports SystemMemory and5230SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.52315232AcpiExec: Added region handler support for PCI_Config and EC spaces. This5233allows AcpiExec to simulate these address spaces, similar to the current5234support for SystemMemory and SystemIO.52355236Debugger: Added new command to read/write/compare all namespace objects.5237The command "test objects" will exercise the entire namespace by writing5238new values to each data object, and ensuring that the write was5239successful. The original value is then restored and verified.52405241Debugger: Added the "test predefined" command. This change makes this5242test public and puts it under the new "test" command. The test executes5243each and every predefined name within the current namespace.524452455246----------------------------------------524718 December 2013. Summary of changes for version 20131218:52485249Global note: The ACPI 5.0A specification was released this month. There5250are no changes needed for ACPICA since this release of ACPI is an5251errata/clarification release. The specification is available at5252acpi.info.5253525452551) ACPICA kernel-resident subsystem:52565257Added validation of the XSDT root table if it is present. Some older5258platforms contain an XSDT that is ill-formed or otherwise invalid (such5259as containing some or all entries that are NULL pointers). This change5260adds a new function to validate the XSDT before actually using it. If the5261XSDT is found to be invalid, ACPICA will now automatically fall back to5262using the RSDT instead. Original implementation by Zhao Yakui. Ported to5263ACPICA and enhanced by Lv Zheng and Bob Moore.52645265Added a runtime option to ignore the XSDT and force the use of the RSDT.5266This change adds a runtime option that will force ACPICA to use the RSDT5267instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec5268requires that an XSDT be used instead of the RSDT, the XSDT has been5269found to be corrupt or ill-formed on some machines. Lv Zheng.52705271Added a runtime option to favor 32-bit FADT register addresses over the527264-bit addresses. This change adds an option to favor 32-bit FADT5273addresses when there is a conflict between the 32-bit and 64-bit versions5274of the same register. The default behavior is to use the 64-bit version5275in accordance with the ACPI specification. This can now be overridden via5276the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.52775278During the change above, the internal "Convert FADT" and "Verify FADT"5279functions have been merged to simplify the code, making it easier to5280understand and maintain. ACPICA BZ 933.52815282Improve exception reporting and handling for GPE block installation.5283Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the5284status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.52855286Added helper macros to extract bus/segment numbers from the HEST table.5287This change adds two macros to extract the encoded bus and segment5288numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.5289Betty Dall <[email protected]>52905291Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used5292by ACPICA. It is not a public macro, so it should have no effect on5293existing OSV code. Lv Zheng.52945295Example Code and Data Size: These are the sizes for the OS-independent5296acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5297debug version of the code includes the debug output trace mechanism and5298has a much larger code and data size.52995300Current Release:5301Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total5302Debug Version: 185.6K Code, 77.3K Data, 262.9K Total5303Previous Release:5304Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total5305Debug Version: 185.1K Code, 77.2K Data, 262.3K Total5306530753082) iASL Compiler/Disassembler and Tools:53095310Disassembler: Improved pathname support for emitted External()5311statements. This change adds full pathname support for external names5312that have been resolved internally by the inclusion of additional ACPI5313tables (via the iASL -e option). Without this change, the disassembler5314can emit multiple externals for the same object, or it become confused5315when the Scope() operator is used on an external object. Overall, greatly5316improves the ability to actually recompile the emitted ASL code when5317objects a referenced across multiple ACPI tables. Reported by Michael5318Tsirkin ([email protected]).53195320Tests/ASLTS: Updated functional control suite to execute with no errors.5321David Box. Fixed several errors related to the testing of the interpreter5322slack mode. Lv Zheng.53235324iASL: Added support to detect names that are declared within a control5325method, but are unused (these are temporary names that are only valid5326during the time the method is executing). A remark is issued for these5327cases. ACPICA BZ 1022.53285329iASL: Added full support for the DBG2 table. Adds full disassembler,5330table compiler, and template generator support for the DBG2 table (Debug5331Port 2 table).53325333iASL: Added full support for the PCCT table, update the table definition.5334Updates the PCCT table definition in the actbl3.h header and adds table5335compiler and template generator support.53365337iASL: Added an option to emit only error messages (no warnings/remarks).5338The -ve option will enable only error messages, warnings and remarks are5339suppressed. This can simplify debugging when only the errors are5340important, such as when an ACPI table is disassembled and there are many5341warnings and remarks -- but only the actual errors are of real interest.53425343Example ACPICA code (source/tools/examples): Updated the example code so5344that it builds to an actual working program, not just example code. Added5345ACPI tables and execution of an example control method in the DSDT. Added5346makefile support for Unix generation.534753485349----------------------------------------535015 November 2013. Summary of changes for version 20131115:53515352This release is available at https://acpica.org/downloads5353535453551) ACPICA kernel-resident subsystem:53565357Resource Manager: Fixed loop termination for the "get AML length"5358function. The loop previously had an error termination on a NULL resource5359pointer, which can never happen since the loop simply increments a valid5360resource pointer. This fix changes the loop to terminate with an error on5361an invalid end-of-buffer condition. The problem can be seen as an5362infinite loop by callers to AcpiSetCurrentResources with an invalid or5363corrupted resource descriptor, or a resource descriptor that is missing5364an END_TAG descriptor. Reported by Dan Carpenter5365<[email protected]>. Lv Zheng, Bob Moore.53665367Table unload and ACPICA termination: Delete all attached data objects5368during namespace node deletion. This fix updates namespace node deletion5369to delete the entire list of attached objects (attached via5370AcpiAttachObject) instead of just one of the attached items. ACPICA BZ53711024. Tomasz Nowicki ([email protected]).53725373ACPICA termination: Added support to delete all objects attached to the5374root namespace node. This fix deletes any and all objects that have been5375attached to the root node via AcpiAttachData. Previously, none of these5376objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.53775378Debug output: Do not emit the function nesting level for the in-kernel5379build. The nesting level is really only useful during a single-thread5380execution. Therefore, only enable this output for the AcpiExec utility.5381Also, only emit the thread ID when executing under AcpiExec (Context5382switches are still always detected and a message is emitted). ACPICA BZ5383972.53845385Example Code and Data Size: These are the sizes for the OS-independent5386acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5387debug version of the code includes the debug output trace mechanism and5388has a much larger code and data size.53895390Current Release:5391Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total5392Debug Version: 185.1K Code, 77.2K Data, 262.3K Total5393Previous Release:5394Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total5395Debug Version: 185.2K Code, 77.2K Data, 262.4K Total5396539753982) iASL Compiler/Disassembler and Tools:53995400AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the5401correct portable POSIX header for terminal control functions.54025403Disassembler: Fixed control method invocation issues related to the use5404of the CondRefOf() operator. The problem is seen in the disassembly where5405control method invocations may not be disassembled properly if the5406control method name has been used previously as an argument to CondRefOf.5407The solution is to not attempt to emit an external declaration for the5408CondRefOf target (it is not necessary in the first place). This prevents5409disassembler object type confusion. ACPICA BZ 988.54105411Unix Makefiles: Added an option to disable compiler optimizations and the5412_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA5413with optimizations (reportedly, gcc 4.4 for example). This change adds a5414command line option for make (NOOPT) that disables all compiler5415optimizations and the _FORTIFY_SOURCE compiler flag. The default5416optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ54171034. Lv Zheng, Bob Moore.54185419Tests/ASLTS: Added options to specify individual test cases and modes.5420This allows testers running aslts.sh to optionally specify individual5421test modes and test cases. Also added an option to disable the forced5422generation of the ACPICA tools from source if desired. Lv Zheng.54235424----------------------------------------542527 September 2013. Summary of changes for version 20130927:54265427This release is available at https://acpica.org/downloads5428542954301) ACPICA kernel-resident subsystem:54315432Fixed a problem with store operations to reference objects. This change5433fixes a problem where a Store operation to an ArgX object that contained5434a5435reference to a field object did not complete the automatic dereference5436and5437then write to the actual field object. Instead, the object type of the5438field object was inadvertently changed to match the type of the source5439operand. The new behavior will actually write to the field object (buffer5440field or field unit), thus matching the correct ACPI-defined behavior.54415442Implemented support to allow the host to redefine individual OSL5443prototypes. This change enables the host to redefine OSL prototypes found5444in the acpiosxf.h file. This allows the host to implement OSL interfaces5445with a macro or inlined function. Further, it allows the host to add any5446additional required modifiers such as __iomem, __init, __exit, etc., as5447necessary on a per-interface basis. Enables maximum flexibility for the5448OSL interfaces. Lv Zheng.54495450Hardcoded the access width for the FADT-defined reset register. The ACPI5451specification requires the reset register width to be 8 bits. ACPICA now5452hardcodes the width to 8 and ignores the FADT width value. This provides5453compatibility with other ACPI implementations that have allowed BIOS code5454with bad register width values to go unnoticed. Matthew Garett, Bob5455Moore,5456Lv Zheng.54575458Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is5459used5460in the OSL header (acpiosxf). The change modifies the position of this5461macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid5462build issues if the OSL defines the implementation of the interface to be5463an inline stub function. Lv Zheng.54645465Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA5466initialization interfaces. This change adds a new macro for the main init5467and terminate external interfaces in order to support hosts that require5468additional or different processing for these functions. Changed from5469ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv5470Zheng, Bob Moore.54715472Cleaned up the memory allocation macros for configurability. In the5473common5474case, the ACPI_ALLOCATE and related macros now resolve directly to their5475respective AcpiOs* OSL interfaces. Two options:54761) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by5477default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.54782) For AcpiExec (and for debugging), the macros can optionally be5479resolved5480to the local ACPICA interfaces that track each allocation (local tracking5481is used to immediately detect memory leaks).5482Lv Zheng.54835484Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel5485to predefine this macro to either TRUE or FALSE during the system build.54865487Replaced __FUNCTION_ with __func__ in the gcc-specific header.54885489Example Code and Data Size: These are the sizes for the OS-independent5490acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5491debug version of the code includes the debug output trace mechanism and5492has a much larger code and data size.54935494Current Release:5495Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total5496Debug Version: 185.2K Code, 77.2K Data, 262.4K Total5497Previous Release:5498Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total5499Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5500550155022) iASL Compiler/Disassembler and Tools:55035504iASL: Implemented wildcard support for the -e option. This simplifies use5505when there are many SSDTs that must be included to resolve external5506method5507declarations. ACPICA BZ 1041. Example:5508iasl -e ssdt*.dat -d dsdt.dat55095510AcpiExec: Add history/line-editing for Unix/Linux systems. This change5511adds a portable module that implements full history and limited line5512editing for Unix and Linux systems. It does not use readline() due to5513portability issues. Instead it uses the POSIX termio interface to put the5514terminal in raw input mode so that the various special keys can be5515trapped5516(such as up/down-arrow for history support and left/right-arrow for line5517editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.55185519AcpiXtract: Add support to handle (ignore) "empty" lines containing only5520one or more spaces. This provides compatible with early or different5521versions of the AcpiDump utility. ACPICA BZ 1044.55225523AcpiDump: Do not ignore tables that contain only an ACPI table header.5524Apparently, some BIOSs create SSDTs that contain an ACPI table header but5525no other data. This change adds support to dump these tables. Any tables5526shorter than the length of an ACPI table header remain in error (an error5527message is emitted). Reported by Yi Li.55285529Debugger: Echo actual command along with the "unknown command" message.55305531----------------------------------------553223 August 2013. Summary of changes for version 20130823:553355341) ACPICA kernel-resident subsystem:55355536Implemented support for host-installed System Control Interrupt (SCI)5537handlers. Certain ACPI functionality requires the host to handle raw5538SCIs. For example, the "SCI Doorbell" that is defined for memory power5539state support requires the host device driver to handle SCIs to examine5540if the doorbell has been activated. Multiple SCI handlers can be5541installed to allow for future expansion. New external interfaces are5542AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for5543details. Lv Zheng, Bob Moore. ACPICA BZ 1032.55445545Operation region support: Never locally free the handler "context"5546pointer. This change removes some dangerous code that attempts to free5547the handler context pointer in some (rare) circumstances. The owner of5548the handler owns this pointer and the ACPICA code should never touch it.5549Although not seen to be an issue in any kernel, it did show up as a5550problem (fault) under AcpiExec. Also, set the internal storage field for5551the context pointer to zero when the region is deactivated, simply for5552sanity. David Box. ACPICA BZ 1039.55535554AcpiRead: On error, do not modify the return value target location. If an5555error happens in the middle of a split 32/32 64-bit I/O operation, do not5556modify the target of the return value pointer. Makes the code consistent5557with the rest of ACPICA. Bjorn Helgaas.55585559Example Code and Data Size: These are the sizes for the OS-independent5560acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5561debug version of the code includes the debug output trace mechanism and5562has a much larger code and data size.55635564Current Release:5565Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total5566Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5567Previous Release:5568Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total5569Debug Version: 185.4K Code, 77.1K Data, 262.5K Total5570557155722) iASL Compiler/Disassembler and Tools:55735574AcpiDump: Implemented several new features and fixed some problems:55751) Added support to dump the RSDP, RSDT, and XSDT tables.55762) Added support for multiple table instances (SSDT, UEFI).55773) Added option to dump "customized" (overridden) tables (-c).55784) Fixed a problem where some table filenames were improperly5579constructed.55805) Improved some error messages, removed some unnecessary messages.55815582iASL: Implemented additional support for disassembly of ACPI tables that5583contain invocations of external control methods. The -fe<file> option5584allows the import of a file that specifies the external methods along5585with the required number of arguments for each -- allowing for the5586correct disassembly of the table. This is a workaround for a limitation5587of AML code where the disassembler often cannot determine the number of5588arguments required for an external control method and generates incorrect5589ASL code. See the iASL reference for details. ACPICA BZ 1030.55905591Debugger: Implemented a new command (paths) that displays the full5592pathnames (namepaths) and object types of all objects in the namespace.5593This is an alternative to the namespace command.55945595Debugger: Implemented a new command (sci) that invokes the SCI dispatch5596mechanism and any installed handlers.55975598iASL: Fixed a possible segfault for "too many parent prefixes" condition.5599This can occur if there are too many parent prefixes in a namepath (for5600example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.56015602Application OSLs: Set the return value for the PCI read functions. These5603functions simply return AE_OK, but should set the return value to zero5604also. This change implements this. ACPICA BZ 1038.56055606Debugger: Prevent possible command line buffer overflow. Increase the5607size of a couple of the debugger line buffers, and ensure that overflow5608cannot happen. ACPICA BZ 1037.56095610iASL: Changed to abort immediately on serious errors during the parsing5611phase. Due to the nature of ASL, there is no point in attempting to5612compile these types of errors, and they typically end up causing a5613cascade of hundreds of errors which obscure the original problem.56145615----------------------------------------561625 July 2013. Summary of changes for version 20130725:561756181) ACPICA kernel-resident subsystem:56195620Fixed a problem with the DerefOf operator where references to FieldUnits5621and BufferFields incorrectly returned the parent object, not the actual5622value of the object. After this change, a dereference of a FieldUnit5623reference results in a read operation on the field to get the value, and5624likewise, the appropriate BufferField value is extracted from the target5625buffer.56265627Fixed a problem where the _WAK method could cause a fault under these5628circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK5629method returned no value. The problem is rarely seen because most kernels5630run ACPICA in slack mode.56315632For the DerefOf operator, a fatal error now results if an attempt is made5633to dereference a reference (created by the Index operator) to a NULL5634package element. Provides compatibility with other ACPI implementations,5635and this behavior will be added to a future version of the ACPI5636specification.56375638The ACPI Power Management Timer (defined in the FADT) is now optional.5639This provides compatibility with other ACPI implementations and will5640appear in the next version of the ACPI specification. If there is no PM5641Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of5642zero in the FADT indicates no PM timer.56435644Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This5645allows the host to globally enable/disable all vendor strings, all5646feature strings, or both. Intended to be primarily used for debugging5647purposes only. Lv Zheng.56485649Expose the collected _OSI data to the host via a global variable. This5650data tracks the highest level vendor ID that has been invoked by the BIOS5651so that the host (and potentially ACPICA itself) can change behaviors5652based upon the age of the BIOS.56535654Example Code and Data Size: These are the sizes for the OS-independent5655acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5656debug version of the code includes the debug output trace mechanism and5657has a much larger code and data size.56585659Current Release:5660Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total5661Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5662Previous Release:5663Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total5664Debug Version: 184.1K Code, 76.7K Data, 260.8K Total5665566656672) iASL Compiler/Disassembler and Tools:56685669iASL: Created the following enhancements for the -so option (create5670offset table):56711)Add offsets for the last nameseg in each namepath for every supported5672object type56732)Add support for Processor, Device, Thermal Zone, and Scope objects56743)Add the actual AML opcode for the parent object of every supported5675object type56764)Add support for the ZERO/ONE/ONES AML opcodes for integer objects56775678Disassembler: Emit all unresolved external symbols in a single block.5679These are external references to control methods that could not be5680resolved, and thus, the disassembler had to make a guess at the number of5681arguments to parse.56825683iASL: The argument to the -T option (create table template) is now5684optional. If not specified, the default table is a DSDT, typically the5685most common case.56865687----------------------------------------568826 June 2013. Summary of changes for version 20130626:568956901) ACPICA kernel-resident subsystem:56915692Fixed an issue with runtime repair of the _CST object. Null or invalid5693elements were not always removed properly. Lv Zheng.56945695Removed an arbitrary restriction of 256 GPEs per GPE block (such as the5696FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,5697the maximum number of GPEs is 1016. Use of multiple GPE block devices5698makes the system-wide number of GPEs essentially unlimited.56995700Example Code and Data Size: These are the sizes for the OS-independent5701acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5702debug version of the code includes the debug output trace mechanism and5703has a much larger code and data size.57045705Current Release:5706Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total5707Debug Version: 184.1K Code, 76.7K Data, 260.8K Total5708Previous Release:5709Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total5710Debug Version: 184.1K Code, 76.8K Data, 260.9K Total5711571257132) iASL Compiler/Disassembler and Tools:57145715Portable AcpiDump: Implemented full support for the Linux and FreeBSD5716hosts. Now supports Linux, FreeBSD, and Windows.57175718Disassembler: Added some missing types for the HEST and EINJ tables: "Set5719Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".57205721iASL/Preprocessor: Implemented full support for nested5722#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.57235724Disassembler: Expanded maximum output string length to 64K. Was 256 bytes5725max. The original purpose of this constraint was to limit the amount of5726debug output. However, the string function in question (UtPrintString) is5727now used for the disassembler also, where 256 bytes is insufficient.5728Reported by RehabMan@GitHub.57295730iASL/DataTables: Fixed some problems and issues with compilation of DMAR5731tables. ACPICA BZ 999. Lv Zheng.57325733iASL: Fixed a couple of error exit issues that could result in a "Could5734not delete <file>" message during ASL compilation.57355736AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though5737the actual signatures for these tables are "FACP" and "APIC",5738respectively.57395740AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI5741tables are allowed to have multiple instances.57425743----------------------------------------574417 May 2013. Summary of changes for version 20130517:574557461) ACPICA kernel-resident subsystem:57475748Fixed a regression introduced in version 20130328 for _INI methods. This5749change fixes a problem introduced in 20130328 where _INI methods are no5750longer executed properly because of a memory block that was not5751initialized correctly. ACPICA BZ 1016. Tomasz Nowicki5752<[email protected]>.57535754Fixed a possible problem with the new extended sleep registers in the5755ACPI57565.0 FADT. Do not use these registers (even if populated) unless the HW-5757reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ57581020. Lv Zheng.57595760Implemented return value repair code for _CST predefined objects: Sort5761the5762list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.57635764Implemented a debug-only option to disable loading of SSDTs from the5765RSDT/XSDT during ACPICA initialization. This can be useful for debugging5766ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in5767acglobal.h - ACPICA BZ 1005. Lv Zheng.57685769Fixed some issues in the ACPICA initialization and termination code:5770Tomasz Nowicki <[email protected]>57711) Clear events initialized flag upon event component termination. ACPICA5772BZ 1013.57732) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.57743) Delete global lock pending lock during termination. ACPICA BZ 1012.57754) Clear debug buffer global on termination to prevent possible multiple5776delete. ACPICA BZ 1010.57775778Standardized all switch() blocks across the entire source base. After5779many5780years, different formatting for switch() had crept in. This change makes5781the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.57825783Split some files to enhance ACPICA modularity and configurability:57841) Split buffer dump routines into utilities/utbuffer.c57852) Split internal error message routines into utilities/uterror.c57863) Split table print utilities into tables/tbprint.c57874) Split iASL command-line option processing into asloptions.c57885789Makefile enhancements:57901) Support for all new files above.57912) Abort make on errors from any subcomponent. Chao Guan.57923) Add build support for Apple Mac OS X. Liang Qi.57935794Example Code and Data Size: These are the sizes for the OS-independent5795acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5796debug version of the code includes the debug output trace mechanism and5797has a much larger code and data size.57985799Current Release:5800Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total5801Debug Version: 184.1K Code, 76.8K Data, 260.9K Total5802Previous Release:5803Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total5804Debug Version: 183.5K Code, 76.6K Data, 260.1K Total5805580658072) iASL Compiler/Disassembler and Tools:58085809New utility: Implemented an easily portable version of the acpidump5810utility to extract ACPI tables from the system (or a file) in an ASCII5811hex5812dump format. The top-level code implements the various command line5813options, file I/O, and table dump routines. To port to a new host, only5814three functions need to be implemented to get tables -- since this5815functionality is OS-dependent. See the tools/acpidump/apmain.c module and5816the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:58171) The Windows version obtains the ACPI tables from the Registry.58182) The Linux version is under development.58193) Other hosts - If an OS-dependent module is submitted, it will be5820distributed with ACPICA.58215822iASL: Fixed a regression for -D preprocessor option (define symbol). A5823restructuring/change to the initialization sequence caused this option to5824no longer work properly.58255826iASL: Implemented a mechanism to disable specific warnings and remarks.5827Adds a new command line option, "-vw <messageid> as well as "#pragma5828disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.58295830iASL: Fix for too-strict package object validation. The package object5831validation for return values from the predefined names is a bit too5832strict, it does not allow names references within the package (which will5833be resolved at runtime.) These types of references cannot be validated at5834compile time. This change ignores named references within package objects5835for names that return or define static packages.58365837Debugger: Fixed the 80-character command line limitation for the History5838command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.58395840iASL: Added control method and package support for the -so option5841(generates AML offset table for BIOS support.)58425843iASL: issue a remark if a non-serialized method creates named objects. If5844a thread blocks within the method for any reason, and another thread5845enters the method, the method will fail because an attempt will be made5846to5847create the same (named) object twice. In this case, issue a remark that5848the method should be marked serialized. NOTE: may become a warning later.5849ACPICA BZ 909.58505851----------------------------------------585218 April 2013. Summary of changes for version 20130418:585358541) ACPICA kernel-resident subsystem:58555856Fixed a possible buffer overrun during some rare but specific field unit5857read operations. This overrun can only happen if the DSDT version is 1 --5858meaning that all AML integers are 32 bits -- and the field length is5859between 33 and 55 bits long. During the read, an internal buffer object5860is5861created for the field unit because the field is larger than an integer5862(325863bits). However, in this case, the buffer will be incorrectly written5864beyond the end because the buffer length is less than the internal5865minimum5866of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes5867long, but a full 8 bytes will be written.58685869Updated the Embedded Controller "orphan" _REG method support. This refers5870to _REG methods under the EC device that have no corresponding operation5871region. This is allowed by the ACPI specification. This update removes a5872dependency on the existence an ECDT table. It will execute an orphan _REG5873method as long as the operation region handler for the EC is installed at5874the EC device node and not the namespace root. Rui Zhang (original5875update), Bob Moore (update/integrate).58765877Implemented run-time argument typechecking for all predefined ACPI names5878(_STA, _BIF, etc.) This change performs object typechecking on all5879incoming arguments for all predefined names executed via5880AcpiEvaluateObject. This ensures that ACPI-related device drivers are5881passing correct object types as well as the correct number of arguments5882(therefore identifying any issues immediately). Also, the ASL/namespace5883definition of the predefined name is checked against the ACPI5884specification for the proper argument count. Adds one new file,5885nsarguments.c58865887Changed an exception code for the ASL UnLoad() operator. Changed the5888exception code for the case where the input DdbHandle is invalid, from5889AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.58905891Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the5892global makefile. The use of this flag causes compiler errors on earlier5893versions of GCC, so it has been removed for compatibility.58945895Miscellaneous cleanup:58961) Removed some unused/obsolete macros58972) Fixed a possible memory leak in the _OSI support58983) Removed an unused variable in the predefined name support58994) Windows OSL: remove obsolete reference to a memory list field59005901Example Code and Data Size: These are the sizes for the OS-independent5902acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5903debug version of the code includes the debug output trace mechanism and5904has a much larger code and data size.59055906Current Release:5907Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total5908Debug Version: 183.0K Code, 76.0K Data, 259.0K Total5909Previous Release:5910Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total5911Debug Version: 183.5K Code, 76.6K Data, 260.1K Total5912591359142) iASL Compiler/Disassembler and Tools:59155916AcpiExec: Added installation of a handler for the SystemCMOS address5917space. This prevents control method abort if a method accesses this5918space.59195920AcpiExec: Added support for multiple EC devices, and now install EC5921operation region handler(s) at the actual EC device instead of the5922namespace root. This reflects the typical behavior of host operating5923systems.59245925AcpiExec: Updated to ensure that all operation region handlers are5926installed before the _REG methods are executed. This prevents a _REG5927method from aborting if it accesses an address space has no handler.5928AcpiExec installs a handler for every possible address space.59295930Debugger: Enhanced the "handlers" command to display non-root handlers.5931This change enhances the handlers command to display handlers associated5932with individual devices throughout the namespace, in addition to the5933currently supported display of handlers associated with the root5934namespace5935node.59365937ASL Test Suite: Several test suite errors have been identified and5938resolved, reducing the total error count during execution. Chao Guan.59395940----------------------------------------594128 March 2013. Summary of changes for version 20130328:594259431) ACPICA kernel-resident subsystem:59445945Fixed several possible race conditions with the internal object reference5946counting mechanism. Some of the external ACPICA interfaces update object5947reference counts without holding the interpreter or namespace lock. This5948change adds a spinlock to protect reference count updates on the internal5949ACPICA objects. Reported by and with assistance from Andriy Gapon5950([email protected]).59515952FADT support: Removed an extraneous warning for very large GPE register5953sets. This change removes a size mismatch warning if the legacy length5954field for a GPE register set is larger than the 64-bit GAS structure can5955accommodate. GPE register sets can be larger than the 255-bit width5956limitation of the GAS structure. Linn Crosetto ([email protected]).59575958_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error5959return from this interface. Handles a possible timeout case if5960ACPI_WAIT_FOREVER is modified by the host to be a value less than5961"forever". Jung-uk Kim.59625963Predefined name support: Add allowed/required argument type information5964to5965the master predefined info table. This change adds the infrastructure to5966enable typechecking on incoming arguments for all predefined5967methods/objects. It does not actually contain the code that will fully5968utilize this information, this is still under development. Also condenses5969some duplicate code for the predefined names into a new module,5970utilities/utpredef.c59715972Example Code and Data Size: These are the sizes for the OS-independent5973acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5974debug version of the code includes the debug output trace mechanism and5975has a much larger code and data size.59765977Previous Release:5978Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total5979Debug Version: 182.9K Code, 75.6K Data, 258.5K Total5980Current Release:5981Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total5982Debug Version: 183.0K Code, 76.0K Data, 259.0K Total5983598459852) iASL Compiler/Disassembler and Tools:59865987iASL: Implemented a new option to simplify the development of ACPI-5988related5989BIOS code. Adds support for a new "offset table" output file. The -so5990option will create a C table containing the AML table offsets of various5991named objects in the namespace so that BIOS code can modify them easily5992at5993boot time. This can simplify BIOS runtime code by eliminating expensive5994searches for "magic values", enhancing boot times and adding greater5995reliability. With assistance from Lee Hamel.59965997iASL: Allow additional predefined names to return zero-length packages.5998Now, all predefined names that are defined by the ACPI specification to5999return a "variable-length package of packages" are allowed to return a6000zero length top-level package. This allows the BIOS to tell the host that6001the requested feature is not supported, and supports existing BIOS/ASL6002code and practices.60036004iASL: Changed the "result not used" warning to an error. This is the case6005where an ASL operator is effectively a NOOP because the result of the6006operation is not stored anywhere. For example:6007Add (4, Local0)6008There is no target (missing 3rd argument), nor is the function return6009value used. This is potentially a very serious problem -- since the code6010was probably intended to do something, but for whatever reason, the value6011was not stored. Therefore, this issue has been upgraded from a warning to6012an error.60136014AcpiHelp: Added allowable/required argument types to the predefined names6015info display. This feature utilizes the recent update to the predefined6016names table (above).60176018----------------------------------------601914 February 2013. Summary of changes for version 20130214:602060211) ACPICA Kernel-resident Subsystem:60226023Fixed a possible regression on some hosts: Reinstated the safe return6024macros (return_ACPI_STATUS, etc.) that ensure that the argument is6025evaluated only once. Although these macros are not needed for the ACPICA6026code itself, they are often used by ACPI-related host device drivers6027where6028the safe feature may be necessary.60296030Fixed several issues related to the ACPI 5.0 reduced hardware support6031(SOC): Now ensure that if the platform declares itself as hardware-6032reduced6033via the FADT, the following functions become NOOPs (and always return6034AE_OK) because ACPI is always enabled by definition on these machines:6035AcpiEnable6036AcpiDisable6037AcpiHwGetMode6038AcpiHwSetMode60396040Dynamic Object Repair: Implemented additional runtime repairs for6041predefined name return values. Both of these repairs can simplify code in6042the related device drivers that invoke these methods:60431) For the _STR and _MLS names, automatically repair/convert an ASCII6044string to a Unicode buffer.60452) For the _CRS, _PRS, and _DMA names, return a resource descriptor with6046a6047lone end tag descriptor in the following cases: A Return(0) was executed,6048a null buffer was returned, or no object at all was returned (non-slack6049mode only). Adds a new file, nsconvert.c6050ACPICA BZ 998. Bob Moore, Lv Zheng.60516052Resource Manager: Added additional code to prevent possible infinite6053loops6054while traversing corrupted or ill-formed resource template buffers. Check6055for zero-length resource descriptors in all code that loops through6056resource templates (the length field is used to index through the6057template). This change also hardens the external AcpiWalkResources and6058AcpiWalkResourceBuffer interfaces.60596060Local Cache Manager: Enhanced the main data structure to eliminate an6061unnecessary mechanism to access the next object in the list. Actually6062provides a small performance enhancement for hosts that use the local6063ACPICA cache manager. Jung-uk Kim.60646065Example Code and Data Size: These are the sizes for the OS-independent6066acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6067debug version of the code includes the debug output trace mechanism and6068has a much larger code and data size.60696070Previous Release:6071Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total6072Debug Version: 182.3K Code, 75.0K Data, 257.3K Total6073Current Release:6074Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total6075Debug Version: 182.9K Code, 75.6K Data, 258.5K Total6076607760782) iASL Compiler/Disassembler and Tools:60796080iASL/Disassembler: Fixed several issues with the definition of the ACPI60815.0 RASF table (RAS Feature Table). This change incorporates late changes6082that were made to the ACPI 5.0 specification.60836084iASL/Disassembler: Added full support for the following new ACPI tables:60851) The MTMR table (MID Timer Table)60862) The VRTC table (Virtual Real Time Clock Table).6087Includes header file, disassembler, table compiler, and template support6088for both tables.60896090iASL: Implemented compile-time validation of package objects returned by6091predefined names. This new feature validates static package objects6092returned by the various predefined names defined to return packages. Both6093object types and package lengths are validated, for both parent packages6094and sub-packages, if any. The code is similar in structure and behavior6095to6096the runtime repair mechanism within the AML interpreter and uses the6097existing predefined name information table. Adds a new file, aslprepkg.c.6098ACPICA BZ 938.60996100iASL: Implemented auto-detection of binary ACPI tables for disassembly.6101This feature detects a binary file with a valid ACPI table header and6102invokes the disassembler automatically. Eliminates the need to6103specifically invoke the disassembler with the -d option. ACPICA BZ 862.61046105iASL/Disassembler: Added several warnings for the case where there are6106unresolved control methods during the disassembly. This can potentially6107cause errors when the output file is compiled, because the disassembler6108assumes zero method arguments in these cases (it cannot determine the6109actual number of arguments without resolution/definition of the method).61106111Debugger: Added support to display all resources with a single command.6112Invocation of the resources command with no arguments will now display6113all6114resources within the current namespace.61156116AcpiHelp: Added descriptive text for each ACPICA exception code displayed6117via the -e option.61186119----------------------------------------612017 January 2013. Summary of changes for version 20130117:612161221) ACPICA Kernel-resident Subsystem:61236124Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to6125return either 1 or 2 integers. Although the ACPI spec defines the \_Sx6126objects to return a package containing one integer, most BIOS code6127returns6128two integers and the previous code reflects that. However, we also need6129to6130support BIOS code that actually implements to the ACPI spec, and this6131change reflects this.61326133Fixed two issues with the ACPI_DEBUG_PRINT macros:61341) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for6135C compilers that require this support.61362) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since6137ACPI_DEBUG is already used by many of the various hosts.61386139Updated all ACPICA copyrights and signons to 2013. Added the 20136140copyright to all module headers and signons, including the standard Linux6141header. This affects virtually every file in the ACPICA core subsystem,6142iASL compiler, all ACPICA utilities, and the test suites.61436144Example Code and Data Size: These are the sizes for the OS-independent6145acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6146debug version of the code includes the debug output trace mechanism and6147has a much larger code and data size.61486149Previous Release:6150Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total6151Debug Version: 182.2K Code, 74.9K Data, 257.1K Total6152Current Release:6153Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total6154Debug Version: 182.3K Code, 75.0K Data, 257.3K Total6155615661572) iASL Compiler/Disassembler and Tools:61586159Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and6160prevent a possible fault on some hosts. Some C libraries modify the arg6161pointer parameter to vfprintf making it difficult to call it twice in the6162AcpiOsVprintf function. Use a local buffer to workaround this issue. This6163does not affect the Windows OSL since the Win C library does not modify6164the arg pointer. Chao Guan, Bob Moore.61656166iASL: Fixed a possible infinite loop when the maximum error count is6167reached. If an output file other than the .AML file is specified (such as6168a listing file), and the maximum number of errors is reached, do not6169attempt to flush data to the output file(s) as the compiler is aborting.6170This can cause an infinite loop as the max error count code essentially6171keeps calling itself.61726173iASL/Disassembler: Added an option (-in) to ignore NOOP6174opcodes/operators.6175Implemented for both the compiler and the disassembler. Often, the NOOP6176opcode is used as padding for packages that are changed dynamically by6177the6178BIOS. When disassembled and recompiled, these NOOPs will cause syntax6179errors. This option causes the disassembler to ignore all NOOP opcodes6180(0xA3), and it also causes the compiler to ignore all ASL source code6181NOOP6182statements as well.61836184Debugger: Enhanced the Sleep command to execute all sleep states. This6185change allows Sleep to be invoked with no arguments and causes the6186debugger to execute all of the sleep states, 0-5, automatically.61876188----------------------------------------618920 December 2012. Summary of changes for version 20121220:619061911) ACPICA Kernel-resident Subsystem:61926193Implemented a new interface, AcpiWalkResourceBuffer. This interface is an6194alternate entry point for AcpiWalkResources and improves the usability of6195the resource manager by accepting as input a buffer containing the output6196of either a _CRS, _PRS, or _AEI method. The key functionality is that the6197input buffer is not deleted by this interface so that it can be used by6198the host later. See the ACPICA reference for details.61996200Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table6201(DSDT version < 2). The constant will be truncated and this warning6202reflects that behavior.62036204Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,6205ExtendedInterrupt, and GpioInt descriptors. This change adds support to6206both get and set the new wake bit in these descriptors, separately from6207the existing share bit. Reported by Aaron Lu.62086209Interpreter: Fix Store() when an implicit conversion is not possible. For6210example, in the cases such as a store of a string to an existing package6211object, implement the store as a CopyObject(). This is a small departure6212from the ACPI specification which states that the control method should6213be6214aborted in this case. However, the ASLTS suite depends on this behavior.62156216Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT6217macros: check if debug output is currently enabled as soon as possible to6218minimize performance impact if debug is in fact not enabled.62196220Source code restructuring: Cleanup to improve modularity. The following6221new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,6222psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.6223Associated makefiles and project files have been updated.62246225Changed an exception code for LoadTable operator. For the case where one6226of the input strings is too long, change the returned exception code from6227AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.62286229Fixed a possible memory leak in dispatcher error path. On error, delete6230the mutex object created during method mutex creation. Reported by6231[email protected].62326233Example Code and Data Size: These are the sizes for the OS-independent6234acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6235debug version of the code includes the debug output trace mechanism and6236has a much larger code and data size.62376238Previous Release:6239Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total6240Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6241Current Release:6242Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total6243Debug Version: 182.2K Code, 74.9K Data, 257.1K Total6244624562462) iASL Compiler/Disassembler and Tools:62476248iASL: Disallow a method call as argument to the ObjectType ASL operator.6249This change tracks an errata to the ACPI 5.0 document. The AML grammar6250will not allow the interpreter to differentiate between a method and a6251method invocation when these are used as an argument to the ObjectType6252operator. The ACPI specification change is to disallow a method6253invocation6254(UserTerm) for the ObjectType operator.62556256Finish support for the TPM2 and CSRT tables in the headers, table6257compiler, and disassembler.62586259Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout6260always expires immediately if the semaphore is not available. The6261original6262code was using a relative-time timeout, but sem_timedwait requires the6263use6264of an absolute time.62656266iASL: Added a remark if the Timer() operator is used within a 32-bit6267table. This operator returns a 64-bit time value that will be truncated6268within a 32-bit table.62696270iASL Source code restructuring: Cleanup to improve modularity. The6271following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,6272aslmethod.c, and aslfileio.c. Associated makefiles and project files have6273been updated.627462756276----------------------------------------627714 November 2012. Summary of changes for version 20121114:627862791) ACPICA Kernel-resident Subsystem:62806281Implemented a performance enhancement for ACPI/AML Package objects. This6282change greatly increases the performance of Package objects within the6283interpreter. It changes the processing of reference counts for packages6284by6285optimizing for the most common case where the package sub-objects are6286either Integers, Strings, or Buffers. Increases the overall performance6287of6288the ASLTS test suite by 1.5X (Increases the Slack Mode performance by62892X.)6290Chao Guan. ACPICA BZ 943.62916292Implemented and deployed common macros to extract flag bits from resource6293descriptors. Improves readability and maintainability of the code. Fixes6294a6295problem with the UART serial bus descriptor for the number of data bits6296flags (was incorrectly 2 bits, should be 3).62976298Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation6299of the macros and changed the SETx macros to the style of (destination,6300source). Also added ACPI_CASTx companion macros. Lv Zheng.63016302Example Code and Data Size: These are the sizes for the OS-independent6303acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6304debug version of the code includes the debug output trace mechanism and6305has a much larger code and data size.63066307Previous Release:6308Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total6309Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6310Current Release:6311Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total6312Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6313631463152) iASL Compiler/Disassembler and Tools:63166317Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change6318adds the ShareAndWake and ExclusiveAndWake flags which were added to the6319Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.63206321Disassembler: Fixed a problem with external declaration generation. Fixes6322a problem where an incorrect pathname could be generated for an external6323declaration if the original reference to the object includes leading6324carats (^). ACPICA BZ 984.63256326Debugger: Completed a major update for the Disassemble<method> command.6327This command was out-of-date and did not properly disassemble control6328methods that had any reasonable complexity. This fix brings the command6329up6330to the same level as the rest of the disassembler. Adds one new file,6331dmdeferred.c, which is existing code that is now common with the main6332disassembler and the debugger disassemble command. ACPICA MZ 978.63336334iASL: Moved the parser entry prototype to avoid a duplicate declaration.6335Newer versions of Bison emit this prototype, so moved the prototype out6336of6337the iASL header to where it is actually used in order to avoid a6338duplicate6339declaration.63406341iASL/Tools: Standardized use of the stream I/O functions:63421) Ensure check for I/O error after every fopen/fread/fwrite63432) Ensure proper order of size/count arguments for fread/fwrite63443) Use test of (Actual != Requested) after all fwrite, and most fread63454) Standardize I/O error messages6346Improves reliability and maintainability of the code. Bob Moore, Lv6347Zheng.6348ACPICA BZ 981.63496350Disassembler: Prevent duplicate External() statements. During generation6351of external statements, detect similar pathnames that are actually6352duplicates such as these:6353External (\ABCD)6354External (ABCD)6355Remove all leading '\' characters from pathnames during the external6356statement generation so that duplicates will be detected and tossed.6357ACPICA BZ 985.63586359Tools: Replace low-level I/O with stream I/O functions. Replace6360open/read/write/close with the stream I/O equivalents6361fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob6362Moore.63636364AcpiBin: Fix for the dump-to-hex function. Now correctly output the table6365name header so that AcpiXtract recognizes the output file/table.63666367iASL: Remove obsolete -2 option flag. Originally intended to force the6368compiler/disassembler into an ACPI 2.0 mode, this was never implemented6369and the entire concept is now obsolete.63706371----------------------------------------637218 October 2012. Summary of changes for version 20121018:6373637463751) ACPICA Kernel-resident Subsystem:63766377Updated support for the ACPI 5.0 MPST table. Fixes some problems6378introduced by late changes to the table as it was added to the ACPI 5.06379specification. Includes header, disassembler, and data table compiler6380support as well as a new version of the MPST template.63816382AcpiGetObjectInfo: Enhanced the device object support to include the ACPI63835.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID6384methods: _HID, _CID, and _UID.63856386Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed6387ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent6388name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)6389names for their various drivers. Affects the AcpiGetObjectInfo external6390interface, and other internal interfaces as well.63916392Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.6393This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME6394on machines that support non-aligned transfers. Optimizes for this case6395rather than using a strncpy. With assistance from Zheng Lv.63966397Resource Manager: Small fix for buffer size calculation. Fixed a one byte6398error in the output buffer calculation. Feng Tang. ACPICA BZ 849.63996400Added a new debug print message for AML mutex objects that are force-6401released. At control method termination, any currently acquired mutex6402objects are force-released. Adds a new debug-only message for each one6403that is released.64046405Audited/updated all ACPICA return macros and the function debug depth6406counter: 1) Ensure that all functions that use the various TRACE macros6407also use the appropriate ACPICA return macros. 2) Ensure that all normal6408return statements surround the return expression (value) with parens to6409ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,6410Zheng Lv, Bob Moore. ACPICA Bugzilla 972.64116412Global source code changes/maintenance: All extra lines at the start and6413end of each source file have been removed for consistency. Also, within6414comments, all new sentences start with a single space instead of a double6415space, again for consistency across the code base.64166417Example Code and Data Size: These are the sizes for the OS-independent6418acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6419debug version of the code includes the debug output trace mechanism and6420has a much larger code and data size.64216422Previous Release:6423Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total6424Debug Version: 175.0K Code, 74.4K Data, 249.4K Total6425Current Release:6426Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total6427Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6428642964302) iASL Compiler/Disassembler and Tools:64316432AcpiExec: Improved the algorithm used for memory leak/corruption6433detection. Added some intelligence to the code that maintains the global6434list of allocated memory. The list is now ordered by allocated memory6435address, significantly improving performance. When running AcpiExec on6436the ASLTS test suite, speed improvements of 3X to 5X are seen, depending6437on the platform and/or the environment. Note, this performance6438enhancement affects the AcpiExec utility only, not the kernel-resident6439ACPICA code.64406441Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For6442the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix6443incorrect table offset reported for invalid opcodes. Report the original644432-bit value for bad ACPI_NAMEs (as well as the repaired name.)64456446Disassembler: Enhanced the -vt option to emit the binary table data in6447hex format to assist with debugging.64486449Fixed a potential filename buffer overflow in osunixdir.c. Increased the6450size of file structure. Colin Ian King.64516452----------------------------------------645313 September 2012. Summary of changes for version 20120913:6454645564561) ACPICA Kernel-resident Subsystem:64576458ACPI 5.0: Added two new notify types for the Hardware Error Notification6459Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)6460and6461MCE(6).64626463Table Manager: Merged/removed duplicate code in the root table resize6464functions. One function is external, the other is internal. Lv Zheng,6465ACPICA6466BZ 846.64676468Makefiles: Completely removed the obsolete "Linux" makefiles under6469acpica/generate/linux. These makefiles are obsolete and have been6470replaced6471by6472the generic unix makefiles under acpica/generate/unix.64736474Makefiles: Ensure that binary files always copied properly. Minor rule6475change6476to ensure that the final binary output files are always copied up to the6477appropriate binary directory (bin32 or bin64.)64786479Example Code and Data Size: These are the sizes for the OS-independent6480acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6481debug6482version of the code includes the debug output trace mechanism and has a6483much6484larger code and data size.64856486Previous Release:6487Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total6488Debug Version: 175.7K Code, 74.8K Data, 250.5K Total6489Current Release:6490Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total6491Debug Version: 175.0K Code, 74.4K Data, 249.4K Total6492649364942) iASL Compiler/Disassembler and Tools:64956496Disassembler: Fixed a possible fault during the disassembly of resource6497descriptors when a second parse is required because of the invocation of6498external control methods within the table. With assistance from6499[email protected]. ACPICA BZ 976.65006501iASL: Fixed a namepath optimization problem. An error can occur if the6502parse6503node that contains the namepath to be optimized does not have a parent6504node6505that is a named object. This change fixes the problem.65066507iASL: Fixed a regression where the AML file is not deleted on errors. The6508AML6509output file should be deleted if there are any errors during the6510compiler.6511The6512only exception is if the -f (force output) option is used. ACPICA BZ 974.65136514iASL: Added a feature to automatically increase internal line buffer6515sizes.6516Via realloc(), automatically increase the internal line buffer sizes as6517necessary to support very long source code lines. The current version of6518the6519preprocessor requires a buffer long enough to contain full source code6520lines.6521This change increases the line buffer(s) if the input lines go beyond the6522current buffer size. This eliminates errors that occurred when a source6523code6524line was longer than the buffer.65256526iASL: Fixed a problem with constant folding in method declarations. The6527SyncLevel term is a ByteConstExpr, and incorrect code would be generated6528if a6529Type3 opcode was used.65306531Debugger: Improved command help support. For incorrect argument count,6532display6533full help for the command. For help command itself, allow an argument to6534specify a command.65356536Test Suites: Several bug fixes for the ASLTS suite reduces the number of6537errors during execution of the suite. Guan Chao.65386539----------------------------------------654016 August 2012. Summary of changes for version 20120816:6541654265431) ACPICA Kernel-resident Subsystem:65446545Removed all use of the deprecated _GTS and _BFS predefined methods. The6546_GTS6547(Going To Sleep) and _BFS (Back From Sleep) methods are essentially6548deprecated and will probably be removed from the ACPI specification.6549Windows6550does not invoke them, and reportedly never will. The final nail in the6551coffin6552is that the ACPI specification states that these methods must be run with6553interrupts off, which is not going to happen in a kernel interpreter.6554Note:6555Linux has removed all use of the methods also. It was discovered that6556invoking these functions caused failures on some machines, probably6557because6558they were never tested since Windows does not call them. Affects two6559external6560interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.6561ACPICA BZ 969.65626563Implemented support for complex bit-packed buffers returned from the _PLD6564(Physical Location of Device) predefined method. Adds a new external6565interface, AcpiDecodePldBuffer that parses the buffer into a more usable6566C6567structure. Note: C Bitfields cannot be used for this type of predefined6568structure since the memory layout of individual bitfields is not defined6569by6570the C language. In addition, there are endian concerns where a compiler6571will6572change the bitfield ordering based on the machine type. The new ACPICA6573interface eliminates these issues, and should be called after _PLD is6574executed. ACPICA BZ 954.65756576Implemented a change to allow a scope change to root (via "Scope (\)")6577during6578execution of module-level ASL code (code that is executed at table load6579time.) Lin Ming.65806581Added the Windows8/Server2012 string for the _OSI method. This change6582adds6583a6584new _OSI string, "Windows 2012" for both Windows 8 and Windows Server65852012.65866587Added header support for the new ACPI tables DBG2 (Debug Port Table Type65882)6589and CSRT (Core System Resource Table).65906591Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined6592names. This simplifies access to the buffers returned by these predefined6593names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.65946595GPE support: Removed an extraneous parameter from the various low-level6596internal GPE functions. Tang Feng.65976598Removed the linux makefiles from the unix packages. The generate/linux6599makefiles are obsolete and have been removed from the unix tarball6600release6601packages. The replacement makefiles are under generate/unix, and there is6602a6603top-level makefile under the main acpica directory. ACPICA BZ 967, 912.66046605Updates for Unix makefiles:66061) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.66072) Update linker flags (move to end of command line) for AcpiExec6608utility.6609Guan Chao.66106611Split ACPICA initialization functions to new file, utxfinit.c. Split from6612utxface.c to improve modularity and reduce file size.66136614Example Code and Data Size: These are the sizes for the OS-independent6615acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6616debug version of the code includes the debug output trace mechanism and6617has a6618much larger code and data size.66196620Previous Release:6621Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total6622Debug Version: 173.7K Code, 74.0K Data, 247.7K Total6623Current Release:6624Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total6625Debug Version: 175.7K Code, 74.8K Data, 250.5K Total6626662766282) iASL Compiler/Disassembler and Tools:66296630iASL: Fixed a problem with constant folding for fixed-length constant6631expressions. The constant-folding code was not being invoked for constant6632expressions that allow the use of type 3/4/5 opcodes to generate6633constants6634for expressions such as ByteConstExpr, WordConstExpr, etc. This could6635result6636in the generation of invalid AML bytecode. ACPICA BZ 970.66376638iASL: Fixed a generation issue on newer versions of Bison. Newer versions6639apparently automatically emit some of the necessary externals. This6640change6641handles these versions in order to eliminate generation warnings.66426643Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.66446645Disassembler: Add support to decode _PLD buffers. The decoded buffer6646appears6647within comments in the output file.66486649Debugger: Fixed a regression with the "Threads" command where6650AE_BAD_PARAMETER was always returned.66516652----------------------------------------665311 July 2012. Summary of changes for version 20120711:665466551) ACPICA Kernel-resident Subsystem:66566657Fixed a possible fault in the return package object repair code. Fixes a6658problem that can occur when a lone package object is wrapped with an6659outer6660package object in order to force conformance to the ACPI specification.6661Can6662affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,6663_DLM,6664_CSD, _PSD, _TSD.66656666Removed code to disable/enable bus master arbitration (ARB_DIS bit in the6667PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the6668ARB_DIS bit must be implemented in the host-dependent C3 processor power6669state6670support. Note, ARB_DIS is obsolete and only applies to older chipsets,6671both6672Intel and other vendors. (for Intel: ICH4-M and earlier)66736674This change removes the code to disable/enable bus master arbitration6675during6676suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register6677causes6678resume problems on some machines. The change has been in use for over6679seven6680years within Linux.66816682Implemented two new external interfaces to support host-directed dynamic6683ACPI6684table load and unload. They are intended to simplify the host6685implementation6686of hot-plug support:6687AcpiLoadTable: Load an SSDT from a buffer into the namespace.6688AcpiUnloadParentTable: Unload an SSDT via a named object owned by the6689table.6690See the ACPICA reference for additional details. Adds one new file,6691components/tables/tbxfload.c66926693Implemented and deployed two new interfaces for errors and warnings that6694are6695known to be caused by BIOS/firmware issues:6696AcpiBiosError: Prints "ACPI Firmware Error" message.6697AcpiBiosWarning: Prints "ACPI Firmware Warning" message.6698Deployed these new interfaces in the ACPICA Table Manager code for ACPI6699table6700and FADT errors. Additional deployment to be completed as appropriate in6701the6702future. The associated conditional macros are ACPI_BIOS_ERROR and6703ACPI_BIOS_WARNING. See the ACPICA reference for additional details.6704ACPICA6705BZ6706843.67076708Implicit notify support: ensure that no memory allocation occurs within a6709critical region. This fix moves a memory allocation outside of the time6710that a6711spinlock is held. Fixes issues on systems that do not allow this6712behavior.6713Jung-uk Kim.67146715Split exception code utilities and tables into a new file,6716utilities/utexcep.c67176718Example Code and Data Size: These are the sizes for the OS-independent6719acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6720debug6721version of the code includes the debug output trace mechanism and has a6722much6723larger code and data size.67246725Previous Release:6726Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total6727Debug Version: 172.9K Code, 73.6K Data, 246.5K Total6728Current Release:6729Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total6730Debug Version: 173.7K Code, 74.0K Data, 247.7K Total6731673267332) iASL Compiler/Disassembler and Tools:67346735iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead6736of67370. Jung-uk Kim.67386739Debugger: Enhanced the "tables" command to emit additional information6740about6741the current set of ACPI tables, including the owner ID and flags decode.67426743Debugger: Reimplemented the "unload" command to use the new6744AcpiUnloadParentTable external interface. This command was disable6745previously6746due to need for an unload interface.67476748AcpiHelp: Added a new option to decode ACPICA exception codes. The -e6749option6750will decode 16-bit hex status codes (ACPI_STATUS) to name strings.67516752----------------------------------------675320 June 2012. Summary of changes for version 20120620:6754675567561) ACPICA Kernel-resident Subsystem:67576758Implemented support to expand the "implicit notify" feature to allow6759multiple6760devices to be notified by a single GPE. This feature automatically6761generates a6762runtime device notification in the absence of a BIOS-provided GPE control6763method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit6764notify is6765provided by ACPICA for Windows compatibility, and is a workaround for6766BIOS6767AML6768code errors. See the description of the AcpiSetupGpeForWake interface in6769the6770APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.67716772Changed some comments and internal function names to simplify and ensure6773correctness of the Linux code translation. No functional changes.67746775Example Code and Data Size: These are the sizes for the OS-independent6776acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6777debug6778version of the code includes the debug output trace mechanism and has a6779much6780larger code and data size.67816782Previous Release:6783Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total6784Debug Version: 172.7K Code, 73.6K Data, 246.3K Total6785Current Release:6786Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total6787Debug Version: 172.9K Code, 73.6K Data, 246.5K Total6788678967902) iASL Compiler/Disassembler and Tools:67916792Disassembler: Added support to emit short, commented descriptions for the6793ACPI6794predefined names in order to improve the readability of the disassembled6795output. ACPICA BZ 959. Changes include:67961) Emit descriptions for all standard predefined names (_INI, _STA,6797_PRW,6798etc.)67992) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)68003) Emit descriptions for the resource descriptor names (_MIN, _LEN,6801etc.)68026803AcpiSrc: Fixed several long-standing Linux code translation issues.6804Argument6805descriptions in function headers are now translated properly to lower6806case6807and6808underscores. ACPICA BZ 961. Also fixes translation problems such as6809these:6810(old -> new)6811i_aSL -> iASL681200-7_f -> 00-7F681316_k -> 16K6814local_fADT -> local_FADT6815execute_oSI -> execute_OSI68166817iASL: Fixed a problem where null bytes were inadvertently emitted into6818some6819listing files.68206821iASL: Added the existing debug options to the standard help screen. There6822are6823no longer two different help screens. ACPICA BZ 957.68246825AcpiHelp: Fixed some typos in the various predefined name descriptions.6826Also6827expand some of the descriptions where appropriate.68286829iASL: Fixed the -ot option (display compile times/statistics). Was not6830working6831properly for standard output; only worked for the debug file case.68326833----------------------------------------683418 May 2012. Summary of changes for version 20120518:6835683668371) ACPICA Core Subsystem:68386839Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is6840defined6841to block until asynchronous events such as notifies and GPEs have6842completed.6843Within ACPICA, it is only called before a notify or GPE handler is6844removed/uninstalled. It also may be useful for the host OS within related6845drivers such as the Embedded Controller driver. See the ACPICA reference6846for6847additional information. ACPICA BZ 868.68486849ACPI Tables: Added a new error message for a possible overflow failure6850during6851the conversion of FADT 32-bit legacy register addresses to internal6852common685364-6854bit GAS structure representation. The GAS has a one-byte "bit length"6855field,6856thus limiting the register length to 255 bits. ACPICA BZ 953.68576858Example Code and Data Size: These are the sizes for the OS-independent6859acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6860debug6861version of the code includes the debug output trace mechanism and has a6862much6863larger code and data size.68646865Previous Release:6866Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total6867Debug Version: 172.6K Code, 73.4K Data, 246.0K Total6868Current Release:6869Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total6870Debug Version: 172.7K Code, 73.6K Data, 246.3K Total6871687268732) iASL Compiler/Disassembler and Tools:68746875iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL6876macro.6877This keyword was added late in the ACPI 5.0 release cycle and was not6878implemented until now.68796880Disassembler: Added support for Operation Region externals. Adds missing6881support for operation regions that are defined in another table, and6882referenced locally via a Field or BankField ASL operator. Now generates6883the6884correct External statement.68856886Disassembler: Several additional fixes for the External() statement6887generation6888related to some ASL operators. Also, order the External() statements6889alphabetically in the disassembler output. Fixes the External()6890generation6891for6892the Create* field, Alias, and Scope operators:68931) Create* buffer field operators - fix type mismatch warning on6894disassembly68952) Alias - implement missing External support68963) Scope - fix to make sure all necessary externals are emitted.68976898iASL: Improved pathname support. For include files, merge the prefix6899pathname6900with the file pathname and eliminate unnecessary components. Convert6901backslashes in all pathnames to forward slashes, for readability. Include6902file6903pathname changes affect both #include and Include() type operators.69046905iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the6906end6907of a valid line by inserting a newline and then returning the EOF during6908the6909next call to GetNextLine. Prevents the line from being ignored due to EOF6910condition.69116912iASL: Implemented some changes to enhance the IDE support (-vi option.)6913Error6914and Warning messages are now correctly recognized for both the source6915code6916browser and the global error and warning counts.69176918----------------------------------------691920 April 2012. Summary of changes for version 20120420:6920692169221) ACPICA Core Subsystem:69236924Implemented support for multiple notify handlers. This change adds6925support6926to6927allow multiple system and device notify handlers on Device, Thermal Zone,6928and6929Processor objects. This can simplify the host OS notification6930implementation.6931Also re-worked and restructured the entire notify support code to6932simplify6933handler installation, handler removal, notify event queuing, and notify6934dispatch to handler(s). Note: there can still only be two global notify6935handlers - one for system notifies and one for device notifies. There are6936no6937changes to the existing handler install/remove interfaces. Lin Ming, Bob6938Moore, Rafael Wysocki.69396940Fixed a regression in the package repair code where the object reference6941count was calculated incorrectly. Regression was introduced in the commit6942"Support to add Package wrappers".69436944Fixed a couple possible memory leaks in the AML parser, in the error6945recovery6946path. Jesper Juhl, Lin Ming.69476948Example Code and Data Size: These are the sizes for the OS-independent6949acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6950debug version of the code includes the debug output trace mechanism and6951has a6952much larger code and data size.69536954Previous Release:6955Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total6956Debug Version: 172.5K Code, 73.2K Data, 245.7K Total6957Current Release:6958Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total6959Debug Version: 172.6K Code, 73.4K Data, 246.0K Total6960696169622) iASL Compiler/Disassembler and Tools:69636964iASL: Fixed a problem with the resource descriptor support where the6965length6966of the StartDependentFn and StartDependentFnNoPrio descriptors were not6967included in cumulative descriptor offset, resulting in incorrect values6968for6969resource tags within resource descriptors appearing after a6970StartDependent*6971descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.69726973iASL and Preprocessor: Implemented full support for the #line directive6974to6975correctly track original source file line numbers through the .i6976preprocessor6977output file - for error and warning messages.69786979iASL: Expand the allowable byte constants for address space IDs.6980Previously,6981the allowable range was 0x80-0xFF (user-defined spaces), now the range is69820x0A-0xFF to allow for custom and new IDs without changing the compiler.69836984iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.69856986iASL: Add option to completely disable the preprocessor (-Pn).69876988iASL: Now emit all error/warning messages to standard error (stderr) by6989default (instead of the previous stdout).69906991ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().6992Update6993for resource descriptor offset fix above. Update/cleanup error output6994routines. Enable and send iASL errors/warnings to an error logfile6995(error.txt). Send all other iASL output to a logfile (compiler.txt).6996Fixed6997several extraneous "unrecognized operator" messages.69986999----------------------------------------700020 March 2012. Summary of changes for version 20120320:7001700270031) ACPICA Core Subsystem:70047005Enhanced the sleep/wake interfaces to optionally execute the _GTS method7006(Going To Sleep) and the _BFS method (Back From Sleep). Windows7007apparently7008does not execute these methods, and therefore these methods are often7009untested. It has been seen on some systems where the execution of these7010methods causes errors and also prevents the machine from entering S5. It7011is7012therefore suggested that host operating systems do not execute these7013methods7014by default. In the future, perhaps these methods can be optionally7015executed7016based on the age of the system and/or what is the newest version of7017Windows7018that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState7019and7020AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin7021Ming.70227023Fixed a problem where the length of the local/common FADT was set too7024early.7025The local FADT table length cannot be set to the common length until the7026original length has been examined. There is code that checks the table7027length7028and sets various fields appropriately. This can affect older machines7029with7030early FADT versions. For example, this can cause inadvertent writes to7031the7032CST_CNT register. Julian Anastasov.70337034Fixed a mapping issue related to a physical table override. Use the7035deferred7036mapping mechanism for tables loaded via the physical override OSL7037interface.7038This allows for early mapping before the virtual memory manager is7039available.7040Thomas Renninger, Bob Moore.70417042Enhanced the automatic return-object repair code: Repair a common problem7043with7044predefined methods that are defined to return a variable-length Package7045of7046sub-objects. If there is only one sub-object, some BIOS ASL code7047mistakenly7048simply returns the single object instead of a Package with one sub-7049object.7050This new support will repair this error by wrapping a Package object7051around7052the original object, creating the correct and expected Package with one7053sub-7054object. Names that can be repaired in this manner include: _ALR, _CSD,7055_HPX,7056_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ7057939.70587059Changed the exception code returned for invalid ACPI paths passed as7060parameters to external interfaces such as AcpiEvaluateObject. Was7061AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.70627063Example Code and Data Size: These are the sizes for the OS-independent7064acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7065debug7066version of the code includes the debug output trace mechanism and has a7067much7068larger code and data size.70697070Previous Release:7071Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total7072Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7073Current Release:7074Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total7075Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7076707770782) iASL Compiler/Disassembler and Tools:70797080iASL: Added the infrastructure and initial implementation of a integrated7081C-7082like preprocessor. This will simplify BIOS development process by7083eliminating7084the need for a separate preprocessing step during builds. On Windows, it7085also7086eliminates the need to install a separate C compiler. ACPICA BZ 761. Some7087features including full #define() macro support are still under7088development.7089These preprocessor directives are supported:7090#define7091#elif7092#else7093#endif7094#error7095#if7096#ifdef7097#ifndef7098#include7099#pragma message7100#undef7101#warning7102In addition, these new command line options are supported:7103-D <symbol> Define symbol for preprocessor use7104-li Create preprocessed output file (*.i)7105-P Preprocess only and create preprocessor output file (*.i)71067107Table Compiler: Fixed a problem where the equals operator within an7108expression7109did not work properly.71107111Updated iASL to use the current versions of Bison/Flex. Updated the7112Windows7113project file to invoke these tools from the standard location. ACPICA BZ7114904.7115Versions supported:7116Flex for Windows: V2.5.47117Bison for Windows: V2.4.171187119----------------------------------------712015 February 2012. Summary of changes for version 20120215:7121712271231) ACPICA Core Subsystem:71247125There have been some major changes to the sleep/wake support code, as7126described below (a - e).71277128a) The AcpiLeaveSleepState has been split into two interfaces, similar to7129AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is7130AcpiLeaveSleepStatePrep. This allows the host to perform actions between7131the7132time the _BFS method is called and the _WAK method is called. NOTE: all7133hosts7134must update their wake/resume code or else sleep/wake will not work7135properly.7136Rafael Wysocki.71377138b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the7139_WAK7140method. Some machines require that the GPEs are enabled before the _WAK7141method7142is executed. Thomas Renninger.71437144c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)7145bit.7146Some BIOS code assumes that WAK_STS will be cleared on resume and use it7147to7148determine whether the system is rebooting or resuming. Matthew Garrett.71497150d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From7151Sleep) to7152match the ACPI specification requirement. Rafael Wysocki.71537154e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl7155registers within the V5 FADT. This support adds two new files:7156hardware/hwesleep.c implements the support for the new registers. Moved7157all7158sleep/wake external interfaces to hardware/hwxfsleep.c.715971607161Added a new OSL interface for ACPI table overrides,7162AcpiOsPhysicalTableOverride. This interface allows the host to override a7163table via a physical address, instead of the logical address required by7164AcpiOsTableOverride. This simplifies the host implementation. Initial7165implementation by Thomas Renninger. The ACPICA implementation creates a7166single7167shared function for table overrides that attempts both a logical and a7168physical override.71697170Expanded the OSL memory read/write interfaces to 64-bit data7171(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory7172transfer support for GAS register structures passed to AcpiRead and7173AcpiWrite.71747175Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a7176custom7177build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)7178model.7179See the ACPICA reference for details. ACPICA BZ 942. This option removes7180about718110% of the code and 5% of the static data, and the following hardware7182ACPI7183features become unavailable:7184PM Event and Control registers7185SCI interrupt (and handler)7186Fixed Events7187General Purpose Events (GPEs)7188Global Lock7189ACPI PM timer71907191Updated the unix tarball directory structure to match the ACPICA git7192source7193tree. This ensures that the generic unix makefiles work properly (in7194generate/unix). Also updated the Linux makefiles to match. ACPICA BZ7195867.71967197Updated the return value of the _REV predefined method to integer value 57198to7199reflect ACPI 5.0 support.72007201Moved the external ACPI PM timer interface prototypes to the public7202acpixf.h7203file where they belong.72047205Example Code and Data Size: These are the sizes for the OS-independent7206acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7207debug7208version of the code includes the debug output trace mechanism and has a7209much7210larger code and data size.72117212Previous Release:7213Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total7214Debug Version: 171.7K Code, 72.9K Data, 244.5K Total7215Current Release:7216Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total7217Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7218721972202) iASL Compiler/Disassembler and Tools:72217222Disassembler: Fixed a problem with the new ACPI 5.0 serial resource7223descriptors (I2C, SPI, UART) where the resource produce/consumer bit was7224incorrectly displayed.72257226AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI7227specification.72287229----------------------------------------723011 January 2012. Summary of changes for version 20120111:7231723272331) ACPICA Core Subsystem:72347235Implemented a new mechanism to allow host device drivers to check for7236address7237range conflicts with ACPI Operation Regions. Both SystemMemory and7238SystemIO7239address spaces are supported. A new external interface,7240AcpiCheckAddressRange,7241allows drivers to check an address range against the ACPI namespace. See7242the7243ACPICA reference for additional details. Adds one new file,7244utilities/utaddress.c. Lin Ming, Bob Moore.72457246Fixed several issues with the ACPI 5.0 FADT support: Add the sleep7247Control7248and7249Status registers, update the ACPI 5.0 flags, and update internal data7250structures to handle an FADT larger than 256 bytes. The size of the ACPI72515.07252FADT is 268 bytes.72537254Updated all ACPICA copyrights and signons to 2012. Added the 20127255copyright to7256all module headers and signons, including the standard Linux header. This7257affects virtually every file in the ACPICA core subsystem, iASL compiler,7258and7259all ACPICA utilities.72607261Example Code and Data Size: These are the sizes for the OS-independent7262acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7263debug7264version of the code includes the debug output trace mechanism and has a7265much7266larger code and data size.72677268Previous Release:7269Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total7270Debug Version: 170.8K Code, 72.6K Data, 243.4K Total7271Current Release:7272Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total7273Debug Version: 171.7K Code, 72.9K Data, 244.5K Total7274727572762) iASL Compiler/Disassembler and Tools:72777278Disassembler: fixed a problem with the automatic resource tag generation7279support. Fixes a problem where the resource tags are inadvertently not7280constructed if the table being disassembled contains external references7281to7282control methods. Moved the actual construction of the tags to after the7283final7284namespace is constructed (after 2nd parse is invoked due to external7285control7286method references.) ACPICA BZ 941.72877288Table Compiler: Make all "generic" operators caseless. These are the7289operators7290like UINT8, String, etc. Making these caseless improves ease-of-use.7291ACPICA BZ7292934.72937294----------------------------------------729523 November 2011. Summary of changes for version 20111123:729672970) ACPI 5.0 Support:72987299This release contains full support for the ACPI 5.0 specification, as7300summarized below.73017302Reduced Hardware Support:7303-------------------------73047305This support allows for ACPI systems without the usual ACPI hardware.7306This7307support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA7308will7309not attempt to initialize or use any of the usual ACPI hardware. Note,7310when7311this flag is set, all of the following ACPI hardware is assumed to be not7312present and is not initialized or accessed:73137314General Purpose Events (GPEs)7315Fixed Events (PM1a/PM1b and PM Control)7316Power Management Timer and Console Buttons (power/sleep)7317Real-time Clock Alarm7318Global Lock7319System Control Interrupt (SCI)7320The FACS is assumed to be non-existent73217322ACPI Tables:7323------------73247325All new tables and updates to existing tables are fully supported in the7326ACPICA headers (for use by device drivers), the disassembler, and the7327iASL7328Data Table Compiler. ACPI 5.0 defines these new tables:73297330BGRT /* Boot Graphics Resource Table */7331DRTM /* Dynamic Root of Trust for Measurement table */7332FPDT /* Firmware Performance Data Table */7333GTDT /* Generic Timer Description Table */7334MPST /* Memory Power State Table */7335PCCT /* Platform Communications Channel Table */7336PMTT /* Platform Memory Topology Table */7337RASF /* RAS Feature table */73387339Operation Regions/SpaceIDs:7340---------------------------73417342All new operation regions are fully supported by the iASL compiler, the7343disassembler, and the ACPICA runtime code (for dispatch to region7344handlers.)7345The new operation region Space IDs are:73467347GeneralPurposeIo7348GenericSerialBus73497350Resource Descriptors:7351---------------------73527353All new ASL resource descriptors are fully supported by the iASL7354compiler,7355the7356ASL/AML disassembler, and the ACPICA runtime Resource Manager code7357(including7358all new predefined resource tags). New descriptors are:73597360FixedDma7361GpioIo7362GpioInt7363I2cSerialBus7364SpiSerialBus7365UartSerialBus73667367ASL/AML Operators, New and Modified:7368------------------------------------73697370One new operator is added, the Connection operator, which is used to7371associate7372a GeneralPurposeIo or GenericSerialBus resource descriptor with7373individual7374field objects within an operation region. Several new protocols are7375associated7376with the AccessAs operator. All are fully supported by the iASL compiler,7377disassembler, and runtime ACPICA AML interpreter:73787379Connection // Declare Field Connection7380attributes7381AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol7382AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes7383Protocol7384AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol7385RawDataBuffer // Data type for Vendor Data7386fields73877388Predefined ASL/AML Objects:7389---------------------------73907391All new predefined objects/control-methods are supported by the iASL7392compiler7393and the ACPICA runtime validation/repair (arguments and return values.)7394New7395predefined names include the following:73967397Standard Predefined Names (Objects or Control Methods):7398_AEI, _CLS, _CPC, _CWS, _DEP,7399_DLM, _EVT, _GCP, _CRT, _GWS,7400_HRV, _PRE, _PSE, _SRT, _SUB.74017402Resource Tags (Names used to access individual fields within resource7403descriptors):7404_DBT, _DPL, _DRS, _END, _FLC,7405_IOR, _LIN, _MOD, _PAR, _PHA,7406_PIN, _PPI, _POL, _RXL, _SLV,7407_SPE, _STB, _TXL, _VEN.74087409ACPICA External Interfaces:7410---------------------------74117412Several new interfaces have been defined for use by ACPI-related device7413drivers and other host OS services:74147415AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS7416to7417acquire and release AML mutexes that are defined in the DSDT/SSDT tables7418provided by the BIOS. They are intended to be used in conjunction with7419the7420ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level7421mutual exclusion with the AML code/interpreter.74227423AcpiGetEventResources: Returns the (formatted) resource descriptors as7424defined7425by the ACPI 5.0 _AEI object (ACPI Event Information). This object7426provides7427resource descriptors associated with hardware-reduced platform events,7428similar7429to the AcpiGetCurrentResources interface.74307431Operation Region Handlers: For General Purpose IO and Generic Serial Bus7432operation regions, information about the Connection() object and any7433optional7434length information is passed to the region handler within the Context7435parameter.74367437AcpiBufferToResource: This interface converts a raw AML buffer containing7438a7439resource template or resource descriptor to the ACPI_RESOURCE internal7440format7441suitable for use by device drivers. Can be used by an operation region7442handler7443to convert the Connection() buffer object into a ACPI_RESOURCE.74447445Miscellaneous/Tools/TestSuites:7446-------------------------------74477448Support for extended _HID names (Four alpha characters instead of three).7449Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.7450Support for ACPI 5.0 features in the ASLTS test suite.7451Fully updated documentation (ACPICA and iASL reference documents.)74527453ACPI Table Definition Language:7454-------------------------------74557456Support for this language was implemented and released as a subsystem of7457the7458iASL compiler in 2010. (See the iASL compiler User Guide.)745974607461Non-ACPI 5.0 changes for this release:7462--------------------------------------746374641) ACPICA Core Subsystem:74657466Fix a problem with operation region declarations where a failure can7467occur7468if7469the region name and an argument that evaluates to an object (such as the7470region address) are in different namespace scopes. Lin Ming, ACPICA BZ7471937.74727473Do not abort an ACPI table load if an invalid space ID is found within.7474This7475will be caught later if the offending method is executed. ACPICA BZ 925.74767477Fixed an issue with the FFixedHW space ID where the ID was not always7478recognized properly (Both ACPICA and iASL). ACPICA BZ 926.74797480Fixed a problem with the 32-bit generation of the unix-specific OSL7481(osunixxf.c). Lin Ming, ACPICA BZ 936.74827483Several changes made to enable generation with the GCC 4.6 compiler.7484ACPICA BZ7485935.74867487New error messages: Unsupported I/O requests (not 8/16/32 bit), and7488Index/Bank7489field registers out-of-range.749074912) iASL Compiler/Disassembler and Tools:74927493iASL: Implemented the __PATH__ operator, which returns the full pathname7494of7495the current source file.74967497AcpiHelp: Automatically display expanded keyword information for all ASL7498operators.74997500Debugger: Add "Template" command to disassemble/dump resource template7501buffers.75027503Added a new master script to generate and execute the ASLTS test suite.7504Automatically handles 32- and 64-bit generation. See tests/aslts.sh75057506iASL: Fix problem with listing generation during processing of the7507Switch()7508operator where AML listing was disabled until the entire Switch block was7509completed.75107511iASL: Improve support for semicolon statement terminators. Fix "invalid7512character" message for some cases when the semicolon is used. Semicolons7513are7514now allowed after every <Term> grammar element. ACPICA BZ 927.75157516iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ7517923.75187519Disassembler: Fix problem with disassembly of the DataTableRegion7520operator7521where an inadvertent "Unhandled deferred opcode" message could be7522generated.752375243) Example Code and Data Size75257526These are the sizes for the OS-independent acpica.lib produced by the7527Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code7528includes the debug output trace mechanism and has a much larger code and7529data7530size.75317532Previous Release:7533Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7534Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7535Current Release:7536Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total7537Debug Version: 170.8K Code, 72.6K Data, 243.4K Total75387539----------------------------------------754022 September 2011. Summary of changes for version 20110922:754175420) ACPI 5.0 News:75437544Support for ACPI 5.0 in ACPICA has been underway for several months and7545will7546be released at the same time that ACPI 5.0 is officially released.75477548The ACPI 5.0 specification is on track for release in the next few7549months.755075511) ACPICA Core Subsystem:75527553Fixed a problem where the maximum sleep time for the Sleep() operator was7554intended to be limited to two seconds, but was inadvertently limited to7555207556seconds instead.75577558Linux and Unix makefiles: Added header file dependencies to ensure7559correct7560generation of ACPICA core code and utilities. Also simplified the7561makefiles7562considerably through the use of the vpath variable to specify search7563paths.7564ACPICA BZ 924.756575662) iASL Compiler/Disassembler and Tools:75677568iASL: Implemented support to check the access length for all fields7569created to7570access named Resource Descriptor fields. For example, if a resource field7571is7572defined to be two bits, a warning is issued if a CreateXxxxField() is7573used7574with an incorrect bit length. This is implemented for all current7575resource7576descriptor names. ACPICA BZ 930.75777578Disassembler: Fixed a byte ordering problem with the output of 24-bit and757956-7580bit integers.75817582iASL: Fixed a couple of issues associated with variable-length package7583objects. 1) properly handle constants like One, Ones, Zero -- do not make7584a7585VAR_PACKAGE when these are used as a package length. 2) Allow the7586VAR_PACKAGE7587opcode (in addition to PACKAGE) when validating object types for7588predefined7589names.75907591iASL: Emit statistics for all output files (instead of just the ASL input7592and7593AML output). Includes listings, hex files, etc.75947595iASL: Added -G option to the table compiler to allow the compilation of7596custom7597ACPI tables. The only part of a table that is required is the standard759836-7599byte7600ACPI header.76017602AcpiXtract: Ported to the standard ACPICA environment (with ACPICA7603headers),7604which also adds correct 64-bit support. Also, now all output filenames7605are7606completely lower case.76077608AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when7609loading table files. A warning is issued for any such tables. The only7610exception is an FADT. This also fixes a possible fault when attempting to7611load7612non-AML tables. ACPICA BZ 932.76137614AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where7615a7616missing table terminator could cause a fault when using the -p option.76177618AcpiSrc: Fixed a possible divide-by-zero fault when generating file7619statistics.762076213) Example Code and Data Size76227623These are the sizes for the OS-independent acpica.lib produced by the7624Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code7625includes the debug output trace mechanism and has a much larger code and7626data7627size.76287629Previous Release (VC 9.0):7630Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7631Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7632Current Release (VC 9.0):7633Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7634Debug Version: 165.6K Code, 68.4K Data, 234.0K Total763576367637----------------------------------------763823 June 2011. Summary of changes for version 20110623:763976401) ACPI CA Core Subsystem:76417642Updated the predefined name repair mechanism to not attempt repair of a7643_TSS7644return object if a _PSS object is present. We can only sort the _TSS7645return7646package if there is no _PSS within the same scope. This is because if7647_PSS7648is7649present, the ACPI specification dictates that the _TSS Power Dissipation7650field7651is to be ignored, and therefore some BIOSs leave garbage values in the7652_TSS7653Power field(s). In this case, it is best to just return the _TSS package7654as-7655is. Reported by, and fixed with assistance from Fenghua Yu.76567657Added an option to globally disable the control method return value7658validation7659and repair. This runtime option can be used to disable return value7660repair7661if7662this is causing a problem on a particular machine. Also added an option7663to7664AcpiExec (-dr) to set this disable flag.76657666All makefiles and project files: Major changes to improve generation of7667ACPICA7668tools. ACPICA BZ 912:7669Reduce default optimization levels to improve compatibility7670For Linux, add strict-aliasing=0 for gcc 47671Cleanup and simplify use of command line defines7672Cleanup multithread library support7673Improve usage messages76747675Linux-specific header: update handling of THREAD_ID and pthread. For the767632-7677bit case, improve casting to eliminate possible warnings, especially with7678the7679acpica tools.76807681Example Code and Data Size: These are the sizes for the OS-independent7682acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7683debug7684version of the code includes the debug output trace mechanism and has a7685much7686larger code and data size.76877688Previous Release (VC 9.0):7689Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total7690Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7691Current Release (VC 9.0):7692Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7693Debug Version: 165.6K Code, 68.4K Data, 234.0K Total769476952) iASL Compiler/Disassembler and Tools:76967697With this release, a new utility named "acpihelp" has been added to the7698ACPICA7699package. This utility summarizes the ACPI specification chapters for the7700ASL7701and AML languages. It generates under Linux/Unix as well as Windows, and7702provides the following functionality:7703Find/display ASL operator(s) -- with description and syntax.7704Find/display ASL keyword(s) -- with exact spelling and descriptions.7705Find/display ACPI predefined name(s) -- with description, number7706of arguments, and the return value data type.7707Find/display AML opcode name(s) -- with opcode, arguments, and7708grammar.7709Decode/display AML opcode -- with opcode name, arguments, and7710grammar.77117712Service Layers: Make multi-thread support configurable. Conditionally7713compile7714the multi-thread support so that threading libraries will not be linked7715if7716not7717necessary. The only tool that requires multi-thread support is AcpiExec.77187719iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions7720of7721Bison appear to want the interface to yyerror to be a const char * (or at7722least this is a problem when generating iASL on some systems.) ACPICA BZ77239237724Pierre Lejeune.77257726Tools: Fix for systems where O_BINARY is not defined. Only used for7727Windows7728versions of the tools.77297730----------------------------------------773127 May 2011. Summary of changes for version 20110527:773277331) ACPI CA Core Subsystem:77347735ASL Load() operator: Reinstate most restrictions on the incoming ACPI7736table7737signature. Now, only allow SSDT, OEMx, and a null signature. History:77381) Originally, we checked the table signature for "SSDT" or "PSDT".7739(PSDT is now obsolete.)77402) We added support for OEMx tables, signature "OEM" plus a fourth7741"don't care" character.77423) Valid tables were encountered with a null signature, so we just7743gave up on validating the signature, (05/2008).77444) We encountered non-AML tables such as the MADT, which caused7745interpreter errors and kernel faults. So now, we once again allow7746only SSDT, OEMx, and now, also a null signature. (05/2011).77477748Added the missing _TDL predefined name to the global name list in order7749to7750enable validation. Affects both the core ACPICA code and the iASL7751compiler.77527753Example Code and Data Size: These are the sizes for the OS-independent7754acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7755debug7756version of the code includes the debug output trace mechanism and has a7757much7758larger code and data size.77597760Previous Release (VC 9.0):7761Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total7762Debug Version: 164.5K Code, 68.0K Data, 232.5K Total7763Current Release (VC 9.0):7764Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total7765Debug Version: 165.6K Code, 68.4K Data, 234.0K Total776677672) iASL Compiler/Disassembler and Tools:77687769Debugger/AcpiExec: Implemented support for "complex" method arguments on7770the7771debugger command line. This adds support beyond simple integers --7772including7773Strings, Buffers, and Packages. Includes support for nested packages.7774Increased the default command line buffer size to accommodate these7775arguments.7776See the ACPICA reference for details and syntax. ACPICA BZ 917.77777778Debugger/AcpiExec: Implemented support for "default" method arguments for7779the7780Execute/Debug command. Now, the debugger will always invoke a control7781method7782with the required number of arguments -- even if the command line7783specifies7784none or insufficient arguments. It uses default integer values for any7785missing7786arguments. Also fixes a bug where only six method arguments maximum were7787supported instead of the required seven.77887789Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine7790and7791also return status in order to prevent buffer overruns. See the ACPICA7792reference for details and syntax. ACPICA BZ 92177937794iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and7795makefiles to simplify support for the two different but similar parser7796generators, bison and yacc.77977798Updated the generic unix makefile for gcc 4. The default gcc version is7799now7800expected to be 4 or greater, since options specific to gcc 4 are used.78017802----------------------------------------780313 April 2011. Summary of changes for version 20110413:780478051) ACPI CA Core Subsystem:78067807Implemented support to execute a so-called "orphan" _REG method under the7808EC7809device. This change will force the execution of a _REG method underneath7810the7811EC7812device even if there is no corresponding operation region of type7813EmbeddedControl. Fixes a problem seen on some machines and apparently is7814compatible with Windows behavior. ACPICA BZ 875.78157816Added more predefined methods that are eligible for automatic NULL7817package7818element removal. This change adds another group of predefined names to7819the7820list7821of names that can be repaired by having NULL package elements dynamically7822removed. This group are those methods that return a single variable-7823length7824package containing simple data types such as integers, buffers, strings.7825This7826includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,7827_PSL,7828_Sx,7829and _TZD. ACPICA BZ 914.78307831Split and segregated all internal global lock functions to a new file,7832evglock.c.78337834Updated internal address SpaceID for DataTable regions. Moved this7835internal7836space7837id in preparation for ACPI 5.0 changes that will include some new space7838IDs.7839This7840change should not affect user/host code.78417842Example Code and Data Size: These are the sizes for the OS-independent7843acpica.lib7844produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug7845version of7846the code includes the debug output trace mechanism and has a much larger7847code7848and7849data size.78507851Previous Release (VC 9.0):7852Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total7853Debug Version: 164.2K Code, 67.9K Data, 232.1K Total7854Current Release (VC 9.0):7855Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total7856Debug Version: 164.5K Code, 68.0K Data, 232.5K Total785778582) iASL Compiler/Disassembler and Tools:78597860iASL/DTC: Major update for new grammar features. Allow generic data types7861in7862custom ACPI tables. Field names are now optional. Any line can be split7863to7864multiple lines using the continuation char (\). Large buffers now use7865line-7866continuation character(s) and no colon on the continuation lines. See the7867grammar7868update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob7869Moore.78707871iASL: Mark ASL "Return()" and the simple "Return" as "Null" return7872statements.7873Since the parser stuffs a "zero" as the return value for these statements7874(due7875to7876the underlying AML grammar), they were seen as "return with value" by the7877iASL7878semantic checking. They are now seen correctly as "null" return7879statements.78807881iASL: Check if a_REG declaration has a corresponding Operation Region.7882Adds a7883check for each _REG to ensure that there is in fact a corresponding7884operation7885region declaration in the same scope. If not, the _REG method is not very7886useful7887since it probably won't be executed. ACPICA BZ 915.78887889iASL/DTC: Finish support for expression evaluation. Added a new7890expression7891parser7892that implements c-style operator precedence and parenthesization. ACPICA7893bugzilla7894908.78957896Disassembler/DTC: Remove support for () and <> style comments in data7897tables.7898Now7899that DTC has full expression support, we don't want to have comment7900strings7901that7902start with a parentheses or a less-than symbol. Now, only the standard /*7903and7904//7905comments are supported, as well as the bracket [] comments.79067907AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have7908"unusual"7909headers in the acpidump file. Update the header validation to support7910these7911tables. Problem introduced in previous AcpiXtract version in the change7912to7913support "wrong checksum" error messages emitted by acpidump utility.79147915iASL: Add a * option to generate all template files (as a synonym for7916ALL)7917as7918in7919"iasl -T *" or "iasl -T ALL".79207921iASL/DTC: Do not abort compiler on fatal errors. We do not want to7922completely7923abort the compiler on "fatal" errors, simply should abort the current7924compile.7925This allows multiple compiles with a single (possibly wildcard) compiler7926invocation.79277928----------------------------------------792916 March 2011. Summary of changes for version 20110316:793079311) ACPI CA Core Subsystem:79327933Fixed a problem caused by a _PRW method appearing at the namespace root7934scope7935during the setup of wake GPEs. A fault could occur if a _PRW directly7936under7937the7938root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.79397940Implemented support for "spurious" Global Lock interrupts. On some7941systems, a7942global lock interrupt can occur without the pending flag being set. Upon7943a7944GL7945interrupt, we now ensure that a thread is actually waiting for the lock7946before7947signaling GL availability. Rafael Wysocki, Bob Moore.79487949Example Code and Data Size: These are the sizes for the OS-independent7950acpica.lib7951produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug7952version of7953the code includes the debug output trace mechanism and has a much larger7954code7955and7956data size.79577958Previous Release (VC 9.0):7959Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total7960Debug Version: 163.9K Code, 67.5K Data, 231.4K Total7961Current Release (VC 9.0):7962Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total7963Debug Version: 164.2K Code, 67.9K Data, 232.1K Total796479652) iASL Compiler/Disassembler and Tools:79667967Implemented full support for the "SLIC" ACPI table. Includes support in7968the7969header files, disassembler, table compiler, and template generator. Bob7970Moore,7971Lin Ming.79727973AcpiXtract: Correctly handle embedded comments and messages from7974AcpiDump.7975Apparently some or all versions of acpidump will occasionally emit a7976comment7977like7978"Wrong checksum", etc., into the dump file. This was causing problems for7979AcpiXtract. ACPICA BZ 905.79807981iASL: Fix the Linux makefile by removing an inadvertent double file7982inclusion.7983ACPICA BZ 913.79847985AcpiExec: Update installation of operation region handlers. Install one7986handler7987for a user-defined address space. This is used by the ASL test suite7988(ASLTS).79897990----------------------------------------799111 February 2011. Summary of changes for version 20110211:799279931) ACPI CA Core Subsystem:79947995Added a mechanism to defer _REG methods for some early-installed7996handlers.7997Most user handlers should be installed before call to7998AcpiEnableSubsystem.7999However, Event handlers and region handlers should be installed after8000AcpiInitializeObjects. Override handlers for the "default" regions should8001be8002installed early, however. This change executes all _REG methods for the8003default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any8004chicken/egg issues between them. ACPICA BZ 848.80058006Implemented an optimization for GPE detection. This optimization will8007simply8008ignore GPE registers that contain no enabled GPEs -- there is no need to8009read the register since this information is available internally. This8010becomes more important on machines with a large GPE space. ACPICA8011bugzilla8012884. Lin Ming. Suggestion from Joe Liu.80138014Removed all use of the highly unreliable FADT revision field. The8015revision8016number in the FADT has been found to be completely unreliable and cannot8017be8018trusted. Only the actual table length can be used to infer the version.8019This8020change updates the ACPICA core and the disassembler so that both no8021longer8022even look at the FADT version and instead depend solely upon the FADT8023length.80248025Fix an unresolved name issue for the no-debug and no-error-message source8026generation cases. The _AcpiModuleName was left undefined in these cases,8027but8028it is actually needed as a parameter to some interfaces. Define8029_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.80308031Split several large files (makefiles and project files updated)8032utglobal.c -> utdecode.c8033dbcomds.c -> dbmethod.c dbnames.c8034dsopcode.c -> dsargs.c dscontrol.c8035dsload.c -> dsload2.c8036aslanalyze.c -> aslbtypes.c aslwalks.c80378038Example Code and Data Size: These are the sizes for the OS-independent8039acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The8040debug version of the code includes the debug output trace mechanism and8041has8042a much larger code and data size.80438044Previous Release (VC 9.0):8045Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8046Debug Version: 163.9K Code, 67.5K Data, 231.4K Total8047Current Release (VC 9.0):8048Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8049Debug Version: 163.9K Code, 67.5K Data, 231.4K Total805080512) iASL Compiler/Disassembler and Tools:80528053iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.8054These are useful C-style macros with the standard definitions. ACPICA8055bugzilla 898.80568057iASL/DTC: Added support for integer expressions and labels. Support for8058full8059expressions for all integer fields in all ACPI tables. Support for labels8060in8061"generic" portions of tables such as UEFI. See the iASL reference manual.80628063Debugger: Added a command to display the status of global handlers. The8064"handlers" command will display op region, fixed event, and miscellaneous8065global handlers. installation status -- and for op regions, whether8066default8067or user-installed handler will be used.80688069iASL: Warn if reserved method incorrectly returns a value. Many8070predefined8071names are defined such that they do not return a value. If implemented as8072a8073method, issue a warning if such a name explicitly returns a value. ACPICA8074Bugzilla 855.80758076iASL: Added detection of GPE method name conflicts. Detects a conflict8077where8078there are two GPE methods of the form _Lxy and _Exy in the same scope.8079(For8080example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.80818082iASL/DTC: Fixed a couple input scanner issues with comments and line8083numbers. Comment remover could get confused and miss a comment ending.8084Fixed8085a problem with line counter maintenance.80868087iASL/DTC: Reduced the severity of some errors from fatal to error. There8088is8089no need to abort on simple errors within a field definition.80908091Debugger: Simplified the output of the help command. All help output now8092in8093a single screen, instead of help subcommands. ACPICA Bugzilla 897.80948095----------------------------------------809612 January 2011. Summary of changes for version 20110112:809780981) ACPI CA Core Subsystem:80998100Fixed a race condition between method execution and namespace walks that8101can8102possibly cause a fault. The problem was apparently introduced in version810320100528 as a result of a performance optimization that reduces the8104number8105of8106namespace walks upon method exit by using the delete_namespace_subtree8107function instead of the delete_namespace_by_owner function used8108previously.8109Bug is a missing namespace lock in the delete_namespace_subtree function.8110[email protected]81118112Fixed several issues and a possible fault with the automatic "serialized"8113method support. History: This support changes a method to "serialized" on8114the8115fly if the method generates an AE_ALREADY_EXISTS error, indicating the8116possibility that it cannot handle reentrancy. This fix repairs a couple8117of8118issues seen in the field, especially on machines with many cores:811981201) Delete method children only upon the exit of the last thread,8121so as to not delete objects out from under other running threads8122(and possibly causing a fault.)81232) Set the "serialized" bit for the method only upon the exit of the8124Last thread, so as to not cause deadlock when running threads8125attempt to exit.81263) Cleanup the use of the AML "MethodFlags" and internal method flags8127so that there is no longer any confusion between the two.81288129Lin Ming, Bob Moore. Reported by [email protected].81308131Debugger: Now lock the namespace for duration of a namespace dump.8132Prevents8133issues if the namespace is changing dynamically underneath the debugger.8134Especially affects temporary namespace nodes, since the debugger displays8135these also.81368137Updated the ordering of include files. The ACPICA headers should appear8138before any compiler-specific headers (stdio.h, etc.) so that acenv.h can8139set8140any necessary compiler-specific defines, etc. Affects the ACPI-related8141tools8142and utilities.81438144Updated all ACPICA copyrights and signons to 2011. Added the 20118145copyright8146to all module headers and signons, including the Linux header. This8147affects8148virtually every file in the ACPICA core subsystem, iASL compiler, and all8149utilities.81508151Added project files for MS Visual Studio 2008 (VC++ 9.0). The original8152project files for VC++ 6.0 are now obsolete. New project files can be8153found8154under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for8155details.81568157Example Code and Data Size: These are the sizes for the OS-independent8158acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The8159debug version of the code includes the debug output trace mechanism and8160has a8161much larger code and data size.81628163Previous Release (VC 6.0):8164Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total8165Debug Version: 166.6K Code, 52.1K Data, 218.7K Total8166Current Release (VC 9.0):8167Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8168Debug Version: 163.9K Code, 67.5K Data, 231.4K Total816981702) iASL Compiler/Disassembler and Tools:81718172iASL: Added generic data types to the Data Table compiler. Add "generic"8173data8174types such as UINT32, String, Unicode, etc., to simplify the generation8175of8176platform-defined tables such as UEFI. Lin Ming.81778178iASL: Added listing support for the Data Table Compiler. Adds listing8179support8180(-l) to display actual binary output for each line of input code.81818182----------------------------------------818309 December 2010. Summary of changes for version 20101209:818481851) ACPI CA Core Subsystem:81868187Completed the major overhaul of the GPE support code that was begun in8188July81892010. Major features include: removal of _PRW execution in ACPICA (host8190executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,8191changes to existing interfaces, simplification of GPE handler operation,8192and8193a handful of new interfaces:81948195AcpiUpdateAllGpes8196AcpiFinishGpe8197AcpiSetupGpeForWake8198AcpiSetGpeWakeMask8199One new file, evxfgpe.c to consolidate all external GPE interfaces.82008201See the ACPICA Programmer Reference for full details and programming8202information. See the new section 4.4 "General Purpose Event (GPE)8203Support"8204for a full overview, and section 8.7 "ACPI General Purpose Event8205Management"8206for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin8207Ming,8208Bob Moore, Rafael Wysocki.82098210Implemented a new GPE feature for Windows compatibility, the "Implicit8211Wake8212GPE Notify". This feature will automatically issue a Notify(2) on a8213device8214when a Wake GPE is received if there is no corresponding GPE method or8215handler. ACPICA BZ 870.82168217Fixed a problem with the Scope() operator during table parse and load8218phase.8219During load phase (table load or method execution), the scope operator8220should8221not enter the target into the namespace. Instead, it should open a new8222scope8223at the target location. Linux BZ 19462, ACPICA BZ 882.82248225Example Code and Data Size: These are the sizes for the OS-independent8226acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8227debug version of the code includes the debug output trace mechanism and8228has a8229much larger code and data size.82308231Previous Release:8232Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total8233Debug Version: 166.6K Code, 52.1K Data, 218.7K Total8234Current Release:8235Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8236Debug Version: 166.3K Code, 52.1K Data, 218.4K Total823782382) iASL Compiler/Disassembler and Tools:82398240iASL: Relax the alphanumeric restriction on _CID strings. These strings8241are8242"bus-specific" per the ACPI specification, and therefore any characters8243are8244acceptable. The only checks that can be performed are for a null string8245and8246perhaps for a leading asterisk. ACPICA BZ 886.82478248iASL: Fixed a problem where a syntax error that caused a premature EOF8249condition on the source file emitted a very confusing error message. The8250premature EOF is now detected correctly. ACPICA BZ 891.82518252Disassembler: Decode the AccessSize within a Generic Address Structure8253(byte8254access, word access, etc.) Note, this field does not allow arbitrary bit8255access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.82568257New: AcpiNames utility - Example namespace dump utility. Shows an example8258of8259ACPICA configuration for a minimal namespace dump utility. Uses table and8260namespace managers, but no AML interpreter. Does not add any8261functionality8262over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to8263partition and configure ACPICA. ACPICA BZ 883.82648265AML Debugger: Increased the debugger buffer size for method return8266objects.8267Was 4K, increased to 16K. Also enhanced error messages for debugger8268method8269execution, including the buffer overflow case.82708271----------------------------------------827213 October 2010. Summary of changes for version 20101013:827382741) ACPI CA Core Subsystem:82758276Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,8277now8278clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via8279HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.82808281Changed the type of the predefined namespace object _TZ from ThermalZone8282to8283Device. This was found to be confusing to the host software that8284processes8285the various thermal zones, since _TZ is not really a ThermalZone.8286However,8287a8288Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui8289Zhang.82908291Added Windows Vista SP2 to the list of supported _OSI strings. The actual8292string is "Windows 2006 SP2".82938294Eliminated duplicate code in AcpiUtExecute* functions. Now that the8295nsrepair8296code automatically repairs _HID-related strings, this type of code is no8297longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ8298878.82998300Example Code and Data Size: These are the sizes for the OS-independent8301acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8302debug version of the code includes the debug output trace mechanism and8303has a8304much larger code and data size.83058306Previous Release:8307Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8308Debug Version: 166.3K Code, 52.1K Data, 218.4K Total8309Current Release:8310Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8311Debug Version: 166.3K Code, 52.1K Data, 218.4K Total831283132) iASL Compiler/Disassembler and Tools:83148315iASL: Implemented additional compile-time validation for _HID strings.8316The8317non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the8318length8319of8320the string must be exactly seven or eight characters. For both _HID and8321_CID8322strings, all characters must be alphanumeric. ACPICA BZ 874.83238324iASL: Allow certain "null" resource descriptors. Some BIOS code creates8325descriptors that are mostly or all zeros, with the expectation that they8326will8327be filled in at runtime. iASL now allows this as long as there is a8328"resource8329tag" (name) associated with the descriptor, which gives the ASL a handle8330needed to modify the descriptor. ACPICA BZ 873.83318332Added single-thread support to the generic Unix application OSL.8333Primarily8334for iASL support, this change removes the use of semaphores in the8335single-8336threaded ACPICA tools/applications - increasing performance. The8337_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED8338option. ACPICA BZ 879.83398340AcpiExec: several fixes for the 64-bit version. Adds XSDT support and8341support8342for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.83438344iASL: Moved all compiler messages to a new file, aslmessages.h.83458346----------------------------------------834715 September 2010. Summary of changes for version 20100915:834883491) ACPI CA Core Subsystem:83508351Removed the AcpiOsDerivePciId OSL interface. The various host8352implementations8353of this function were not OS-dependent and are now obsolete and can be8354removed from all host OSLs. This function has been replaced by8355AcpiHwDerivePciId, which is now part of the ACPICA core code.8356AcpiHwDerivePciId has been implemented without recursion. Adds one new8357module, hwpci.c. ACPICA BZ 857.83588359Implemented a dynamic repair for _HID and _CID strings. The following8360problems are now repaired at runtime: 1) Remove a leading asterisk in the8361string, and 2) the entire string is uppercased. Both repairs are in8362accordance with the ACPI specification and will simplify host driver8363code.8364ACPICA BZ 871.83658366The ACPI_THREAD_ID type is no longer configurable, internally it is now8367always UINT64. This simplifies the ACPICA code, especially any printf8368output.8369UINT64 is the only common data type for all thread_id types across all8370operating systems. It is now up to the host OSL to cast the native8371thread_id8372type to UINT64 before returning the value to ACPICA (via8373AcpiOsGetThreadId).8374Lin Ming, Bob Moore.83758376Added the ACPI_INLINE type to enhance the ACPICA configuration. The8377"inline"8378keyword is not standard across compilers, and this type allows inline to8379be8380configured on a per-compiler basis. Lin Ming.83818382Made the system global AcpiGbl_SystemAwakeAndRunning publicly8383available.8384Added an extern for this boolean in acpixf.h. Some hosts utilize this8385value8386during suspend/restore operations. ACPICA BZ 869.83878388All code that implements error/warning messages with the "ACPI:" prefix8389has8390been moved to a new module, utxferror.c.83918392The UINT64_OVERLAY was moved to utmath.c, which is the only module where8393it8394is used. ACPICA BZ 829. Lin Ming, Bob Moore.83958396Example Code and Data Size: These are the sizes for the OS-independent8397acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8398debug version of the code includes the debug output trace mechanism and8399has a8400much larger code and data size.84018402Previous Release:8403Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total8404Debug Version: 165.1K Code, 51.9K Data, 217.0K Total8405Current Release:8406Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8407Debug Version: 166.3K Code, 52.1K Data, 218.4K Total840884092) iASL Compiler/Disassembler and Tools:84108411iASL/Disassembler: Write ACPI errors to stderr instead of the output8412file.8413This keeps the output files free of random error messages that may8414originate8415from within the namespace/interpreter code. Used this opportunity to8416merge8417all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ8418866. Lin Ming, Bob Moore.84198420Tools: update some printfs for ansi warnings on size_t. Handle width8421change8422of size_t on 32-bit versus 64-bit generations. Lin Ming.84238424----------------------------------------842506 August 2010. Summary of changes for version 20100806:842684271) ACPI CA Core Subsystem:84288429Designed and implemented a new host interface to the _OSI support code.8430This8431will allow the host to dynamically add or remove multiple _OSI strings,8432as8433well as install an optional handler that is called for each _OSI8434invocation.8435Also added a new AML debugger command, 'osi' to display and modify the8436global8437_OSI string table, and test support in the AcpiExec utility. See the8438ACPICA8439reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.8440New Functions:8441AcpiInstallInterface - Add an _OSI string.8442AcpiRemoveInterface - Delete an _OSI string.8443AcpiInstallInterfaceHandler - Install optional _OSI handler.8444Obsolete Functions:8445AcpiOsValidateInterface - no longer used.8446New Files:8447source/components/utilities/utosi.c84488449Re-introduced the support to enable multi-byte transfers for Embedded8450Controller (EC) operation regions. A reported problem was found to be a8451bug8452in the host OS, not in the multi-byte support. Previously, the maximum8453data8454size passed to the EC operation region handler was a single byte. There8455are8456often EC Fields larger than one byte that need to be transferred, and it8457is8458useful for the EC driver to lock these as a single transaction. This8459change8460enables single transfers larger than 8 bits. This effectively changes the8461access to the EC space from ByteAcc to AnyAcc, and will probably require8462changes to the host OS Embedded Controller driver to enable 16/32/64/256-8463bit8464transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.84658466Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The8467prototype in acpiosxf.h had the output value pointer as a (void *).8468It should be a (UINT64 *). This may affect some host OSL code.84698470Fixed a couple problems with the recently modified Linux makefiles for8471iASL8472and AcpiExec. These new makefiles place the generated object files in the8473local directory so that there can be no collisions between the files that8474are8475shared between them that are compiled with different options.84768477Example Code and Data Size: These are the sizes for the OS-independent8478acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8479debug version of the code includes the debug output trace mechanism and8480has a8481much larger code and data size.84828483Previous Release:8484Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8485Debug Version: 164.0K Code, 51.5K Data, 215.5K Total8486Current Release:8487Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total8488Debug Version: 165.1K Code, 51.9K Data, 217.0K Total848984902) iASL Compiler/Disassembler and Tools:84918492iASL/Disassembler: Added a new option (-da, "disassemble all") to load8493the8494namespace from and disassemble an entire group of AML files. Useful for8495loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)8496and8497disassembling with one simple command. ACPICA BZ 865. Lin Ming.84988499iASL: Allow multiple invocations of -e option. This change allows8500multiple8501uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ8502834.8503Lin Ming.85048505----------------------------------------850602 July 2010. Summary of changes for version 20100702:850785081) ACPI CA Core Subsystem:85098510Implemented several updates to the recently added GPE reference count8511support. The model for "wake" GPEs is changing to give the host OS8512complete8513control of these GPEs. Eventually, the ACPICA core will not execute any8514_PRW8515methods, since the host already must execute them. Also, additional8516changes8517were made to help ensure that the reference counts are kept in proper8518synchronization with reality. Rafael J. Wysocki.851985201) Ensure that GPEs are not enabled twice during initialization.85212) Ensure that GPE enable masks stay in sync with the reference count.85223) Do not inadvertently enable GPEs when writing GPE registers.85234) Remove the internal wake reference counter and add new AcpiGpeWakeup8524interface. This interface will set or clear individual GPEs for wakeup.85255) Remove GpeType argument from AcpiEnable and AcpiDisable. These8526interfaces8527are now used for "runtime" GPEs only.85288529Changed the behavior of the GPE install/remove handler interfaces. The8530GPE8531is8532no longer disabled during this process, as it was found to cause problems8533on8534some machines. Rafael J. Wysocki.85358536Reverted a change introduced in version 20100528 to enable Embedded8537Controller multi-byte transfers. This change was found to cause problems8538with8539Index Fields and possibly Bank Fields. It will be reintroduced when these8540problems have been resolved.85418542Fixed a problem with references to Alias objects within Package Objects.8543A8544reference to an Alias within the definition of a Package was not always8545resolved properly. Aliases to objects like Processors, Thermal zones,8546etc.8547were resolved to the actual object instead of a reference to the object8548as8549it8550should be. Package objects are only allowed to contain integer, string,8551buffer, package, and reference objects. Redhat bugzilla 608648.85528553Example Code and Data Size: These are the sizes for the OS-independent8554acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8555debug version of the code includes the debug output trace mechanism and8556has a8557much larger code and data size.85588559Previous Release:8560Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8561Debug Version: 164.1K Code, 51.5K Data, 215.6K Total8562Current Release:8563Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8564Debug Version: 164.0K Code, 51.5K Data, 215.5K Total856585662) iASL Compiler/Disassembler and Tools:85678568iASL: Implemented a new compiler subsystem to allow definition and8569compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.8570These8571are called "ACPI Data Tables", and the new compiler is the "Data Table8572Compiler". This compiler is intended to simplify the existing error-prone8573process of creating these tables for the BIOS, as well as allowing the8574disassembly, modification, recompilation, and override of existing ACPI8575data8576tables. See the iASL User Guide for detailed information.85778578iASL: Implemented a new Template Generator option in support of the new8579Data8580Table Compiler. This option will create examples of all known ACPI tables8581that can be used as the basis for table development. See the iASL8582documentation and the -T option.85838584Disassembler and headers: Added support for the WDDT ACPI table (Watchdog8585Descriptor Table).85868587Updated the Linux makefiles for iASL and AcpiExec to place the generated8588object files in the local directory so that there can be no collisions8589between the shared files between them that are generated with different8590options.85918592Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.8593Use8594the #define __APPLE__ to enable this support.85958596----------------------------------------859728 May 2010. Summary of changes for version 20100528:85988599Note: The ACPI 4.0a specification was released on April 5, 2010 and is8600available at www.acpi.info. This is primarily an errata release.860186021) ACPI CA Core Subsystem:86038604Undefined ACPI tables: We are looking for the definitions for the8605following8606ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.86078608Implemented support to enable multi-byte transfers for Embedded8609Controller8610(EC) operation regions. Previously, the maximum data size passed to the8611EC8612operation region handler was a single byte. There are often EC Fields8613larger8614than one byte that need to be transferred, and it is useful for the EC8615driver8616to lock these as a single transaction. This change enables single8617transfers8618larger than 8 bits. This effectively changes the access to the EC space8619from8620ByteAcc to AnyAcc, and will probably require changes to the host OS8621Embedded8622Controller driver to enable 16/32/64/256-bit transfers in addition to 8-8623bit8624transfers. Alexey Starikovskiy, Lin Ming86258626Implemented a performance enhancement for namespace search and access.8627This8628change enhances the performance of namespace searches and walks by adding8629a8630backpointer to the parent in each namespace node. On large namespaces,8631this8632change can improve overall ACPI performance by up to 9X. Adding a pointer8633to8634each namespace node increases the overall size of the internal namespace8635by8636about 5%, since each namespace entry usually consists of both a namespace8637node and an ACPI operand object. However, this is the first growth of the8638namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.86398640Implemented a performance optimization that reduces the number of8641namespace8642walks. On control method exit, only walk the namespace if the method is8643known8644to have created namespace objects outside of its local scope. Previously,8645the8646entire namespace was traversed on each control method exit. This change8647can8648improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob8649Moore.86508651Added support to truncate I/O addresses to 16 bits for Windows8652compatibility.8653Some ASL code has been seen in the field that inadvertently has bits set8654above bit 15. This feature is optional and is enabled if the BIOS8655requests8656any Windows OSI strings. It can also be enabled by the host OS. Matthew8657Garrett, Bob Moore.86588659Added support to limit the maximum time for the ASL Sleep() operator. To8660prevent accidental deep sleeps, limit the maximum time that Sleep() will8661actually sleep. Configurable, the default maximum is two seconds. ACPICA8662bugzilla 854.86638664Added run-time validation support for the _WDG and_WED Microsoft8665predefined8666methods. These objects are defined by "Windows Instrumentation", and are8667not8668part of the ACPI spec. ACPICA BZ 860.86698670Expanded all statistic counters used during namespace and device8671initialization from 16 to 32 bits in order to support very large8672namespaces.86738674Replaced all instances of %d in printf format specifiers with %u since8675nearly8676all integers in ACPICA are unsigned.86778678Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly8679returned8680as AE_NO_HANDLER.86818682Example Code and Data Size: These are the sizes for the OS-independent8683acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8684debug version of the code includes the debug output trace mechanism and8685has a8686much larger code and data size.86878688Previous Release:8689Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total8690Debug Version: 164.2K Code, 51.5K Data, 215.7K Total8691Current Release:8692Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8693Debug Version: 164.1K Code, 51.5K Data, 215.6K Total869486952) iASL Compiler/Disassembler and Tools:86968697iASL: Added compiler support for the _WDG and_WED Microsoft predefined8698methods. These objects are defined by "Windows Instrumentation", and are8699not8700part of the ACPI spec. ACPICA BZ 860.87018702AcpiExec: added option to disable the memory tracking mechanism. The -dt8703option will disable the tracking mechanism, which improves performance8704considerably.87058706AcpiExec: Restructured the command line options into -d (disable) and -e8707(enable) options.87088709----------------------------------------871028 April 2010. Summary of changes for version 20100428:871187121) ACPI CA Core Subsystem:87138714Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,8715including FADT-based and GPE Block Devices, execute any _PRW methods in8716the8717new table, and process any _Lxx/_Exx GPE methods in the new table. Any8718runtime GPE that is referenced by an _Lxx/_Exx method in the new table is8719immediately enabled. Handles the FADT-defined GPEs as well as GPE Block8720Devices. Provides compatibility with other ACPI implementations. Two new8721files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob8722Moore.87238724Fixed a regression introduced in version 20100331 within the table8725manager8726where initial table loading could fail. This was introduced in the fix8727for8728AcpiReallocateRootTable. Also, renamed some of fields in the table8729manager8730data structures to clarify their meaning and use.87318732Fixed a possible allocation overrun during internal object copy in8733AcpiUtCopySimpleObject. The original code did not correctly handle the8734case8735where the object to be copied was a namespace node. Lin Ming. ACPICA BZ8736847.87378738Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a8739possible access beyond end-of-allocation. Also, now fully validate8740descriptor8741(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 84787428743Example Code and Data Size: These are the sizes for the OS-independent8744acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8745debug version of the code includes the debug output trace mechanism and8746has a8747much larger code and data size.87488749Previous Release:8750Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total8751Debug Version: 163.5K Code, 51.3K Data, 214.8K Total8752Current Release:8753Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total8754Debug Version: 164.2K Code, 51.5K Data, 215.7K Total875587562) iASL Compiler/Disassembler and Tools:87578758iASL: Implemented Min/Max/Len/Gran validation for address resource8759descriptors. This change implements validation for the address fields8760that8761are common to all address-type resource descriptors. These checks are8762implemented: Checks for valid Min/Max, length within the Min/Max window,8763valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as8764per8765table 6-40 in the ACPI 4.0a specification. Also split the large8766aslrestype1.c8767and aslrestype2.c files into five new files. ACPICA BZ 840.87688769iASL: Added support for the _Wxx predefined names. This support was8770missing8771and these names were not recognized by the compiler as valid predefined8772names. ACPICA BZ 851.87738774iASL: Added an error for all predefined names that are defined to return8775no8776value and thus must be implemented as Control Methods. These include all8777of8778the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous8779names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.87808781iASL: Implemented the -ts option to emit hex AML data in ASL format, as8782an8783ASL Buffer. Allows ACPI tables to be easily included within ASL files, to8784be8785dynamically loaded via the Load() operator. Also cleaned up output for8786the8787-8788ta and -tc options. ACPICA BZ 853.87898790Tests: Added a new file with examples of extended iASL error checking.8791Demonstrates the advanced error checking ability of the iASL compiler.8792Available at tests/misc/badcode.asl.87938794----------------------------------------879531 March 2010. Summary of changes for version 20100331:879687971) ACPI CA Core Subsystem:87988799Completed a major update for the GPE support in order to improve support8800for8801shared GPEs and to simplify both host OS and ACPICA code. Added a8802reference8803count mechanism to support shared GPEs that require multiple device8804drivers.8805Several external interfaces have changed. One external interface has been8806removed. One new external interface was added. Most of the GPE external8807interfaces now use the GPE spinlock instead of the events mutex (and the8808Flags parameter for many GPE interfaces has been removed.) See the8809updated8810ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,8811Rafael8812Wysocki. ACPICA BZ 831.88138814Changed:8815AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus8816Removed:8817AcpiSetGpeType8818New:8819AcpiSetGpe88208821Implemented write support for DataTable operation regions. These regions8822are8823defined via the DataTableRegion() operator. Previously, only read support8824was8825implemented. The ACPI specification allows DataTableRegions to be8826read/write,8827however.88288829Implemented a new subsystem option to force a copy of the DSDT to local8830memory. Optionally copy the entire DSDT to local memory (instead of8831simply8832mapping it.) There are some (albeit very rare) BIOSs that corrupt or8833replace8834the original DSDT, creating the need for this option. Default is FALSE,8835do8836not copy the DSDT.88378838Implemented detection of a corrupted or replaced DSDT. This change adds8839support to detect a DSDT that has been corrupted and/or replaced from8840outside8841the OS (by firmware). This is typically catastrophic for the system, but8842has8843been seen on some machines. Once this problem has been detected, the DSDT8844copy option can be enabled via system configuration. Lin Ming, Bob Moore.88458846Fixed two problems with AcpiReallocateRootTable during the root table8847copy.8848When copying the root table to the new allocation, the length used was8849incorrect. The new size was used instead of the current table size,8850meaning8851too much data was copied. Also, the count of available slots for ACPI8852tables8853was not set correctly. Alexey Starikovskiy, Bob Moore.88548855Example Code and Data Size: These are the sizes for the OS-independent8856acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8857debug version of the code includes the debug output trace mechanism and8858has a8859much larger code and data size.88608861Previous Release:8862Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total8863Debug Version: 163.4K Code, 51.1K Data, 214.5K Total8864Current Release:8865Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total8866Debug Version: 163.5K Code, 51.3K Data, 214.8K Total886788682) iASL Compiler/Disassembler and Tools:88698870iASL: Implement limited typechecking for values returned from predefined8871control methods. The type of any returned static (unnamed) object is now8872validated. For example, Return(1). ACPICA BZ 786.88738874iASL: Fixed a predefined name object verification regression. Fixes a8875problem8876introduced in version 20100304. An error is incorrectly generated if a8877predefined name is declared as a static named object with a value defined8878using the keywords "Zero", "One", or "Ones". Lin Ming.88798880iASL: Added Windows 7 support for the -g option (get local ACPI tables)8881by8882reducing the requested registry access rights. ACPICA BZ 842.88838884Disassembler: fixed a possible fault when generating External()8885statements.8886Introduced in commit ae7d6fd: Properly handle externals with parent-8887prefix8888(carat). Fixes a string length allocation calculation. Lin Ming.88898890----------------------------------------889104 March 2010. Summary of changes for version 20100304:889288931) ACPI CA Core Subsystem:88948895Fixed a possible problem with the AML Mutex handling function8896AcpiExReleaseMutex where the function could fault under the very rare8897condition when the interpreter has blocked, the interpreter lock is8898released,8899the interpreter is then reentered via the same thread, and attempts to8900acquire an AML mutex that was previously acquired. FreeBSD report 140979.8901Lin8902Ming.89038904Implemented additional configuration support for the AML "Debug Object".8905Output from the debug object can now be enabled via a global variable,8906AcpiGbl_EnableAmlDebugObject. This will assist with remote machine8907debugging.8908This debug output is now available in the release version of ACPICA8909instead8910of just the debug version. Also, the entire debug output module can now8911be8912configured out of the ACPICA build if desired. One new file added,8913executer/exdebug.c. Lin Ming, Bob Moore.89148915Added header support for the ACPI MCHI table (Management Controller Host8916Interface Table). This table was added in ACPI 4.0, but the defining8917document8918has only recently become available.89198920Standardized output of integer values for ACPICA warnings/errors. Always8921use89220x prefix for hex output, always use %u for unsigned integer decimal8923output.8924Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about89254008926invocations.) These invocations were converted from the original8927ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.89288929Example Code and Data Size: These are the sizes for the OS-independent8930acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8931debug version of the code includes the debug output trace mechanism and8932has a8933much larger code and data size.89348935Previous Release:8936Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total8937Debug Version: 163.5K Code, 50.9K Data, 214.4K Total8938Current Release:8939Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total8940Debug Version: 163.4K Code, 51.1K Data, 214.5K Total894189422) iASL Compiler/Disassembler and Tools:89438944iASL: Implemented typechecking support for static (non-control method)8945predefined named objects that are declared with the Name() operator. For8946example, the type of this object is now validated to be of type Integer:8947Name(_BBN, 1). This change migrates the compiler to using the core8948predefined8949name table instead of maintaining a local version. Added a new file,8950aslpredef.c. ACPICA BZ 832.89518952Disassembler: Added support for the ACPI 4.0 MCHI table.89538954----------------------------------------895521 January 2010. Summary of changes for version 20100121:895689571) ACPI CA Core Subsystem:89588959Added the 2010 copyright to all module headers and signons. This affects8960virtually every file in the ACPICA core subsystem, the iASL compiler, the8961tools/utilities, and the test suites.89628963Implemented a change to the AcpiGetDevices interface to eliminate8964unnecessary8965invocations of the _STA method. In the case where a specific _HID is8966requested, do not run _STA until a _HID match is found. This eliminates8967potentially dozens of _STA calls during a search for a particular8968device/HID,8969which in turn can improve boot times. ACPICA BZ 828. Lin Ming.89708971Implemented an additional repair for predefined method return values.8972Attempt8973to repair unexpected NULL elements within returned Package objects.8974Create8975an8976Integer of value zero, a NULL String, or a zero-length Buffer as8977appropriate.8978ACPICA BZ 818. Lin Ming, Bob Moore.89798980Removed the obsolete ACPI_INTEGER data type. This type was introduced as8981the8982code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.08983(with898464-bit AML integers). It is now obsolete and this change removes it from8985the8986ACPICA code base, replaced by UINT64. The original typedef has been8987retained8988for now for compatibility with existing device driver code. ACPICA BZ8989824.89908991Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field8992in8993the parse tree object.89948995Added additional warning options for the gcc-4 generation. Updated the8996source8997accordingly. This includes some code restructuring to eliminate8998unreachable8999code, elimination of some gotos, elimination of unused return values,9000some9001additional casting, and removal of redundant declarations.90029003Example Code and Data Size: These are the sizes for the OS-independent9004acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9005debug version of the code includes the debug output trace mechanism and9006has a9007much larger code and data size.90089009Previous Release:9010Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total9011Debug Version: 163.4K Code, 50.8K Data, 214.2K Total9012Current Release:9013Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total9014Debug Version: 163.5K Code, 50.9K Data, 214.4K Total901590162) iASL Compiler/Disassembler and Tools:90179018No functional changes for this release.90199020----------------------------------------902114 December 2009. Summary of changes for version 20091214:902290231) ACPI CA Core Subsystem:90249025Enhanced automatic data type conversions for predefined name repairs.9026This9027change expands the automatic repairs/conversions for predefined name9028return9029values to make Integers, Strings, and Buffers fully interchangeable.9030Also,9031a9032Buffer can be converted to a Package of Integers if necessary. The9033nsrepair.c9034module was completely restructured. Lin Ming, Bob Moore.90359036Implemented automatic removal of null package elements during predefined9037name9038repairs. This change will automatically remove embedded and trailing NULL9039package elements from returned package objects that are defined to9040contain9041a9042variable number of sub-packages. The driver is then presented with a9043package9044with no null elements to deal with. ACPICA BZ 819.90459046Implemented a repair for the predefined _FDE and _GTM names. The expected9047return value for both names is a Buffer of 5 DWORDs. This repair fixes9048two9049possible problems (both seen in the field), where a package of integers9050is9051returned, or a buffer of BYTEs is returned. With assistance from Jung-uk9052Kim.90539054Implemented additional module-level code support. This change will9055properly9056execute module-level code that is not at the root of the namespace (under9057a9058Device object, etc.). Now executes the code within the current scope9059instead9060of the root. ACPICA BZ 762. Lin Ming.90619062Fixed possible mutex acquisition errors when running _REG methods. Fixes9063a9064problem where mutex errors can occur when running a _REG method that is9065in9066the same scope as a method-defined operation region or an operation9067region9068under a module-level IF block. This type of code is rare, so the problem9069has9070not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.90719072Fixed a possible memory leak during module-level code execution. An9073object9074could be leaked for each block of executed module-level code if the9075interpreter slack mode is enabled This change deletes any implicitly9076returned9077object from the module-level code block. Lin Ming.90789079Removed messages for successful predefined repair(s). The repair9080mechanism9081was considered too wordy. Now, messages are only unconditionally emitted9082if9083the return object cannot be repaired. Existing messages for successful9084repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ9085827.90869087Example Code and Data Size: These are the sizes for the OS-independent9088acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9089debug version of the code includes the debug output trace mechanism and9090has a9091much larger code and data size.90929093Previous Release:9094Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total9095Debug Version: 162.7K Code, 50.8K Data, 213.5K Total9096Current Release:9097Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total9098Debug Version: 163.4K Code, 50.8K Data, 214.2K Total909991002) iASL Compiler/Disassembler and Tools:91019102iASL: Fixed a regression introduced in 20091112 where intermediate .SRC9103files9104were no longer automatically removed at the termination of the compile.91059106acpiexec: Implemented the -f option to specify default region fill value.9107This option specifies the value used to initialize buffers that simulate9108operation regions. Default value is zero. Useful for debugging problems9109that9110depend on a specific initial value for a region or field.91119112----------------------------------------911312 November 2009. Summary of changes for version 20091112:911491151) ACPI CA Core Subsystem:91169117Implemented a post-order callback to AcpiWalkNamespace. The existing9118interface only has a pre-order callback. This change adds an additional9119parameter for a post-order callback which will be more useful for bus9120scans.9121ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.91229123Modified the behavior of the operation region memory mapping cache for9124SystemMemory. Ensure that the memory mappings created for operation9125regions9126do not cross 4K page boundaries. Crossing a page boundary while mapping9127regions can cause kernel warnings on some hosts if the pages have9128different9129attributes. Such regions are probably BIOS bugs, and this is the9130workaround.9131Linux BZ 14445. Lin Ming.91329133Implemented an automatic repair for predefined methods that must return9134sorted lists. This change will repair (by sorting) packages returned by9135_ALR,9136_PSS, and _TSS. Drivers can now assume that the packages are correctly9137sorted9138and do not contain NULL package elements. Adds one new file,9139namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.91409141Fixed a possible fault during predefined name validation if a return9142Package9143object contains NULL elements. Also adds a warning if a NULL element is9144followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement9145may9146include repair or removal of all such NULL elements where possible.91479148Implemented additional module-level executable AML code support. This9149change9150will execute module-level code that is not at the root of the namespace9151(under a Device object, etc.) at table load time. Module-level executable9152AML9153code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.91549155Implemented a new internal function to create Integer objects. This9156function9157simplifies miscellaneous object creation code. ACPICA BZ 823.91589159Reduced the severity of predefined repair messages, Warning to Info.9160Since9161the object was successfully repaired, a warning is too severe. Reduced to9162an9163info message for now. These messages may eventually be changed to debug-9164only.9165ACPICA BZ 812.91669167Example Code and Data Size: These are the sizes for the OS-independent9168acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9169debug version of the code includes the debug output trace mechanism and9170has a9171much larger code and data size.91729173Previous Release:9174Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total9175Debug Version: 161.8K Code, 50.6K Data, 212.4K Total9176Current Release:9177Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total9178Debug Version: 162.7K Code, 50.8K Data, 213.5K Total917991802) iASL Compiler/Disassembler and Tools:91819182iASL: Implemented Switch() with While(1) so that Break works correctly.9183This9184change correctly implements the Switch operator with a surrounding9185While(1)9186so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.91879188iASL: Added a message if a package initializer list is shorter than9189package9190length. Adds a new remark for a Package() declaration if an initializer9191list9192exists, but is shorter than the declared length of the package. Although9193technically legal, this is probably a coding error and it is seen in the9194field. ACPICA BZ 815. Lin Ming, Bob Moore.91959196iASL: Fixed a problem where the compiler could fault after the maximum9197number9198of errors was reached (200).91999200acpixtract: Fixed a possible warning for pointer cast if the compiler9201warning9202level set very high.92039204----------------------------------------920513 October 2009. Summary of changes for version 20091013:920692071) ACPI CA Core Subsystem:92089209Fixed a problem where an Operation Region _REG method could be executed9210more9211than once. If a custom address space handler is installed by the host9212before9213the "initialize operation regions" phase of the ACPICA initialization,9214any9215_REG methods for that address space could be executed twice. This change9216fixes the problem. ACPICA BZ 427. Lin Ming.92179218Fixed a possible memory leak for the Scope() ASL operator. When the exact9219invocation of "Scope(\)" is executed (change scope to root), one internal9220operand object was leaked. Lin Ming.92219222Implemented a run-time repair for the _MAT predefined method. If the _MAT9223return value is defined as a Field object in the AML, and the field9224size is less than or equal to the default width of an integer (32 or922564),_MAT9226can incorrectly return an Integer instead of a Buffer. ACPICA now9227automatically repairs this problem. ACPICA BZ 810.92289229Implemented a run-time repair for the _BIF and _BIX predefined methods.9230The9231"OEM Information" field is often incorrectly returned as an Integer with9232value zero if the field is not supported by the platform. This is due to9233an9234ambiguity in the ACPI specification. The field should always be a string.9235ACPICA now automatically repairs this problem by returning a NULL string9236within the returned Package. ACPICA BZ 807.92379238Example Code and Data Size: These are the sizes for the OS-independent9239acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9240debug version of the code includes the debug output trace mechanism and9241has a9242much larger code and data size.92439244Previous Release:9245Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total9246Debug Version: 161.7K Code, 50.9K Data, 212.6K Total9247Current Release:9248Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total9249Debug Version: 161.8K Code, 50.6K Data, 212.4K Total925092512) iASL Compiler/Disassembler and Tools:92529253Disassembler: Fixed a problem where references to external symbols that9254contained one or more parent-prefixes (carats) were not handled9255correctly,9256possibly causing a fault. ACPICA BZ 806. Lin Ming.92579258Disassembler: Restructured the code so that all functions that handle9259external symbols are in a single module. One new file is added,9260common/dmextern.c.92619262AML Debugger: Added a max count argument for the Batch command (which9263executes multiple predefined methods within the namespace.)92649265iASL: Updated the compiler documentation (User Reference.) Available at9266http://www.acpica.org/documentation/. ACPICA BZ 750.92679268AcpiXtract: Updated for Lint and other formatting changes. Close all open9269files.92709271----------------------------------------927203 September 2009. Summary of changes for version 20090903:927392741) ACPI CA Core Subsystem:92759276For Windows Vista compatibility, added the automatic execution of an _INI9277method located at the namespace root (\_INI). This method is executed at9278table load time. This support is in addition to the automatic execution9279of9280\_SB._INI. Lin Ming.92819282Fixed a possible memory leak in the interpreter for AML package objects9283if9284the package initializer list is longer than the defined size of the9285package.9286This apparently can only happen if the BIOS changes the package size on9287the9288fly (seen in a _PSS object), as ASL compilers do not allow this. The9289interpreter will truncate the package to the defined size (and issue an9290error9291message), but previously could leave the extra objects undeleted if they9292were9293pre-created during the argument processing (such is the case if the9294package9295consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.92969297Fixed a problem seen when a Buffer or String is stored to itself via ASL.9298This has been reported in the field. Previously, ACPICA would zero out9299the9300buffer/string. Now, the operation is treated as a noop. Provides Windows9301compatibility. ACPICA BZ 803. Lin Ming.93029303Removed an extraneous error message for ASL constructs of the form9304Store(LocalX,LocalX) when LocalX is uninitialized. These curious9305statements9306are seen in many BIOSs and are once again treated as NOOPs and no error9307is9308emitted when they are encountered. ACPICA BZ 785.93099310Fixed an extraneous warning message if a _DSM reserved method returns a9311Package object. _DSM can return any type of object, so validation on the9312return type cannot be performed. ACPICA BZ 802.93139314Example Code and Data Size: These are the sizes for the OS-independent9315acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9316debug version of the code includes the debug output trace mechanism and9317has a9318much larger code and data size.93199320Previous Release:9321Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total9322Debug Version: 161.6K Code, 50.9K Data, 212.5K Total9323Current Release:9324Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total9325Debug Version: 161.7K Code, 50.9K Data, 212.6K Total932693272) iASL Compiler/Disassembler and Tools:93289329iASL: Fixed a problem with the use of the Alias operator and Resource9330Templates. The correct alias is now constructed and no error is emitted.9331ACPICA BZ 738.93329333iASL: Implemented the -I option to specify additional search directories9334for9335include files. Allows multiple additional search paths for include files.9336Directories are searched in the order specified on the command line9337(after9338the local directory is searched.) ACPICA BZ 800.93399340iASL: Fixed a problem where the full pathname for include files was not9341emitted for warnings/errors. This caused the IDE support to not work9342properly. ACPICA BZ 765.93439344iASL: Implemented the -@ option to specify a Windows-style response file9345containing additional command line options. ACPICA BZ 801.93469347AcpiExec: Added support to load multiple AML files simultaneously (such9348as9349a9350DSDT and multiple SSDTs). Also added support for wildcards within the AML9351pathname. These features allow all machine tables to be easily loaded and9352debugged together. ACPICA BZ 804.93539354Disassembler: Added missing support for disassembly of HEST table Error9355Bank9356subtables.93579358----------------------------------------935930 July 2009. Summary of changes for version 20090730:93609361The ACPI 4.0 implementation for ACPICA is complete with this release.936293631) ACPI CA Core Subsystem:93649365ACPI 4.0: Added header file support for all new and changed ACPI tables.9366Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are9367new9368for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,9369BERT,9370EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.9371There9372have been some ACPI 4.0 changes to other existing tables. Split the large9373actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.93749375ACPI 4.0: Implemented predefined name validation for all new names. There9376are937731 new names in ACPI 4.0. The predefined validation module was split into9378two9379files. The new file is namespace/nsrepair.c. ACPICA BZ 770.93809381Implemented support for so-called "module-level executable code". This is9382executable AML code that exists outside of any control method and is9383intended9384to be executed at table load time. Although illegal since ACPI 2.0, this9385type9386of code still exists and is apparently still being created. Blocks of9387this9388code are now detected and executed as intended. Currently, the code9389blocks9390must exist under either an If, Else, or While construct; these are the9391typical cases seen in the field. ACPICA BZ 762. Lin Ming.93929393Implemented an automatic dynamic repair for predefined names that return9394nested Package objects. This applies to predefined names that are defined9395to9396return a variable-length Package of sub-packages. If the number of sub-9397packages is one, BIOS code is occasionally seen that creates a simple9398single9399package with no sub-packages. This code attempts to fix the problem by9400wrapping a new package object around the existing package. These methods9401can9402be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA9403BZ9404790.94059406Fixed a regression introduced in 20090625 for the AcpiGetDevices9407interface.9408The _HID/_CID matching was broken and no longer matched IDs correctly.9409ACPICA9410BZ 793.94119412Fixed a problem with AcpiReset where the reset would silently fail if the9413register was one of the protected I/O ports. AcpiReset now bypasses the9414port9415validation mechanism. This may eventually be driven into the9416AcpiRead/Write9417interfaces.94189419Fixed a regression related to the recent update of the AcpiRead/Write9420interfaces. A sleep/suspend could fail if the optional PM2 Control9421register9422does not exist during an attempt to write the Bus Master Arbitration bit.9423(However, some hosts already delete the code that writes this bit, and9424the9425code may in fact be obsolete at this date.) ACPICA BZ 799.94269427Fixed a problem where AcpiTerminate could fault if inadvertently called9428twice9429in succession. ACPICA BZ 795.94309431Example Code and Data Size: These are the sizes for the OS-independent9432acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9433debug version of the code includes the debug output trace mechanism and9434has a9435much larger code and data size.94369437Previous Release:9438Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total9439Debug Version: 160.5K Code, 50.6K Data, 211.1K Total9440Current Release:9441Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total9442Debug Version: 161.6K Code, 50.9K Data, 212.5K Total944394442) iASL Compiler/Disassembler and Tools:94459446ACPI 4.0: Implemented disassembler support for all new ACPI tables and9447changes to existing tables. ACPICA BZ 775.94489449----------------------------------------945025 June 2009. Summary of changes for version 20090625:94519452The ACPI 4.0 Specification was released on June 16 and is available at9453www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will9454continue for the next few releases.945594561) ACPI CA Core Subsystem:94579458ACPI 4.0: Implemented interpreter support for the IPMI operation region9459address space. Includes support for bi-directional data buffers and an9460IPMI9461address space handler (to be installed by an IPMI device driver.) ACPICA9462BZ9463773. Lin Ming.94649465ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.9466Includes9467support in both the header files and the disassembler.94689469Completed a major update for the AcpiGetObjectInfo external interface.9470Changes include:9471- Support for variable, unlimited length HID, UID, and CID strings.9472- Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,9473etc.)9474- Call the _SxW power methods on behalf of a device object.9475- Determine if a device is a PCI root bridge.9476- Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.9477These changes will require an update to all callers of this interface.9478See9479the updated ACPICA Programmer Reference for details. One new source file9480has9481been added - utilities/utids.c. ACPICA BZ 368, 780.94829483Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit9484transfers. The Value parameter has been extended from 32 bits to 64 bits9485in9486order to support new ACPI 4.0 tables. These changes will require an9487update9488to9489all callers of these interfaces. See the ACPICA Programmer Reference for9490details. ACPICA BZ 768.94919492Fixed several problems with AcpiAttachData. The handler was not invoked9493when9494the host node was deleted. The data sub-object was not automatically9495deleted9496when the host node was deleted. The interface to the handler had an9497unused9498parameter, this was removed. ACPICA BZ 778.94999500Enhanced the function that dumps ACPI table headers. All non-printable9501characters in the string fields are now replaced with '?' (Signature,9502OemId,9503OemTableId, and CompilerId.) ACPI tables with non-printable characters in9504these fields are occasionally seen in the field. ACPICA BZ 788.95059506Fixed a problem with predefined method repair code where the code that9507attempts to repair/convert an object of incorrect type is only executed9508on9509the first time the predefined method is called. The mechanism that9510disables9511warnings on subsequent calls was interfering with the repair mechanism.9512ACPICA BZ 781.95139514Fixed a possible memory leak in the predefined validation/repair code9515when9516a9517buffer is automatically converted to an expected string object.95189519Removed obsolete 16-bit files from the distribution and from the current9520git9521tree head. ACPICA BZ 776.95229523Example Code and Data Size: These are the sizes for the OS-independent9524acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9525debug version of the code includes the debug output trace mechanism and9526has a9527much larger code and data size.95289529Previous Release:9530Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total9531Debug Version: 158.9K Code, 50.0K Data, 208.9K Total9532Current Release:9533Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total9534Debug Version: 160.5K Code, 50.6K Data, 211.1K Total953595362) iASL Compiler/Disassembler and Tools:95379538ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI9539operation region keyword. ACPICA BZ 771, 772. Lin Ming.95409541ACPI 4.0: iASL - implemented compile-time validation support for all new9542predefined names and control methods (31 total). ACPICA BZ 769.95439544----------------------------------------954521 May 2009. Summary of changes for version 20090521:954695471) ACPI CA Core Subsystem:95489549Disabled the preservation of the SCI enable bit in the PM1 control9550register.9551The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification9552to9553be9554a "preserved" bit - "OSPM always preserves this bit position", section95554.7.3.2.1. However, some machines fail if this bit is in fact preserved9556because the bit needs to be explicitly set by the OS as a workaround. No9557machines fail if the bit is not preserved. Therefore, ACPICA no longer9558attempts to preserve this bit.95599560Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or9561incorrectly formed _PRT package could cause a fault. Added validation to9562ensure that each package element is actually a sub-package.95639564Implemented a new interface to install or override a single control9565method,9566AcpiInstallMethod. This interface is useful when debugging in order to9567repair9568an existing method or to install a missing method without having to9569override9570the entire ACPI table. See the ACPICA Programmer Reference for use and9571examples. Lin Ming, Bob Moore.95729573Fixed several reference count issues with the DdbHandle object that is9574created from a Load or LoadTable operator. Prevent premature deletion of9575the9576object. Also, mark the object as invalid once the table has been9577unloaded.9578This is needed because the handle itself may not be deleted after the9579table9580unload, depending on whether it has been stored in a named object by the9581caller. Lin Ming.95829583Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple9584mutexes of the same sync level are acquired but then not released in9585strict9586opposite order, the internally maintained Current Sync Level becomes9587confused9588and can cause subsequent execution errors. ACPICA BZ 471.95899590Changed the allowable release order for ASL mutex objects. The ACPI 4.09591specification has been changed to make the SyncLevel for mutex objects9592more9593useful. When releasing a mutex, the SyncLevel of the mutex must now be9594the9595same as the current sync level. This makes more sense than the previous9596rule9597(SyncLevel less than or equal). This change updates the code to match the9598specification.95999600Fixed a problem with the local version of the AcpiOsPurgeCache function.9601The9602(local) cache must be locked during all cache object deletions. Andrew9603Baumann.96049605Updated the Load operator to use operation region interfaces. This9606replaces9607direct memory mapping with region access calls. Now, all region accesses9608go9609through the installed region handler as they should.96109611Simplified and optimized the NsGetNextNode function. Reduced parameter9612count9613and reduced code for this frequently used function.96149615Example Code and Data Size: These are the sizes for the OS-independent9616acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9617debug version of the code includes the debug output trace mechanism and9618has a9619much larger code and data size.96209621Previous Release:9622Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total9623Debug Version: 158.0K Code, 49.9K Data, 207.9K Total9624Current Release:9625Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total9626Debug Version: 158.9K Code, 50.0K Data, 208.9K Total962796282) iASL Compiler/Disassembler and Tools:96299630Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some9631problems9632with sub-table disassembly and handling invalid sub-tables. Attempt9633recovery9634after an invalid sub-table ID.96359636----------------------------------------963722 April 2009. Summary of changes for version 20090422:963896391) ACPI CA Core Subsystem:96409641Fixed a compatibility issue with the recently released I/O port9642protection9643mechanism. For windows compatibility, 1) On a port protection violation,9644simply ignore the request and do not return an exception (allow the9645control9646method to continue execution.) 2) If only part of the request overlaps a9647protected port, read/write the individual ports that are not protected.9648Linux9649BZ 13036. Lin Ming96509651Enhanced the execution of the ASL/AML BreakPoint operator so that it9652actually9653breaks into the AML debugger if the debugger is present. This matches the9654ACPI-defined behavior.96559656Fixed several possible warnings related to the use of the configurable9657ACPI_THREAD_ID. This type can now be configured as either an integer or a9658pointer with no warnings. Also fixes several warnings in printf-like9659statements for the 64-bit build when the type is configured as a pointer.9660ACPICA BZ 766, 767.96619662Fixed a number of possible warnings when compiling with gcc 4+ (depending9663on9664warning options.) Examples include printf formats, aliasing, unused9665globals,9666missing prototypes, missing switch default statements, use of non-ANSI9667library functions, use of non-ANSI constructs. See generate/unix/Makefile9668for9669a list of warning options used with gcc 3 and 4. ACPICA BZ 735.96709671Example Code and Data Size: These are the sizes for the OS-independent9672acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9673debug version of the code includes the debug output trace mechanism and9674has a9675much larger code and data size.96769677Previous Release:9678Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total9679Debug Version: 157.7K Code, 49.9K Data, 207.6K Total9680Current Release:9681Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total9682Debug Version: 158.0K Code, 49.9K Data, 207.9K Total968396842) iASL Compiler/Disassembler and Tools:96859686iASL: Fixed a generation warning from Bison 2.3 and fixed several9687warnings9688on9689the 64-bit build.96909691iASL: Fixed a problem where the Unix/Linux versions of the compiler could9692not9693correctly digest Windows/DOS formatted files (with CR/LF).96949695iASL: Added a new option for "quiet mode" (-va) that produces only the9696compilation summary, not individual errors and warnings. Useful for large9697batch compilations.96989699AcpiExec: Implemented a new option (-z) to enable a forced9700semaphore/mutex9701timeout that can be used to detect hang conditions during execution of9702AML9703code (includes both internal semaphores and AML-defined mutexes and9704events.)97059706Added new makefiles for the generation of acpica in a generic unix-like9707environment. These makefiles are intended to generate the acpica tools9708and9709utilities from the original acpica git source tree structure.97109711Test Suites: Updated and cleaned up the documentation files. Updated the9712copyrights to 2009, affecting all source files. Use the new version of9713iASL9714with quiet mode. Increased the number of available semaphores in the9715Windows9716OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,9717added9718an alternate implementation of the semaphore timeout to allow aslts to9719execute fully on Cygwin.97209721----------------------------------------972220 March 2009. Summary of changes for version 20090320:972397241) ACPI CA Core Subsystem:97259726Fixed a possible race condition between AcpiWalkNamespace and dynamic9727table9728unloads. Added a reader/writer locking mechanism to allow multiple9729concurrent9730namespace walks (readers), but block a dynamic table unload until it can9731gain9732exclusive write access to the namespace. This fixes a problem where a9733table9734unload could (possibly catastrophically) delete the portion of the9735namespace9736that is currently being examined by a walk. Adds a new file, utlock.c,9737that9738implements the reader/writer lock mechanism. ACPICA BZ 749.97399740Fixed a regression introduced in version 20090220 where a change to the9741FADT9742handling could cause the ACPICA subsystem to access non-existent I/O9743ports.97449745Modified the handling of FADT register and table (FACS/DSDT) addresses.9746The9747FADT can contain both 32-bit and 64-bit versions of these addresses.9748Previously, the 64-bit versions were favored, meaning that if both 32 and9749649750versions were valid, but not equal, the 64-bit version was used. This was9751found to cause some machines to fail. Now, in this case, the 32-bit9752version9753is used instead. This now matches the Windows behavior.97549755Implemented a new mechanism to protect certain I/O ports. Provides9756Microsoft9757compatibility and protects the standard PC I/O ports from access via AML9758code. Adds a new file, hwvalid.c97599760Fixed a possible extraneous warning message from the FADT support. The9761message warns of a 32/64 length mismatch between the legacy and GAS9762definitions for a register.97639764Removed the obsolete AcpiOsValidateAddress OSL interface. This interface9765is9766made obsolete by the port protection mechanism above. It was previously9767used9768to validate the entire address range of an operation region, which could9769be9770incorrect if the range included illegal ports, but fields within the9771operation region did not actually access those ports. Validation is now9772performed on a per-field basis instead of the entire region.97739774Modified the handling of the PM1 Status Register ignored bit (bit 11.)9775Ignored bits must be "preserved" according to the ACPI spec. Usually,9776this9777means a read/modify/write when writing to the register. However, for9778status9779registers, writing a one means clear the event. Writing a zero means9780preserve9781the event (do not clear.) This behavior is clarified in the ACPI 4.09782spec,9783and the ACPICA code now simply always writes a zero to the ignored bit.97849785Modified the handling of ignored bits for the PM1 A/B Control Registers.9786As9787per the ACPI specification, for the control registers, preserve9788(read/modify/write) all bits that are defined as either reserved or9789ignored.97909791Updated the handling of write-only bits in the PM1 A/B Control Registers.9792When reading the register, zero the write-only bits as per the ACPI spec.9793ACPICA BZ 443. Lin Ming.97949795Removed "Linux" from the list of supported _OSI strings. Linux no longer9796wants to reply true to this request. The Windows strings are the only9797paths9798through the AML that are tested and known to work properly.97999800Previous Release:9801Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total9802Debug Version: 156.9K Code, 49.8K Data, 206.7K Total9803Current Release:9804Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total9805Debug Version: 157.7K Code, 49.9K Data, 207.6K Total980698072) iASL Compiler/Disassembler and Tools:98089809Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c9810and9811aetables.c98129813----------------------------------------981420 February 2009. Summary of changes for version 20090220:981598161) ACPI CA Core Subsystem:98179818Optimized the ACPI register locking. Removed locking for reads from the9819ACPI9820bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock9821is9822not required when reading the single-bit registers. The9823AcpiGetRegisterUnlocked function is no longer needed and has been9824removed.9825This will improve performance for reads on these registers. ACPICA BZ9826760.98279828Fixed the parameter validation for AcpiRead/Write. Now return9829AE_BAD_PARAMETER if the input register pointer is null, and9830AE_BAD_ADDRESS9831if9832the register has an address of zero. Previously, these cases simply9833returned9834AE_OK. For optional registers such as PM1B status/enable/control, the9835caller9836should check for a valid register address before calling. ACPICA BZ 748.98379838Renamed the external ACPI bit register access functions. Renamed9839AcpiGetRegister and AcpiSetRegister to clarify the purpose of these9840functions. The new names are AcpiReadBitRegister and9841AcpiWriteBitRegister.9842Also, restructured the code for these functions by simplifying the code9843path9844and condensing duplicate code to reduce code size.98459846Added new functions to transparently handle the possibly split PM1 A/B9847registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two9848functions9849now handle the split registers for PM1 Status, Enable, and Control.9850ACPICA9851BZ9852746.98539854Added a function to handle the PM1 control registers,9855AcpiHwWritePm1Control.9856This function writes both of the PM1 control registers (A/B). These9857registers9858are different than the PM1 A/B status and enable registers in that9859different9860values can be written to the A/B registers. Most notably, the SLP_TYP9861bits9862can be different, as per the values returned from the _Sx predefined9863methods.98649865Removed an extra register write within AcpiHwClearAcpiStatus. This9866function9867was writing an optional PM1B status register twice. The existing call to9868the9869low-level AcpiHwRegisterWrite automatically handles a possibly split PM19870A/B9871register. ACPICA BZ 751.98729873Split out the PM1 Status registers from the FADT. Added new globals for9874these9875registers (A/B), similar to the way the PM1 Enable registers are handled.9876Instead of overloading the FADT Event Register blocks. This makes the9877code9878clearer and less prone to error.98799880Fixed the warning message for when the platform contains too many ACPI9881tables9882for the default size of the global root table data structure. The9883calculation9884for the truncation value was incorrect.98859886Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this9887obsolete macro, since it is now a simple reference to ->common.type.9888There9889were about 150 invocations of the macro across 41 files. ACPICA BZ 755.98909891Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as9892TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to9893simply SLEEP_TYPE. ACPICA BZ 754.98949895Conditionally compile the AcpiSetFirmwareWakingVector64 function. This9896function is only needed on 64-bit host operating systems and is thus not9897included for 32-bit hosts.98989899Debug output: print the input and result for invocations of the _OSI9900reserved9901control method via the ACPI_LV_INFO debug level. Also, reduced some of9902the9903verbosity of this debug level. Len Brown.99049905Example Code and Data Size: These are the sizes for the OS-independent9906acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9907debug version of the code includes the debug output trace mechanism and9908has a9909much larger code and data size.99109911Previous Release:9912Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total9913Debug Version: 157.3K Code, 49.8K Data, 207.1K Total9914Current Release:9915Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total9916Debug Version: 156.9K Code, 49.8K Data, 206.7K Total991799182) iASL Compiler/Disassembler and Tools:99199920Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the9921various legal performance profiles.99229923----------------------------------------992423 January 2009. Summary of changes for version 20090123:992599261) ACPI CA Core Subsystem:99279928Added the 2009 copyright to all module headers and signons. This affects9929virtually every file in the ACPICA core subsystem, the iASL compiler, and9930the tools/utilities.99319932Implemented a change to allow the host to override any ACPI table,9933including9934dynamically loaded tables. Previously, only the DSDT could be replaced by9935the9936host. With this change, the AcpiOsTableOverride interface is called for9937each9938table found in the RSDT/XSDT during ACPICA initialization, and also9939whenever9940a table is dynamically loaded via the AML Load operator.99419942Updated FADT flag definitions, especially the Boot Architecture flags.99439944Debugger: For the Find command, automatically pad the input ACPI name9945with9946underscores if the name is shorter than 4 characters. This enables a9947match9948with the actual namespace entry which is itself padded with underscores.99499950Example Code and Data Size: These are the sizes for the OS-independent9951acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9952debug version of the code includes the debug output trace mechanism and9953has a9954much larger code and data size.99559956Previous Release:9957Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total9958Debug Version: 157.1K Code, 49.7K Data, 206.8K Total9959Current Release:9960Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total9961Debug Version: 157.3K Code, 49.8K Data, 207.1K Total996299632) iASL Compiler/Disassembler and Tools:99649965Fix build error under Bison-2.4.99669967Disassembler: Enhanced FADT support. Added decoding of the Boot9968Architecture9969flags. Now decode all flags, regardless of the FADT version. Flag output9970includes the FADT version which first defined each flag.99719972The iASL -g option now dumps the RSDT to a file (in addition to the FADT9973and9974DSDT). Windows only.99759976----------------------------------------997704 December 2008. Summary of changes for version 20081204:997899791) ACPI CA Core Subsystem:99809981The ACPICA Programmer Reference has been completely updated and revamped9982for9983this release. This includes updates to the external interfaces, OSL9984interfaces, the overview sections, and the debugger reference.99859986Several new ACPICA interfaces have been implemented and documented in the9987programmer reference:9988AcpiReset - Writes the reset value to the FADT-defined reset register.9989AcpiDisableAllGpes - Disable all available GPEs.9990AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.9991AcpiGetGpeDevice - Get the GPE block device associated with a GPE.9992AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.9993AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)9994AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)99959996Most of the public ACPI hardware-related interfaces have been moved to a9997new9998file, components/hardware/hwxface.c999910000Enhanced the FADT parsing and low-level ACPI register access: The ACPI10001register lengths within the FADT are now used, and the low level ACPI10002register access no longer hardcodes the ACPI register lengths. Given that10003there may be some risk in actually trusting the FADT register lengths, a10004run-10005time option was added to fall back to the default hardcoded lengths if10006the10007FADT proves to contain incorrect values - UseDefaultRegisterWidths. This10008option is set to true for now, and a warning is issued if a suspicious10009FADT10010register length is overridden with the default value.1001110012Fixed a reference count issue in NsRepairObject. This problem was10013introduced10014in version 20081031 as part of a fix to repair Buffer objects within10015Packages. Lin Ming.1001610017Added semaphore support to the Linux/Unix application OS-services layer10018(OSL). ACPICA BZ 448. Lin Ming.1001910020Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes10021will10022be implemented in the OSL, or will binary semaphores be used instead.1002310024Example Code and Data Size: These are the sizes for the OS-independent10025acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10026debug version of the code includes the debug output trace mechanism and10027has a10028much larger code and data size.1002910030Previous Release:10031Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total10032Debug Version: 156.4K Code, 49.4K Data, 205.8K Total10033Current Release:10034Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total10035Debug Version: 157.1K Code, 49.7K Data, 206.8K Total10036100372) iASL Compiler/Disassembler and Tools:1003810039iASL: Completed the '-e' option to include additional ACPI tables in10040order10041to10042aid with disassembly and External statement generation. ACPICA BZ 742.10043Lin10044Ming.1004510046iASL: Removed the "named object in while loop" error. The compiler cannot10047determine how many times a loop will execute. ACPICA BZ 730.1004810049Disassembler: Implemented support for FADT revision 2 (MS extension).10050ACPICA10051BZ 743.1005210053Disassembler: Updates for several ACPI data tables (HEST, EINJ, and10054MCFG).1005510056----------------------------------------1005731 October 2008. Summary of changes for version 20081031:10058100591) ACPI CA Core Subsystem:1006010061Restructured the ACPICA header files into public/private. acpi.h now10062includes10063only the "public" acpica headers. All other acpica headers are "private"10064and10065should not be included by acpica users. One new file, accommon.h is used10066to10067include the commonly used private headers for acpica code generation.10068Future10069plans include moving all private headers to a new subdirectory.1007010071Implemented an automatic Buffer->String return value conversion for10072predefined ACPI methods. For these methods (such as _BIF), added10073automatic10074conversion for return objects that are required to be a String, but a10075Buffer10076was found instead. This can happen when reading string battery data from10077an10078operation region, because it used to be difficult to convert the data10079from10080buffer to string from within the ASL. Ensures that the host OS is10081provided10082with a valid null-terminated string. Linux BZ 11822.1008310084Updated the FACS waking vector interfaces. Split10085AcpiSetFirmwareWakingVector10086into two: one for the 32-bit vector, another for the 64-bit vector. This10087is10088required because the host OS must setup the wake much differently for10089each10090vector (real vs. protected mode, etc.) and the interface itself should10091not10092be10093deciding which vector to use. Also, eliminated the10094GetFirmwareWakingVector10095interface, as it served no purpose (only the firmware reads the vector,10096OS10097only writes the vector.) ACPICA BZ 731.1009810099Implemented a mechanism to escape infinite AML While() loops. Added a10100loop10101counter to force exit from AML While loops if the count becomes too10102large.10103This can occur in poorly written AML when the hardware does not respond10104within a while loop and the loop does not implement a timeout. The10105maximum10106loop count is configurable. A new exception code is returned when a loop10107is10108broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.1010910110Optimized the execution of AML While loops. Previously, a control state10111object was allocated and freed for each execution of the loop. The10112optimization is to simply reuse the control state for each iteration.10113This10114speeds up the raw loop execution time by about 5%.1011510116Enhanced the implicit return mechanism. For Windows compatibility, return10117an10118implicit integer of value zero for methods that contain no executable10119code.10120Such methods are seen in the field as stubs (presumably), and can cause10121drivers to fail if they expect a return value. Lin Ming.1012210123Allow multiple backslashes as root prefixes in namepaths. In a fully10124qualified namepath, allow multiple backslash prefixes. This can happen10125(and10126is seen in the field) because of the use of a double-backslash in strings10127(since backslash is the escape character) causing confusion. ACPICA BZ1012873910129Lin Ming.1013010131Emit a warning if two different FACS or DSDT tables are discovered in the10132FADT. Checks if there are two valid but different addresses for the FACS10133and10134DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)1013510136Consolidated the method argument count validation code. Merged the code10137that10138validates control method argument counts into the predefined validation10139module. Eliminates possible multiple warnings for incorrect argument10140counts.1014110142Implemented ACPICA example code. Includes code for ACPICA initialization,10143handler installation, and calling a control method. Available at10144source/tools/examples.1014510146Added a global pointer for FACS table to simplify internal FACS access.10147Use10148the global pointer instead of using AcpiGetTableByIndex for each FACS10149access.10150This simplifies the code for the Global Lock and the Firmware Waking10151Vector(s).1015210153Example Code and Data Size: These are the sizes for the OS-independent10154acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10155debug version of the code includes the debug output trace mechanism and10156has a10157much larger code and data size.1015810159Previous Release:10160Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total10161Debug Version: 155.8K Code, 49.1K Data, 204.9K Total10162Current Release:10163Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total10164Debug Version: 156.4K Code, 49.4K Data, 205.8K Total10165101662) iASL Compiler/Disassembler and Tools:1016710168iASL: Improved disassembly of external method calls. Added the -e option10169to10170allow the inclusion of additional ACPI tables to help with the10171disassembly10172of10173method invocations and the generation of external declarations during the10174disassembly. Certain external method invocations cannot be disassembled10175properly without the actual declaration of the method. Use the -e option10176to10177include the table where the external method(s) are actually declared.10178Most10179useful for disassembling SSDTs that make method calls back to the master10180DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl10181-d10182-e dsdt.aml ssdt1.aml1018310184iASL: Fix to allow references to aliases within ASL namepaths. Fixes a10185problem where the use of an alias within a namepath would result in a not10186found error or cause the compiler to fault. Also now allows forward10187references from the Alias operator itself. ACPICA BZ 738.1018810189----------------------------------------1019026 September 2008. Summary of changes for version 20080926:10191101921) ACPI CA Core Subsystem:1019310194Designed and implemented a mechanism to validate predefined ACPI methods10195and10196objects. This code validates the predefined ACPI objects (objects whose10197names10198start with underscore) that appear in the namespace, at the time they are10199evaluated. The argument count and the type of the returned object are10200validated against the ACPI specification. The purpose of this validation10201is10202to detect problems with the BIOS-implemented predefined ACPI objects10203before10204the results are returned to the ACPI-related drivers. Future enhancements10205may10206include actual repair of incorrect return objects where possible. Two new10207files are nspredef.c and acpredef.h.1020810209Fixed a fault in the AML parser if a memory allocation fails during the10210Op10211completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.1021210213Fixed an issue with implicit return compatibility. This change improves10214the10215implicit return mechanism to be more compatible with the MS interpreter.10216Lin10217Ming, ACPICA BZ 349.1021810219Implemented support for zero-length buffer-to-string conversions. Allow10220zero10221length strings during interpreter buffer-to-string conversions. For10222example,10223during the ToDecimalString and ToHexString operators, as well as implicit10224conversions. Fiodor Suietov, ACPICA BZ 585.1022510226Fixed two possible memory leaks in the error exit paths of10227AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions10228are10229similar in that they use a stack of state objects in order to eliminate10230recursion. The stack must be fully unwound and deallocated if an error10231occurs. Lin Ming. ACPICA BZ 383.1023210233Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the10234global10235ACPI register table. This bit does not exist and is unused. Lin Ming, Bob10236Moore ACPICA BZ 442.1023710238Removed the obsolete version number in module headers. Removed the10239"$Revision" number that appeared in each module header. This version10240number10241was useful under SourceSafe and CVS, but has no meaning under git. It is10242not10243only incorrect, it could also be misleading.1024410245Example Code and Data Size: These are the sizes for the OS-independent10246acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10247debug version of the code includes the debug output trace mechanism and10248has a10249much larger code and data size.1025010251Previous Release:10252Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10253Debug Version: 153.7K Code, 48.2K Data, 201.9K Total10254Current Release:10255Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total10256Debug Version: 155.8K Code, 49.1K Data, 204.9K Total1025710258----------------------------------------1025929 August 2008. Summary of changes for version 20080829:10260102611) ACPI CA Core Subsystem:1026210263Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type10264Reference. Changes include the elimination of cheating on the Object10265field10266for the DdbHandle subtype, addition of a reference class field to10267differentiate the various reference types (instead of an AML opcode), and10268the10269cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 7231027010271Reduce an error to a warning for an incorrect method argument count.10272Previously aborted with an error if too few arguments were passed to a10273control method via the external ACPICA interface. Now issue a warning10274instead10275and continue. Handles the case where the method inadvertently declares10276too10277many arguments, but does not actually use the extra ones. Applies mainly10278to10279the predefined methods. Lin Ming. Linux BZ 11032.1028010281Disallow the evaluation of named object types with no intrinsic value.10282Return10283AE_TYPE for objects that have no value and therefore evaluation is10284undefined:10285Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation10286of10287these types were allowed, but an exception would be generated at some10288point10289during the evaluation. Now, the error is generated up front.1029010291Fixed a possible memory leak in the AcpiNsGetExternalPathname function10292(nsnames.c). Fixes a leak in the error exit path.1029310294Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These10295debug10296levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and10297ACPI_EXCEPTION10298interfaces. Also added ACPI_DB_EVENTS to correspond with the existing10299ACPI_LV_EVENTS.1030010301Removed obsolete and/or unused exception codes from the acexcep.h header.10302There is the possibility that certain device drivers may be affected if10303they10304use any of these exceptions.1030510306The ACPICA documentation has been added to the public git source tree,10307under10308acpica/documents. Included are the ACPICA programmer reference, the iASL10309compiler reference, and the changes.txt release logfile.1031010311Example Code and Data Size: These are the sizes for the OS-independent10312acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10313debug version of the code includes the debug output trace mechanism and10314has a10315much larger code and data size.1031610317Previous Release:10318Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10319Debug Version: 153.9K Code, 48.4K Data, 202.3K Total10320Current Release:10321Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10322Debug Version: 153.7K Code, 48.2K Data, 201.9K Total10323103242) iASL Compiler/Disassembler and Tools:1032510326Allow multiple argument counts for the predefined _SCP method. ACPI 3.010327defines _SCP with 3 arguments. Previous versions defined it with only 110328argument. iASL now allows both definitions.1032910330iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for10331zero-10332length subtables when disassembling ACPI tables. Also fixed a couple of10333errors where a full 16-bit table type field was not extracted from the10334input10335properly.1033610337acpisrc: Improve comment counting mechanism for generating source code10338statistics. Count first and last lines of multi-line comments as10339whitespace,10340not comment lines. Handle Linux legal header in addition to standard10341acpica10342header.1034310344----------------------------------------103451034629 July 2008. Summary of changes for version 20080729:10347103481) ACPI CA Core Subsystem:1034910350Fix a possible deadlock in the GPE dispatch. Remove call to10351AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will10352attempt10353to acquire the GPE lock but can deadlock since the GPE lock is already10354held10355at dispatch time. This code was introduced in version 20060831 as a10356response10357to Linux BZ 6881 and has since been removed from Linux.1035810359Add a function to dereference returned reference objects. Examines the10360return10361object from a call to AcpiEvaluateObject. Any Index or RefOf references10362are10363automatically dereferenced in an attempt to return something useful10364(these10365reference types cannot be converted into an external ACPI_OBJECT.)10366Provides10367MS compatibility. Lin Ming, Bob Moore. Linux BZ 111051036810369x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new10370subtables for the MADT and one new subtable for the SRAT. Includes10371disassembler and AcpiSrc support. Data from the Intel 64 Architecture10372x2APIC10373Specification, June 2008.1037410375Additional error checking for pathname utilities. Add error check after10376all10377calls to AcpiNsGetPathnameLength. Add status return from10378AcpiNsBuildExternalPath and check after all calls. Add parameter10379validation10380to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.1038110382Return status from the global init function AcpiUtGlobalInitialize. This10383is10384used by both the kernel subsystem and the utilities such as iASL10385compiler.10386The function could possibly fail when the caches are initialized. Yang10387Yi.1038810389Add a function to decode reference object types to strings. Created for10390improved error messages.1039110392Improve object conversion error messages. Better error messages during10393object10394conversion from internal to the external ACPI_OBJECT. Used for external10395calls10396to AcpiEvaluateObject.1039710398Example Code and Data Size: These are the sizes for the OS-independent10399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10400debug version of the code includes the debug output trace mechanism and10401has a10402much larger code and data size.1040310404Previous Release:10405Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total10406Debug Version: 153.5K Code, 48.2K Data, 201.7K Total10407Current Release:10408Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10409Debug Version: 153.9K Code, 48.4K Data, 202.3K Total10410104112) iASL Compiler/Disassembler and Tools:1041210413Debugger: fix a possible hang when evaluating non-methods. Fixes a10414problem10415introduced in version 20080701. If the object being evaluated (via10416execute10417command) is not a method, the debugger can hang while trying to obtain10418non-10419existent parameters.1042010421iASL: relax error for using reserved "_T_x" identifiers. These names can10422appear in a disassembled ASL file if they were emitted by the original10423compiler. Instead of issuing an error or warning and forcing the user to10424manually change these names, issue a remark instead.1042510426iASL: error if named object created in while loop. Emit an error if any10427named10428object is created within a While loop. If allowed, this code will10429generate10430a10431run-time error on the second iteration of the loop when an attempt is10432made10433to10434create the same named object twice. ACPICA bugzilla 730.1043510436iASL: Support absolute pathnames for include files. Add support for10437absolute10438pathnames within the Include operator. previously, only relative10439pathnames10440were supported.1044110442iASL: Enforce minimum 1 interrupt in interrupt macro and Resource10443Descriptor.10444The ACPI spec requires one interrupt minimum. BZ 4231044510446iASL: Handle a missing ResourceSource arg, with a present SourceIndex.10447Handles the case for the Interrupt Resource Descriptor where10448the ResourceSource argument is omitted but ResourceSourceIndex10449is present. Now leave room for the Index. BZ 4261045010451iASL: Prevent error message if CondRefOf target does not exist. Fixes10452cases10453where an error message is emitted if the target does not exist. BZ 5161045410455iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option10456(get ACPI tables on Windows). This was apparently broken in version1045720070919.1045810459AcpiXtract: Handle EOF while extracting data. Correctly handle the case10460where10461the EOF happens immediately after the last table in the input file. Print10462completion message. Previously, no message was displayed in this case.1046310464----------------------------------------1046501 July 2008. Summary of changes for version 20080701:10466104670) Git source tree / acpica.org1046810469Fixed a problem where a git-clone from http would not transfer the entire10470source tree.10471104721) ACPI CA Core Subsystem:1047310474Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one10475enable bit. Now performs a read-change-write of the enable register10476instead10477of simply writing out the cached enable mask. This will prevent10478inadvertent10479enabling of GPEs if a rogue GPE is received during initialization (before10480GPE10481handlers are installed.)1048210483Implemented a copy for dynamically loaded tables. Previously, dynamically10484loaded tables were simply mapped - but on some machines this memory is10485corrupted after suspend. Now copy the table to a local buffer. For the10486OpRegion case, added checksum verify. Use the table length from the table10487header, not the region length. For the Buffer case, use the table length10488also. Dennis Noordsij, Bob Moore. BZ 107341048910490Fixed a problem where the same ACPI table could not be dynamically loaded10491and10492unloaded more than once. Without this change, a table cannot be loaded10493again10494once it has been loaded/unloaded one time. The current mechanism does not10495unregister a table upon an unload. During a load, if the same table is10496found,10497this no longer returns an exception. BZ 7221049810499Fixed a problem where the wrong descriptor length was calculated for the10500EndTag descriptor in 64-bit mode. The "minimal" descriptors such as10501EndTag10502are calculated as 12 bytes long, but the actual length in the internal10503descriptor is 16 because of the round-up to 8 on the 64-bit build.10504Reported10505by Linn Crosetto. BZ 7281050610507Fixed a possible memory leak in the Unload operator. The DdbHandle10508returned10509by Load() did not have its reference count decremented during unload,10510leading10511to a memory leak. Lin Ming. BZ 7271051210513Fixed a possible memory leak when deleting thermal/processor objects. Any10514associated notify handlers (and objects) were not being deleted. Fiodor10515Suietov. BZ 5061051610517Fixed the ordering of the ASCII names in the global mutex table to match10518the10519actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug10520only.10521Vegard Nossum. BZ 7261052210523Enhanced the AcpiGetObjectInfo interface to return the number of required10524arguments if the object is a control method. Added this call to the10525debugger10526so the proper number of default arguments are passed to a method. This10527prevents a warning when executing methods from AcpiExec.1052810529Added a check for an invalid handle in AcpiGetObjectInfo. Return10530AE_BAD_PARAMETER if input handle is invalid. BZ 4741053110532Fixed an extraneous warning from exconfig.c on the 64-bit build.1053310534Example Code and Data Size: These are the sizes for the OS-independent10535acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10536debug version of the code includes the debug output trace mechanism and10537has a10538much larger code and data size.1053910540Previous Release:10541Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total10542Debug Version: 153.0K Code, 48.2K Data, 201.2K Total10543Current Release:10544Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total10545Debug Version: 153.5K Code, 48.2K Data, 201.7K Total10546105472) iASL Compiler/Disassembler and Tools:1054810549iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both10550resource descriptor names.1055110552iASL: Detect invalid ASCII characters in input (windows version). Removed10553the10554"-CF" flag from the flex compile, enables correct detection of non-ASCII10555characters in the input. BZ 4411055610557iASL: Eliminate warning when result of LoadTable is not used. Eliminate10558the10559"result of operation not used" warning when the DDB handle returned from10560LoadTable is not used. The warning is not needed. BZ 5901056110562AcpiExec: Add support for dynamic table load/unload. Now calls _CFG10563method10564to10565pass address of table to the AML. Added option to disable OpRegion10566simulation10567to allow creation of an OpRegion with a real address that was passed to10568_CFG.10569All of this allows testing of the Load and Unload operators from10570AcpiExec.1057110572Debugger: update tables command for unloaded tables. Handle unloaded10573tables10574and use the standard table header output routine.1057510576----------------------------------------1057709 June 2008. Summary of changes for version 20080609:10578105791) ACPI CA Core Subsystem:1058010581Implemented a workaround for reversed _PRT entries. A significant number10582of10583BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This10584change dynamically detects and repairs this problem. Provides10585compatibility10586with MS ACPI. BZ 68591058710588Simplified the internal ACPI hardware interfaces to eliminate the locking10589flag parameter from Register Read/Write. Added a new external interface,10590AcpiGetRegisterUnlocked.1059110592Fixed a problem where the invocation of a GPE control method could hang.10593This10594was a regression introduced in 20080514. The new method argument count10595validation mechanism can enter an infinite loop when a GPE method is10596dispatched. Problem fixed by removing the obsolete code that passed GPE10597block10598information to the notify handler via the control method parameter10599pointer.1060010601Fixed a problem where the _SST execution status was incorrectly returned10602to10603the caller of AcpiEnterSleepStatePrep. This was a regression introduced10604in1060520080514. _SST is optional and a NOT_FOUND exception should never be10606returned. BZ 7161060710608Fixed a problem where a deleted object could be accessed from within the10609AML10610parser. This was a regression introduced in version 20080123 as a fix for10611the10612Unload operator. Lin Ming. BZ 106691061310614Cleaned up the debug operand dump mechanism. Eliminated unnecessary10615operands10616and eliminated the use of a negative index in a loop. Operands are now10617displayed in the correct order, not backwards. This also fixes a10618regression10619introduced in 20080514 on 64-bit systems where the elimination of10620ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ106217151062210623Fixed a possible memory leak in EvPciConfigRegionSetup where the error10624exit10625path did not delete a locally allocated structure.1062610627Updated definitions for the DMAR and SRAT tables to synchronize with the10628current specifications. Includes disassembler support.1062910630Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect10631loop termination value was used. Loop terminated on iteration early,10632missing10633one mutex. Linn Crosetto1063410635Example Code and Data Size: These are the sizes for the OS-independent10636acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10637debug version of the code includes the debug output trace mechanism and10638has a10639much larger code and data size.1064010641Previous Release:10642Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total10643Debug Version: 153.3K Code, 48.3K Data, 201.6K Total10644Current Release:10645Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total10646Debug Version: 153.0K Code, 48.2K Data, 201.2K Total10647106482) iASL Compiler/Disassembler and Tools:1064910650Disassembler: Implemented support for EisaId() within _CID objects. Now10651disassemble integer _CID objects back to EisaId invocations, including10652multiple integers within _CID packages. Includes single-step support for10653debugger also.1065410655Disassembler: Added support for DMAR and SRAT table definition changes.1065610657----------------------------------------1065814 May 2008. Summary of changes for version 20080514:10659106601) ACPI CA Core Subsystem:1066110662Fixed a problem where GPEs were enabled too early during the ACPICA10663initialization. This could lead to "handler not installed" errors on some10664machines. Moved GPE enable until after _REG/_STA/_INI methods are run.10665This10666ensures that all operation regions and devices throughout the namespace10667have10668been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.1066910670Implemented a change to the enter sleep code. Moved execution of the _GTS10671method to just before setting sleep enable bit. The execution was moved10672from10673AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed10674immediately before the SLP_EN bit is set, as per the ACPI specification.10675Luming Yu, BZ 1653.1067610677Implemented a fix to disable unknown GPEs (2nd version). Now always10678disable10679the GPE, even if ACPICA thinks that that it is already disabled. It is10680possible that the AML or some other code has enabled the GPE unbeknownst10681to10682the ACPICA code.1068310684Fixed a problem with the Field operator where zero-length fields would10685return10686an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length10687ASL10688field declarations in Field(), BankField(), and IndexField(). BZ 10606.1068910690Implemented a fix for the Load operator, now load the table at the10691namespace10692root. This reverts a change introduced in version 20071019. The table is10693now10694loaded at the namespace root even though this goes against the ACPI10695specification. This provides compatibility with other ACPI10696implementations.10697The ACPI specification will be updated to reflect this in ACPI 4.0. Lin10698Ming.1069910700Fixed a problem where ACPICA would not Load() tables with unusual10701signatures.10702Now ignore ACPI table signature for Load() operator. Only "SSDT" is10703acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.10704Therefore, signature validation is worthless. Apparently MS ACPI accepts10705such10706signatures, ACPICA must be compatible. BZ 10454.1070710708Fixed a possible negative array index in AcpiUtValidateException. Added10709NULL10710fields to the exception string arrays to eliminate a -1 subtraction on10711the10712SubStatus field.1071310714Updated the debug tracking macros to reduce overall code and data size.10715Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings10716instead of pointers to static strings. Jan Beulich and Bob Moore.1071710718Implemented argument count checking in control method invocation via10719AcpiEvaluateObject. Now emit an error if too few arguments, warning if10720too10721many. This applies only to extern programmatic control method execution,10722not10723method-to-method calls within the AML. Lin Ming.1072410725Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is10726no10727longer needed, especially with the removal of 16-bit support. It was10728replaced10729mostly with UINT32, but also ACPI_SIZE where a type that changes 32/6410730bit10731on1073232/64-bit platforms is required.1073310734Added the C const qualifier for appropriate string constants -- mostly10735MODULE_NAME and printf format strings. Jan Beulich.1073610737Example Code and Data Size: These are the sizes for the OS-independent10738acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10739debug version of the code includes the debug output trace mechanism and10740has a10741much larger code and data size.1074210743Previous Release:10744Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total10745Debug Version: 159.4K Code, 64.4K Data, 223.8K Total10746Current Release:10747Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total10748Debug Version: 153.3K Code, 48.3K Data, 201.6K Total10749107502) iASL Compiler/Disassembler and Tools:1075110752Implemented ACPI table revision ID validation in the disassembler. Zero10753is10754always invalid. For DSDTs, the ID controls the interpreter integer width.10755110756means 32-bit and this is unusual. 2 or greater is 64-bit.1075710758----------------------------------------1075921 March 2008. Summary of changes for version 20080321:10760107611) ACPI CA Core Subsystem:1076210763Implemented an additional change to the GPE support in order to suppress10764spurious or stray GPEs. The AcpiEvDisableGpe function will now10765permanently10766disable incoming GPEs that are neither enabled nor disabled -- meaning10767that10768the GPE is unknown to the system. This should prevent future interrupt10769floods10770from that GPE. BZ 6217 (Zhang Rui)1077110772Fixed a problem where NULL package elements were not returned to the10773AcpiEvaluateObject interface correctly. The element was simply ignored10774instead of returning a NULL ACPI_OBJECT package element, potentially10775causing10776a buffer overflow and/or confusing the caller who expected a fixed number10777of10778elements. BZ 10132 (Lin Ming, Bob Moore)1077910780Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,10781Dword,10782Qword), Field, BankField, and IndexField operators when invoked from10783inside10784an executing control method. In this case, these operators created10785namespace10786nodes that were incorrectly left marked as permanent nodes instead of10787temporary nodes. This could cause a problem if there is race condition10788between an exiting control method and a running namespace walk. (Reported10789by10790Linn Crosetto)1079110792Fixed a problem where the CreateField and CreateXXXField operators would10793incorrectly allow duplicate names (the name of the field) with no10794exception10795generated.1079610797Implemented several changes for Notify handling. Added support for new10798Notify10799values (ACPI 2.0+) and improved the Notify debug output. Notify on10800PowerResource objects is no longer allowed, as per the ACPI10801specification.10802(Bob Moore, Zhang Rui)1080310804All Reference Objects returned via the AcpiEvaluateObject interface are10805now10806marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved10807for10808NULL objects - either NULL package elements or unresolved named10809references.1081010811Fixed a problem where an extraneous debug message was produced for10812package10813objects (when debugging enabled). The message "Package List length larger10814than NumElements count" is now produced in the correct case, and is now10815an10816error message rather than a debug message. Added a debug message for the10817opposite case, where NumElements is larger than the Package List (the10818package10819will be padded out with NULL elements as per the ACPI spec.)1082010821Implemented several improvements for the output of the ASL "Debug" object10822to10823clarify and keep all data for a given object on one output line.1082410825Fixed two size calculation issues with the variable-length Start10826Dependent10827resource descriptor.1082810829Example Code and Data Size: These are the sizes for the OS-independent10830acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10831debug version of the code includes the debug output trace mechanism and10832has10833a much larger code and data size.1083410835Previous Release:10836Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total10837Debug Version: 158.9K Code, 64.0K Data, 222.9K Total10838Current Release:10839Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total10840Debug Version: 159.4K Code, 64.4K Data, 223.8K Total10841108422) iASL Compiler/Disassembler and Tools:1084310844Fixed a problem with the use of the Switch operator where execution of10845the10846containing method by multiple concurrent threads could cause an10847AE_ALREADY_EXISTS exception. This is caused by the fact that there is no10848actual Switch opcode, it must be simulated with local named temporary10849variables and if/else pairs. The solution chosen was to mark any method10850that10851uses Switch as Serialized, thus preventing multiple thread entries. BZ10852469.1085310854----------------------------------------1085513 February 2008. Summary of changes for version 20080213:10856108571) ACPI CA Core Subsystem:1085810859Implemented another MS compatibility design change for GPE/Notify10860handling.10861GPEs are now cleared/enabled asynchronously to allow all pending notifies10862to10863complete first. It is expected that the OSL will queue the enable request10864behind all pending notify requests (may require changes to the local host10865OSL10866in AcpiOsExecute). Alexey Starikovskiy.1086710868Fixed a problem where buffer and package objects passed as arguments to a10869control method via the external AcpiEvaluateObject interface could cause10870an10871AE_AML_INTERNAL exception depending on the order and type of operators10872executed by the target control method.1087310874Fixed a problem where resource descriptor size optimization could cause a10875problem when a _CRS resource template is passed to a _SRS method. The10876_SRS10877resource template must use the same descriptors (with the same size) as10878returned from _CRS. This change affects the following resource10879descriptors:10880IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ108819487)1088210883Fixed a problem where a CopyObject to RegionField, BankField, and10884IndexField10885objects did not perform an implicit conversion as it should. These types10886must10887retain their initial type permanently as per the ACPI specification.10888However,10889a CopyObject to all other object types should not perform an implicit10890conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 3881089110892Fixed a problem with the AcpiGetDevices interface where the mechanism to10893match device CIDs did not examine the entire list of available CIDs, but10894instead aborted on the first non-matching CID. Andrew Patterson.1089510896Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro10897was10898inadvertently changed to return a 16-bit value instead of a 32-bit value,10899truncating the upper dword of a 64-bit value. This macro is only used to10900display debug output, so no incorrect calculations were made. Also,10901reimplemented the macro so that a 64-bit shift is not performed by10902inefficient compilers.1090310904Added missing va_end statements that should correspond with each va_start10905statement.1090610907Example Code and Data Size: These are the sizes for the OS-independent10908acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10909debug version of the code includes the debug output trace mechanism and10910has10911a much larger code and data size.1091210913Previous Release:10914Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total10915Debug Version: 159.0K Code, 63.8K Data, 222.8K Total10916Current Release:10917Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total10918Debug Version: 158.9K Code, 64.0K Data, 222.9K Total10919109202) iASL Compiler/Disassembler and Tools:1092110922Implemented full disassembler support for the following new ACPI tables:10923BERT, EINJ, and ERST. Implemented partial disassembler support for the10924complicated HEST table. These tables support the Windows Hardware Error10925Architecture (WHEA).1092610927----------------------------------------1092823 January 2008. Summary of changes for version 20080123:10929109301) ACPI CA Core Subsystem:1093110932Added the 2008 copyright to all module headers and signons. This affects10933virtually every file in the ACPICA core subsystem, the iASL compiler, and10934the tools/utilities.1093510936Fixed a problem with the SizeOf operator when used with Package and10937Buffer10938objects. These objects have deferred execution for some arguments, and10939the10940execution is now completed before the SizeOf is executed. This problem10941caused10942unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)10943BZ1094495581094510946Implemented an enhancement to the interpreter "slack mode". In the10947absence10948of10949an explicit return or an implicitly returned object from the last10950executed10951opcode, a control method will now implicitly return an integer of value 010952for10953Microsoft compatibility. (Lin Ming) BZ 3921095410955Fixed a problem with the Load operator where an exception was not10956returned10957in10958the case where the table is already loaded. (Lin Ming) BZ 4631095910960Implemented support for the use of DDBHandles as an Indexed Reference, as10961per10962the ACPI spec. (Lin Ming) BZ 4861096310964Implemented support for UserTerm (Method invocation) for the Unload10965operator10966as per the ACPI spec. (Lin Ming) BZ 5801096710968Fixed a problem with the LoadTable operator where the OemId and10969OemTableId10970input strings could cause unexpected failures if they were shorter than10971the10972maximum lengths allowed. (Lin Ming, Bob Moore) BZ 5761097310974Implemented support for UserTerm (Method invocation) for the Unload10975operator10976as per the ACPI spec. (Lin Ming) BZ 5801097710978Implemented header file support for new ACPI tables - BERT, ERST, EINJ,10979HEST,10980IBFT, UEFI, WDAT. Disassembler support is forthcoming.1098110982Example Code and Data Size: These are the sizes for the OS-independent10983acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10984debug version of the code includes the debug output trace mechanism and10985has10986a much larger code and data size.1098710988Previous Release:10989Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total10990Debug Version: 158.6K Code, 63.8K Data, 222.4K Total10991Current Release:10992Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total10993Debug Version: 159.0K Code, 63.8K Data, 222.8K Total10994109952) iASL Compiler/Disassembler and Tools:1099610997Implemented support in the disassembler for checksum validation on10998incoming10999binary DSDTs and SSDTs. If incorrect, a message is displayed within the11000table11001header dump at the start of the disassembly.1100211003Implemented additional debugging information in the namespace listing11004file11005created during compilation. In addition to the namespace hierarchy, the11006full11007pathname to each namespace object is displayed.1100811009Fixed a problem with the disassembler where invalid ACPI tables could11010cause11011faults or infinite loops.1101211013Fixed an unexpected parse error when using the optional "parameter types"11014list in a control method declaration. (Lin Ming) BZ 3971101511016Fixed a problem where two External declarations with the same name did11017not11018cause an error (Lin Ming) BZ 5091101911020Implemented support for full TermArgs (adding Argx, Localx and method11021invocation) for the ParameterData parameter to the LoadTable operator.11022(Lin11023Ming) BZ 583,5871102411025----------------------------------------1102619 December 2007. Summary of changes for version 20071219:11027110281) ACPI CA Core Subsystem:1102911030Implemented full support for deferred execution for the TermArg string11031arguments for DataTableRegion. This enables forward references and full11032operand resolution for the three string arguments. Similar to11033OperationRegion11034deferred argument execution.) Lin Ming. BZ 4301103511036Implemented full argument resolution support for the BankValue argument11037to11038BankField. Previously, only constants were supported, now any TermArg may11039be11040used. Lin Ming BZ 387, 3931104111042Fixed a problem with AcpiGetDevices where the search of a branch of the11043device tree could be terminated prematurely. In accordance with the ACPI11044specification, the search down the current branch is terminated if a11045device11046is both not present and not functional (instead of just not present.)11047Yakui11048Zhao.1104911050Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly11051if11052the underlying AML code changed the GPE enable registers. Now, any11053unknown11054incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately11055disabled11056instead of simply ignored. Rui Zhang.1105711058Fixed a problem with Index Fields where the Index register was11059incorrectly11060limited to a maximum of 32 bits. Now any size may be used.1106111062Fixed a couple memory leaks associated with "implicit return" objects11063when11064the AML Interpreter slack mode is enabled. Lin Ming BZ 3491106511066Example Code and Data Size: These are the sizes for the OS-independent11067acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11068debug version of the code includes the debug output trace mechanism and11069has11070a much larger code and data size.1107111072Previous Release:11073Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total11074Debug Version: 157.9K Code, 63.6K Data, 221.5K Total11075Current Release:11076Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total11077Debug Version: 158.6K Code, 63.8K Data, 222.4K Total1107811079----------------------------------------1108014 November 2007. Summary of changes for version 20071114:11081110821) ACPI CA Core Subsystem:1108311084Implemented event counters for each of the Fixed Events, the ACPI SCI11085(interrupt) itself, and control methods executed. Named11086AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.11087These11088should be useful for debugging and statistics.1108911090Implemented a new external interface, AcpiGetStatistics, to retrieve the11091contents of the various event counters. Returns the current values for11092AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and11093AcpiMethodCount. The interface can be expanded in the future if new11094counters11095are added. Device drivers should use this interface rather than access11096the11097counters directly.1109811099Fixed a problem with the FromBCD and ToBCD operators. With some11100compilers,11101the ShortDivide function worked incorrectly, causing problems with the11102BCD11103functions with large input values. A truncation from 64-bit to 32-bit11104inadvertently occurred. Internal BZ 435. Lin Ming1110511106Fixed a problem with Index references passed as method arguments.11107References11108passed as arguments to control methods were dereferenced immediately11109(before11110control was passed to the called method). The references are now11111correctly11112passed directly to the called method. BZ 5389. Lin Ming1111311114Fixed a problem with CopyObject used in conjunction with the Index11115operator.11116The reference was incorrectly dereferenced before the copy. The reference11117is11118now correctly copied. BZ 5391. Lin Ming1111911120Fixed a problem with Control Method references within Package objects.11121These11122references are now correctly generated. This completes the package11123construction overhaul that began in version 20071019.1112411125Example Code and Data Size: These are the sizes for the OS-independent11126acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11127debug version of the code includes the debug output trace mechanism and11128has11129a much larger code and data size.1113011131Previous Release:11132Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total11133Debug Version: 157.2K Code, 63.4K Data, 220.6K Total11134Current Release:11135Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total11136Debug Version: 157.9K Code, 63.6K Data, 221.5K Total1113711138111392) iASL Compiler/Disassembler and Tools:1114011141The AcpiExec utility now installs handlers for all of the predefined11142Operation Region types. New types supported are: PCI_Config, CMOS, and11143PCIBARTarget.1114411145Fixed a problem with the 64-bit version of AcpiExec where the extended11146(64-11147bit) address fields for the DSDT and FACS within the FADT were not being11148used, causing truncation of the upper 32-bits of these addresses. Lin11149Ming11150and Bob Moore1115111152----------------------------------------1115319 October 2007. Summary of changes for version 20071019:11154111551) ACPI CA Core Subsystem:1115611157Fixed a problem with the Alias operator when the target of the alias is a11158named ASL operator that opens a new scope -- Scope, Device,11159PowerResource,11160Processor, and ThermalZone. In these cases, any children of the original11161operator could not be accessed via the alias, potentially causing11162unexpected11163AE_NOT_FOUND exceptions. (BZ 9067)1116411165Fixed a problem with the Package operator where all named references were11166created as object references and left otherwise unresolved. According to11167the11168ACPI specification, a Package can only contain Data Objects or references11169to11170control methods. The implication is that named references to Data Objects11171(Integer, Buffer, String, Package, BufferField, Field) should be resolved11172immediately upon package creation. This is the approach taken with this11173change. References to all other named objects (Methods, Devices, Scopes,11174etc.) are all now properly created as reference objects. (BZ 5328)1117511176Reverted a change to Notify handling that was introduced in version1117720070508. This version changed the Notify handling from asynchronous to11178fully synchronous (Device driver Notify handling with respect to the11179Notify11180ASL operator). It was found that this change caused more problems than it11181solved and was removed by most users.1118211183Fixed a problem with the Increment and Decrement operators where the type11184of11185the target object could be unexpectedly and incorrectly changed. (BZ 353)11186Lin Ming.1118711188Fixed a problem with the Load and LoadTable operators where the table11189location within the namespace was ignored. Instead, the table was always11190loaded into the root or current scope. Lin Ming.1119111192Fixed a problem with the Load operator when loading a table from a buffer11193object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)1119411195Fixed a problem with the Debug object where a store of a DdbHandle11196reference11197object to the Debug object could cause a fault.1119811199Added a table checksum verification for the Load operator, in the case11200where11201the load is from a buffer. (BZ 578).1120211203Implemented additional parameter validation for the LoadTable operator.11204The11205length of the input strings SignatureString, OemIdString, and OemTableId11206are11207now checked for maximum lengths. (BZ 582) Lin Ming.1120811209Example Code and Data Size: These are the sizes for the OS-independent11210acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11211debug version of the code includes the debug output trace mechanism and11212has11213a much larger code and data size.1121411215Previous Release:11216Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total11217Debug Version: 156.7K Code, 63.2K Data, 219.9K Total11218Current Release:11219Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total11220Debug Version: 157.2K Code, 63.4K Data, 220.6K Total1122111222112232) iASL Compiler/Disassembler:1122411225Fixed a problem where if a single file was specified and the file did not11226exist, no error message was emitted. (Introduced with wildcard support in11227version 20070917.)1122811229----------------------------------------1123019 September 2007. Summary of changes for version 20070919:11231112321) ACPI CA Core Subsystem:1123311234Designed and implemented new external interfaces to install and remove11235handlers for ACPI table-related events. Current events that are defined11236are11237LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as11238they are dynamically loaded and unloaded. See AcpiInstallTableHandler and11239AcpiRemoveTableHandler. (Lin Ming and Bob Moore)1124011241Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag11242(acpi_serialized option on Linux) could cause some systems to hang during11243initialization. (Bob Moore) BZ 81711124411245Fixed a problem where objects of certain types (Device, ThermalZone,11246Processor, PowerResource) can be not found if they are declared and11247referenced from within the same control method (Lin Ming) BZ 3411124811249Example Code and Data Size: These are the sizes for the OS-independent11250acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11251debug version of the code includes the debug output trace mechanism and11252has11253a much larger code and data size.1125411255Previous Release:11256Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total11257Debug Version: 156.3K Code, 63.1K Data, 219.4K Total11258Current Release:11259Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total11260Debug Version: 156.7K Code, 63.2K Data, 219.9K Total1126111262112632) iASL Compiler/Disassembler:1126411265Implemented support to allow multiple files to be compiled/disassembled11266in11267a11268single invocation. This includes command line wildcard support for both11269the11270Windows and Unix versions of the compiler. This feature simplifies the11271disassembly and compilation of multiple ACPI tables in a single11272directory.1127311274----------------------------------------1127508 May 2007. Summary of changes for version 20070508:11276112771) ACPI CA Core Subsystem:1127811279Implemented a Microsoft compatibility design change for the handling of11280the11281Notify AML operator. Previously, notify handlers were dispatched and11282executed completely asynchronously in a deferred thread. The new design11283still executes the notify handlers in a different thread, but the11284original11285thread that executed the Notify() now waits at a synchronization point11286for11287the notify handler to complete. Some machines depend on a synchronous11288Notify11289operator in order to operate correctly.1129011291Implemented support to allow Package objects to be passed as method11292arguments to the external AcpiEvaluateObject interface. Previously, this11293would return the AE_NOT_IMPLEMENTED exception. This feature had not been11294implemented since there were no reserved control methods that required it11295until recently.1129611297Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs11298that11299contained invalid non-zero values in reserved fields could cause later11300failures because these fields have meaning in later revisions of the11301FADT.11302For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The11303fields11304are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)1130511306Fixed a problem where the Global Lock handle was not properly updated if11307a11308thread that acquired the Global Lock via executing AML code then11309attempted11310to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by11311Joe11312Liu.1131311314Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list11315could be corrupted if the interrupt being removed was at the head of the11316list. Reported by Linn Crosetto.1131711318Example Code and Data Size: These are the sizes for the OS-independent11319acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11320debug version of the code includes the debug output trace mechanism and11321has11322a much larger code and data size.1132311324Previous Release:11325Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11326Debug Version: 155.9K Code, 63.1K Data, 219.0K Total11327Current Release:11328Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total11329Debug Version: 156.3K Code, 63.1K Data, 219.4K Total1133011331----------------------------------------1133220 March 2007. Summary of changes for version 20070320:11333113341) ACPI CA Core Subsystem:1133511336Implemented a change to the order of interpretation and evaluation of AML11337operand objects within the AML interpreter. The interpreter now evaluates11338operands in the order that they appear in the AML stream (and the11339corresponding ASL code), instead of in the reverse order (after the11340entire11341operand list has been parsed). The previous behavior caused several11342subtle11343incompatibilities with the Microsoft AML interpreter as well as being11344somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.1134511346Implemented a change to the ACPI Global Lock support. All interfaces to11347the11348global lock now allow the same thread to acquire the lock multiple times.11349This affects the AcpiAcquireGlobalLock external interface to the global11350lock11351as well as the internal use of the global lock to support AML fields -- a11352control method that is holding the global lock can now simultaneously11353access11354AML fields that require global lock protection. Previously, in both11355cases,11356this would have resulted in an AE_ALREADY_ACQUIRED exception. The change11357to11358AcpiAcquireGlobalLock is of special interest to drivers for the Embedded11359Controller. There is no change to the behavior of the AML Acquire11360operator,11361as this can already be used to acquire a mutex multiple times by the same11362thread. BZ 8066. With assistance from Alexey Starikovskiy.1136311364Fixed a problem where invalid objects could be referenced in the AML11365Interpreter after error conditions. During operand evaluation, ensure11366that11367the internal "Return Object" field is cleared on error and only valid11368pointers are stored there. Caused occasional access to deleted objects11369that11370resulted in "large reference count" warning messages. Valery Podrezov.1137111372Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur11373on11374deeply nested control method invocations. BZ 7873, local BZ 487. Valery11375Podrezov.1137611377Fixed an internal problem with the handling of result objects on the11378interpreter result stack. BZ 7872. Valery Podrezov.1137911380Removed obsolete code that handled the case where AML_NAME_OP is the11381target11382of a reference (Reference.Opcode). This code was no longer necessary. BZ113837874. Valery Podrezov.1138411385Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This11386was11387a11388remnant from the previously discontinued 16-bit support.1138911390Example Code and Data Size: These are the sizes for the OS-independent11391acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11392debug version of the code includes the debug output trace mechanism and11393has11394a much larger code and data size.1139511396Previous Release:11397Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11398Debug Version: 155.8K Code, 63.3K Data, 219.1K Total11399Current Release:11400Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11401Debug Version: 155.9K Code, 63.1K Data, 219.0K Total1140211403----------------------------------------1140426 January 2007. Summary of changes for version 20070126:11405114061) ACPI CA Core Subsystem:1140711408Added the 2007 copyright to all module headers and signons. This affects11409virtually every file in the ACPICA core subsystem, the iASL compiler, and11410the utilities.1141111412Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable11413during a table load. A bad pointer was passed in the case where the DSDT11414is11415overridden, causing a fault in this case.1141611417Example Code and Data Size: These are the sizes for the OS-independent11418acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11419debug version of the code includes the debug output trace mechanism and11420has11421a much larger code and data size.1142211423Previous Release:11424Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11425Debug Version: 155.8K Code, 63.3K Data, 219.1K Total11426Current Release:11427Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11428Debug Version: 155.8K Code, 63.3K Data, 219.1K Total1142911430----------------------------------------1143115 December 2006. Summary of changes for version 20061215:11432114331) ACPI CA Core Subsystem:1143411435Support for 16-bit ACPICA has been completely removed since it is no11436longer11437necessary and it clutters the code. All 16-bit macros, types, and11438conditional compiles have been removed, cleaning up and simplifying the11439code11440across the entire subsystem. DOS support is no longer needed since the11441bootable Linux firmware kit is now available.1144211443The handler for the Global Lock is now removed during AcpiTerminate to11444enable a clean subsystem restart, via the implementation of the11445AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,11446HP)1144711448Implemented enhancements to the multithreading support within the11449debugger11450to enable improved multithreading debugging and evaluation of the11451subsystem.11452(Valery Podrezov)1145311454Debugger: Enhanced the Statistics/Memory command to emit the total11455(maximum)11456memory used during the execution, as well as the maximum memory consumed11457by11458each of the various object types. (Valery Podrezov)1145911460Example Code and Data Size: These are the sizes for the OS-independent11461acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11462debug version of the code includes the debug output trace mechanism and11463has11464a much larger code and data size.1146511466Previous Release:11467Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total11468Debug Version: 155.2K Code, 63.1K Data, 218.3K Total11469Current Release:11470Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11471Debug Version: 155.8K Code, 63.3K Data, 219.1K Total1147211473114742) iASL Compiler/Disassembler and Tools:1147511476AcpiExec: Implemented a new option (-m) to display full memory use11477statistics upon subsystem/program termination. (Valery Podrezov)1147811479----------------------------------------1148009 November 2006. Summary of changes for version 20061109:11481114821) ACPI CA Core Subsystem:1148311484Optimized the Load ASL operator in the case where the source operand is11485an11486operation region. Simply map the operation region memory, instead of11487performing a bytewise read. (Region must be of type SystemMemory, see11488below.)1148911490Fixed the Load ASL operator for the case where the source operand is a11491region field. A buffer object is also allowed as the source operand. BZ114924801149311494Fixed a problem where the Load ASL operator allowed the source operand to11495be11496an operation region of any type. It is now restricted to regions of type11497SystemMemory, as per the ACPI specification. BZ 4811149811499Additional cleanup and optimizations for the new Table Manager code.1150011501AcpiEnable will now fail if all of the required ACPI tables are not11502loaded11503(FADT, FACS, DSDT). BZ 4771150411505Added #pragma pack(8/4) to acobject.h to ensure that the structures in11506this11507header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been11508manually optimized to be aligned and will not work if it is byte-packed.1150911510Example Code and Data Size: These are the sizes for the OS-independent11511acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11512debug version of the code includes the debug output trace mechanism and11513has11514a much larger code and data size.1151511516Previous Release:11517Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total11518Debug Version: 155.4K Code, 63.1K Data, 218.5K Total11519Current Release:11520Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total11521Debug Version: 155.2K Code, 63.1K Data, 218.3K Total1152211523115242) iASL Compiler/Disassembler and Tools:1152511526Fixed a problem where the presence of the _OSI predefined control method11527within complex expressions could cause an internal compiler error.1152811529AcpiExec: Implemented full region support for multiple address spaces.11530SpaceId is now part of the REGION object. BZ 4291153111532----------------------------------------1153311 October 2006. Summary of changes for version 20061011:11534115351) ACPI CA Core Subsystem:1153611537Completed an AML interpreter performance enhancement for control method11538execution. Previously a 2-pass parse/execution, control methods are now11539completely parsed and executed in a single pass. This improves overall11540interpreter performance by ~25%, reduces code size, and reduces CPU stack11541use. (Valery Podrezov + interpreter changes in version 20051202 that11542eliminated namespace loading during the pass one parse.)1154311544Implemented _CID support for PCI Root Bridge detection. If the _HID does11545not11546match the predefined PCI Root Bridge IDs, the _CID list (if present) is11547now11548obtained and also checked for an ID match.1154911550Implemented additional support for the PCI _ADR execution: upsearch until11551a11552device scope is found before executing _ADR. This allows PCI_Config11553operation regions to be declared locally within control methods11554underneath11555PCI device objects.1155611557Fixed a problem with a possible race condition between threads executing11558AcpiWalkNamespace and the AML interpreter. This condition was removed by11559modifying AcpiWalkNamespace to (by default) ignore all temporary11560namespace11561entries created during any concurrent control method execution. An11562additional namespace race condition is known to exist between11563AcpiWalkNamespace and the Load/Unload ASL operators and is still under11564investigation.1156511566Restructured the AML ParseLoop function, breaking it into several11567subfunctions in order to reduce CPU stack use and improve11568maintainability.11569(Mikhail Kouzmich)1157011571AcpiGetHandle: Fix for parameter validation to detect invalid11572combinations11573of prefix handle and pathname. BZ 4781157411575Example Code and Data Size: These are the sizes for the OS-independent11576acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11577debug version of the code includes the debug output trace mechanism and11578has11579a much larger code and data size.1158011581Previous Release:11582Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11583Debug Version: 154.6K Code, 63.0K Data, 217.6K Total11584Current Release:11585Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total11586Debug Version: 155.4K Code, 63.1K Data, 218.5K Total11587115882) iASL Compiler/Disassembler and Tools:1158911590Ported the -g option (get local ACPI tables) to the new ACPICA Table11591Manager11592to restore original behavior.1159311594----------------------------------------1159527 September 2006. Summary of changes for version 20060927:11596115971) ACPI CA Core Subsystem:1159811599Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.11600These functions now use a spinlock for mutual exclusion and the interrupt11601level indication flag is not needed.1160211603Fixed a problem with the Global Lock where the lock could appear to be11604obtained before it is actually obtained. The global lock semaphore was11605inadvertently created with one unit instead of zero units. (BZ 464)11606Fiodor11607Suietov.1160811609Fixed a possible memory leak and fault in AcpiExResolveObjectToValue11610during11611a read from a buffer or region field. (BZ 458) Fiodor Suietov.1161211613Example Code and Data Size: These are the sizes for the OS-independent11614acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11615debug version of the code includes the debug output trace mechanism and11616has11617a much larger code and data size.1161811619Previous Release:11620Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11621Debug Version: 154.7K Code, 63.0K Data, 217.7K Total11622Current Release:11623Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11624Debug Version: 154.6K Code, 63.0K Data, 217.6K Total1162511626116272) iASL Compiler/Disassembler and Tools:1162811629Fixed a compilation problem with the pre-defined Resource Descriptor11630field11631names where an "object does not exist" error could be incorrectly11632generated11633if the parent ResourceTemplate pathname places the template within a11634different namespace scope than the current scope. (BZ 7212)1163511636Fixed a problem where the compiler could hang after syntax errors11637detected11638in an ElseIf construct. (BZ 453)1163911640Fixed a problem with the AmlFilename parameter to the DefinitionBlock()11641operator. An incorrect output filename was produced when this parameter11642was11643a null string (""). Now, the original input filename is used as the AML11644output filename, with an ".aml" extension.1164511646Implemented a generic batch command mode for the AcpiExec utility11647(execute11648any AML debugger command) (Valery Podrezov).1164911650----------------------------------------1165112 September 2006. Summary of changes for version 20060912:11652116531) ACPI CA Core Subsystem:1165411655Enhanced the implementation of the "serialized mode" of the interpreter11656(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is11657specified, instead of creating a serialization semaphore per control11658method,11659the interpreter lock is simply no longer released before a blocking11660operation during control method execution. This effectively makes the AML11661Interpreter single-threaded. The overhead of a semaphore per-method is11662eliminated.1166311664Fixed a regression where an error was no longer emitted if a control11665method11666attempts to create 2 objects of the same name. This once again returns11667AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism11668that11669will dynamically serialize the control method to possible prevent future11670errors. (BZ 440)1167111672Integrated a fix for a problem with PCI Express HID detection in the PCI11673Config Space setup procedure. (BZ 7145)1167411675Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the11676AcpiHwInitialize function - the FADT registers are now validated when the11677table is loaded.1167811679Added two new warnings during FADT verification - 1) if the FADT is11680larger11681than the largest known FADT version, and 2) if there is a mismatch11682between11683a1168432-bit block address and the 64-bit X counterpart (when both are non-11685zero.)1168611687Example Code and Data Size: These are the sizes for the OS-independent11688acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11689debug version of the code includes the debug output trace mechanism and11690has11691a much larger code and data size.1169211693Previous Release:11694Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total11695Debug Version: 154.9K Code, 62.6K Data, 217.5K Total11696Current Release:11697Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11698Debug Version: 154.7K Code, 63.0K Data, 217.7K Total1169911700117012) iASL Compiler/Disassembler and Tools:1170211703Fixed a problem with the implementation of the Switch() operator where11704the11705temporary variable was declared too close to the actual Switch, instead11706of11707at method level. This could cause a problem if the Switch() operator is11708within a while loop, causing an error on the second iteration. (BZ 460)1170911710Disassembler - fix for error emitted for unknown type for target of scope11711operator. Now, ignore it and continue.1171211713Disassembly of an FADT now verifies the input FADT and reports any errors11714found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.1171511716Disassembly of raw data buffers with byte initialization data now11717prefixes11718each output line with the current buffer offset.1171911720Disassembly of ASF! table now includes all variable-length data fields at11721the end of some of the subtables.1172211723The disassembler now emits a comment if a buffer appears to be a11724ResourceTemplate, but cannot be disassembled as such because the EndTag11725does11726not appear at the very end of the buffer.1172711728AcpiExec - Added the "-t" command line option to enable the serialized11729mode11730of the AML interpreter.1173111732----------------------------------------1173331 August 2006. Summary of changes for version 20060831:11734117351) ACPI CA Core Subsystem:1173611737Miscellaneous fixes for the Table Manager:11738- Correctly initialize internal common FADT for all 64-bit "X" fields11739- Fixed a couple table mapping issues during table load11740- Fixed a couple alignment issues for IA6411741- Initialize input array to zero in AcpiInitializeTables11742- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,11743AcpiGetTableByIndex1174411745Change for GPE support: when a "wake" GPE is received, all wake GPEs are11746now11747immediately disabled to prevent the waking GPE from firing again and to11748prevent other wake GPEs from interrupting the wake process.1174911750Added the AcpiGpeCount global that tracks the number of processed GPEs,11751to11752be used for debugging systems with a large number of ACPI interrupts.1175311754Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in11755both the ACPICA headers and the disassembler.1175611757Example Code and Data Size: These are the sizes for the OS-independent11758acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11759debug version of the code includes the debug output trace mechanism and11760has11761a much larger code and data size.1176211763Previous Release:11764Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total11765Debug Version: 154.6K Code, 62.3K Data, 216.9K Total11766Current Release:11767Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total11768Debug Version: 154.9K Code, 62.6K Data, 217.5K Total1176911770117712) iASL Compiler/Disassembler and Tools:1177211773Disassembler support for the DMAR ACPI table.1177411775----------------------------------------1177623 August 2006. Summary of changes for version 20060823:11777117781) ACPI CA Core Subsystem:1177911780The Table Manager component has been completely redesigned and11781reimplemented. The new design is much simpler, and reduces the overall11782code11783and data size of the kernel-resident ACPICA by approximately 5%. Also, it11784is11785now possible to obtain the ACPI tables very early during kernel11786initialization, even before dynamic memory management is initialized.11787(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)1178811789Obsolete ACPICA interfaces:1179011791- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel11792init11793time).11794- AcpiLoadTable: Not needed.11795- AcpiUnloadTable: Not needed.1179611797New ACPICA interfaces:1179811799- AcpiInitializeTables: Must be called before the table manager can be11800used.11801- AcpiReallocateRootTable: Used to transfer the root table to dynamically11802allocated memory after it becomes available.11803- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI11804tables11805in the RSDT/XSDT.1180611807Other ACPICA changes:1180811809- AcpiGetTableHeader returns the actual mapped table header, not a copy.11810Use11811AcpiOsUnmapMemory to free this mapping.11812- AcpiGetTable returns the actual mapped table. The mapping is managed11813internally and must not be deleted by the caller. Use of this interface11814causes no additional dynamic memory allocation.11815- AcpiFindRootPointer: Support for physical addressing has been11816eliminated,11817it appeared to be unused.11818- The interface to AcpiOsMapMemory has changed to be consistent with the11819other allocation interfaces.11820- The interface to AcpiOsGetRootPointer has changed to eliminate11821unnecessary11822parameters.11823- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on1182464-11825bit platforms. Was previously 64 bits on all platforms.11826- The interface to the ACPI Global Lock acquire/release macros have11827changed11828slightly since ACPICA no longer keeps a local copy of the FACS with a11829constructed pointer to the actual global lock.1183011831Porting to the new table manager:1183211833- AcpiInitializeTables: Must be called once, and can be called anytime11834during the OS initialization process. It allows the host to specify an11835area11836of memory to be used to store the internal version of the RSDT/XSDT (root11837table). This allows the host to access ACPI tables before memory11838management11839is initialized and running.11840- AcpiReallocateRootTable: Can be called after memory management is11841running11842to copy the root table to a dynamically allocated array, freeing up the11843scratch memory specified in the call to AcpiInitializeTables.11844- AcpiSubsystemInitialize: This existing interface is independent of the11845Table Manager, and does not have to be called before the Table Manager11846can11847be used, it only must be called before the rest of ACPICA can be used.11848- ACPI Tables: Some changes have been made to the names and structure of11849the11850actbl.h and actbl1.h header files and may require changes to existing11851code.11852For example, bitfields have been completely removed because of their lack11853of11854portability across C compilers.11855- Update interfaces to the Global Lock acquire/release macros if local11856versions are used. (see acwin.h)1185711858Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c1185911860New files: tbfind.c1186111862Example Code and Data Size: These are the sizes for the OS-independent11863acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11864debug version of the code includes the debug output trace mechanism and11865has11866a much larger code and data size.1186711868Previous Release:11869Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total11870Debug Version: 161.0K Code, 65.1K Data, 226.1K Total11871Current Release:11872Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total11873Debug Version: 154.6K Code, 62.3K Data, 216.9K Total1187411875118762) iASL Compiler/Disassembler and Tools:1187711878No changes for this release.1187911880----------------------------------------1188121 July 2006. Summary of changes for version 20060721:11882118831) ACPI CA Core Subsystem:1188411885The full source code for the ASL test suite used to validate the iASL11886compiler and the ACPICA core subsystem is being released with the ACPICA11887source for the first time. The source is contained in a separate package11888and11889consists of over 1100 files that exercise all ASL/AML operators. The11890package11891should appear on the Intel/ACPI web site shortly. (Valery Podrezov,11892Fiodor11893Suietov)1189411895Completed a new design and implementation for support of the ACPI Global11896Lock. On the OS side, the global lock is now treated as a standard AML11897mutex. Previously, multiple OS threads could "acquire" the global lock11898simultaneously. However, this could cause the BIOS to be starved out of11899the11900lock - especially in cases such as the Embedded Controller driver where11901there is a tight coupling between the OS and the BIOS.1190211903Implemented an optimization for the ACPI Global Lock interrupt mechanism.11904The Global Lock interrupt handler no longer queues the execution of a11905separate thread to signal the global lock semaphore. Instead, the11906semaphore11907is signaled directly from the interrupt handler.1190811909Implemented support within the AML interpreter for package objects that11910contain a larger AML length (package list length) than the package11911element11912count. In this case, the length of the package is truncated to match the11913package element count. Some BIOS code apparently modifies the package11914length11915on the fly, and this change supports this behavior. Provides11916compatibility11917with the MS AML interpreter. (With assistance from Fiodor Suietov)1191811919Implemented a temporary fix for the BankValue parameter of a Bank Field11920to11921support all constant values, now including the Zero and One opcodes.11922Evaluation of this parameter must eventually be converted to a full11923TermArg11924evaluation. A not-implemented error is now returned (temporarily) for11925non-11926constant values for this parameter.1192711928Fixed problem reports (Fiodor Suietov) integrated:11929- Fix for premature object deletion after CopyObject on Operation Region11930(BZ11931350)1193211933Example Code and Data Size: These are the sizes for the OS-independent11934acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11935debug version of the code includes the debug output trace mechanism and11936has11937a much larger code and data size.1193811939Previous Release:11940Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total11941Debug Version: 160.9K Code, 65.1K Data, 226.0K Total11942Current Release:11943Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total11944Debug Version: 161.0K Code, 65.1K Data, 226.1K Total1194511946119472) iASL Compiler/Disassembler and Tools:1194811949No changes for this release.1195011951----------------------------------------1195207 July 2006. Summary of changes for version 20060707:11953119541) ACPI CA Core Subsystem:1195511956Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers11957that do not allow the initialization of address pointers within packed11958structures - even though the hardware itself may support misaligned11959transfers. Some of the debug data structures are packed by default to11960minimize size.1196111962Added an error message for the case where AcpiOsGetThreadId() returns11963zero.11964A non-zero value is required by the core ACPICA code to ensure the proper11965operation of AML mutexes and recursive control methods.1196611967The DSDT is now the only ACPI table that determines whether the AML11968interpreter is in 32-bit or 64-bit mode. Not really a functional change,11969but11970the hooks for per-table 32/64 switching have been removed from the code.11971A11972clarification to the ACPI specification is forthcoming in ACPI 3.0B.1197311974Fixed a possible leak of an OwnerID in the error path of11975AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID11976deletion to a single place in AcpiTbUninstallTable to correct possible11977leaks11978when using the AcpiTbDeleteTablesByType interface (with assistance from11979Lance Ortiz.)1198011981Fixed a problem with Serialized control methods where the semaphore11982associated with the method could be over-signaled after multiple method11983invocations.1198411985Fixed two issues with the locking of the internal namespace data11986structure.11987Both the Unload() operator and AcpiUnloadTable interface now lock the11988namespace during the namespace deletion associated with the table unload11989(with assistance from Linn Crosetto.)1199011991Fixed problem reports (Valery Podrezov) integrated:11992- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)1199311994Fixed problem reports (Fiodor Suietov) integrated:11995- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)11996- On Address Space handler deletion, needless deactivation call (BZ 374)11997- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ11998375)11999- Possible memory leak, Notify sub-objects of Processor, Power,12000ThermalZone12001(BZ 376)12002- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)12003- Minimum Length of RSDT should be validated (BZ 379)12004- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no12005Handler (BZ (380)12006- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type12007loaded12008(BZ 381)1200912010Example Code and Data Size: These are the sizes for the OS-independent12011acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12012debug version of the code includes the debug output trace mechanism and12013has12014a much larger code and data size.1201512016Previous Release:12017Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total12018Debug Version: 160.8K Code, 64.8K Data, 225.6K Total12019Current Release:12020Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total12021Debug Version: 161.0K Code, 65.1K Data, 226.1K Total1202212023120242) iASL Compiler/Disassembler and Tools:1202512026Fixed problem reports:12027Compiler segfault when ASL contains a long (>1024) String declaration (BZ12028436)1202912030----------------------------------------1203123 June 2006. Summary of changes for version 20060623:12032120331) ACPI CA Core Subsystem:1203412035Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This12036allows the type to be customized to the host OS for improved efficiency12037(since a spinlock is usually a very small object.)1203812039Implemented support for "ignored" bits in the ACPI registers. According12040to12041the ACPI specification, these bits should be preserved when writing the12042registers via a read/modify/write cycle. There are 3 bits preserved in12043this12044manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].1204512046Implemented the initial deployment of new OSL mutex interfaces. Since12047some12048host operating systems have separate mutex and semaphore objects, this12049feature was requested. The base code now uses mutexes (and the new mutex12050interfaces) wherever a binary semaphore was used previously. However, for12051the current release, the mutex interfaces are defined as macros to map12052them12053to the existing semaphore interfaces. Therefore, no OSL changes are12054required12055at this time. (See acpiosxf.h)1205612057Fixed several problems with the support for the control method SyncLevel12058parameter. The SyncLevel now works according to the ACPI specification12059and12060in concert with the Mutex SyncLevel parameter, since the current12061SyncLevel12062is a property of the executing thread. Mutual exclusion for control12063methods12064is now implemented with a mutex instead of a semaphore.1206512066Fixed three instances of the use of the C shift operator in the bitfield12067support code (exfldio.c) to avoid the use of a shift value larger than12068the12069target data width. The behavior of C compilers is undefined in this case12070and12071can cause unpredictable results, and therefore the case must be detected12072and12073avoided. (Fiodor Suietov)1207412075Added an info message whenever an SSDT or OEM table is loaded dynamically12076via the Load() or LoadTable() ASL operators. This should improve12077debugging12078capability since it will show exactly what tables have been loaded12079(beyond12080the tables present in the RSDT/XSDT.)1208112082Example Code and Data Size: These are the sizes for the OS-independent12083acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12084debug version of the code includes the debug output trace mechanism and12085has12086a much larger code and data size.1208712088Previous Release:12089Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total12090Debug Version: 160.2K Code, 64.7K Data, 224.9K Total12091Current Release:12092Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total12093Debug Version: 160.8K Code, 64.8K Data, 225.6K Total1209412095120962) iASL Compiler/Disassembler and Tools:1209712098No changes for this release.1209912100----------------------------------------1210108 June 2006. Summary of changes for version 20060608:12102121031) ACPI CA Core Subsystem:1210412105Converted the locking mutex used for the ACPI hardware to a spinlock.12106This12107change should eliminate all problems caused by attempting to acquire a12108semaphore at interrupt level, and it means that all ACPICA external12109interfaces that directly access the ACPI hardware can be safely called12110from12111interrupt level. OSL code that implements the semaphore interfaces should12112be12113able to eliminate any workarounds for being called at interrupt level.1211412115Fixed a regression introduced in 20060526 where the ACPI device12116initialization could be prematurely aborted with an AE_NOT_FOUND if a12117device12118did not have an optional _INI method.1211912120Fixed an IndexField issue where a write to the Data Register should be12121limited in size to the AccessSize (width) of the IndexField itself. (BZ12122433,12123Fiodor Suietov)1212412125Fixed problem reports (Valery Podrezov) integrated:12126- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)1212712128Fixed problem reports (Fiodor Suietov) integrated:12129- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)1213012131Removed four global mutexes that were obsolete and were no longer being12132used.1213312134Example Code and Data Size: These are the sizes for the OS-independent12135acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12136debug version of the code includes the debug output trace mechanism and12137has12138a much larger code and data size.1213912140Previous Release:12141Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total12142Debug Version: 160.3K Code, 64.9K Data, 225.2K Total12143Current Release:12144Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total12145Debug Version: 160.2K Code, 64.7K Data, 224.9K Total1214612147121482) iASL Compiler/Disassembler and Tools:1214912150Fixed a fault when using -g option (get tables from registry) on Windows12151machines.1215212153Fixed problem reports integrated:12154- Generate error if CreateField NumBits parameter is zero. (BZ 405)12155- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor12156Suietov)12157- Global table revision override (-r) is ignored (BZ 413)1215812159----------------------------------------1216026 May 2006. Summary of changes for version 20060526:12161121621) ACPI CA Core Subsystem:1216312164Restructured, flattened, and simplified the internal interfaces for12165namespace object evaluation - resulting in smaller code, less CPU stack12166use,12167and fewer interfaces. (With assistance from Mikhail Kouzmich)1216812169Fixed a problem with the CopyObject operator where the first parameter12170was12171not typed correctly for the parser, interpreter, compiler, and12172disassembler.12173Caused various errors and unexpected behavior.1217412175Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits12176produced incorrect results with some C compilers. Since the behavior of C12177compilers when the shift value is larger than the datatype width is12178apparently not well defined, the interpreter now detects this condition12179and12180simply returns zero as expected in all such cases. (BZ 395)1218112182Fixed problem reports (Valery Podrezov) integrated:12183- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)12184- Allow interpreter to handle nested method declarations (BZ 5361)1218512186Fixed problem reports (Fiodor Suietov) integrated:12187- AcpiTerminate doesn't free debug memory allocation list objects (BZ12188355)12189- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ12190356)12191- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)12192- Resource Manager should return AE_TYPE for non-device objects (BZ 358)12193- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)12194- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)12195- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)12196- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)12197- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ12198365)12199- Status of the Global Initialization Handler call not used (BZ 366)12200- Incorrect object parameter to Global Initialization Handler (BZ 367)1220112202Example Code and Data Size: These are the sizes for the OS-independent12203acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12204debug version of the code includes the debug output trace mechanism and12205has12206a much larger code and data size.1220712208Previous Release:12209Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total12210Debug Version: 160.5K Code, 65.1K Data, 225.6K Total12211Current Release:12212Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total12213Debug Version: 160.3K Code, 64.9K Data, 225.2K Total1221412215122162) iASL Compiler/Disassembler and Tools:1221712218Modified the parser to allow the names IO, DMA, and IRQ to be used as12219namespace identifiers with no collision with existing resource descriptor12220macro names. This provides compatibility with other ASL compilers and is12221most useful for disassembly/recompilation of existing tables without12222parse12223errors. (With assistance from Thomas Renninger)1222412225Disassembler: fixed an incorrect disassembly problem with the12226DataTableRegion and CopyObject operators. Fixed a possible fault during12227disassembly of some Alias operators.1222812229----------------------------------------1223012 May 2006. Summary of changes for version 20060512:12231122321) ACPI CA Core Subsystem:1223312234Replaced the AcpiOsQueueForExecution interface with a new interface named12235AcpiOsExecute. The major difference is that the new interface does not12236have12237a Priority parameter, this appeared to be useless and has been replaced12238by12239a12240Type parameter. The Type tells the host what type of execution is being12241requested, such as global lock handler, notify handler, GPE handler, etc.12242This allows the host to queue and execute the request as appropriate for12243the12244request type, possibly using different work queues and different12245priorities12246for the various request types. This enables fixes for multithreading12247deadlock problems such as BZ #5534, and will require changes to all12248existing12249OS interface layers. (Alexey Starikovskiy and Bob Moore)1225012251Fixed a possible memory leak associated with the support for the so-12252called12253"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor12254Suietov)1225512256Fixed a problem with the Load() operator where a table load from an12257operation region could overwrite an internal table buffer by up to 712258bytes12259and cause alignment faults on IPF systems. (With assistance from Luming12260Yu)1226112262Example Code and Data Size: These are the sizes for the OS-independent12263acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12264debug version of the code includes the debug output trace mechanism and12265has12266a much larger code and data size.1226712268Previous Release:12269Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total12270Debug Version: 160.1K Code, 65.2K Data, 225.3K Total12271Current Release:12272Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total12273Debug Version: 160.5K Code, 65.1K Data, 225.6K Total122741227512276122772) iASL Compiler/Disassembler and Tools:1227812279Disassembler: Implemented support to cross reference the internal12280namespace12281and automatically generate ASL External() statements for symbols not12282defined12283within the current table being disassembled. This will simplify the12284disassembly and recompilation of interdependent tables such as SSDTs12285since12286these statements will no longer have to be added manually.1228712288Disassembler: Implemented experimental support to automatically detect12289invocations of external control methods and generate appropriate12290External()12291statements. This is problematic because the AML cannot be correctly12292parsed12293until the number of arguments for each control method is known.12294Currently,12295standalone method invocations and invocations as the source operand of a12296Store() statement are supported.1229712298Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,12299LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),12300LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code12301more readable and likely closer to the original ASL source.1230212303----------------------------------------1230421 April 2006. Summary of changes for version 20060421:12305123061) ACPI CA Core Subsystem:1230712308Removed a device initialization optimization introduced in 20051216 where12309the _STA method was not run unless an _INI was also present for the same12310device. This optimization could cause problems because it could allow12311_INI12312methods to be run within a not-present device subtree. (If a not-present12313device had no _INI, _STA would not be run, the not-present status would12314not12315be discovered, and the children of the device would be incorrectly12316traversed.)1231712318Implemented a new _STA optimization where namespace subtrees that do not12319contain _INI are identified and ignored during device initialization.12320Selectively running _STA can significantly improve boot time on large12321machines (with assistance from Len Brown.)1232212323Implemented support for the device initialization case where the returned12324_STA flags indicate a device not-present but functioning. In this case,12325_INI12326is not run, but the device children are examined for presence, as per the12327ACPI specification.1232812329Implemented an additional change to the IndexField support in order to12330conform to MS behavior. The value written to the Index Register is not12331simply a byte offset, it is a byte offset in units of the access width of12332the parent Index Field. (Fiodor Suietov)1233312334Defined and deployed a new OSL interface, AcpiOsValidateAddress. This12335interface is called during the creation of all AML operation regions, and12336allows the host OS to exert control over what addresses it will allow the12337AML code to access. Operation Regions whose addresses are disallowed will12338cause a runtime exception when they are actually accessed (will not12339affect12340or abort table loading.) See oswinxf or osunixxf for an example12341implementation.1234212343Defined and deployed a new OSL interface, AcpiOsValidateInterface. This12344interface allows the host OS to match the various "optional"12345interface/behavior strings for the _OSI predefined control method as12346appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf12347for an example implementation.1234812349Restructured and corrected various problems in the exception handling12350code12351paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod12352(with assistance from Takayoshi Kochi.)1235312354Modified the Linux source converter to ignore quoted string literals12355while12356converting identifiers from mixed to lower case. This will correct12357problems12358with the disassembler and other areas where such strings must not be12359modified.1236012361The ACPI_FUNCTION_* macros no longer require quotes around the function12362name. This allows the Linux source converter to convert the names, now12363that12364the converter ignores quoted strings.1236512366Example Code and Data Size: These are the sizes for the OS-independent12367acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12368debug version of the code includes the debug output trace mechanism and12369has12370a much larger code and data size.1237112372Previous Release:1237312374Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total12375Debug Version: 158.9K Code, 64.9K Data, 223.8K Total12376Current Release:12377Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total12378Debug Version: 160.1K Code, 65.2K Data, 225.3K Total1237912380123812) iASL Compiler/Disassembler and Tools:1238212383Implemented 3 new warnings for iASL, and implemented multiple warning12384levels12385(w2 flag).12386123871) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is12388not12389WAIT_FOREVER (0xFFFF) and the code does not examine the return value to12390check for the possible timeout, a warning is issued.12391123922) Useless operators: If an ASL operator does not specify an optional12393target12394operand and it also does not use the function return value from the12395operator, a warning is issued since the operator effectively does12396nothing.12397123983) Unreferenced objects: If a namespace object is created, but never12399referenced, a warning is issued. This is a warning level 2 since there12400are12401cases where this is ok, such as when a secondary table is loaded that12402uses12403the unreferenced objects. Even so, care is taken to only flag objects12404that12405don't look like they will ever be used. For example, the reserved methods12406(starting with an underscore) are usually not referenced because it is12407expected that the OS will invoke them.1240812409----------------------------------------1241031 March 2006. Summary of changes for version 20060331:12411124121) ACPI CA Core Subsystem:1241312414Implemented header file support for the following additional ACPI tables:12415ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this12416support,12417all current and known ACPI tables are now defined in the ACPICA headers12418and12419are available for use by device drivers and other software.1242012421Implemented support to allow tables that contain ACPI names with invalid12422characters to be loaded. Previously, this would cause the table load to12423fail, but since there are several known cases of such tables on existing12424machines, this change was made to enable ACPI support for them. Also,12425this12426matches the behavior of the Microsoft ACPI implementation.1242712428Fixed a couple regressions introduced during the memory optimization in12429the1243020060317 release. The namespace node definition required additional12431reorganization and an internal datatype that had been changed to 8-bit12432was12433restored to 32-bit. (Valery Podrezov)1243412435Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState12436could be passed through to AcpiOsReleaseObject which is unexpected. Such12437null pointers are now trapped and ignored, matching the behavior of the12438previous implementation before the deployment of AcpiOsReleaseObject.12439(Valery Podrezov, Fiodor Suietov)1244012441Fixed a memory mapping leak during the deletion of a SystemMemory12442operation12443region where a cached memory mapping was not deleted. This became a12444noticeable problem for operation regions that are defined within12445frequently12446used control methods. (Dana Meyers)1244712448Reorganized the ACPI table header files into two main files: one for the12449ACPI tables consumed by the ACPICA core, and another for the12450miscellaneous12451ACPI tables that are consumed by the drivers and other software. The12452various12453FADT definitions were merged into one common section and three different12454tables (ACPI 1.0, 1.0+, and 2.0)1245512456Example Code and Data Size: These are the sizes for the OS-independent12457acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12458debug version of the code includes the debug output trace mechanism and12459has12460a much larger code and data size.1246112462Previous Release:12463Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total12464Debug Version: 158.7K Code, 64.8K Data, 223.5K Total12465Current Release:12466Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total12467Debug Version: 158.9K Code, 64.9K Data, 223.8K Total1246812469124702) iASL Compiler/Disassembler and Tools:1247112472Disassembler: Implemented support to decode and format all non-AML ACPI12473tables (tables other than DSDTs and SSDTs.) This includes the new tables12474added to the ACPICA headers, therefore all current and known ACPI tables12475are12476supported.1247712478Disassembler: The change to allow ACPI names with invalid characters also12479enables the disassembly of such tables. Invalid characters within names12480are12481changed to '*' to make the name printable; the iASL compiler will still12482generate an error for such names, however, since this is an invalid ACPI12483character.1248412485Implemented an option for AcpiXtract (-a) to extract all tables found in12486the12487input file. The default invocation extracts only the DSDTs and SSDTs.1248812489Fixed a couple of gcc generation issues for iASL and AcpiExec and added a12490makefile for the AcpiXtract utility.1249112492----------------------------------------1249317 March 2006. Summary of changes for version 20060317:12494124951) ACPI CA Core Subsystem:1249612497Implemented the use of a cache object for all internal namespace nodes.12498Since there are about 1000 static nodes in a typical system, this will12499decrease memory use for cache implementations that minimize per-12500allocation12501overhead (such as a slab allocator.)1250212503Removed the reference count mechanism for internal namespace nodes, since12504it12505was deemed unnecessary. This reduces the size of each namespace node by12506about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit12507case,12508and 32 bytes for the 64-bit case.1250912510Optimized several internal data structures to reduce object size on 64-12511bit12512platforms by packing data within the 64-bit alignment. This includes the12513frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static12514instances corresponding to the namespace objects.1251512516Added two new strings for the predefined _OSI method: "Windows 2001.112517SP1"12518and "Windows 2006".1251912520Split the allocation tracking mechanism out to a separate file, from12521utalloc.c to uttrack.c. This mechanism appears to be only useful for12522application-level code. Kernels may wish to not include uttrack.c in12523distributions.1252412525Removed all remnants of the obsolete ACPI_REPORT_* macros and the12526associated12527code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING12528macros.)1252912530Code and Data Size: These are the sizes for the acpica.lib produced by12531the12532Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12533ACPI12534driver or OSPM code. The debug version of the code includes the debug12535output12536trace mechanism and has a much larger code and data size. Note that these12537values will vary depending on the efficiency of the compiler and the12538compiler options used during generation.1253912540Previous Release:12541Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12542Debug Version: 161.6K Code, 65.7K Data, 227.3K Total12543Current Release:12544Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total12545Debug Version: 158.7K Code, 64.8K Data, 223.5K Total1254612547125482) iASL Compiler/Disassembler and Tools:1254912550Implemented an ANSI C version of the acpixtract utility. This version12551will12552automatically extract the DSDT and all SSDTs from the input acpidump text12553file and dump the binary output to separate files. It can also display a12554summary of the input file including the headers for each table found and12555will extract any single ACPI table, with any signature. (See12556source/tools/acpixtract)1255712558----------------------------------------1255910 March 2006. Summary of changes for version 20060310:12560125611) ACPI CA Core Subsystem:1256212563Tagged all external interfaces to the subsystem with the new12564ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to12565assist12566kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL12567macro. The default definition is NULL.1256812569Added the ACPI_THREAD_ID type for the return value from12570AcpiOsGetThreadId.12571This allows the host to define this as necessary to simplify kernel12572integration. The default definition is ACPI_NATIVE_UINT.1257312574Fixed two interpreter problems related to error processing, the deletion12575of12576objects, and placing invalid pointers onto the internal operator result12577stack. BZ 6028, 6151 (Valery Podrezov)1257812579Increased the reference count threshold where a warning is emitted for12580large12581reference counts in order to eliminate unnecessary warnings on systems12582with12583large namespaces (especially 64-bit.) Increased the value from 0x400 to125840x800.1258512586Due to universal disagreement as to the meaning of the 'c' in the12587calloc()12588function, the ACPI_MEM_CALLOCATE macro has been renamed to12589ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.12590ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and12591ACPI_FREE.1259212593Code and Data Size: These are the sizes for the acpica.lib produced by12594the12595Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12596ACPI12597driver or OSPM code. The debug version of the code includes the debug12598output12599trace mechanism and has a much larger code and data size. Note that these12600values will vary depending on the efficiency of the compiler and the12601compiler options used during generation.1260212603Previous Release:12604Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total12605Debug Version: 161.4K Code, 65.7K Data, 227.1K Total12606Current Release:12607Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12608Debug Version: 161.6K Code, 65.7K Data, 227.3K Total1260912610126112) iASL Compiler/Disassembler:1261212613Disassembler: implemented support for symbolic resource descriptor12614references. If a CreateXxxxField operator references a fixed offset12615within12616a12617resource descriptor, a name is assigned to the descriptor and the offset12618is12619translated to the appropriate resource tag and pathname. The addition of12620this support brings the disassembled code very close to the original ASL12621source code and helps eliminate run-time errors when the disassembled12622code12623is modified (and recompiled) in such a way as to invalidate the original12624fixed offsets.1262512626Implemented support for a Descriptor Name as the last parameter to the12627ASL12628Register() macro. This parameter was inadvertently left out of the ACPI12629specification, and will be added for ACPI 3.0b.1263012631Fixed a problem where the use of the "_OSI" string (versus the full path12632"\_OSI") caused an internal compiler error. ("No back ptr to op")1263312634Fixed a problem with the error message that occurs when an invalid string12635is12636used for a _HID object (such as one with an embedded asterisk:12637"*PNP010A".)12638The correct message is now displayed.1263912640----------------------------------------1264117 February 2006. Summary of changes for version 20060217:12642126431) ACPI CA Core Subsystem:1264412645Implemented a change to the IndexField support to match the behavior of12646the12647Microsoft AML interpreter. The value written to the Index register is now12648a12649byte offset, no longer an index based upon the width of the Data12650register.12651This should fix IndexField problems seen on some machines where the Data12652register is not exactly one byte wide. The ACPI specification will be12653clarified on this point.1265412655Fixed a problem where several resource descriptor types could overrun the12656internal descriptor buffer due to size miscalculation: VendorShort,12657VendorLong, and Interrupt. This was noticed on IA64 machines, but could12658affect all platforms.1265912660Fixed a problem where individual resource descriptors were misaligned12661within12662the internal buffer, causing alignment faults on IA64 platforms.1266312664Code and Data Size: These are the sizes for the acpica.lib produced by12665the12666Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12667ACPI12668driver or OSPM code. The debug version of the code includes the debug12669output12670trace mechanism and has a much larger code and data size. Note that these12671values will vary depending on the efficiency of the compiler and the12672compiler options used during generation.1267312674Previous Release:12675Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12676Debug Version: 161.3K Code, 65.6K Data, 226.9K Total12677Current Release:12678Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total12679Debug Version: 161.4K Code, 65.7K Data, 227.1K Total1268012681126822) iASL Compiler/Disassembler:1268312684Implemented support for new reserved names: _WDG and _WED are Microsoft12685extensions for Windows Instrumentation Management, _TDL is a new ACPI-12686defined method (Throttling Depth Limit.)1268712688Fixed a problem where a zero-length VendorShort or VendorLong resource12689descriptor was incorrectly emitted as a descriptor of length one.1269012691----------------------------------------1269210 February 2006. Summary of changes for version 20060210:12693126941) ACPI CA Core Subsystem:1269512696Removed a couple of extraneous ACPI_ERROR messages that appeared during12697normal execution. These became apparent after the conversion from12698ACPI_DEBUG_PRINT.1269912700Fixed a problem where the CreateField operator could hang if the BitIndex12701or12702NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)1270312704Fixed a problem where a DeRefOf operation on a buffer object incorrectly12705failed with an exception. This also fixes a couple of related RefOf and12706DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)1270712708Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead12709of12710AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,12711BZ127125480)1271312714Implemented a memory cleanup at the end of the execution of each12715iteration12716of an AML While() loop, preventing the accumulation of outstanding12717objects.12718(Valery Podrezov, BZ 5427)1271912720Eliminated a chunk of duplicate code in the object resolution code.12721(Valery12722Podrezov, BZ 5336)1272312724Fixed several warnings during the 64-bit code generation.1272512726The AcpiSrc source code conversion tool now inserts one line of12727whitespace12728after an if() statement that is followed immediately by a comment,12729improving12730readability of the Linux code.1273112732Code and Data Size: The current and previous library sizes for the core12733subsystem are shown below. These are the code and data sizes for the12734acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12735These12736values do not include any ACPI driver or OSPM code. The debug version of12737the12738code includes the debug output trace mechanism and has a much larger code12739and data size. Note that these values will vary depending on the12740efficiency12741of the compiler and the compiler options used during generation.1274212743Previous Release:12744Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total12745Debug Version: 161.3K Code, 65.7K Data, 227.0K Total12746Current Release:12747Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12748Debug Version: 161.3K Code, 65.6K Data, 226.9K Total1274912750127512) iASL Compiler/Disassembler:1275212753Fixed a problem with the disassembly of a BankField operator with a12754complex12755expression for the BankValue parameter.1275612757----------------------------------------1275827 January 2006. Summary of changes for version 20060127:12759127601) ACPI CA Core Subsystem:1276112762Implemented support in the Resource Manager to allow unresolved12763namestring12764references within resource package objects for the _PRT method. This12765support12766is in addition to the previously implemented unresolved reference support12767within the AML parser. If the interpreter slack mode is enabled, these12768unresolved references will be passed through to the caller as a NULL12769package12770entry.1277112772Implemented and deployed new macros and functions for error and warning12773messages across the subsystem. These macros are simpler and generate less12774code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,12775ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older12776macros remain defined to allow ACPI drivers time to migrate to the new12777macros.1277812779Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of12780the12781Acquire/Release Lock OSL interfaces.1278212783Fixed a problem where Alias ASL operators are sometimes not correctly12784resolved, in both the interpreter and the iASL compiler.1278512786Fixed several problems with the implementation of the12787ConcatenateResTemplate12788ASL operator. As per the ACPI specification, zero length buffers are now12789treated as a single EndTag. One-length buffers always cause a fatal12790exception. Non-zero length buffers that do not end with a full 2-byte12791EndTag12792cause a fatal exception.1279312794Fixed a possible structure overwrite in the AcpiGetObjectInfo external12795interface. (With assistance from Thomas Renninger)1279612797Code and Data Size: The current and previous library sizes for the core12798subsystem are shown below. These are the code and data sizes for the12799acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12800These12801values do not include any ACPI driver or OSPM code. The debug version of12802the12803code includes the debug output trace mechanism and has a much larger code12804and data size. Note that these values will vary depending on the12805efficiency12806of the compiler and the compiler options used during generation.1280712808Previous Release:12809Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total12810Debug Version: 163.2K Code, 66.2K Data, 229.4K Total12811Current Release:12812Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total12813Debug Version: 161.3K Code, 65.7K Data, 227.0K Total1281412815128162) iASL Compiler/Disassembler:1281712818Fixed an internal error that was generated for any forward references to12819ASL12820Alias objects.1282112822----------------------------------------1282313 January 2006. Summary of changes for version 20060113:12824128251) ACPI CA Core Subsystem:1282612827Added 2006 copyright to all module headers and signons. This affects12828virtually every file in the ACPICA core subsystem, iASL compiler, and the12829utilities.1283012831Enhanced the ACPICA error reporting in order to simplify user migration12832to12833the non-debug version of ACPICA. Replaced all instances of the12834ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN12835debug12836levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,12837respectively. This preserves all error and warning messages in the non-12838debug12839version of the ACPICA code (this has been referred to as the "debug lite"12840option.) Over 200 cases were converted to create a total of over 38012841error/warning messages across the ACPICA code. This increases the code12842and12843data size of the default non-debug version of the code somewhat (about1284413K),12845but all error/warning reporting may be disabled if desired (and code12846eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time12847configuration option. The size of the debug version of ACPICA remains12848about12849the same.1285012851Fixed a memory leak within the AML Debugger "Set" command. One object was12852not properly deleted for every successful invocation of the command.1285312854Code and Data Size: The current and previous library sizes for the core12855subsystem are shown below. These are the code and data sizes for the12856acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12857These12858values do not include any ACPI driver or OSPM code. The debug version of12859the12860code includes the debug output trace mechanism and has a much larger code12861and data size. Note that these values will vary depending on the12862efficiency12863of the compiler and the compiler options used during generation.1286412865Previous Release:12866Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total12867Debug Version: 163.7K Code, 67.5K Data, 231.2K Total12868Current Release:12869Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total12870Debug Version: 163.2K Code, 66.2K Data, 229.4K Total1287112872128732) iASL Compiler/Disassembler:1287412875The compiler now officially supports the ACPI 3.0a specification that was12876released on December 30, 2005. (Specification is available at12877www.acpi.info)1287812879----------------------------------------1288016 December 2005. Summary of changes for version 20051216:12881128821) ACPI CA Core Subsystem:1288312884Implemented optional support to allow unresolved names within ASL Package12885objects. A null object is inserted in the package when a named reference12886cannot be located in the current namespace. Enabled via the interpreter12887slack flag, this should eliminate AE_NOT_FOUND exceptions seen on12888machines12889that contain such code.1289012891Implemented an optimization to the initialization sequence that can12892improve12893boot time. During ACPI device initialization, the _STA method is now run12894if12895and only if the _INI method exists. The _STA method is used to determine12896if12897the device is present; An _INI can only be run if _STA returns present,12898but12899it is a waste of time to run the _STA method if the _INI does not exist.12900(Prototype and assistance from Dong Wei)1290112902Implemented use of the C99 uintptr_t for the pointer casting macros if it12903is12904available in the current compiler. Otherwise, the default (void *) cast12905is12906used as before.1290712908Fixed some possible memory leaks found within the execution path of the12909Break, Continue, If, and CreateField operators. (Valery Podrezov)1291012911Fixed a problem introduced in the 20051202 release where an exception is12912generated during method execution if a control method attempts to declare12913another method.1291412915Moved resource descriptor string constants that are used by both the AML12916disassembler and AML debugger to the common utilities directory so that12917these components are independent.1291812919Implemented support in the AcpiExec utility (-e switch) to globally12920ignore12921exceptions during control method execution (method is not aborted.)1292212923Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix12924generation.1292512926Code and Data Size: The current and previous library sizes for the core12927subsystem are shown below. These are the code and data sizes for the12928acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12929These12930values do not include any ACPI driver or OSPM code. The debug version of12931the12932code includes the debug output trace mechanism and has a much larger code12933and data size. Note that these values will vary depending on the12934efficiency12935of the compiler and the compiler options used during generation.1293612937Previous Release:12938Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total12939Debug Version: 163.2K Code, 67.4K Data, 230.6K Total12940Current Release:12941Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total12942Debug Version: 163.7K Code, 67.5K Data, 231.2K Total1294312944129452) iASL Compiler/Disassembler:1294612947Fixed a problem where a CPU stack overflow fault could occur if a12948recursive12949method call was made from within a Return statement.1295012951----------------------------------------1295202 December 2005. Summary of changes for version 20051202:12953129541) ACPI CA Core Subsystem:1295512956Modified the parsing of control methods to no longer create namespace12957objects during the first pass of the parse. Objects are now created only12958during the execute phase, at the moment the namespace creation operator12959is12960encountered in the AML (Name, OperationRegion, CreateByteField, etc.)12961This12962should eliminate ALREADY_EXISTS exceptions seen on some machines where12963reentrant control methods are protected by an AML mutex. The mutex will12964now12965correctly block multiple threads from attempting to create the same12966object12967more than once.1296812969Increased the number of available Owner Ids for namespace object tracking12970from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen12971on12972some machines with a large number of ACPI tables (either static or12973dynamic).1297412975Fixed a problem with the AcpiExec utility where a fault could occur when12976the12977-b switch (batch mode) is used.1297812979Enhanced the namespace dump routine to output the owner ID for each12980namespace object.1298112982Code and Data Size: The current and previous library sizes for the core12983subsystem are shown below. These are the code and data sizes for the12984acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12985These12986values do not include any ACPI driver or OSPM code. The debug version of12987the12988code includes the debug output trace mechanism and has a much larger code12989and data size. Note that these values will vary depending on the12990efficiency12991of the compiler and the compiler options used during generation.1299212993Previous Release:12994Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total12995Debug Version: 163.0K Code, 67.4K Data, 230.4K Total12996Current Release:12997Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total12998Debug Version: 163.2K Code, 67.4K Data, 230.6K Total1299913000130012) iASL Compiler/Disassembler:1300213003Fixed a parse error during compilation of certain Switch/Case constructs.13004To13005simplify the parse, the grammar now allows for multiple Default13006statements13007and this error is now detected and flagged during the analysis phase.1300813009Disassembler: The disassembly now includes the contents of the original13010table header within a comment at the start of the file. This includes the13011name and version of the original ASL compiler.1301213013----------------------------------------1301417 November 2005. Summary of changes for version 20051117:13015130161) ACPI CA Core Subsystem:1301713018Fixed a problem in the AML parser where the method thread count could be13019decremented below zero if any errors occurred during the method parse13020phase.13021This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some13022machines.13023This also fixed a related regression with the mechanism that detects and13024corrects methods that cannot properly handle reentrancy (related to the13025deployment of the new OwnerId mechanism.)1302613027Eliminated the pre-parsing of control methods (to detect errors) during13028table load. Related to the problem above, this was causing unwind issues13029if13030any errors occurred during the parse, and it seemed to be overkill. A13031table13032load should not be aborted if there are problems with any single control13033method, thus rendering this feature rather pointless.1303413035Fixed a problem with the new table-driven resource manager where an13036internal13037buffer overflow could occur for small resource templates.1303813039Implemented a new external interface, AcpiGetVendorResource. This13040interface13041will find and return a vendor-defined resource descriptor within a _CRS13042or13043_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn13044Helgaas.1304513046Removed the length limit (200) on string objects as per the upcoming ACPI130473.0A specification. This affects the following areas of the interpreter:130481)13049any implicit conversion of a Buffer to a String, 2) a String object13050result13051of the ASL Concatenate operator, 3) the String object result of the ASL13052ToString operator.1305313054Fixed a problem in the Windows OS interface layer (OSL) where a13055WAIT_FOREVER13056on a semaphore object would incorrectly timeout. This allows the13057multithreading features of the AcpiExec utility to work properly under13058Windows.1305913060Updated the Linux makefiles for the iASL compiler and AcpiExec to include13061the recently added file named "utresrc.c".1306213063Code and Data Size: The current and previous library sizes for the core13064subsystem are shown below. These are the code and data sizes for the13065acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13066These13067values do not include any ACPI driver or OSPM code. The debug version of13068the13069code includes the debug output trace mechanism and has a much larger code13070and data size. Note that these values will vary depending on the13071efficiency13072of the compiler and the compiler options used during generation.1307313074Previous Release:13075Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total13076Debug Version: 163.0K Code, 67.4K Data, 230.4K Total13077Current Release:13078Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total13079Debug Version: 163.0K Code, 67.4K Data, 230.4K Total1308013081130822) iASL Compiler/Disassembler:1308313084Removed the limit (200) on string objects as per the upcoming ACPI 3.0A13085specification. For the iASL compiler, this means that string literals13086within13087the source ASL can be of any length.1308813089Enhanced the listing output to dump the AML code for resource descriptors13090immediately after the ASL code for each descriptor, instead of in a block13091at13092the end of the entire resource template.1309313094Enhanced the compiler debug output to dump the entire original parse tree13095constructed during the parse phase, before any transforms are applied to13096the13097tree. The transformed tree is dumped also.1309813099----------------------------------------1310002 November 2005. Summary of changes for version 20051102:13101131021) ACPI CA Core Subsystem:1310313104Modified the subsystem initialization sequence to improve GPE support.13105The13106GPE initialization has been split into two parts in order to defer13107execution13108of the _PRW methods (Power Resources for Wake) until after the hardware13109is13110fully initialized and the SCI handler is installed. This allows the _PRW13111methods to access fields protected by the Global Lock. This will fix13112systems13113where a NO_GLOBAL_LOCK exception has been seen during initialization.1311413115Converted the ACPI internal object disassemble and display code within13116the13117AML debugger to fully table-driven operation, reducing code size and13118increasing maintainability.1311913120Fixed a regression with the ConcatenateResTemplate() ASL operator13121introduced13122in the 20051021 release.1312313124Implemented support for "local" internal ACPI object types within the13125debugger "Object" command and the AcpiWalkNamespace external interfaces.13126These local types include RegionFields, BankFields, IndexFields, Alias,13127and13128reference objects.1312913130Moved common AML resource handling code into a new file, "utresrc.c".13131This13132code is shared by both the Resource Manager and the AML Debugger.1313313134Code and Data Size: The current and previous library sizes for the core13135subsystem are shown below. These are the code and data sizes for the13136acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13137These13138values do not include any ACPI driver or OSPM code. The debug version of13139the13140code includes the debug output trace mechanism and has a much larger code13141and data size. Note that these values will vary depending on the13142efficiency13143of the compiler and the compiler options used during generation.1314413145Previous Release:13146Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total13147Debug Version: 163.5K Code, 67.0K Data, 230.5K Total13148Current Release:13149Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total13150Debug Version: 163.0K Code, 67.4K Data, 230.4K Total1315113152131532) iASL Compiler/Disassembler:1315413155Fixed a problem with very large initializer lists (more than 400013156elements)13157for both Buffer and Package objects where the parse stack could overflow.1315813159Enhanced the pre-compile source code scan for non-ASCII characters to13160ignore13161characters within comment fields. The scan is now always performed and is13162no13163longer optional, detecting invalid characters within a source file13164immediately rather than during the parse phase or later.1316513166Enhanced the ASL grammar definition to force early reductions on all13167list-13168style grammar elements so that the overall parse stack usage is greatly13169reduced. This should improve performance and reduce the possibility of13170parse13171stack overflow.1317213173Eliminated all reduce/reduce conflicts in the iASL parser generation.13174Also,13175with the addition of a %expected statement, the compiler generates from13176source with no warnings.1317713178Fixed a possible segment fault in the disassembler if the input filename13179does not contain a "dot" extension (Thomas Renninger).1318013181----------------------------------------1318221 October 2005. Summary of changes for version 20051021:13183131841) ACPI CA Core Subsystem:1318513186Implemented support for the EM64T and other x86-64 processors. This13187essentially entails recognizing that these processors support non-aligned13188memory transfers. Previously, all 64-bit processors were assumed to lack13189hardware support for non-aligned transfers.1319013191Completed conversion of the Resource Manager to nearly full table-driven13192operation. Specifically, the resource conversion code (convert AML to13193internal format and the reverse) and the debug code to dump internal13194resource descriptors are fully table-driven, reducing code and data size13195and13196improving maintainability.1319713198The OSL interfaces for Acquire and Release Lock now use a 64-bit flag13199word13200on 64-bit processors instead of a fixed 32-bit word. (With assistance13201from13202Alexey Starikovskiy)1320313204Implemented support within the resource conversion code for the Type-13205Specific byte within the various ACPI 3.0 *WordSpace macros.1320613207Fixed some issues within the resource conversion code for the type-13208specific13209flags for both Memory and I/O address resource descriptors. For Memory,13210implemented support for the MTP and TTP flags. For I/O, split the TRS and13211TTP flags into two separate fields.1321213213Code and Data Size: The current and previous library sizes for the core13214subsystem are shown below. These are the code and data sizes for the13215acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13216These13217values do not include any ACPI driver or OSPM code. The debug version of13218the13219code includes the debug output trace mechanism and has a much larger code13220and data size. Note that these values will vary depending on the13221efficiency13222of the compiler and the compiler options used during generation.1322313224Previous Release:13225Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total13226Debug Version: 168.0K Code, 68.3K Data, 236.3K Total13227Current Release:13228Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total13229Debug Version: 163.5K Code, 67.0K Data, 230.5K Total132301323113232132332) iASL Compiler/Disassembler:1323413235Relaxed a compiler restriction that disallowed a ResourceIndex byte if13236the13237corresponding ResourceSource string was not also present in a resource13238descriptor declaration. This restriction caused problems with existing13239AML/ASL code that includes the Index byte without the string. When such13240AML13241was disassembled, it could not be compiled without modification. Further,13242the modified code created a resource template with a different size than13243the13244original, breaking code that used fixed offsets into the resource13245template13246buffer.1324713248Removed a recent feature of the disassembler to ignore a lone13249ResourceIndex13250byte. This byte is now emitted if present so that the exact AML can be13251reproduced when the disassembled code is recompiled.1325213253Improved comments and text alignment for the resource descriptor code13254emitted by the disassembler.1325513256Implemented disassembler support for the ACPI 3.0 AccessSize field within13257a13258Register() resource descriptor.1325913260----------------------------------------1326130 September 2005. Summary of changes for version 20050930:13262132631) ACPI CA Core Subsystem:1326413265Completed a major overhaul of the Resource Manager code - specifically,13266optimizations in the area of the AML/internal resource conversion code.13267The13268code has been optimized to simplify and eliminate duplicated code, CPU13269stack13270use has been decreased by optimizing function parameters and local13271variables, and naming conventions across the manager have been13272standardized13273for clarity and ease of maintenance (this includes function, parameter,13274variable, and struct/typedef names.) The update may force changes in some13275driver code, depending on how resources are handled by the host OS.1327613277All Resource Manager dispatch and information tables have been moved to a13278single location for clarity and ease of maintenance. One new file was13279created, named "rsinfo.c".1328013281The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to13282guarantee that the argument is not evaluated twice, making them less13283prone13284to macro side-effects. However, since there exists the possibility of13285additional stack use if a particular compiler cannot optimize them (such13286as13287in the debug generation case), the original macros are optionally13288available.13289Note that some invocations of the return_VALUE macro may now cause size13290mismatch warnings; the return_UINT8 and return_UINT32 macros are provided13291to13292eliminate these. (From Randy Dunlap)1329313294Implemented a new mechanism to enable debug tracing for individual13295control13296methods. A new external interface, AcpiDebugTrace, is provided to enable13297this mechanism. The intent is to allow the host OS to easily enable and13298disable tracing for problematic control methods. This interface can be13299easily exposed to a user or debugger interface if desired. See the file13300psxface.c for details.1330113302AcpiUtCallocate will now return a valid pointer if a length of zero is13303specified - a length of one is used and a warning is issued. This matches13304the behavior of AcpiUtAllocate.1330513306Code and Data Size: The current and previous library sizes for the core13307subsystem are shown below. These are the code and data sizes for the13308acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13309These13310values do not include any ACPI driver or OSPM code. The debug version of13311the13312code includes the debug output trace mechanism and has a much larger code13313and data size. Note that these values will vary depending on the13314efficiency13315of the compiler and the compiler options used during generation.1331613317Previous Release:13318Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total13319Debug Version: 168.1K Code, 68.4K Data, 236.5K Total13320Current Release:13321Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total13322Debug Version: 168.0K Code, 68.3K Data, 236.3K Total1332313324133252) iASL Compiler/Disassembler:1332613327A remark is issued if the effective compile-time length of a package or13328buffer is zero. Previously, this was a warning.1332913330----------------------------------------1333116 September 2005. Summary of changes for version 20050916:13332133331) ACPI CA Core Subsystem:1333413335Fixed a problem within the Resource Manager where support for the Generic13336Register descriptor was not fully implemented. This descriptor is now13337fully13338recognized, parsed, disassembled, and displayed.1333913340Completely restructured the Resource Manager code to utilize table-driven13341dispatch and lookup, eliminating many of the large switch() statements.13342This13343reduces overall subsystem code size and code complexity. Affects the13344resource parsing and construction, disassembly, and debug dump output.1334513346Cleaned up and restructured the debug dump output for all resource13347descriptors. Improved readability of the output and reduced code size.1334813349Fixed a problem where changes to internal data structures caused the13350optional ACPI_MUTEX_DEBUG code to fail compilation if specified.1335113352Code and Data Size: The current and previous library sizes for the core13353subsystem are shown below. These are the code and data sizes for the13354acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13355These13356values do not include any ACPI driver or OSPM code. The debug version of13357the13358code includes the debug output trace mechanism and has a much larger code13359and data size. Note that these values will vary depending on the13360efficiency13361of the compiler and the compiler options used during generation.1336213363Previous Release:13364Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total13365Debug Version: 169.6K Code, 69.9K Data, 239.5K Total13366Current Release:13367Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total13368Debug Version: 168.1K Code, 68.4K Data, 236.5K Total1336913370133712) iASL Compiler/Disassembler:1337213373Updated the disassembler to automatically insert an EndDependentFn()13374macro13375into the ASL stream if this macro is missing in the original AML code,13376simplifying compilation of the resulting ASL module.1337713378Fixed a problem in the disassembler where a disassembled ResourceSource13379string (within a large resource descriptor) was not surrounded by quotes13380and13381not followed by a comma, causing errors when the resulting ASL module was13382compiled. Also, escape sequences within a ResourceSource string are now13383handled correctly (especially "\\")1338413385----------------------------------------1338602 September 2005. Summary of changes for version 20050902:13387133881) ACPI CA Core Subsystem:1338913390Fixed a problem with the internal Owner ID allocation and deallocation13391mechanisms for control method execution and recursive method invocation.13392This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"13393messages seen on some systems. Recursive method invocation depth is13394currently limited to 255. (Alexey Starikovskiy)1339513396Completely eliminated all vestiges of support for the "module-level13397executable code" until this support is fully implemented and debugged.13398This13399should eliminate the NO_RETURN_VALUE exceptions seen during table load on13400some systems that invoke this support.1340113402Fixed a problem within the resource manager code where the transaction13403flags13404for a 64-bit address descriptor were handled incorrectly in the type-13405specific flag byte.1340613407Consolidated duplicate code within the address descriptor resource13408manager13409code, reducing overall subsystem code size.1341013411Fixed a fault when using the AML debugger "disassemble" command to13412disassemble individual control methods.1341313414Removed references to the "release_current" directory within the Unix13415release package.1341613417Code and Data Size: The current and previous core subsystem library sizes13418are shown below. These are the code and data sizes for the acpica.lib13419produced by the Microsoft Visual C++ 6.0 compiler. These values do not13420include any ACPI driver or OSPM code. The debug version of the code13421includes13422the debug output trace mechanism and has a much larger code and data13423size.13424Note that these values will vary depending on the efficiency of the13425compiler13426and the compiler options used during generation.1342713428Previous Release:13429Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13430Debug Version: 170.0K Code, 69.9K Data, 239.9K Total13431Current Release:13432Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total13433Debug Version: 169.6K Code, 69.9K Data, 239.5K Total1343413435134362) iASL Compiler/Disassembler:1343713438Implemented an error check for illegal duplicate values in the interrupt13439and13440dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and13441Interrupt().1344213443Implemented error checking for the Irq() and IrqNoFlags() macros to13444detect13445too many values in the interrupt list (16 max) and invalid values in the13446list (range 0 - 15)1344713448The maximum length string literal within an ASL file is now restricted to13449200 characters as per the ACPI specification.1345013451Fixed a fault when using the -ln option (generate namespace listing).1345213453Implemented an error check to determine if a DescriptorName within a13454resource descriptor has already been used within the current scope.1345513456----------------------------------------1345715 August 2005. Summary of changes for version 20050815:13458134591) ACPI CA Core Subsystem:1346013461Implemented a full bytewise compare to determine if a table load request13462is13463attempting to load a duplicate table. The compare is performed if the13464table13465signatures and table lengths match. This will allow different tables with13466the same OEM Table ID and revision to be loaded - probably against the13467ACPI13468specification, but discovered in the field nonetheless.1346913470Added the changes.txt logfile to each of the zipped release packages.1347113472Code and Data Size: Current and previous core subsystem library sizes are13473shown below. These are the code and data sizes for the acpica.lib13474produced13475by the Microsoft Visual C++ 6.0 compiler, and these values do not include13476any ACPI driver or OSPM code. The debug version of the code includes the13477debug output trace mechanism and has a much larger code and data size.13478Note13479that these values will vary depending on the efficiency of the compiler13480and13481the compiler options used during generation.1348213483Previous Release:13484Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13485Debug Version: 167.0K Code, 69.9K Data, 236.9K Total13486Current Release:13487Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13488Debug Version: 170.0K Code, 69.9K Data, 239.9K Total1348913490134912) iASL Compiler/Disassembler:1349213493Fixed a problem where incorrect AML code could be generated for Package13494objects if optimization is disabled (via the -oa switch).1349513496Fixed a problem with where incorrect AML code is generated for variable-13497length packages when the package length is not specified and the number13498of13499initializer values is greater than 255.135001350113502----------------------------------------1350329 July 2005. Summary of changes for version 20050729:13504135051) ACPI CA Core Subsystem:1350613507Implemented support to ignore an attempt to install/load a particular13508ACPI13509table more than once. Apparently there exists BIOS code that repeatedly13510attempts to load the same SSDT upon certain events. With assistance from13511Venkatesh Pallipadi.1351213513Restructured the main interface to the AML parser in order to correctly13514handle all exceptional conditions. This will prevent leakage of the13515OwnerId13516resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on13517some13518machines. With assistance from Alexey Starikovskiy.1351913520Support for "module level code" has been disabled in this version due to13521a13522number of issues that have appeared on various machines. The support can13523be13524enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem13525compilation. When the issues are fully resolved, the code will be enabled13526by13527default again.1352813529Modified the internal functions for debug print support to define the13530FunctionName parameter as a (const char *) for compatibility with13531compiler13532built-in macros such as __FUNCTION__, etc.1353313534Linted the entire ACPICA source tree for both 32-bit and 64-bit.1353513536Implemented support to display an object count summary for the AML13537Debugger13538commands Object and Methods.1353913540Code and Data Size: Current and previous core subsystem library sizes are13541shown below. These are the code and data sizes for the acpica.lib13542produced13543by the Microsoft Visual C++ 6.0 compiler, and these values do not include13544any ACPI driver or OSPM code. The debug version of the code includes the13545debug output trace mechanism and has a much larger code and data size.13546Note13547that these values will vary depending on the efficiency of the compiler13548and13549the compiler options used during generation.1355013551Previous Release:13552Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total13553Debug Version: 170.0K Code, 69.7K Data, 239.7K Total13554Current Release:13555Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13556Debug Version: 167.0K Code, 69.9K Data, 236.9K Total1355713558135592) iASL Compiler/Disassembler:1356013561Fixed a regression that appeared in the 20050708 version of the compiler13562where an error message was inadvertently emitted for invocations of the13563_OSI13564reserved control method.1356513566----------------------------------------1356708 July 2005. Summary of changes for version 20050708:13568135691) ACPI CA Core Subsystem:1357013571The use of the CPU stack in the debug version of the subsystem has been13572considerably reduced. Previously, a debug structure was declared in every13573function that used the debug macros. This structure has been removed in13574favor of declaring the individual elements as parameters to the debug13575functions. This reduces the cumulative stack use during nested execution13576of13577ACPI function calls at the cost of a small increase in the code size of13578the13579debug version of the subsystem. With assistance from Alexey Starikovskiy13580and13581Len Brown.1358213583Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent13584headers to define a macro that will return the current function name at13585runtime (such as __FUNCTION__ or _func_, etc.) The function name is used13586by13587the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the13588compiler-dependent header, the function name is saved on the CPU stack13589(one13590pointer per function.) This mechanism is used because apparently there13591exists no standard ANSI-C defined macro that that returns the function13592name.1359313594Redesigned and reimplemented the "Owner ID" mechanism used to track13595namespace objects created/deleted by ACPI tables and control method13596execution. A bitmap is now used to allocate and free the IDs, thus13597solving13598the wraparound problem present in the previous implementation. The size13599of13600the namespace node descriptor was reduced by 2 bytes as a result (Alexey13601Starikovskiy).1360213603Removed the UINT32_BIT and UINT16_BIT types that were used for the13604bitfield13605flag definitions within the headers for the predefined ACPI tables. These13606have been replaced by UINT8_BIT in order to increase the code portability13607of13608the subsystem. If the use of UINT8 remains a problem, we may be forced to13609eliminate bitfields entirely because of a lack of portability.1361013611Enhanced the performance of the AcpiUtUpdateObjectReference procedure.13612This13613is a frequently used function and this improvement increases the13614performance13615of the entire subsystem (Alexey Starikovskiy).1361613617Fixed several possible memory leaks and the inverse - premature object13618deletion (Alexey Starikovskiy).1361913620Code and Data Size: Current and previous core subsystem library sizes are13621shown below. These are the code and data sizes for the acpica.lib13622produced13623by the Microsoft Visual C++ 6.0 compiler, and these values do not include13624any ACPI driver or OSPM code. The debug version of the code includes the13625debug output trace mechanism and has a much larger code and data size.13626Note13627that these values will vary depending on the efficiency of the compiler13628and13629the compiler options used during generation.1363013631Previous Release:13632Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total13633Debug Version: 165.2K Code, 69.6K Data, 234.8K Total13634Current Release:13635Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total13636Debug Version: 170.0K Code, 69.7K Data, 239.7K Total1363713638----------------------------------------1363924 June 2005. Summary of changes for version 20050624:13640136411) ACPI CA Core Subsystem:1364213643Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for13644the host-defined cache object. This allows the OSL implementation to13645define13646and type this object in any manner desired, simplifying the OSL13647implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for13648Linux, and should be defined in the OS-specific header file for other13649operating systems as required.1365013651Changed the interface to AcpiOsAcquireObject to directly return the13652requested object as the function return (instead of ACPI_STATUS.) This13653change was made for performance reasons, since this is the purpose of the13654interface in the first place. AcpiOsAcquireObject is now similar to the13655AcpiOsAllocate interface.1365613657Implemented a new AML debugger command named Businfo. This command13658displays13659information about all devices that have an associate _PRT object. The13660_ADR,13661_HID, _UID, and _CID are displayed for these devices.1366213663Modified the initialization sequence in AcpiInitializeSubsystem to call13664the13665OSL interface AcpiOslInitialize first, before any local initialization.13666This13667change was required because the global initialization now calls OSL13668interfaces.1366913670Enhanced the Dump command to display the entire contents of Package13671objects13672(including all sub-objects and their values.)1367313674Restructured the code base to split some files because of size and/or13675because the code logically belonged in a separate file. New files are13676listed13677below. All makefiles and project files included in the ACPI CA release13678have13679been updated.13680utilities/utcache.c /* Local cache interfaces */13681utilities/utmutex.c /* Local mutex support */13682utilities/utstate.c /* State object support */13683interpreter/parser/psloop.c /* Main AML parse loop */1368413685Code and Data Size: Current and previous core subsystem library sizes are13686shown below. These are the code and data sizes for the acpica.lib13687produced13688by the Microsoft Visual C++ 6.0 compiler, and these values do not include13689any ACPI driver or OSPM code. The debug version of the code includes the13690debug output trace mechanism and has a much larger code and data size.13691Note13692that these values will vary depending on the efficiency of the compiler13693and13694the compiler options used during generation.1369513696Previous Release:13697Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total13698Debug Version: 164.0K Code, 69.1K Data, 233.1K Total13699Current Release:13700Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total13701Debug Version: 165.2K Code, 69.6K Data, 234.8K Total1370213703137042) iASL Compiler/Disassembler:1370513706Fixed a regression introduced in version 20050513 where the use of a13707Package13708object within a Case() statement caused a compile time exception. The13709original behavior has been restored (a Match() operator is emitted.)1371013711----------------------------------------1371217 June 2005. Summary of changes for version 20050617:13713137141) ACPI CA Core Subsystem:1371513716Moved the object cache operations into the OS interface layer (OSL) to13717allow13718the host OS to handle these operations if desired (for example, the Linux13719OSL will invoke the slab allocator). This support is optional; the13720compile13721time define ACPI_USE_LOCAL_CACHE may be used to utilize the original13722cache13723code in the ACPI CA core. The new OSL interfaces are shown below. See13724utalloc.c for an example implementation, and acpiosxf.h for the exact13725interface definitions. With assistance from Alexey Starikovskiy.13726AcpiOsCreateCache13727AcpiOsDeleteCache13728AcpiOsPurgeCache13729AcpiOsAcquireObject13730AcpiOsReleaseObject1373113732Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to13733return13734and restore a flags parameter. This fits better with many OS lock models.13735Note: the current execution state (interrupt handler or not) is no longer13736passed to these interfaces. If necessary, the OSL must determine this13737state13738by itself, a simple and fast operation. With assistance from Alexey13739Starikovskiy.1374013741Fixed a problem in the ACPI table handling where a valid XSDT was assumed13742present if the revision of the RSDP was 2 or greater. According to the13743ACPI13744specification, the XSDT is optional in all cases, and the table manager13745therefore now checks for both an RSDP >=2 and a valid XSDT pointer.13746Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs13747contain13748only the RSDT.1374913750Fixed an interpreter problem with the Mid() operator in the case of an13751input13752string where the resulting output string is of zero length. It now13753correctly13754returns a valid, null terminated string object instead of a string object13755with a null pointer.1375613757Fixed a problem with the control method argument handling to allow a13758store13759to an Arg object that already contains an object of type Device. The13760Device13761object is now correctly overwritten. Previously, an error was returned.137621376313764Enhanced the debugger Find command to emit object values in addition to13765the13766found object pathnames. The output format is the same as the dump13767namespace13768command.1376913770Enhanced the debugger Set command. It now has the ability to set the13771value13772of any Named integer object in the namespace (Previously, only method13773locals13774and args could be set.)1377513776Code and Data Size: Current and previous core subsystem library sizes are13777shown below. These are the code and data sizes for the acpica.lib13778produced13779by the Microsoft Visual C++ 6.0 compiler, and these values do not include13780any ACPI driver or OSPM code. The debug version of the code includes the13781debug output trace mechanism and has a much larger code and data size.13782Note13783that these values will vary depending on the efficiency of the compiler13784and13785the compiler options used during generation.1378613787Previous Release:13788Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total13789Debug Version: 164.0K Code, 69.3K Data, 233.3K Total13790Current Release:13791Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total13792Debug Version: 164.0K Code, 69.1K Data, 233.1K Total1379313794137952) iASL Compiler/Disassembler:1379613797Fixed a regression in the disassembler where if/else/while constructs13798were13799output incorrectly. This problem was introduced in the previous release13800(20050526). This problem also affected the single-step disassembly in the13801debugger.1380213803Fixed a problem where compiling the reserved _OSI method would randomly13804(but13805rarely) produce compile errors.1380613807Enhanced the disassembler to emit compilable code in the face of13808incorrect13809AML resource descriptors. If the optional ResourceSourceIndex is present,13810but the ResourceSource is not, do not emit the ResourceSourceIndex in the13811disassembly. Otherwise, the resulting code cannot be compiled without13812errors.1381313814----------------------------------------1381526 May 2005. Summary of changes for version 20050526:13816138171) ACPI CA Core Subsystem:1381813819Implemented support to execute Type 1 and Type 2 AML opcodes appearing at13820the module level (not within a control method.) These opcodes are13821executed13822exactly once at the time the table is loaded. This type of code was legal13823up13824until the release of ACPI 2.0B (2002) and is now supported within ACPI CA13825in13826order to provide backwards compatibility with earlier BIOS13827implementations.13828This eliminates the "Encountered executable code at module level" warning13829that was previously generated upon detection of such code.1383013831Fixed a problem in the interpreter where an AE_NOT_FOUND exception could13832inadvertently be generated during the lookup of namespace objects in the13833second pass parse of ACPI tables and control methods. It appears that13834this13835problem could occur during the resolution of forward references to13836namespace13837objects.1383813839Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,13840corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This13841allows the deadlock detection debug code to be compiled out in the normal13842case, improving mutex performance (and overall subsystem performance)13843considerably.1384413845Implemented a handful of miscellaneous fixes for possible memory leaks on13846error conditions and error handling control paths. These fixes were13847suggested by FreeBSD and the Coverity Prevent source code analysis tool.1384813849Added a check for a null RSDT pointer in AcpiGetFirmwareTable13850(tbxfroot.c)13851to prevent a fault in this error case.1385213853Code and Data Size: Current and previous core subsystem library sizes are13854shown below. These are the code and data sizes for the acpica.lib13855produced13856by the Microsoft Visual C++ 6.0 compiler, and these values do not include13857any ACPI driver or OSPM code. The debug version of the code includes the13858debug output trace mechanism and has a much larger code and data size.13859Note13860that these values will vary depending on the efficiency of the compiler13861and13862the compiler options used during generation.1386313864Previous Release:13865Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total13866Debug Version: 163.7K Code, 69.3K Data, 233.0K Total13867Current Release:13868Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total13869Debug Version: 164.0K Code, 69.3K Data, 233.3K Total1387013871138722) iASL Compiler/Disassembler:1387313874Implemented support to allow Type 1 and Type 2 ASL operators to appear at13875the module level (not within a control method.) These operators will be13876executed once at the time the table is loaded. This type of code was13877legal13878up until the release of ACPI 2.0B (2002) and is now supported by the iASL13879compiler in order to provide backwards compatibility with earlier BIOS13880ASL13881code.1388213883The ACPI integer width (specified via the table revision ID or the -r13884override, 32 or 64 bits) is now used internally during compile-time13885constant13886folding to ensure that constants are truncated to 32 bits if necessary.13887Previously, the revision ID value was only emitted in the AML table13888header.1388913890An error message is now generated for the Mutex and Method operators if13891the13892SyncLevel parameter is outside the legal range of 0 through 15.1389313894Fixed a problem with the Method operator ParameterTypes list handling13895(ACPI138963.0). Previously, more than 2 types or 2 arguments generated a syntax13897error.13898The actual underlying implementation of method argument typechecking is13899still under development, however.1390013901----------------------------------------1390213 May 2005. Summary of changes for version 20050513:13903139041) ACPI CA Core Subsystem:1390513906Implemented support for PCI Express root bridges -- added support for13907device13908PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.1390913910The interpreter now automatically truncates incoming 64-bit constants to139113213912bits if currently executing out of a 32-bit ACPI table (Revision < 2).13913This13914also affects the iASL compiler constant folding. (Note: as per below, the13915iASL compiler no longer allows 64-bit constants within 32-bit tables.)1391613917Fixed a problem where string and buffer objects with "static" pointers13918(pointers to initialization data within an ACPI table) were not handled13919consistently. The internal object copy operation now always copies the13920data13921to a newly allocated buffer, regardless of whether the source object is13922static or not.1392313924Fixed a problem with the FromBCD operator where an implicit result13925conversion was improperly performed while storing the result to the13926target13927operand. Since this is an "explicit conversion" operator, the implicit13928conversion should never be performed on the output.1392913930Fixed a problem with the CopyObject operator where a copy to an existing13931named object did not always completely overwrite the existing object13932stored13933at name. Specifically, a buffer-to-buffer copy did not delete the13934existing13935buffer.1393613937Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces13938and13939structs for consistency.1394013941Code and Data Size: Current and previous core subsystem library sizes are13942shown below. These are the code and data sizes for the acpica.lib13943produced13944by the Microsoft Visual C++ 6.0 compiler, and these values do not include13945any ACPI driver or OSPM code. The debug version of the code includes the13946debug output trace mechanism and has a much larger code and data size.13947Note13948that these values will vary depending on the efficiency of the compiler13949and13950the compiler options used during generation.1395113952Previous Release:13953Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total13954Debug Version: 163.7K Code, 69.3K Data, 233.0K Total13955Current Release: (Same sizes)13956Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total13957Debug Version: 163.7K Code, 69.3K Data, 233.0K Total1395813959139602) iASL Compiler/Disassembler:1396113962The compiler now emits a warning if an attempt is made to generate a 64-13963bit13964integer constant from within a 32-bit ACPI table (Revision < 2). The13965integer13966is truncated to 32 bits.1396713968Fixed a problem with large package objects: if the static length of the13969package is greater than 255, the "variable length package" opcode is13970emitted. Previously, this caused an error. This requires an update to the13971ACPI spec, since it currently (incorrectly) states that packages larger13972than13973255 elements are not allowed.1397413975The disassembler now correctly handles variable length packages and13976packages13977larger than 255 elements.1397813979----------------------------------------1398008 April 2005. Summary of changes for version 20050408:13981139821) ACPI CA Core Subsystem:1398313984Fixed three cases in the interpreter where an "index" argument to an ASL13985function was still (internally) 32 bits instead of the required 64 bits.13986This was the Index argument to the Index, Mid, and Match operators.1398713988The "strupr" function is now permanently local (AcpiUtStrupr), since this13989is13990not a POSIX-defined function and not present in most kernel-level C13991libraries. All references to the C library strupr function have been13992removed13993from the headers.1399413995Completed the deployment of static functions/prototypes. All prototypes13996with13997the static attribute have been moved from the headers to the owning C13998file.1399914000Implemented an extract option (-e) for the AcpiBin utility (AML binary14001utility). This option allows the utility to extract individual ACPI14002tables14003from the output of AcpiDmp. It provides the same functionality of the14004acpixtract.pl perl script without the worry of setting the correct perl14005options. AcpiBin runs on Windows and has not yet been generated/validated14006in14007the Linux/Unix environment (but should be soon).1400814009Updated and fixed the table dump option for AcpiBin (-d). This option14010converts a single ACPI table to a hex/ascii file, similar to the output14011of14012AcpiDmp.1401314014Code and Data Size: Current and previous core subsystem library sizes are14015shown below. These are the code and data sizes for the acpica.lib14016produced14017by the Microsoft Visual C++ 6.0 compiler, and these values do not include14018any ACPI driver or OSPM code. The debug version of the code includes the14019debug output trace mechanism and has a much larger code and data size.14020Note14021that these values will vary depending on the efficiency of the compiler14022and14023the compiler options used during generation.1402414025Previous Release:14026Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total14027Debug Version: 163.5K Code, 69.3K Data, 232.8K Total14028Current Release:14029Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total14030Debug Version: 163.7K Code, 69.3K Data, 233.0K Total1403114032140332) iASL Compiler/Disassembler:1403414035Disassembler fix: Added a check to ensure that the table length found in14036the14037ACPI table header within the input file is not longer than the actual14038input14039file size. This indicates some kind of file or table corruption.1404014041----------------------------------------1404229 March 2005. Summary of changes for version 20050329:14043140441) ACPI CA Core Subsystem:1404514046An error is now generated if an attempt is made to create a Buffer Field14047of14048length zero (A CreateField with a length operand of zero.)1404914050The interpreter now issues a warning whenever executable code at the14051module14052level is detected during ACPI table load. This will give some idea of the14053prevalence of this type of code.1405414055Implemented support for references to named objects (other than control14056methods) within package objects.1405714058Enhanced package object output for the debug object. Package objects are14059now14060completely dumped, showing all elements.1406114062Enhanced miscellaneous object output for the debug object. Any object can14063now be written to the debug object (for example, a device object can be14064written, and the type of the object will be displayed.)1406514066The "static" qualifier has been added to all local functions across both14067the14068core subsystem and the iASL compiler.1406914070The number of "long" lines (> 80 chars) within the source has been14071significantly reduced, by about 1/3.1407214073Cleaned up all header files to ensure that all CA/iASL functions are14074prototyped (even static functions) and the formatting is consistent.1407514076Two new header files have been added, acopcode.h and acnames.h.1407714078Removed several obsolete functions that were no longer used.1407914080Code and Data Size: Current and previous core subsystem library sizes are14081shown below. These are the code and data sizes for the acpica.lib14082produced14083by the Microsoft Visual C++ 6.0 compiler, and these values do not include14084any ACPI driver or OSPM code. The debug version of the code includes the14085debug output trace mechanism and has a much larger code and data size.14086Note14087that these values will vary depending on the efficiency of the compiler14088and14089the compiler options used during generation.1409014091Previous Release:14092Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14093Debug Version: 165.4K Code, 69.7K Data, 236.1K Total14094Current Release:14095Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total14096Debug Version: 163.5K Code, 69.3K Data, 232.8K Total140971409814099141002) iASL Compiler/Disassembler:1410114102Fixed a problem with the resource descriptor generation/support. For the14103ResourceSourceIndex and the ResourceSource fields, both must be present,14104or14105both must be not present - can't have one without the other.1410614107The compiler now returns non-zero from the main procedure if any errors14108have14109occurred during the compilation.141101411114112----------------------------------------1411309 March 2005. Summary of changes for version 20050309:14114141151) ACPI CA Core Subsystem:1411614117The string-to-buffer implicit conversion code has been modified again14118after14119a change to the ACPI specification. In order to match the behavior of14120the14121other major ACPI implementation, the target buffer is no longer truncated14122if14123the source string is smaller than an existing target buffer. This change14124requires an update to the ACPI spec, and should eliminate the recent14125AE_AML_BUFFER_LIMIT issues.1412614127The "implicit return" support was rewritten to a new algorithm that14128solves14129the general case. Rather than attempt to determine when a method is about14130to14131exit, the result of every ASL operator is saved momentarily until the14132very14133next ASL operator is executed. Therefore, no matter how the method exits,14134there will always be a saved implicit return value. This feature is only14135enabled with the AcpiGbl_EnableInterpreterSlack flag, and should14136eliminate14137AE_AML_NO_RETURN_VALUE errors when enabled.1413814139Implemented implicit conversion support for the predicate (operand) of14140the14141If, Else, and While operators. String and Buffer arguments are14142automatically14143converted to Integers.1414414145Changed the string-to-integer conversion behavior to match the new ACPI14146errata: "If no integer object exists, a new integer is created. The ASCII14147string is interpreted as a hexadecimal constant. Each string character is14148interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting14149with the first character as the most significant digit, and ending with14150the14151first non-hexadecimal character or end-of-string." This means that the14152first14153non-hex character terminates the conversion and this is the code that was14154changed.1415514156Fixed a problem where the ObjectType operator would fail (fault) when14157used14158on an Index of a Package which pointed to a null package element. The14159operator now properly returns zero (Uninitialized) in this case.1416014161Fixed a problem where the While operator used excessive memory by not14162properly popping the result stack during execution. There was no memory14163leak14164after execution, however. (Code provided by Valery Podrezov.)1416514166Fixed a problem where references to control methods within Package14167objects14168caused the method to be invoked, instead of producing a reference object14169pointing to the method.1417014171Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)14172to14173improve performance and reduce code size. (Code provided by Alexey14174Starikovskiy.)1417514176Code and Data Size: Current and previous core subsystem library sizes are14177shown below. These are the code and data sizes for the acpica.lib14178produced14179by the Microsoft Visual C++ 6.0 compiler, and these values do not include14180any ACPI driver or OSPM code. The debug version of the code includes the14181debug output trace mechanism and has a much larger code and data size.14182Note14183that these values will vary depending on the efficiency of the compiler14184and14185the compiler options used during generation.1418614187Previous Release:14188Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14189Debug Version: 165.4K Code, 69.6K Data, 236.0K Total14190Current Release:14191Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14192Debug Version: 165.4K Code, 69.7K Data, 236.1K Total1419314194141952) iASL Compiler/Disassembler:1419614197Fixed a problem with the Return operator with no arguments. Since the AML14198grammar for the byte encoding requires an operand for the Return opcode,14199the14200compiler now emits a Return(Zero) for this case. An ACPI specification14201update has been written for this case.1420214203For tables other than the DSDT, namepath optimization is automatically14204disabled. This is because SSDTs can be loaded anywhere in the namespace,14205the14206compiler has no knowledge of where, and thus cannot optimize namepaths.1420714208Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was14209inadvertently omitted from the ACPI specification, and will require an14210update to the spec.1421114212The source file scan for ASCII characters is now optional (-a). This14213change14214was made because some vendors place non-ascii characters within comments.14215However, the scan is simply a brute-force byte compare to ensure all14216characters in the file are in the range 0x00 to 0x7F.1421714218Fixed a problem with the CondRefOf operator where the compiler was14219inappropriately checking for the existence of the target. Since the point14220of14221the operator is to check for the existence of the target at run-time, the14222compiler no longer checks for the target existence.1422314224Fixed a problem where errors generated from the internal AML interpreter14225during constant folding were not handled properly, causing a fault.1422614227Fixed a problem with overly aggressive range checking for the Stall14228operator. The valid range (max 255) is now only checked if the operand is14229of14230type Integer. All other operand types cannot be statically checked.1423114232Fixed a problem where control method references within the RefOf,14233DeRefOf,14234and ObjectType operators were not treated properly. They are now treated14235as14236actual references, not method invocations.1423714238Fixed and enhanced the "list namespace" option (-ln). This option was14239broken14240a number of releases ago.1424114242Improved error handling for the Field, IndexField, and BankField14243operators.14244The compiler now cleanly reports and recovers from errors in the field14245component (FieldUnit) list.1424614247Fixed a disassembler problem where the optional ResourceDescriptor fields14248TRS and TTP were not always handled correctly.1424914250Disassembler - Comments in output now use "//" instead of "/*"1425114252----------------------------------------1425328 February 2005. Summary of changes for version 20050228:14254142551) ACPI CA Core Subsystem:1425614257Fixed a problem where the result of an Index() operator (an object14258reference) must increment the reference count on the target object for14259the14260life of the object reference.1426114262Implemented AML Interpreter and Debugger support for the new ACPI 3.014263Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and14264WordSpace14265resource descriptors.1426614267Implemented support in the _OSI method for the ACPI 3.0 "Extended Address14268Space Descriptor" string, indicating interpreter support for the14269descriptors14270above.1427114272Implemented header support for the new ACPI 3.0 FADT flag bits.1427314274Implemented header support for the new ACPI 3.0 PCI Express bits for the14275PM114276status/enable registers.1427714278Updated header support for the MADT processor local Apic struct and MADT14279platform interrupt source struct for new ACPI 3.0 fields.1428014281Implemented header support for the SRAT and SLIT ACPI tables.1428214283Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"14284flag14285at runtime.1428614287Code and Data Size: Current and previous core subsystem library sizes are14288shown below. These are the code and data sizes for the acpica.lib14289produced14290by the Microsoft Visual C++ 6.0 compiler, and these values do not include14291any ACPI driver or OSPM code. The debug version of the code includes the14292debug output trace mechanism and has a much larger code and data size.14293Note14294that these values will vary depending on the efficiency of the compiler14295and14296the compiler options used during generation.1429714298Previous Release:14299Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total14300Debug Version: 164.9K Code, 69.2K Data, 234.1K Total14301Current Release:14302Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14303Debug Version: 165.4K Code, 69.6K Data, 236.0K Total1430414305143062) iASL Compiler/Disassembler:1430714308Fixed a problem with the internal 64-bit String-to-integer conversion14309with14310strings less than two characters long.1431114312Fixed a problem with constant folding where the result of the Index()14313operator can not be considered a constant. This means that Index() cannot14314be14315a type3 opcode and this will require an update to the ACPI specification.1431614317Disassembler: Implemented support for the TTP, MTP, and TRS resource14318descriptor fields. These fields were inadvertently ignored and not output14319in14320the disassembly of the resource descriptor.143211432214323----------------------------------------1432411 February 2005. Summary of changes for version 20050211:14325143261) ACPI CA Core Subsystem:1432714328Implemented ACPI 3.0 support for implicit conversion within the Match()14329operator. MatchObjects can now be of type integer, buffer, or string14330instead14331of just type integer. Package elements are implicitly converted to the14332type14333of the MatchObject. This change aligns the behavior of Match() with the14334behavior of the other logical operators (LLess(), etc.) It also requires14335an14336errata change to the ACPI specification as this support was intended for14337ACPI 3.0, but was inadvertently omitted.1433814339Fixed a problem with the internal implicit "to buffer" conversion.14340Strings14341that are converted to buffers will cause buffer truncation if the string14342is14343smaller than the target buffer. Integers that are converted to buffers14344will14345not cause buffer truncation, only zero extension (both as per the ACPI14346spec.) The problem was introduced when code was added to truncate the14347buffer, but this should not be performed in all cases, only the string14348case.1434914350Fixed a problem with the Buffer and Package operators where the14351interpreter14352would get confused if two such operators were used as operands to an ASL14353operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result14354stack was not being popped after the execution of these operators,14355resulting14356in an AE_NO_RETURN_VALUE exception.1435714358Fixed a problem with constructs of the form Store(Index(...),...). The14359reference object returned from Index was inadvertently resolved to an14360actual14361value. This problem was introduced in version 20050114 when the behavior14362of14363Store() was modified to restrict the object types that can be used as the14364source operand (to match the ACPI specification.)1436514366Reduced excessive stack use within the AcpiGetObjectInfo procedure.1436714368Added a fix to aclinux.h to allow generation of AcpiExec on Linux.1436914370Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.1437114372Code and Data Size: Current and previous core subsystem library sizes are14373shown below. These are the code and data sizes for the acpica.lib14374produced14375by the Microsoft Visual C++ 6.0 compiler, and these values do not include14376any ACPI driver or OSPM code. The debug version of the code includes the14377debug output trace mechanism and has a much larger code and data size.14378Note14379that these values will vary depending on the efficiency of the compiler14380and14381the compiler options used during generation.1438214383Previous Release:14384Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total14385Debug Version: 164.8K Code, 69.2K Data, 234.0K Total14386Current Release:14387Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total14388Debug Version: 164.9K Code, 69.2K Data, 234.1K Total1438914390143912) iASL Compiler/Disassembler:1439214393Fixed a code generation problem in the constant folding optimization code14394where incorrect code was generated if a constant was reduced to a buffer14395object (i.e., a reduced type 5 opcode.)1439614397Fixed a typechecking problem for the ToBuffer operator. Caused by an14398incorrect return type in the internal opcode information table.1439914400----------------------------------------1440125 January 2005. Summary of changes for version 20050125:14402144031) ACPI CA Core Subsystem:1440414405Fixed a recently introduced problem with the Global Lock where the14406underlying semaphore was not created. This problem was introduced in14407version 20050114, and caused an AE_AML_NO_OPERAND exception during an14408Acquire() operation on _GL.1440914410The local object cache is now optional, and is disabled by default. Both14411AcpiExec and the iASL compiler enable the cache because they run in user14412mode and this enhances their performance. #define14413ACPI_ENABLE_OBJECT_CACHE14414to enable the local cache.1441514416Fixed an issue in the internal function AcpiUtEvaluateObject concerning14417the14418optional "implicit return" support where an error was returned if no14419return14420object was expected, but one was implicitly returned. AE_OK is now14421returned14422in this case and the implicitly returned object is deleted.14423AcpiUtEvaluateObject is only occasionally used, and only to execute14424reserved14425methods such as _STA and _INI where the return type is known up front.1442614427Fixed a few issues with the internal convert-to-integer code. It now14428returns14429an error if an attempt is made to convert a null string, a string of only14430blanks/tabs, or a zero-length buffer. This affects both implicit14431conversion14432and explicit conversion via the ToInteger() operator.1443314434The internal debug code in AcpiUtAcquireMutex has been commented out. It14435is14436not needed for normal operation and should increase the performance of14437the14438entire subsystem. The code remains in case it is needed for debug14439purposes14440again.1444114442The AcpiExec source and makefile are included in the Unix/Linux package14443for14444the first time.1444514446Code and Data Size: Current and previous core subsystem library sizes are14447shown below. These are the code and data sizes for the acpica.lib14448produced14449by the Microsoft Visual C++ 6.0 compiler, and these values do not include14450any ACPI driver or OSPM code. The debug version of the code includes the14451debug output trace mechanism and has a much larger code and data size.14452Note14453that these values will vary depending on the efficiency of the compiler14454and14455the compiler options used during generation.1445614457Previous Release:14458Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total14459Debug Version: 165.4K Code, 69.4K Data, 234.8K Total14460Current Release:14461Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total14462Debug Version: 164.8K Code, 69.2K Data, 234.0K Total14463144642) iASL Compiler/Disassembler:1446514466Switch/Case support: A warning is now issued if the type of the Switch14467value14468cannot be determined at compile time. For example, Switch(Arg0) will14469generate the warning, and the type is assumed to be an integer. As per14470the14471ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate14472the14473warning.1447414475Switch/Case support: Implemented support for buffer and string objects as14476the switch value. This is an ACPI 3.0 feature, now that LEqual supports14477buffers and strings.1447814479Switch/Case support: The emitted code for the LEqual() comparisons now14480uses14481the switch value as the first operand, not the second. The case value is14482now14483the second operand, and this allows the case value to be implicitly14484converted to the type of the switch value, not the other way around.1448514486Switch/Case support: Temporary variables are now emitted immediately14487within14488the control method, not at the global level. This means that there are14489now1449036 temps available per-method, not 36 temps per-module as was the case14491with14492the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)1449314494----------------------------------------1449514 January 2005. Summary of changes for version 20050114:1449614497Added 2005 copyright to all module headers. This affects every module in14498the core subsystem, iASL compiler, and the utilities.14499145001) ACPI CA Core Subsystem:1450114502Fixed an issue with the String-to-Buffer conversion code where the string14503null terminator was not included in the buffer after conversion, but14504there14505is existing ASL that assumes the string null terminator is included. This14506is14507the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was14508introduced in the previous version when the code was updated to correctly14509set the converted buffer size as per the ACPI specification. The ACPI14510spec14511is ambiguous and will be updated to specify that the null terminator must14512be14513included in the converted buffer. This also affects the ToBuffer() ASL14514operator.1451514516Fixed a problem with the Mid() ASL/AML operator where it did not work14517correctly on Buffer objects. Newly created sub-buffers were not being14518marked14519as initialized.145201452114522Fixed a problem in AcpiTbFindTable where incorrect string compares were14523performed on the OemId and OemTableId table header fields. These fields14524are14525not null terminated, so strncmp is now used instead of strcmp.1452614527Implemented a restriction on the Store() ASL/AML operator to align the14528behavior with the ACPI specification. Previously, any object could be14529used14530as the source operand. Now, the only objects that may be used are14531Integers,14532Buffers, Strings, Packages, Object References, and DDB Handles. If14533necessary, the original behavior can be restored by enabling the14534EnableInterpreterSlack flag.1453514536Enhanced the optional "implicit return" support to allow an implicit14537return14538value from methods that are invoked externally via the AcpiEvaluateObject14539interface. This enables implicit returns from the _STA and _INI methods,14540for example.1454114542Changed the Revision() ASL/AML operator to return the current version of14543the14544AML interpreter, in the YYYYMMDD format. Previously, it incorrectly14545returned14546the supported ACPI version (This is the function of the _REV method).1454714548Updated the _REV predefined method to return the currently supported14549version14550of ACPI, now 3.1455114552Implemented batch mode option for the AcpiExec utility (-b).1455314554Code and Data Size: Current and previous core subsystem library sizes are14555shown below. These are the code and data sizes for the acpica.lib14556produced14557by the Microsoft Visual C++ 6.0 compiler, and these values do not include14558any ACPI driver or OSPM code. The debug version of the code includes the14559debug output trace mechanism and has a much larger code and data size.14560Note14561that these values will vary depending on the efficiency of the compiler14562and14563the compiler options used during generation.1456414565Previous Release:14566Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14567Debug Version: 165.3K Code, 69.4K Data, 234.7K Total14568Current Release:14569Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total14570Debug Version: 165.4K Code, 69.4K Data, 234.8K Total1457114572----------------------------------------1457310 December 2004. Summary of changes for version 20041210:1457414575ACPI 3.0 support is nearing completion in both the iASL compiler and the14576ACPI CA core subsystem.14577145781) ACPI CA Core Subsystem:1457914580Fixed a problem in the ToDecimalString operator where the resulting14581string14582length was incorrectly calculated. The length is now calculated exactly,14583eliminating incorrect AE_STRING_LIMIT exceptions.1458414585Fixed a problem in the ToHexString operator to allow a maximum 20014586character14587string to be produced.1458814589Fixed a problem in the internal string-to-buffer and buffer-to-buffer14590copy14591routine where the length of the resulting buffer was not truncated to the14592new size (if the target buffer already existed).1459314594Code and Data Size: Current and previous core subsystem library sizes are14595shown below. These are the code and data sizes for the acpica.lib14596produced14597by the Microsoft Visual C++ 6.0 compiler, and these values do not include14598any ACPI driver or OSPM code. The debug version of the code includes the14599debug output trace mechanism and has a much larger code and data size.14600Note14601that these values will vary depending on the efficiency of the compiler14602and14603the compiler options used during generation.1460414605Previous Release:14606Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14607Debug Version: 164.7K Code, 68.5K Data, 233.2K Total14608Current Release:14609Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14610Debug Version: 165.3K Code, 69.4K Data, 234.7K Total1461114612146132) iASL Compiler/Disassembler:1461414615Implemented the new ACPI 3.0 resource template macros - DWordSpace,14616ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.14617Includes support in the disassembler.1461814619Implemented support for the new (ACPI 3.0) parameter to the Register14620macro,14621AccessSize.1462214623Fixed a problem where the _HE resource name for the Interrupt macro was14624referencing bit 0 instead of bit 1.1462514626Implemented check for maximum 255 interrupts in the Interrupt macro.1462714628Fixed a problem with the predefined resource descriptor names where14629incorrect AML code was generated if the offset within the resource buffer14630was 0 or 1. The optimizer shortened the AML code to a single byte opcode14631but did not update the surrounding package lengths.1463214633Changes to the Dma macro: All channels within the channel list must be14634in14635the range 0-7. Maximum 8 channels can be specified. BusMaster operand is14636optional (default is BusMaster).1463714638Implemented check for maximum 7 data bytes for the VendorShort macro.1463914640The ReadWrite parameter is now optional for the Memory32 and similar14641macros.1464214643----------------------------------------1464403 December 2004. Summary of changes for version 20041203:14645146461) ACPI CA Core Subsystem:1464714648The low-level field insertion/extraction code (exfldio) has been14649completely14650rewritten to eliminate unnecessary complexity, bugs, and boundary14651conditions.1465214653Fixed a problem in the ToInteger, ToBuffer, ToHexString, and14654ToDecimalString14655operators where the input operand could be inadvertently deleted if no14656conversion was necessary (e.g., if the input to ToInteger was an Integer14657object.)1465814659Fixed a problem with the ToDecimalString and ToHexString where an14660incorrect14661exception code was returned if the resulting string would be > 200 chars.14662AE_STRING_LIMIT is now returned.1466314664Fixed a problem with the Concatenate operator where AE_OK was always14665returned, even if the operation failed.1466614667Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 12814668semaphores to be allocated.1466914670Code and Data Size: Current and previous core subsystem library sizes are14671shown below. These are the code and data sizes for the acpica.lib14672produced14673by the Microsoft Visual C++ 6.0 compiler, and these values do not include14674any ACPI driver or OSPM code. The debug version of the code includes the14675debug output trace mechanism and has a much larger code and data size.14676Note14677that these values will vary depending on the efficiency of the compiler14678and14679the compiler options used during generation.1468014681Previous Release:14682Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14683Debug Version: 165.2K Code, 68.6K Data, 233.8K Total14684Current Release:14685Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14686Debug Version: 164.7K Code, 68.5K Data, 233.2K Total1468714688146892) iASL Compiler/Disassembler:1469014691Fixed typechecking for the ObjectType and SizeOf operators. Problem was14692recently introduced in 20041119.1469314694Fixed a problem with the ToUUID macro where the upper nybble of each14695buffer14696byte was inadvertently set to zero.1469714698----------------------------------------1469919 November 2004. Summary of changes for version 20041119:14700147011) ACPI CA Core Subsystem:1470214703Fixed a problem in the internal ConvertToInteger routine where new14704integers14705were not truncated to 32 bits for 32-bit ACPI tables. This routine14706converts14707buffers and strings to integers.1470814709Implemented support to store a value to an Index() on a String object.14710This14711is an ACPI 2.0 feature that had not yet been implemented.1471214713Implemented new behavior for storing objects to individual package14714elements14715(via the Index() operator). The previous behavior was to invoke the14716implicit14717conversion rules if an object was already present at the index. The new14718behavior is to simply delete any existing object and directly store the14719new14720object. Although the ACPI specification seems unclear on this subject,14721other14722ACPI implementations behave in this manner. (This is the root of the14723AE_BAD_HEX_CONSTANT issue.)1472414725Modified the RSDP memory scan mechanism to support the extended checksum14726for14727ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid14728RSDP signature is found with a valid checksum.1472914730Code and Data Size: Current and previous core subsystem library sizes are14731shown below. These are the code and data sizes for the acpica.lib14732produced14733by the Microsoft Visual C++ 6.0 compiler, and these values do not include14734any ACPI driver or OSPM code. The debug version of the code includes the14735debug output trace mechanism and has a much larger code and data size.14736Note14737that these values will vary depending on the efficiency of the compiler14738and14739the compiler options used during generation.1474014741Previous Release:14742Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14743Debug Version: 165.2K Code, 68.6K Data, 233.8K Total14744Current Release:14745Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14746Debug Version: 165.2K Code, 68.6K Data, 233.8K Total1474714748147492) iASL Compiler/Disassembler:1475014751Fixed a missing semicolon in the aslcompiler.y file.1475214753----------------------------------------1475405 November 2004. Summary of changes for version 20041105:14755147561) ACPI CA Core Subsystem:1475714758Implemented support for FADT revision 2. This was an interim table14759(between14760ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.1476114762Implemented optional support to allow uninitialized LocalX and ArgX14763variables in a control method. The variables are initialized to an14764Integer14765object with a value of zero. This support is enabled by setting the14766AcpiGbl_EnableInterpreterSlack flag to TRUE.1476714768Implemented support for Integer objects for the SizeOf operator. Either14769414770or 8 is returned, depending on the current integer size (32-bit or 64-14771bit,14772depending on the parent table revision).1477314774Fixed a problem in the implementation of the SizeOf and ObjectType14775operators14776where the operand was resolved to a value too early, causing incorrect14777return values for some objects.1477814779Fixed some possible memory leaks during exceptional conditions.1478014781Code and Data Size: Current and previous core subsystem library sizes are14782shown below. These are the code and data sizes for the acpica.lib14783produced14784by the Microsoft Visual C++ 6.0 compiler, and these values do not include14785any ACPI driver or OSPM code. The debug version of the code includes the14786debug output trace mechanism and has a much larger code and data size.14787Note14788that these values will vary depending on the efficiency of the compiler14789and14790the compiler options used during generation.1479114792Previous Release:14793Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total14794Debug Version: 164.8K Code, 68.6K Data, 233.4K Total14795Current Release:14796Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14797Debug Version: 165.2K Code, 68.6K Data, 233.8K Total1479814799148002) iASL Compiler/Disassembler:1480114802Implemented support for all ACPI 3.0 reserved names and methods.1480314804Implemented all ACPI 3.0 grammar elements in the front-end, including14805support for semicolons.1480614807Implemented the ACPI 3.0 Function() and ToUUID() macros1480814809Fixed a problem in the disassembler where a Scope() operator would not be14810emitted properly if the target of the scope was in another table.1481114812----------------------------------------1481315 October 2004. Summary of changes for version 20041015:1481414815Note: ACPI CA is currently undergoing an in-depth and complete formal14816evaluation to test/verify the following areas. Other suggestions are14817welcome. This will result in an increase in the frequency of releases and14818the number of bug fixes in the next few months.14819- Functional tests for all ASL/AML operators14820- All implicit/explicit type conversions14821- Bit fields and operation regions14822- 64-bit math support and 32-bit-only "truncated" math support14823- Exceptional conditions, both compiler and interpreter14824- Dynamic object deletion and memory leaks14825- ACPI 3.0 support when implemented14826- External interfaces to the ACPI subsystem1482714828148291) ACPI CA Core Subsystem:1483014831Fixed two alignment issues on 64-bit platforms - within debug statements14832in14833AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the14834Address14835field within the non-aligned ACPI generic address structure.1483614837Fixed a problem in the Increment and Decrement operators where incorrect14838operand resolution could result in the inadvertent modification of the14839original integer when the integer is passed into another method as an14840argument and the arg is then incremented/decremented.1484114842Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-14843bit14844BCD number were truncated during conversion.1484514846Fixed a problem in the ToDecimal operator where the length of the14847resulting14848string could be set incorrectly too long if the input operand was a14849Buffer14850object.1485114852Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte14853(0)14854within a buffer would prematurely terminate a compare between buffer14855objects.1485614857Added a check for string overflow (>200 characters as per the ACPI14858specification) during the Concatenate operator with two string operands.1485914860Code and Data Size: Current and previous core subsystem library sizes are14861shown below. These are the code and data sizes for the acpica.lib14862produced14863by the Microsoft Visual C++ 6.0 compiler, and these values do not include14864any ACPI driver or OSPM code. The debug version of the code includes the14865debug output trace mechanism and has a much larger code and data size.14866Note14867that these values will vary depending on the efficiency of the compiler14868and14869the compiler options used during generation.1487014871Previous Release:14872Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total14873Debug Version: 164.6K Code, 68.5K Data, 233.1K Total14874Current Release:14875Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total14876Debug Version: 164.8K Code, 68.6K Data, 233.4K Total148771487814879148802) iASL Compiler/Disassembler:1488114882Allow the use of the ObjectType operator on uninitialized Locals and Args14883(returns 0 as per the ACPI specification).1488414885Fixed a problem where the compiler would fault if there was a syntax14886error14887in the FieldName of all of the various CreateXXXField operators.1488814889Disallow the use of lower case letters within the EISAID macro, as per14890the14891ACPI specification. All EISAID strings must be of the form "UUUNNNN"14892Where14893U is an uppercase letter and N is a hex digit.148941489514896----------------------------------------1489706 October 2004. Summary of changes for version 20041006:14898148991) ACPI CA Core Subsystem:1490014901Implemented support for the ACPI 3.0 Timer operator. This ASL function14902implements a 64-bit timer with 100 nanosecond granularity.1490314904Defined a new OSL interface, AcpiOsGetTimer. This interface is used to14905implement the ACPI 3.0 Timer operator. This allows the host OS to14906implement14907the timer with the best clock available. Also, it keeps the core14908subsystem14909out of the clock handling business, since the host OS (usually) performs14910this function.1491114912Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)14913functions use a 64-bit address which is part of the packed ACPI Generic14914Address Structure. Since the structure is non-aligned, the alignment14915macros14916are now used to extract the address to a local variable before use.1491714918Fixed a problem where the ToInteger operator assumed all input strings14919were14920hexadecimal. The operator now handles both decimal strings and hex14921strings14922(prefixed with "0x").1492314924Fixed a problem where the string length in the string object created as a14925result of the internal ConvertToString procedure could be incorrect. This14926potentially affected all implicit conversions and also the14927ToDecimalString14928and ToHexString operators.1492914930Fixed two problems in the ToString operator. If the length parameter was14931zero, an incorrect string object was created and the value of the input14932length parameter was inadvertently changed from zero to Ones.1493314934Fixed a problem where the optional ResourceSource string in the14935ExtendedIRQ14936resource macro was ignored.1493714938Simplified the interfaces to the internal division functions, reducing14939code14940size and complexity.1494114942Code and Data Size: Current and previous core subsystem library sizes are14943shown below. These are the code and data sizes for the acpica.lib14944produced14945by the Microsoft Visual C++ 6.0 compiler, and these values do not include14946any ACPI driver or OSPM code. The debug version of the code includes the14947debug output trace mechanism and has a much larger code and data size.14948Note14949that these values will vary depending on the efficiency of the compiler14950and14951the compiler options used during generation.1495214953Previous Release:14954Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total14955Debug Version: 164.5K Code, 68.3K Data, 232.8K Total14956Current Release:14957Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total14958Debug Version: 164.6K Code, 68.5K Data, 233.1K Total1495914960149612) iASL Compiler/Disassembler:1496214963Implemented support for the ACPI 3.0 Timer operator.1496414965Fixed a problem where the Default() operator was inadvertently ignored in14966a14967Switch/Case block. This was a problem in the translation of the Switch14968statement to If...Else pairs.1496914970Added support to allow a standalone Return operator, with no parentheses14971(or14972operands).1497314974Fixed a problem with code generation for the ElseIf operator where the14975translated Else...If parse tree was improperly constructed leading to the14976loss of some code.1497714978----------------------------------------1497922 September 2004. Summary of changes for version 20040922:14980149811) ACPI CA Core Subsystem:1498214983Fixed a problem with the implementation of the LNot() operator where14984"Ones"14985was not returned for the TRUE case. Changed the code to return Ones14986instead14987of (!Arg) which was usually 1. This change affects iASL constant folding14988for14989this operator also.1499014991Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was14992not14993initialized properly -- Now zero the entire buffer in this case where the14994buffer already exists.1499514996Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT3214997Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all14998related code considerably. This will require changes/updates to all OS14999interface layers (OSLs.)1500015001Implemented a new external interface, AcpiInstallExceptionHandler, to15002allow15003a system exception handler to be installed. This handler is invoked upon15004any15005run-time exception that occurs during control method execution.1500615007Added support for the DSDT in AcpiTbFindTable. This allows the15008DataTableRegion() operator to access the local copy of the DSDT.1500915010Code and Data Size: Current and previous core subsystem library sizes are15011shown below. These are the code and data sizes for the acpica.lib15012produced15013by the Microsoft Visual C++ 6.0 compiler, and these values do not include15014any ACPI driver or OSPM code. The debug version of the code includes the15015debug output trace mechanism and has a much larger code and data size.15016Note15017that these values will vary depending on the efficiency of the compiler15018and15019the compiler options used during generation.1502015021Previous Release:15022Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total15023Debug Version: 164.2K Code, 68.2K Data, 232.4K Total15024Current Release:15025Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total15026Debug Version: 164.5K Code, 68.3K Data, 232.8K Total1502715028150292) iASL Compiler/Disassembler:1503015031Fixed a problem with constant folding and the LNot operator. LNot was15032returning 1 in the TRUE case, not Ones as per the ACPI specification.15033This15034could result in the generation of an incorrect folded/reduced constant.1503515036End-Of-File is now allowed within a "//"-style comment. A parse error no15037longer occurs if such a comment is at the very end of the input ASL15038source15039file.1504015041Implemented the "-r" option to override the Revision in the table header.15042The initial use of this option will be to simplify the evaluation of the15043AML15044interpreter by allowing a single ASL source module to be compiled for15045either1504632-bit or 64-bit integers.150471504815049----------------------------------------1505027 August 2004. Summary of changes for version 20040827:15051150521) ACPI CA Core Subsystem:1505315054- Implemented support for implicit object conversion in the non-numeric15055logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,15056and15057LNotEqual.) Any combination of Integers/Strings/Buffers may now be used;15058the second operand is implicitly converted on the fly to match the type15059of15060the first operand. For example:1506115062LEqual (Source1, Source2)1506315064Source1 and Source2 must each evaluate to an integer, a string, or a15065buffer.15066The data type of Source1 dictates the required type of Source2. Source215067is15068implicitly converted if necessary to match the type of Source1.1506915070- Updated and corrected the behavior of the string conversion support.15071The15072rules concerning conversion of buffers to strings (according to the ACPI15073specification) are as follows:1507415075ToDecimalString - explicit byte-wise conversion of buffer to string of15076decimal values (0-255) separated by commas. ToHexString - explicit byte-15077wise15078conversion of buffer to string of hex values (0-FF) separated by commas.15079ToString - explicit byte-wise conversion of buffer to string. Byte-by-15080byte15081copy with no transform except NULL terminated. Any other implicit buffer-15082to-15083string conversion - byte-wise conversion of buffer to string of hex15084values15085(0-FF) separated by spaces.1508615087- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.1508815089- Fixed a problem in AcpiNsGetPathnameLength where the returned length15090was15091one byte too short in the case of a node in the root scope. This could15092cause a fault during debug output.1509315094- Code and Data Size: Current and previous core subsystem library sizes15095are15096shown below. These are the code and data sizes for the acpica.lib15097produced15098by the Microsoft Visual C++ 6.0 compiler, and these values do not include15099any ACPI driver or OSPM code. The debug version of the code includes the15100debug output trace mechanism and has a much larger code and data size.15101Note15102that these values will vary depending on the efficiency of the compiler15103and15104the compiler options used during generation.1510515106Previous Release:15107Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total15108Debug Version: 164.1K Code, 68.3K Data, 232.4K Total15109Current Release:15110Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total15111Debug Version: 164.2K Code, 68.2K Data, 232.4K Total1511215113151142) iASL Compiler/Disassembler:1511515116- Fixed a Linux generation error.151171511815119----------------------------------------1512016 August 2004. Summary of changes for version 20040816:15121151221) ACPI CA Core Subsystem:1512315124Designed and implemented support within the AML interpreter for the so-15125called "implicit return". This support returns the result of the last15126ASL15127operation within a control method, in the absence of an explicit Return()15128operator. A few machines depend on this behavior, even though it is not15129explicitly supported by the ASL language. It is optional support that15130can15131be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.1513215133Removed support for the PCI_Config address space from the internal low15134level15135hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This15136support was not used internally, and would not work correctly anyway15137because15138the PCI bus number and segment number were not supported. There are15139separate interfaces for PCI configuration space access because of the15140unique15141interface.1514215143Code and Data Size: Current and previous core subsystem library sizes are15144shown below. These are the code and data sizes for the acpica.lib15145produced15146by the Microsoft Visual C++ 6.0 compiler, and these values do not include15147any ACPI driver or OSPM code. The debug version of the code includes the15148debug output trace mechanism and has a much larger code and data size.15149Note15150that these values will vary depending on the efficiency of the compiler15151and15152the compiler options used during generation.1515315154Previous Release:15155Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total15156Debug Version: 164.1K Code, 68.2K Data, 232.3K Total15157Current Release:15158Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total15159Debug Version: 164.1K Code, 68.3K Data, 232.4K Total1516015161151622) iASL Compiler/Disassembler:1516315164Fixed a problem where constants in ASL expressions at the root level (not15165within a control method) could be inadvertently truncated during code15166generation. This problem was introduced in the 20040715 release.151671516815169----------------------------------------1517015 July 2004. Summary of changes for version 20040715:15171151721) ACPI CA Core Subsystem:1517315174Restructured the internal HW GPE interfaces to pass/track the current15175state15176of interrupts (enabled/disabled) in order to avoid possible deadlock and15177increase flexibility of the interfaces.1517815179Implemented a "lexicographical compare" for String and Buffer objects15180within15181the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -15182-15183as per further clarification to the ACPI specification. Behavior is15184similar15185to C library "strcmp".1518615187Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable15188external function. In the 32-bit non-debug case, the stack use has been15189reduced from 168 bytes to 32 bytes.1519015191Deployed a new run-time configuration flag,15192AcpiGbl_EnableInterpreterSlack,15193whose purpose is to allow the AML interpreter to forgive certain bad AML15194constructs. Default setting is FALSE.1519515196Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field15197IO15198support code. If enabled, it allows field access to go beyond the end of15199a15200region definition if the field is within the region length rounded up to15201the15202next access width boundary (a common coding error.)1520315204Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to15205ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also,15206these15207symbols are lowercase by the latest version of the AcpiSrc tool.1520815209The prototypes for the PCI interfaces in acpiosxf.h have been updated to15210rename "Register" to simply "Reg" to prevent certain compilers from15211complaining.1521215213Code and Data Size: Current and previous core subsystem library sizes are15214shown below. These are the code and data sizes for the acpica.lib15215produced15216by the Microsoft Visual C++ 6.0 compiler, and these values do not include15217any ACPI driver or OSPM code. The debug version of the code includes the15218debug output trace mechanism and has a much larger code and data size.15219Note15220that these values will vary depending on the efficiency of the compiler15221and15222the compiler options used during generation.1522315224Previous Release:15225Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total15226Debug Version: 163.8K Code, 68.2K Data, 232.0K Total15227Current Release:15228Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total15229Debug Version: 164.1K Code, 68.2K Data, 232.3K Total1523015231152322) iASL Compiler/Disassembler:1523315234Implemented full support for Package objects within the Case() operator.15235Note: The Break() operator is currently not supported within Case blocks15236(TermLists) as there is some question about backward compatibility with15237ACPI152381.0 interpreters.152391524015241Fixed a problem where complex terms were not supported properly within15242the15243Switch() operator.1524415245Eliminated extraneous warning for compiler-emitted reserved names of the15246form "_T_x". (Used in Switch/Case operators.)1524715248Eliminated optimization messages for "_T_x" objects and small constants15249within the DefinitionBlock operator.152501525115252----------------------------------------1525315 June 2004. Summary of changes for version 20040615:15254152551) ACPI CA Core Subsystem:1525615257Implemented support for Buffer and String objects (as per ACPI 2.0) for15258the15259following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and15260LLessEqual.1526115262All directory names in the entire source package are lower case, as they15263were in earlier releases.1526415265Implemented "Disassemble" command in the AML debugger that will15266disassemble15267a single control method.1526815269Code and Data Size: Current and previous core subsystem library sizes are15270shown below. These are the code and data sizes for the acpica.lib15271produced15272by the Microsoft Visual C++ 6.0 compiler, and these values do not include15273any ACPI driver or OSPM code. The debug version of the code includes the15274debug output trace mechanism and has a much larger code and data size.15275Note15276that these values will vary depending on the efficiency of the compiler15277and15278the compiler options used during generation.1527915280Previous Release:15281Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total15282Debug Version: 163.3K Code, 67.2K Data, 230.5K Total1528315284Current Release:15285Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total15286Debug Version: 163.8K Code, 68.2K Data, 232.0K Total1528715288152892) iASL Compiler/Disassembler:1529015291Implemented support for Buffer and String objects (as per ACPI 2.0) for15292the15293following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and15294LLessEqual.1529515296All directory names in the entire source package are lower case, as they15297were in earlier releases.1529815299Fixed a fault when using the -g or -d<nofilename> options if the FADT was15300not found.1530115302Fixed an issue with the Windows version of the compiler where later15303versions15304of Windows place the FADT in the registry under the name "FADT" and not15305"FACP" as earlier versions did. This applies when using the -g or -15306d<nofilename> options. The compiler now looks for both strings as15307necessary.1530815309Fixed a problem with compiler namepath optimization where a namepath15310within15311the Scope() operator could not be optimized if the namepath was a subpath15312of15313the current scope path.1531415315----------------------------------------1531627 May 2004. Summary of changes for version 20040527:15317153181) ACPI CA Core Subsystem:1531915320Completed a new design and implementation for EBDA (Extended BIOS Data15321Area)15322support in the RSDP scan code. The original code improperly scanned for15323the15324EBDA by simply scanning from memory location 0 to 0x400. The correct15325method15326is to first obtain the EBDA pointer from within the BIOS data area, then15327scan 1K of memory starting at the EBDA pointer. There appear to be few15328if15329any machines that place the RSDP in the EBDA, however.1533015331Integrated a fix for a possible fault during evaluation of BufferField15332arguments. Obsolete code that was causing the problem was removed.1533315334Found and fixed a problem in the Field Support Code where data could be15335corrupted on a bit field read that starts on an aligned boundary but does15336not end on an aligned boundary. Merged the read/write "datum length"15337calculation code into a common procedure.1533815339Rolled in a couple of changes to the FreeBSD-specific header.153401534115342Code and Data Size: Current and previous core subsystem library sizes are15343shown below. These are the code and data sizes for the acpica.lib15344produced15345by the Microsoft Visual C++ 6.0 compiler, and these values do not include15346any ACPI driver or OSPM code. The debug version of the code includes the15347debug output trace mechanism and has a much larger code and data size.15348Note15349that these values will vary depending on the efficiency of the compiler15350and15351the compiler options used during generation.1535215353Previous Release:15354Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15355Debug Version: 163.2K Code, 67.2K Data, 230.4K Total15356Current Release:15357Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total15358Debug Version: 163.3K Code, 67.2K Data, 230.5K Total1535915360153612) iASL Compiler/Disassembler:1536215363Fixed a generation warning produced by some overly-verbose compilers for15364a1536564-bit constant.1536615367----------------------------------------1536814 May 2004. Summary of changes for version 20040514:15369153701) ACPI CA Core Subsystem:1537115372Fixed a problem where hardware GPE enable bits sometimes not set properly15373during and after GPE method execution. Result of 04/27 changes.1537415375Removed extra "clear all GPEs" when sleeping/waking.1537615377Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single15378AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above15379to15380the new AcpiEv* calls as appropriate.1538115382ACPI_OS_NAME was removed from the OS-specific headers. The default name15383is15384now "Microsoft Windows NT" for maximum compatibility. However this can15385be15386changed by modifying the acconfig.h file.1538715388Allow a single invocation of AcpiInstallNotifyHandler for a handler that15389traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag.1539015391Run _INI methods on ThermalZone objects. This is against the ACPI15392specification, but there is apparently ASL code in the field that has15393these15394_INI methods, and apparently "other" AML interpreters execute them.1539515396Performed a full 16/32/64 bit lint that resulted in some small changes.1539715398Added a sleep simulation command to the AML debugger to test sleep code.1539915400Code and Data Size: Current and previous core subsystem library sizes are15401shown below. These are the code and data sizes for the acpica.lib15402produced15403by the Microsoft Visual C++ 6.0 compiler, and these values do not include15404any ACPI driver or OSPM code. The debug version of the code includes the15405debug output trace mechanism and has a much larger code and data size.15406Note15407that these values will vary depending on the efficiency of the compiler15408and15409the compiler options used during generation.1541015411Previous Release:15412Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15413Debug Version: 162.9K Code, 67.0K Data, 229.9K Total15414Current Release:15415Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15416Debug Version: 163.2K Code, 67.2K Data, 230.4K Total1541715418----------------------------------------1541927 April 2004. Summary of changes for version 20040427:15420154211) ACPI CA Core Subsystem:1542215423Completed a major overhaul of the GPE handling within ACPI CA. There are15424now three types of GPEs: wake-only, runtime-only, and combination15425wake/run.15426The only GPEs allowed to be combination wake/run are for button-style15427devices such as a control-method power button, control-method sleep15428button,15429or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are15430not15431referenced by any _PRW methods are marked for "runtime" and hardware15432enabled. Any GPE that is referenced by a _PRW method is marked for15433"wake"15434(and disabled at runtime). However, at sleep time, only those GPEs that15435have been specifically enabled for wake via the AcpiEnableGpe interface15436will15437actually be hardware enabled.1543815439A new external interface has been added, AcpiSetGpeType(), that is meant15440to15441be used by device drivers to force a GPE to a particular type. It will15442be15443especially useful for the drivers for the button devices mentioned above.1544415445Completed restructuring of the ACPI CA initialization sequence so that15446default operation region handlers are installed before GPEs are15447initialized15448and the _PRW methods are executed. This will prevent errors when the15449_PRW15450methods attempt to access system memory or I/O space.1545115452GPE enable/disable no longer reads the GPE enable register. We now keep15453the15454enable info for runtime and wake separate and in the GPE_EVENT_INFO. We15455thus no longer depend on the hardware to maintain these bits.1545615457Always clear the wake status and fixed/GPE status bits before sleep, even15458for state S5.1545915460Improved the AML debugger output for displaying the GPE blocks and their15461current status.1546215463Added new strings for the _OSI method, of the form "Windows 2001 SPx"15464where15465x = 0,1,2,3,4.1546615467Fixed a problem where the physical address was incorrectly calculated15468when15469the Load() operator was used to directly load from an Operation Region15470(vs.15471loading from a Field object.) Also added check for minimum table length15472for15473this case.1547415475Fix for multiple mutex acquisition. Restore original thread SyncLevel on15476mutex release.1547715478Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for15479consistency with the other fields returned.1548015481Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such15482structure for each GPE in the system, so the size of this structure is15483important.1548415485CPU stack requirement reduction: Cleaned up the method execution and15486object15487evaluation paths so that now a parameter structure is passed, instead of15488copying the various method parameters over and over again.1548915490In evregion.c: Correctly exit and reenter the interpreter region if and15491only if dispatching an operation region request to a user-installed15492handler.15493Do not exit/reenter when dispatching to a default handler (e.g., default15494system memory or I/O handlers)154951549615497Notes for updating drivers for the new GPE support. The following15498changes15499must be made to ACPI-related device drivers that are attached to one or15500more15501GPEs: (This information will be added to the ACPI CA Programmer15502Reference.)15503155041) AcpiInstallGpeHandler no longer automatically enables the GPE, you15505must15506explicitly call AcpiEnableGpe.155072) There is a new interface called AcpiSetGpeType. This should be called15508before enabling the GPE. Also, this interface will automatically disable15509the GPE if it is currently enabled.155103) AcpiEnableGpe no longer supports a GPE type flag.1551115512Specific drivers that must be changed:155131) EC driver:15514AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,15515AeGpeHandler, NULL);15516AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);15517AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);15518155192) Button Drivers (Power, Lid, Sleep):15520Run _PRW method under parent device15521If _PRW exists: /* This is a control-method button */15522Extract GPE number and possibly GpeDevice15523AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);15524AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);1552515526For all other devices that have _PRWs, we automatically set the GPE type15527to15528ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.15529This15530must be done on a selective basis, usually requiring some kind of user15531app15532to allow the user to pick the wake devices.155331553415535Code and Data Size: Current and previous core subsystem library sizes are15536shown below. These are the code and data sizes for the acpica.lib15537produced15538by the Microsoft Visual C++ 6.0 compiler, and these values do not include15539any ACPI driver or OSPM code. The debug version of the code includes the15540debug output trace mechanism and has a much larger code and data size.15541Note15542that these values will vary depending on the efficiency of the compiler15543and15544the compiler options used during generation.1554515546Previous Release:15547Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total15548Debug Version: 161.0K Code, 66.3K Data, 227.3K Total15549Current Release:1555015551Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15552Debug Version: 162.9K Code, 67.0K Data, 229.9K Total15553155541555515556----------------------------------------1555702 April 2004. Summary of changes for version 20040402:15558155591) ACPI CA Core Subsystem:1556015561Fixed an interpreter problem where an indirect store through an ArgX15562parameter was incorrectly applying the "implicit conversion rules" during15563the store. From the ACPI specification: "If the target is a method local15564or15565argument (LocalX or ArgX), no conversion is performed and the result is15566stored directly to the target". The new behavior is to disable implicit15567conversion during ALL stores to an ArgX.1556815569Changed the behavior of the _PRW method scan to ignore any and all errors15570returned by a given _PRW. This prevents the scan from aborting from the15571failure of any single _PRW.1557215573Moved the runtime configuration parameters from the global init procedure15574to15575static variables in acglobal.h. This will allow the host to override the15576default values easily.1557715578Code and Data Size: Current and previous core subsystem library sizes are15579shown below. These are the code and data sizes for the acpica.lib15580produced15581by the Microsoft Visual C++ 6.0 compiler, and these values do not include15582any ACPI driver or OSPM code. The debug version of the code includes the15583debug output trace mechanism and has a much larger code and data size.15584Note15585that these values will vary depending on the efficiency of the compiler15586and15587the compiler options used during generation.1558815589Previous Release:15590Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total15591Debug Version: 160.8K Code, 66.1K Data, 226.9K Total15592Current Release:15593Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total15594Debug Version: 161.0K Code, 66.3K Data, 227.3K Total1559515596155972) iASL Compiler/Disassembler:1559815599iASL now fully disassembles SSDTs. However, External() statements are15600not15601generated automatically for unresolved symbols at this time. This is a15602planned feature for future implementation.1560315604Fixed a scoping problem in the disassembler that occurs when the type of15605the15606target of a Scope() operator is overridden. This problem caused an15607incorrectly nested internal namespace to be constructed.1560815609Any warnings or errors that are emitted during disassembly are now15610commented15611out automatically so that the resulting file can be recompiled without15612any15613hand editing.1561415615----------------------------------------1561626 March 2004. Summary of changes for version 20040326:15617156181) ACPI CA Core Subsystem:1561915620Implemented support for "wake" GPEs via interaction between GPEs and the15621_PRW methods. Every GPE that is pointed to by one or more _PRWs is15622identified as a WAKE GPE and by default will no longer be enabled at15623runtime. Previously, we were blindly enabling all GPEs with a15624corresponding15625_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.15626We15627believe this has been the cause of thousands of "spurious" GPEs on some15628systems.1562915630This new GPE behavior is can be reverted to the original behavior (enable15631ALL GPEs at runtime) via a runtime flag.1563215633Fixed a problem where aliased control methods could not access objects15634properly. The proper scope within the namespace was not initialized15635(transferred to the target of the aliased method) before executing the15636target method.1563715638Fixed a potential race condition on internal object deletion on the15639return15640object in AcpiEvaluateObject.1564115642Integrated a fix for resource descriptors where both _MEM and _MTP were15643being extracted instead of just _MEM. (i.e. bitmask was incorrectly too15644wide, 0x0F instead of 0x03.)1564515646Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,15647preventing15648a15649fault in some cases.1565015651Updated Notify() values for debug statements in evmisc.c1565215653Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.1565415655Code and Data Size: Current and previous core subsystem library sizes are15656shown below. These are the code and data sizes for the acpica.lib15657produced15658by the Microsoft Visual C++ 6.0 compiler, and these values do not include15659any ACPI driver or OSPM code. The debug version of the code includes the15660debug output trace mechanism and has a much larger code and data size.15661Note15662that these values will vary depending on the efficiency of the compiler15663and15664the compiler options used during generation.1566515666Previous Release:1566715668Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total15669Debug Version: 160.3K Code, 66.0K Data, 226.3K Total15670Current Release:15671Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total15672Debug Version: 160.8K Code, 66.1K Data, 226.9K Total1567315674----------------------------------------1567511 March 2004. Summary of changes for version 20040311:15676156771) ACPI CA Core Subsystem:1567815679Fixed a problem where errors occurring during the parse phase of control15680method execution did not abort cleanly. For example, objects created and15681installed in the namespace were not deleted. This caused all subsequent15682invocations of the method to return the AE_ALREADY_EXISTS exception.1568315684Implemented a mechanism to force a control method to "Serialized"15685execution15686if the method attempts to create namespace objects. (The root of the15687AE_ALREADY_EXISTS problem.)1568815689Implemented support for the predefined _OSI "internal" control method.15690Initial supported strings are "Linux", "Windows 2000", "Windows 2001",15691and15692"Windows 2001.1", and can be easily upgraded for new strings as15693necessary.15694This feature will allow "other" operating systems to execute the fully15695tested, "Windows" code path through the ASL code1569615697Global Lock Support: Now allows multiple acquires and releases with any15698internal thread. Removed concept of "owning thread" for this special15699mutex.1570015701Fixed two functions that were inappropriately declaring large objects on15702the15703CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage15704during15705method execution considerably.1570615707Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the15708S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.1570915710Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs15711defined on the machine.1571215713Implemented two runtime options: One to force all control method15714execution15715to "Serialized" to mimic Windows behavior, another to disable _OSI15716support15717if it causes problems on a given machine.1571815719Code and Data Size: Current and previous core subsystem library sizes are15720shown below. These are the code and data sizes for the acpica.lib15721produced15722by the Microsoft Visual C++ 6.0 compiler, and these values do not include15723any ACPI driver or OSPM code. The debug version of the code includes the15724debug output trace mechanism and has a much larger code and data size.15725Note15726that these values will vary depending on the efficiency of the compiler15727and15728the compiler options used during generation.1572915730Previous Release:15731Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total15732Debug Version: 158.7K Code, 65.1K Data, 223.8K Total15733Current Release:15734Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total15735Debug Version: 160.3K Code, 66.0K Data, 226.3K Total15736157372) iASL Compiler/Disassembler:1573815739Fixed an array size problem for FreeBSD that would cause the compiler to15740fault.1574115742----------------------------------------1574320 February 2004. Summary of changes for version 20040220:1574415745157461) ACPI CA Core Subsystem:1574715748Implemented execution of _SxD methods for Device objects in the15749GetObjectInfo interface.1575015751Fixed calls to _SST method to pass the correct arguments.1575215753Added a call to _SST on wake to restore to "working" state.1575415755Check for End-Of-Buffer failure case in the WalkResources interface.1575615757Integrated fix for 64-bit alignment issue in acglobal.h by moving two15758structures to the beginning of the file.1575915760After wake, clear GPE status register(s) before enabling GPEs.1576115762After wake, clear/enable power button. (Perhaps we should clear/enable15763all15764fixed events upon wake.)1576515766Fixed a couple of possible memory leaks in the Namespace manager.1576715768Integrated latest acnetbsd.h file.1576915770----------------------------------------1577111 February 2004. Summary of changes for version 20040211:1577215773157741) ACPI CA Core Subsystem:1577515776Completed investigation and implementation of the call-by-reference15777mechanism for control method arguments.1577815779Fixed a problem where a store of an object into an indexed package could15780fail if the store occurs within a different method than the method that15781created the package.1578215783Fixed a problem where the ToDecimal operator could return incorrect15784results.1578515786Fixed a problem where the CopyObject operator could fail on some of the15787more15788obscure objects (e.g., Reference objects.)1578915790Improved the output of the Debug object to display buffer, package, and15791index objects.1579215793Fixed a problem where constructs of the form "RefOf (ArgX)" did not15794return15795the expected result.1579615797Added permanent ACPI_REPORT_ERROR macros for all instances of the15798ACPI_AML_INTERNAL exception.1579915800Integrated latest version of acfreebsd.h1580115802----------------------------------------1580316 January 2004. Summary of changes for version 20040116:1580415805The purpose of this release is primarily to update the copyright years in15806each module, thus causing a huge number of diffs. There are a few small15807functional changes, however.15808158091) ACPI CA Core Subsystem:1581015811Improved error messages when there is a problem finding one or more of15812the15813required base ACPI tables1581415815Reintroduced the definition of APIC_HEADER in actbl.h1581615817Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)1581815819Removed extraneous reference to NewObj in dsmthdat.c15820158212) iASL compiler1582215823Fixed a problem introduced in December that disabled the correct15824disassembly15825of Resource Templates158261582715828----------------------------------------1582903 December 2003. Summary of changes for version 20031203:15830158311) ACPI CA Core Subsystem:1583215833Changed the initialization of Operation Regions during subsystem15834init to perform two entire walks of the ACPI namespace; The first15835to initialize the regions themselves, the second to execute the15836_REG methods. This fixed some interdependencies across _REG15837methods found on some machines.1583815839Fixed a problem where a Store(Local0, Local1) could simply update15840the object reference count, and not create a new copy of the15841object if the Local1 is uninitialized.1584215843Implemented support for the _SST reserved method during sleep15844transitions.1584515846Implemented support to clear the SLP_TYP and SLP_EN bits when15847waking up, this is apparently required by some machines.1584815849When sleeping, clear the wake status only if SleepState is not S5.1585015851Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect15852pointer arithmetic advanced a string pointer too far.1585315854Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer15855could be returned if the requested table has not been loaded.1585615857Within the support for IRQ resources, restructured the handling of15858the active and edge/level bits.1585915860Fixed a few problems in AcpiPsxExecute() where memory could be15861leaked under certain error conditions.1586215863Improved error messages for the cases where the ACPI mode could15864not be entered.1586515866Code and Data Size: Current and previous core subsystem library15867sizes are shown below. These are the code and data sizes for the15868acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and15869these values do not include any ACPI driver or OSPM code. The15870debug version of the code includes the debug output trace15871mechanism and has a much larger code and data size. Note that15872these values will vary depending on the efficiency of the compiler15873and the compiler options used during generation.1587415875Previous Release (20031029):15876Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total15877Debug Version: 158.3K Code, 65.0K Data, 223.3K Total15878Current Release:15879Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total15880Debug Version: 158.7K Code, 65.1K Data, 223.8K Total15881158822) iASL Compiler/Disassembler:1588315884Implemented a fix for the iASL disassembler where a bad index was15885generated. This was most noticeable on 64-bit platforms158861588715888----------------------------------------1588929 October 2003. Summary of changes for version 20031029:15890158911) ACPI CA Core Subsystem:158921589315894Fixed a problem where a level-triggered GPE with an associated15895_Lxx control method was incorrectly cleared twice.1589615897Fixed a problem with the Field support code where an access can15898occur beyond the end-of-region if the field is non-aligned but15899extends to the very end of the parent region (resulted in an15900AE_AML_REGION_LIMIT exception.)1590115902Fixed a problem with ACPI Fixed Events where an RT Clock handler15903would not get invoked on an RTC event. The RTC event bitmasks for15904the PM1 registers were not being initialized properly.1590515906Implemented support for executing _STA and _INI methods for15907Processor objects. Although this is currently not part of the15908ACPI specification, there is existing ASL code that depends on the15909init-time execution of these methods.1591015911Implemented and deployed a GetDescriptorName function to decode15912the various types of internal descriptors. Guards against null15913descriptors during debug output also.1591415915Implemented and deployed a GetNodeName function to extract the 4-15916character namespace node name. This function simplifies the debug15917and error output, as well as guarding against null pointers during15918output.1591915920Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to15921simplify the debug and error output of 64-bit integers. This15922macro replaces the HIDWORD and LODWORD macros for dumping these15923integers.1592415925Updated the implementation of the Stall() operator to only call15926AcpiOsStall(), and also return an error if the operand is larger15927than 255. This preserves the required behavior of not15928relinquishing the processor, as would happen if AcpiOsSleep() was15929called for "long stalls".1593015931Constructs of the form "Store(LocalX,LocalX)" where LocalX is not15932initialized are now treated as NOOPs.1593315934Cleaned up a handful of warnings during 64-bit generation.1593515936Fixed a reported error where and incorrect GPE number was passed15937to the GPE dispatch handler. This value is only used for error15938output, however. Used this opportunity to clean up and streamline15939the GPE dispatch code.1594015941Code and Data Size: Current and previous core subsystem library15942sizes are shown below. These are the code and data sizes for the15943acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and15944these values do not include any ACPI driver or OSPM code. The1594515946debug version of the code includes the debug output trace15947mechanism and has a much larger code and data size. Note that15948these values will vary depending on the efficiency of the compiler15949and the compiler options used during generation.1595015951Previous Release (20031002):15952Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total15953Debug Version: 157.9K Code, 64.8K Data, 222.7K Total15954Current Release:15955Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total15956Debug Version: 158.3K Code, 65.0K Data, 223.3K Total1595715958159592) iASL Compiler/Disassembler:1596015961Updated the iASL compiler to return an error if the operand to the15962Stall() operator is larger than 255.159631596415965----------------------------------------1596602 October 2003. Summary of changes for version 20031002:1596715968159691) ACPI CA Core Subsystem:1597015971Fixed a problem with Index Fields where the index was not15972incremented for fields that require multiple writes to the15973index/data registers (Fields that are wider than the data15974register.)1597515976Fixed a problem with all Field objects where a write could go15977beyond the end-of-field if the field was larger than the access15978granularity and therefore required multiple writes to complete the15979request. An extra write beyond the end of the field could happen15980inadvertently.1598115982Fixed a problem with Index Fields where a BUFFER_OVERFLOW error15983would incorrectly be returned if the width of the Data Register15984was larger than the specified field access width.1598515986Completed fixes for LoadTable() and Unload() and verified their15987operation. Implemented full support for the "DdbHandle" object15988throughout the ACPI CA subsystem.1598915990Implemented full support for the MADT and ECDT tables in the ACPI15991CA header files. Even though these tables are not directly15992consumed by ACPI CA, the header definitions are useful for ACPI15993device drivers.1599415995Integrated resource descriptor fixes posted to the Linux ACPI15996list. This included checks for minimum descriptor length, and15997support for trailing NULL strings within descriptors that have15998optional string elements.1599916000Code and Data Size: Current and previous core subsystem library16001sizes are shown below. These are the code and data sizes for the16002acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16003these values do not include any ACPI driver or OSPM code. The16004debug version of the code includes the debug output trace16005mechanism and has a much larger code and data size. Note that16006these values will vary depending on the efficiency of the compiler16007and the compiler options used during generation.1600816009Previous Release (20030918):16010Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total16011Debug Version: 157.3K Code, 64.5K Data, 221.8K Total16012Current Release:16013Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total16014Debug Version: 157.9K Code, 64.8K Data, 222.7K Total1601516016160172) iASL Compiler:1601816019Implemented detection of non-ASCII characters within the input16020source ASL file. This catches attempts to compile binary (AML)16021files early in the compile, with an informative error message.1602216023Fixed a problem where the disassembler would fault if the output16024filename could not be generated or if the output file could not be16025opened.1602616027----------------------------------------1602818 September 2003. Summary of changes for version 20030918:1602916030160311) ACPI CA Core Subsystem:1603216033Found and fixed a longstanding problem with the late execution of16034the various deferred AML opcodes (such as Operation Regions,16035Buffer Fields, Buffers, and Packages). If the name string16036specified for the name of the new object placed the object in a16037scope other than the current scope, the initialization/execution16038of the opcode failed. The solution to this problem was to16039implement a mechanism where the late execution of such opcodes16040does not attempt to lookup/create the name a second time in an16041incorrect scope. This fixes the "region size computed16042incorrectly" problem.1604316044Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a16045Global Lock AE_BAD_PARAMETER error.1604616047Fixed several 64-bit issues with prototypes, casting and data16048types.1604916050Removed duplicate prototype from acdisasm.h1605116052Fixed an issue involving EC Operation Region Detach (Shaohua Li)1605316054Code and Data Size: Current and previous core subsystem library16055sizes are shown below. These are the code and data sizes for the16056acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16057these values do not include any ACPI driver or OSPM code. The16058debug version of the code includes the debug output trace16059mechanism and has a much larger code and data size. Note that16060these values will vary depending on the efficiency of the compiler16061and the compiler options used during generation.1606216063Previous Release:1606416065Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total16066Debug Version: 156.9K Code, 64.2K Data, 221.1K Total16067Current Release:16068Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total16069Debug Version: 157.3K Code, 64.5K Data, 221.8K Total1607016071160722) Linux:1607316074Fixed the AcpiOsSleep implementation in osunixxf.c to pass the16075correct sleep time in seconds.1607616077----------------------------------------1607814 July 2003. Summary of changes for version 20030619:16079160801) ACPI CA Core Subsystem:1608116082Parse SSDTs in order discovered, as opposed to reverse order16083(Hrvoje Habjanic)1608416085Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas16086Klausner,16087Nate Lawson)1608816089160902) Linux:1609116092Dynamically allocate SDT list (suggested by Andi Kleen)1609316094proc function return value cleanups (Andi Kleen)1609516096Correctly handle NMI watchdog during long stalls (Andrew Morton)1609716098Make it so acpismp=force works (reported by Andrew Morton)160991610016101----------------------------------------1610219 June 2003. Summary of changes for version 20030619:16103161041) ACPI CA Core Subsystem:1610516106Fix To/FromBCD, eliminating the need for an arch-specific #define.1610716108Do not acquire a semaphore in the S5 shutdown path.1610916110Fix ex_digits_needed for 0. (Takayoshi Kochi)1611116112Fix sleep/stall code reversal. (Andi Kleen)1611316114Revert a change having to do with control method calling16115semantics.16116161172) Linux:1611816119acpiphp update (Takayoshi Kochi)1612016121Export acpi_disabled for sonypi (Stelian Pop)1612216123Mention acpismp=force in config help1612416125Re-add acpitable.c and acpismp=force. This improves backwards1612616127compatibility and also cleans up the code to a significant degree.1612816129Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)1613016131----------------------------------------1613222 May 2003. Summary of changes for version 20030522:16133161341) ACPI CA Core Subsystem:1613516136Found and fixed a reported problem where an AE_NOT_FOUND error16137occurred occasionally during _BST evaluation. This turned out to16138be an Owner ID allocation issue where a called method did not get16139a new ID assigned to it. Eventually, (after 64k calls), the Owner16140ID UINT16 would wraparound so that the ID would be the same as the16141caller's and the called method would delete the caller's16142namespace.1614316144Implemented extended error reporting for control methods that are16145aborted due to a run-time exception. Output includes the exact16146AML instruction that caused the method abort, a dump of the method16147locals and arguments at the time of the abort, and a trace of all16148nested control method calls.1614916150Modified the interpreter to allow the creation of buffers of zero16151length from the AML code. Implemented new code to ensure that no16152attempt is made to actually allocate a memory buffer (of length16153zero) - instead, a simple buffer object with a NULL buffer pointer16154and length zero is created. A warning is no longer issued when16155the AML attempts to create a zero-length buffer.1615616157Implemented a workaround for the "leading asterisk issue" in16158_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading16159asterisk is automatically removed if present in any HID, UID, or16160CID strings. The iASL compiler will still flag this asterisk as16161an error, however.1616216163Implemented full support for _CID methods that return a package of16164multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface16165now additionally returns a device _CID list if present. This16166required a change to the external interface in order to pass an16167ACPI_BUFFER object as a parameter since the _CID list is of16168variable length.1616916170Fixed a problem with the new AE_SAME_HANDLER exception where16171handler initialization code did not know about this exception.1617216173Code and Data Size: Current and previous core subsystem library16174sizes are shown below. These are the code and data sizes for the16175acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16176these values do not include any ACPI driver or OSPM code. The16177debug version of the code includes the debug output trace16178mechanism and has a much larger code and data size. Note that16179these values will vary depending on the efficiency of the compiler16180and the compiler options used during generation.1618116182Previous Release (20030509):16183Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total16184Debug Version: 156.1K Code, 63.9K Data, 220.0K Total16185Current Release:16186Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total16187Debug Version: 156.9K Code, 64.2K Data, 221.1K Total1618816189161902) Linux:1619116192Fixed a bug in which we would reinitialize the ACPI interrupt16193after it was already working, thus disabling all ACPI and the IRQs16194for any other device sharing the interrupt. (Thanks to Stian16195Jordet)1619616197Toshiba driver update (John Belmonte)1619816199Return only 0 or 1 for our interrupt handler status (Andrew16200Morton)1620116202162033) iASL Compiler:1620416205Fixed a reported problem where multiple (nested) ElseIf()16206statements were not handled correctly by the compiler, resulting16207in incorrect warnings and incorrect AML code. This was a problem16208in both the ASL parser and the code generator.1620916210162114) Documentation:1621216213Added changes to existing interfaces, new exception codes, and new16214text concerning reference count object management versus garbage16215collection.1621616217----------------------------------------1621809 May 2003. Summary of changes for version 20030509.1621916220162211) ACPI CA Core Subsystem:1622216223Changed the subsystem initialization sequence to hold off16224installation of address space handlers until the hardware has been16225initialized and the system has entered ACPI mode. This is because16226the installation of space handlers can cause _REG methods to be16227run. Previously, the _REG methods could potentially be run before16228ACPI mode was enabled.1622916230Fixed some memory leak issues related to address space handler and16231notify handler installation. There were some problems with the16232reference count mechanism caused by the fact that the handler16233objects are shared across several namespace objects.1623416235Fixed a reported problem where reference counts within the16236namespace were not properly updated when named objects created by16237method execution were deleted.1623816239Fixed a reported problem where multiple SSDTs caused a deletion16240issue during subsystem termination. Restructured the table data16241structures to simplify the linked lists and the related code.1624216243Fixed a problem where the table ID associated with secondary16244tables (SSDTs) was not being propagated into the namespace objects16245created by those tables. This would only present a problem for16246tables that are unloaded at run-time, however.1624716248Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE16249type as the length parameter (instead of UINT32).1625016251Solved a long-standing problem where an ALREADY_EXISTS error16252appears on various systems. This problem could happen when there16253are multiple PCI_Config operation regions under a single PCI root16254bus. This doesn't happen very frequently, but there are some16255systems that do this in the ASL.1625616257Fixed a reported problem where the internal DeleteNode function16258was incorrectly handling the case where a namespace node was the16259first in the parent's child list, and had additional peers (not16260the only child, but first in the list of children.)1626116262Code and Data Size: Current core subsystem library sizes are shown16263below. These are the code and data sizes for the acpica.lib16264produced by the Microsoft Visual C++ 6.0 compiler, and these16265values do not include any ACPI driver or OSPM code. The debug16266version of the code includes the debug output trace mechanism and16267has a much larger code and data size. Note that these values will16268vary depending on the efficiency of the compiler and the compiler16269options used during generation.1627016271Previous Release16272Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total16273Debug Version: 156.1K Code, 63.6K Data, 219.7K Total16274Current Release:16275Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total16276Debug Version: 156.1K Code, 63.9K Data, 220.0K Total1627716278162792) Linux:1628016281Allow ":" in OS override string (Ducrot Bruno)1628216283Kobject fix (Greg KH)1628416285162863 iASL Compiler/Disassembler:1628716288Fixed a problem in the generation of the C source code files (AML16289is emitted in C source statements for BIOS inclusion) where the16290Ascii dump that appears within a C comment at the end of each line16291could cause a compile time error if the AML sequence happens to16292have an open comment or close comment sequence embedded.162931629416295----------------------------------------1629624 April 2003. Summary of changes for version 20030424.1629716298162991) ACPI CA Core Subsystem:1630016301Support for big-endian systems has been implemented. Most of the16302support has been invisibly added behind big-endian versions of the16303ACPI_MOVE_* macros.1630416305Fixed a problem in AcpiHwDisableGpeBlock() and16306AcpiHwClearGpeBlock() where an incorrect offset was passed to the16307low level hardware write routine. The offset parameter was16308actually eliminated from the low level read/write routines because16309they had become obsolete.1631016311Fixed a problem where a handler object was deleted twice during16312the removal of a fixed event handler.1631316314163152) Linux:1631616317A fix for SMP systems with link devices was contributed by1631816319Compaq's Dan Zink.1632016321(2.5) Return whether we handled the interrupt in our IRQ handler.16322(Linux ISRs no longer return void, so we can propagate the handler16323return value from the ACPI CA core back to the OS.)163241632516326163273) Documentation:1632816329The ACPI CA Programmer Reference has been updated to reflect new16330interfaces and changes to existing interfaces.1633116332----------------------------------------1633328 March 2003. Summary of changes for version 20030328.16334163351) ACPI CA Core Subsystem:1633616337The GPE Block Device support has been completed. New interfaces16338are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event16339interfaces (enable, disable, clear, getstatus) have been split16340into separate interfaces for Fixed Events and General Purpose16341Events (GPEs) in order to support GPE Block Devices properly.1634216343Fixed a problem where the error message "Failed to acquire16344semaphore" would appear during operations on the embedded16345controller (EC).1634616347Code and Data Size: Current core subsystem library sizes are shown16348below. These are the code and data sizes for the acpica.lib16349produced by the Microsoft Visual C++ 6.0 compiler, and these16350values do not include any ACPI driver or OSPM code. The debug16351version of the code includes the debug output trace mechanism and16352has a much larger code and data size. Note that these values will16353vary depending on the efficiency of the compiler and the compiler16354options used during generation.1635516356Previous Release16357Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total16358Debug Version: 154.0K Code, 63.4K Data, 217.4K Total16359Current Release:16360Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total16361Debug Version: 156.1K Code, 63.6K Data, 219.7K Total163621636316364----------------------------------------1636528 February 2003. Summary of changes for version 20030228.1636616367163681) ACPI CA Core Subsystem:1636916370The GPE handling and dispatch code has been completely overhauled16371in preparation for support of GPE Block Devices (ID ACPI0006).16372This affects internal data structures and code only; there should16373be no differences visible externally. One new file has been16374added, evgpeblk.c1637516376The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only16377fields that are used to determine the GPE block lengths. The16378REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address16379structures are ignored. This is per the ACPI specification but it16380isn't very clear. The full 256 Block 0/1 GPEs are now supported16381(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).1638216383In the SCI interrupt handler, removed the read of the PM1_CONTROL16384register to look at the SCI_EN bit. On some machines, this read16385causes an SMI event and greatly slows down SCI events. (This may16386in fact be the cause of slow battery status response on some16387systems.)1638816389Fixed a problem where a store of a NULL string to a package object16390could cause the premature deletion of the object. This was seen16391during execution of the battery _BIF method on some systems,16392resulting in no battery data being returned.1639316394Added AcpiWalkResources interface to simplify parsing of resource16395lists.1639616397Code and Data Size: Current core subsystem library sizes are shown16398below. These are the code and data sizes for the acpica.lib16399produced by the Microsoft Visual C++ 6.0 compiler, and these16400values do not include any ACPI driver or OSPM code. The debug16401version of the code includes the debug output trace mechanism and16402has a much larger code and data size. Note that these values will16403vary depending on the efficiency of the compiler and the compiler16404options used during generation.1640516406Previous Release16407Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16408Debug Version: 153.0K Code, 62.9K Data, 215.9K Total16409Current Release:16410Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total16411Debug Version: 154.0K Code, 63.4K Data, 217.4K Total1641216413164142) Linux1641516416S3 fixes (Ole Rohne)1641716418Update ACPI PHP driver with to use new acpi_walk_resource API16419(Bjorn Helgaas)1642016421Add S4BIOS support (Pavel Machek)1642216423Map in entire table before performing checksum (John Stultz)1642416425Expand the mem= cmdline to allow the specification of reserved and16426ACPI DATA blocks (Pavel Machek)1642716428Never use ACPI on VISWS1642916430Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)1643116432Revert a change that allowed P_BLK lengths to be 4 or 5. This is16433causing us to think that some systems support C2 when they really16434don't.1643516436Do not count processor objects for non-present CPUs (Thanks to16437Dominik Brodowski)1643816439164403) iASL Compiler:1644116442Fixed a problem where ASL include files could not be found and16443opened.1644416445Added support for the _PDC reserved name.164461644716448----------------------------------------1644922 January 2003. Summary of changes for version 20030122.1645016451164521) ACPI CA Core Subsystem:1645316454Added a check for constructs of the form: Store (Local0, Local0)16455where Local0 is not initialized. Apparently, some BIOS16456programmers believe that this is a NOOP. Since this store doesn't16457do anything anyway, the new prototype behavior will ignore this16458error. This is a case where we can relax the strict checking in16459the interpreter in the name of compatibility.1646016461164622) Linux1646316464The AcpiSrc Source Conversion Utility has been released with the16465Linux package for the first time. This is the utility that is16466used to convert the ACPI CA base source code to the Linux version.1646716468(Both) Handle P_BLK lengths shorter than 6 more gracefully1646916470(Both) Move more headers to include/acpi, and delete an unused16471header.1647216473(Both) Move drivers/acpi/include directory to include/acpi1647416475(Both) Boot functions don't use cmdline, so don't pass it around1647616477(Both) Remove include of unused header (Adrian Bunk)1647816479(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since16480the16481former now also includes the latter, acpiphp.h only needs the one,16482now.1648316484(2.5) Make it possible to select method of bios restoring after S316485resume. [=> no more ugly ifdefs] (Pavel Machek)1648616487(2.5) Make proc write interfaces work (Pavel Machek)1648816489(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)1649016491(2.5) Break out ACPI Perf code into its own module, under cpufreq16492(Dominik Brodowski)1649316494(2.4) S4BIOS support (Ducrot Bruno)1649516496(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio16497Visinoni)1649816499165003) iASL Compiler:1650116502Added support to disassemble SSDT and PSDTs.1650316504Implemented support to obtain SSDTs from the Windows registry if16505available.165061650716508----------------------------------------1650909 January 2003. Summary of changes for version 20030109.16510165111) ACPI CA Core Subsystem:1651216513Changed the behavior of the internal Buffer-to-String conversion16514function. The current ACPI specification states that the contents16515of the buffer are "converted to a string of two-character16516hexadecimal numbers, each separated by a space". Unfortunately,16517this definition is not backwards compatible with existing ACPI 1.016518implementations (although the behavior was not defined in the ACPI165191.0 specification). The new behavior simply copies data from the16520buffer to the string until a null character is found or the end of16521the buffer is reached. The new String object is always null16522terminated. This problem was seen during the generation of _BIF16523battery data where incorrect strings were returned for battery16524type, etc. This will also require an errata to the ACPI16525specification.1652616527Renamed all instances of NATIVE_UINT and NATIVE_INT to16528ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.1652916530Copyright in all module headers (both Linux and non-Linux) has be16531updated to 2003.1653216533Code and Data Size: Current core subsystem library sizes are shown16534below. These are the code and data sizes for the acpica.lib16535produced by the Microsoft Visual C++ 6.0 compiler, and these16536values do not include any ACPI driver or OSPM code. The debug16537version of the code includes the debug output trace mechanism and16538has a much larger code and data size. Note that these values will16539vary depending on the efficiency of the compiler and the compiler16540options used during generation.1654116542Previous Release16543Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16544Debug Version: 153.0K Code, 62.9K Data, 215.9K Total16545Current Release:16546Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16547Debug Version: 153.0K Code, 62.9K Data, 215.9K Total1654816549165502) Linux1655116552Fixed an oops on module insertion/removal (Matthew Tippett)1655316554(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)1655516556(2.5) Replace pr_debug (Randy Dunlap)1655716558(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)1655916560(Both) Eliminate spawning of thread from timer callback, in favor16561of schedule_work()1656216563(Both) Show Lid status in /proc (Zdenek OGAR Skalak)1656416565(Both) Added define for Fixed Function HW region (Matthew Wilcox)1656616567(Both) Add missing statics to button.c (Pavel Machek)1656816569Several changes have been made to the source code translation16570utility that generates the Linux Code in order to make the code16571more "Linux-like":1657216573All typedefs on structs and unions have been removed in keeping16574with the Linux coding style.1657516576Removed the non-Linux SourceSafe module revision number from each16577module header.1657816579Completed major overhaul of symbols to be lowercase for linux.16580Doubled the number of symbols that are lowercase.1658116582Fixed a problem where identifiers within procedure headers and16583within quotes were not fully lower cased (they were left with a16584starting capital.)1658516586Some C macros whose only purpose is to allow the generation of 16-16587bit code are now completely removed in the Linux code, increasing16588readability and maintainability.1658916590----------------------------------------165911659212 December 2002. Summary of changes for version 20021212.1659316594165951) ACPI CA Core Subsystem:1659616597Fixed a problem where the creation of a zero-length AML Buffer16598would cause a fault.1659916600Fixed a problem where a Buffer object that pointed to a static AML16601buffer (in an ACPI table) could inadvertently be deleted, causing16602memory corruption.1660316604Fixed a problem where a user buffer (passed in to the external16605ACPI CA interfaces) could be overwritten if the buffer was too16606small to complete the operation, causing memory corruption.1660716608Fixed a problem in the Buffer-to-String conversion code where a16609string of length one was always returned, regardless of the size16610of the input Buffer object.1661116612Removed the NATIVE_CHAR data type across the entire source due to16613lack of need and lack of consistent use.1661416615Code and Data Size: Current core subsystem library sizes are shown16616below. These are the code and data sizes for the acpica.lib16617produced by the Microsoft Visual C++ 6.0 compiler, and these16618values do not include any ACPI driver or OSPM code. The debug16619version of the code includes the debug output trace mechanism and16620has a much larger code and data size. Note that these values will16621vary depending on the efficiency of the compiler and the compiler16622options used during generation.1662316624Previous Release16625Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total16626Debug Version: 152.7K Code, 62.7K Data, 215.4K Total16627Current Release:16628Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16629Debug Version: 153.0K Code, 62.9K Data, 215.9K Total166301663116632----------------------------------------1663305 December 2002. Summary of changes for version 20021205.16634166351) ACPI CA Core Subsystem:1663616637Fixed a problem where a store to a String or Buffer object could16638cause corruption of the DSDT if the object type being stored was16639the same as the target object type and the length of the object16640being stored was equal to or smaller than the original (existing)16641target object. This was seen to cause corruption of battery _BIF16642buffers if the _BIF method modified the buffer on the fly.1664316644Fixed a problem where an internal error was generated if a control16645method invocation was used in an OperationRegion, Buffer, or16646Package declaration. This was caused by the deferred parsing of16647the control method and thus the deferred creation of the internal16648method object. The solution to this problem was to create the16649internal method object at the moment the method is encountered in16650the first pass - so that subsequent references to the method will16651able to obtain the required parameter count and thus properly16652parse the method invocation. This problem presented itself as an16653AE_AML_INTERNAL during the pass 1 parse phase during table load.1665416655Fixed a problem where the internal String object copy routine did16656not always allocate sufficient memory for the target String object16657and caused memory corruption. This problem was seen to cause16658"Allocation already present in list!" errors as memory allocation16659became corrupted.1666016661Implemented a new function for the evaluation of namespace objects16662that allows the specification of the allowable return object16663types. This simplifies a lot of code that checks for a return16664object of one or more specific objects returned from the16665evaluation (such as _STA, etc.) This may become and external16666function if it would be useful to ACPI-related drivers.1666716668Completed another round of prefixing #defines with "ACPI_" for16669clarity.1667016671Completed additional code restructuring to allow more modular16672linking for iASL compiler and AcpiExec. Several files were split16673creating new files. New files: nsparse.c dsinit.c evgpe.c1667416675Implemented an abort mechanism to terminate an executing control16676method via the AML debugger. This feature is useful for debugging16677control methods that depend (wait) for specific hardware16678responses.1667916680Code and Data Size: Current core subsystem library sizes are shown16681below. These are the code and data sizes for the acpica.lib16682produced by the Microsoft Visual C++ 6.0 compiler, and these16683values do not include any ACPI driver or OSPM code. The debug16684version of the code includes the debug output trace mechanism and16685has a much larger code and data size. Note that these values will16686vary depending on the efficiency of the compiler and the compiler16687options used during generation.1668816689Previous Release16690Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16691Debug Version: 152.9K Code, 63.3K Data, 216.2K Total16692Current Release:16693Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total16694Debug Version: 152.7K Code, 62.7K Data, 215.4K Total1669516696166972) iASL Compiler/Disassembler1669816699Fixed a compiler code generation problem for "Interrupt" Resource16700Descriptors. If specified in the ASL, the optional "Resource16701Source Index" and "Resource Source" fields were not inserted into16702the correct location within the AML resource descriptor, creating16703an invalid descriptor.1670416705Fixed a disassembler problem for "Interrupt" resource descriptors.16706The optional "Resource Source Index" and "Resource Source" fields16707were ignored.167081670916710----------------------------------------1671122 November 2002. Summary of changes for version 20021122.1671216713167141) ACPI CA Core Subsystem:1671516716Fixed a reported problem where an object stored to a Method Local16717or Arg was not copied to a new object during the store - the16718object pointer was simply copied to the Local/Arg. This caused16719all subsequent operations on the Local/Arg to also affect the16720original source of the store operation.1672116722Fixed a problem where a store operation to a Method Local or Arg16723was not completed properly if the Local/Arg contained a reference16724(from RefOf) to a named field. The general-purpose store-to-16725namespace-node code is now used so that this case is handled16726automatically.1672716728Fixed a problem where the internal object copy routine would cause16729a protection fault if the object being copied was a Package and16730contained either 1) a NULL package element or 2) a nested sub-16731package.1673216733Fixed a problem with the GPE initialization that resulted from an16734ambiguity in the ACPI specification. One section of the16735specification states that both the address and length of the GPE16736block must be zero if the block is not supported. Another section16737implies that only the address need be zero if the block is not16738supported. The code has been changed so that both the address and16739the length must be non-zero to indicate a valid GPE block (i.e.,16740if either the address or the length is zero, the GPE block is16741invalid.)1674216743Code and Data Size: Current core subsystem library sizes are shown16744below. These are the code and data sizes for the acpica.lib16745produced by the Microsoft Visual C++ 6.0 compiler, and these16746values do not include any ACPI driver or OSPM code. The debug16747version of the code includes the debug output trace mechanism and16748has a much larger code and data size. Note that these values will16749vary depending on the efficiency of the compiler and the compiler16750options used during generation.1675116752Previous Release16753Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total16754Debug Version: 152.7K Code, 63.2K Data, 215.5K Total16755Current Release:16756Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16757Debug Version: 152.9K Code, 63.3K Data, 216.2K Total1675816759167602) Linux1676116762Cleaned up EC driver. Exported an external EC read/write16763interface. By going through this, other drivers (most notably16764sonypi) will be able to serialize access to the EC.1676516766167673) iASL Compiler/Disassembler1676816769Implemented support to optionally generate include files for both16770ASM and C (the -i switch). This simplifies BIOS development by16771automatically creating include files that contain external16772declarations for the symbols that are created within the1677316774(optionally generated) ASM and C AML source files.167751677616777----------------------------------------1677815 November 2002. Summary of changes for version 20021115.16779167801) ACPI CA Core Subsystem:1678116782Fixed a memory leak problem where an error during resolution of1678316784method arguments during a method invocation from another method16785failed to cleanup properly by deleting all successfully resolved16786argument objects.1678716788Fixed a problem where the target of the Index() operator was not16789correctly constructed if the source object was a package. This16790problem has not been detected because the use of a target operand16791with Index() is very rare.1679216793Fixed a problem with the Index() operator where an attempt was16794made to delete the operand objects twice.1679516796Fixed a problem where an attempt was made to delete an operand16797twice during execution of the CondRefOf() operator if the target16798did not exist.1679916800Implemented the first of perhaps several internal create object16801functions that create and initialize a specific object type. This16802consolidates duplicated code wherever the object is created, thus16803shrinking the size of the subsystem.1680416805Implemented improved debug/error messages for errors that occur16806during nested method invocations. All executing method pathnames16807are displayed (with the error) as the call stack is unwound - thus16808simplifying debug.1680916810Fixed a problem introduced in the 10/02 release that caused16811premature deletion of a buffer object if a buffer was used as an16812ASL operand where an integer operand is required (Thus causing an16813implicit object conversion from Buffer to Integer.) The change in16814the 10/02 release was attempting to fix a memory leak (albeit16815incorrectly.)1681616817Code and Data Size: Current core subsystem library sizes are shown16818below. These are the code and data sizes for the acpica.lib16819produced by the Microsoft Visual C++ 6.0 compiler, and these16820values do not include any ACPI driver or OSPM code. The debug16821version of the code includes the debug output trace mechanism and16822has a much larger code and data size. Note that these values will16823vary depending on the efficiency of the compiler and the compiler16824options used during generation.1682516826Previous Release16827Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total16828Debug Version: 153.1K Code, 63.3K Data, 216.4K Total16829Current Release:16830Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total16831Debug Version: 152.7K Code, 63.2K Data, 215.5K Total1683216833168342) Linux1683516836Changed the implementation of the ACPI semaphores to use down()16837instead of down_interruptable(). It is important that the16838execution of ACPI control methods not be interrupted by signals.16839Methods must run to completion, or the system may be left in an16840unknown/unstable state.1684116842Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.16843(Shawn Starr)1684416845168463) iASL Compiler/Disassembler168471684816849Changed the default location of output files. All output files16850are now placed in the current directory by default instead of in16851the directory of the source file. This change may affect some16852existing makefiles, but it brings the behavior of the compiler in16853line with other similar tools. The location of the output files16854can be overridden with the -p command line switch.168551685616857----------------------------------------1685811 November 2002. Summary of changes for version 20021111.1685916860168610) ACPI Specification 2.0B is released and is now available at:16862http://www.acpi.info/index.html1686316864168651) ACPI CA Core Subsystem:1686616867Implemented support for the ACPI 2.0 SMBus Operation Regions.16868This includes the early detection and handoff of the request to16869the SMBus region handler (avoiding all of the complex field16870support code), and support for the bidirectional return packet16871from an SMBus write operation. This paves the way for the16872development of SMBus drivers in each host operating system.1687316874Fixed a problem where the semaphore WAIT_FOREVER constant was16875defined as 32 bits, but must be 16 bits according to the ACPI16876specification. This had the side effect of causing ASL16877Mutex/Event timeouts even though the ASL code requested a wait16878forever. Changed all internal references to the ACPI timeout16879parameter to 16 bits to prevent future problems. Changed the name16880of WAIT_FOREVER to ACPI_WAIT_FOREVER.1688116882Code and Data Size: Current core subsystem library sizes are shown16883below. These are the code and data sizes for the acpica.lib16884produced by the Microsoft Visual C++ 6.0 compiler, and these16885values do not include any ACPI driver or OSPM code. The debug16886version of the code includes the debug output trace mechanism and16887has a much larger code and data size. Note that these values will16888vary depending on the efficiency of the compiler and the compiler16889options used during generation.1689016891Previous Release16892Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16893Debug Version: 152.3K Code, 63.0K Data, 215.3K Total16894Current Release:16895Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total16896Debug Version: 153.1K Code, 63.3K Data, 216.4K Total1689716898168992) Linux1690016901Module loading/unloading fixes (John Cagle)1690216903169043) iASL Compiler/Disassembler1690516906Added support for the SMBBlockProcessCall keyword (ACPI 2.0)1690716908Implemented support for the disassembly of all SMBus protocol16909keywords (SMBQuick, SMBWord, etc.)1691016911----------------------------------------1691201 November 2002. Summary of changes for version 20021101.1691316914169151) ACPI CA Core Subsystem:1691616917Fixed a problem where platforms that have a GPE1 block but no GPE016918block were not handled correctly. This resulted in a "GPE16919overlap" error message. GPE0 is no longer required.1692016921Removed code added in the previous release that inserted nodes16922into the namespace in alphabetical order. This caused some side-16923effects on various machines. The root cause of the problem is16924still under investigation since in theory, the internal ordering16925of the namespace nodes should not matter.169261692716928Enhanced error reporting for the case where a named object is not16929found during control method execution. The full ACPI namepath16930(name reference) of the object that was not found is displayed in16931this case.1693216933Note: as a result of the overhaul of the namespace object types in16934the previous release, the namespace nodes for the predefined16935scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE16936instead of ACPI_TYPE_ANY. This simplifies the namespace16937management code but may affect code that walks the namespace tree16938looking for specific object types.1693916940Code and Data Size: Current core subsystem library sizes are shown16941below. These are the code and data sizes for the acpica.lib16942produced by the Microsoft Visual C++ 6.0 compiler, and these16943values do not include any ACPI driver or OSPM code. The debug16944version of the code includes the debug output trace mechanism and16945has a much larger code and data size. Note that these values will16946vary depending on the efficiency of the compiler and the compiler16947options used during generation.1694816949Previous Release16950Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total16951Debug Version: 151.7K Code, 62.4K Data, 214.1K Total16952Current Release:16953Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16954Debug Version: 152.3K Code, 63.0K Data, 215.3K Total1695516956169572) Linux1695816959Fixed a problem introduced in the previous release where the16960Processor and Thermal objects were not recognized and installed in16961/proc. This was related to the scope type change described above.1696216963169643) iASL Compiler/Disassembler1696516966Implemented the -g option to get all of the required ACPI tables16967from the registry and save them to files (Windows version of the16968compiler only.) The required tables are the FADT, FACS, and DSDT.1696916970Added ACPI table checksum validation during table disassembly in16971order to catch corrupted tables.169721697316974----------------------------------------1697522 October 2002. Summary of changes for version 20021022.16976169771) ACPI CA Core Subsystem:1697816979Implemented a restriction on the Scope operator that the target16980must already exist in the namespace at the time the operator is16981encountered (during table load or method execution). In other16982words, forward references are not allowed and Scope() cannot16983create a new object. This changes the previous behavior where the16984interpreter would create the name if not found. This new behavior16985correctly enables the search-to-root algorithm during namespace16986lookup of the target name. Because of this upsearch, this fixes16987the known Compaq _SB_.OKEC problem and makes both the AML16988interpreter and iASL compiler compatible with other ACPI16989implementations.1699016991Completed a major overhaul of the internal ACPI object types for16992the ACPI Namespace and the associated operand objects. Many of16993these types had become obsolete with the introduction of the two-16994pass namespace load. This cleanup simplifies the code and makes16995the entire namespace load mechanism much clearer and easier to16996understand.1699716998Improved debug output for tracking scope opening/closing to help16999diagnose scoping issues. The old scope name as well as the new17000scope name are displayed. Also improved error messages for17001problems with ASL Mutex objects and error messages for GPE17002problems.1700317004Cleaned up the namespace dump code, removed obsolete code.1700517006All string output (for all namespace/object dumps) now uses the17007common ACPI string output procedure which handles escapes properly17008and does not emit non-printable characters.1700917010Fixed some issues with constants in the 64-bit version of the17011local C library (utclib.c)1701217013170142) Linux1701517016EC Driver: No longer attempts to acquire the Global Lock at17017interrupt level.1701817019170203) iASL Compiler/Disassembler1702117022Implemented ACPI 2.0B grammar change that disallows all Type 1 and170232 opcodes outside of a control method. This means that the17024"executable" operators (versus the "namespace" operators) cannot17025be used at the table level; they can only be used within a control17026method.1702717028Implemented the restriction on the Scope() operator where the17029target must already exist in the namespace at the time the17030operator is encountered (during ASL compilation). In other words,17031forward references are not allowed and Scope() cannot create a new17032object. This makes the iASL compiler compatible with other ACPI17033implementations and makes the Scope() implementation adhere to the17034ACPI specification.1703517036Fixed a problem where namepath optimization for the Alias operator17037was optimizing the wrong path (of the two namepaths.) This caused17038a "Missing alias link" error message.1703917040Fixed a problem where an "unknown reserved name" warning could be17041incorrectly generated for names like "_SB" when the trailing17042underscore is not used in the original ASL.1704317044Fixed a problem where the reserved name check did not handle17045NamePaths with multiple NameSegs correctly. The first nameseg of17046the NamePath was examined instead of the last NameSeg.170471704817049----------------------------------------170501705102 October 2002. Summary of changes for this release.1705217053170541) ACPI CA Core Subsystem version 20021002:1705517056Fixed a problem where a store/copy of a string to an existing17057string did not always set the string length properly in the String17058object.1705917060Fixed a reported problem with the ToString operator where the17061behavior was identical to the ToHexString operator instead of just17062simply converting a raw buffer to a string data type.1706317064Fixed a problem where CopyObject and the other "explicit"17065conversion operators were not updating the internal namespace node17066type as part of the store operation.1706717068Fixed a memory leak during implicit source operand conversion17069where the original object was not deleted if it was converted to a17070new object of a different type.1707117072Enhanced error messages for all problems associated with namespace17073lookups. Common procedure generates and prints the lookup name as17074well as the formatted status.1707517076Completed implementation of a new design for the Alias support17077within the namespace. The existing design did not handle the case17078where a new object was assigned to one of the two names due to the17079use of an explicit conversion operator, resulting in the two names17080pointing to two different objects. The new design simply points17081the Alias name to the original name node - not to the object.17082This results in a level of indirection that must be handled in the17083name resolution mechanism.1708417085Code and Data Size: Current core subsystem library sizes are shown17086below. These are the code and data sizes for the acpica.lib17087produced by the Microsoft Visual C++ 6.0 compiler, and these17088values do not include any ACPI driver or OSPM code. The debug17089version of the code includes the debug output trace mechanism and17090has a larger code and data size. Note that these values will vary17091depending on the efficiency of the compiler and the compiler17092options used during generation.1709317094Previous Release17095Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total17096Debug Version: 150.0K Code, 61.7K Data, 211.7K Total17097Current Release:17098Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total17099Debug Version: 151.7K Code, 62.4K Data, 214.1K Total1710017101171022) Linux1710317104Initialize thermal driver's timer before it is used. (Knut17105Neumann)1710617107Allow handling negative celsius values. (Kochi Takayoshi)1710817109Fix thermal management and make trip points. R/W (Pavel Machek)1711017111Fix /proc/acpi/sleep. (P. Christeas)1711217113IA64 fixes. (David Mosberger)1711417115Fix reversed logic in blacklist code. (Sergio Monteiro Basto)1711617117Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik17118Brodowski)1711917120171213) iASL Compiler/Disassembler1712217123Clarified some warning/error messages.171241712517126----------------------------------------1712718 September 2002. Summary of changes for this release.1712817129171301) ACPI CA Core Subsystem version 20020918:1713117132Fixed a reported problem with reference chaining (via the Index()17133and RefOf() operators) in the ObjectType() and SizeOf() operators.17134The definition of these operators includes the dereferencing of17135all chained references to return information on the base object.1713617137Fixed a problem with stores to indexed package elements - the17138existing code would not complete the store if an "implicit17139conversion" was not performed. In other words, if the existing17140object (package element) was to be replaced completely, the code17141didn't handle this case.1714217143Relaxed typechecking on the ASL "Scope" operator to allow the17144target name to refer to an object of type Integer, String, or17145Buffer, in addition to the scoping object types (Device,17146predefined Scopes, Processor, PowerResource, and ThermalZone.)17147This allows existing AML code that has workarounds for a bug in17148Windows to function properly. A warning is issued, however. This17149affects both the AML interpreter and the iASL compiler. Below is17150an example of this type of ASL code:1715117152Name(DEB,0x00)17153Scope(DEB)17154{1715517156Fixed some reported problems with 64-bit integer support in the17157local implementation of C library functions (clib.c)1715817159171602) Linux1716117162Use ACPI fix map region instead of IOAPIC region, since it is17163undefined in non-SMP.1716417165Ensure that the SCI has the proper polarity and trigger, even on17166systems that do not have an interrupt override entry in the MADT.17167171682.5 big driver reorganization (Pat Mochel)1716917170Use early table mapping code from acpitable.c (Andi Kleen)1717117172New blacklist entries (Andi Kleen)1717317174Blacklist improvements. Split blacklist code out into a separate17175file. Move checking the blacklist to very early. Previously, we17176would use ACPI tables, and then halfway through init, check the17177blacklist -- too late. Now, it's early enough to completely fall-17178back to non-ACPI.1717917180171813) iASL Compiler/Disassembler version 20020918:1718217183Fixed a problem where the typechecking code didn't know that an17184alias could point to a method. In other words, aliases were not17185being dereferenced during typechecking.171861718717188----------------------------------------1718929 August 2002. Summary of changes for this release.17190171911) ACPI CA Core Subsystem Version 20020829:1719217193If the target of a Scope() operator already exists, it must be an17194object type that actually opens a scope -- such as a Device,17195Method, Scope, etc. This is a fatal runtime error. Similar error17196check has been added to the iASL compiler also.1719717198Tightened up the namespace load to disallow multiple names in the17199same scope. This previously was allowed if both objects were of17200the same type. (i.e., a lookup was the same as entering a new17201name).1720217203172042) Linux1720517206Ensure that the ACPI interrupt has the proper trigger and17207polarity.1720817209local_irq_disable is extraneous. (Matthew Wilcox)1721017211Make "acpi=off" actually do what it says, and not use the ACPI17212interpreter *or* the tables.1721317214Added arch-neutral support for parsing SLIT and SRAT tables (Kochi17215Takayoshi)1721617217172183) iASL Compiler/Disassembler Version 20020829:1721917220Implemented namepath optimization for name declarations. For17221example, a declaration like "Method (\_SB_.ABCD)" would get17222optimized to "Method (ABCD)" if the declaration is within the17223\_SB_ scope. This optimization is in addition to the named17224reference path optimization first released in the previous17225version. This would seem to complete all possible optimizations17226for namepaths within the ASL/AML.1722717228If the target of a Scope() operator already exists, it must be an17229object type that actually opens a scope -- such as a Device,17230Method, Scope, etc.1723117232Implemented a check and warning for unreachable code in the same17233block below a Return() statement.1723417235Fixed a problem where the listing file was not generated if the17236compiler aborted if the maximum error count was exceeded (200).1723717238Fixed a problem where the typechecking of method return values was17239broken. This includes the check for a return value when the17240method is invoked as a TermArg (a return value is expected.)1724117242Fixed a reported problem where EOF conditions during a quoted17243string or comment caused a fault.172441724517246----------------------------------------1724715 August 2002. Summary of changes for this release.17248172491) ACPI CA Core Subsystem Version 20020815:1725017251Fixed a reported problem where a Store to a method argument that17252contains a reference did not perform the indirect store correctly.17253This problem was created during the conversion to the new17254reference object model - the indirect store to a method argument17255code was not updated to reflect the new model.1725617257Reworked the ACPI mode change code to better conform to ACPI 2.0,17258handle corner cases, and improve code legibility (Kochi Takayoshi)1725917260Fixed a problem with the pathname parsing for the carat (^)17261prefix. The heavy use of the carat operator by the new namepath17262optimization in the iASL compiler uncovered a problem with the AML17263interpreter handling of this prefix. In the case where one or17264more carats precede a single nameseg, the nameseg was treated as17265standalone and the search rule (to root) was inadvertently17266applied. This could cause both the iASL compiler and the17267interpreter to find the wrong object or to miss the error that17268should occur if the object does not exist at that exact pathname.1726917270Found and fixed the problem where the HP Pavilion DSDT would not17271load. This was a relatively minor tweak to the table loading code17272(a problem caused by the unexpected encounter with a method17273invocation not within a control method), but it does not solve the17274overall issue of the execution of AML code at the table level.17275This investigation is still ongoing.1727617277Code and Data Size: Current core subsystem library sizes are shown17278below. These are the code and data sizes for the acpica.lib17279produced by the Microsoft Visual C++ 6.0 compiler, and these17280values do not include any ACPI driver or OSPM code. The debug17281version of the code includes the debug output trace mechanism and17282has a larger code and data size. Note that these values will vary17283depending on the efficiency of the compiler and the compiler17284options used during generation.1728517286Previous Release17287Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total17288Debug Version: 149.4K Code, 61.6K Data, 211.0K Total17289Current Release:17290Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total17291Debug Version: 150.0K Code, 61.7K Data, 211.7K Total1729217293172942) Linux1729517296Remove redundant slab.h include (Brad Hards)1729717298Fix several bugs in thermal.c (Herbert Nachtnebel)1729917300Make CONFIG_ACPI_BOOT work properly (Pavel Machek)1730117302Change acpi_system_suspend to use updated irq functions (Pavel17303Machek)1730417305Export acpi_get_firmware_table (Matthew Wilcox)1730617307Use proper root proc entry for ACPI (Kochi Takayoshi)1730817309Fix early-boot table parsing (Bjorn Helgaas)1731017311173123) iASL Compiler/Disassembler1731317314Reworked the compiler options to make them more consistent and to17315use two-letter options where appropriate. We were running out of17316sensible letters. This may break some makefiles, so check the17317current options list by invoking the compiler with no parameters.1731817319Completed the design and implementation of the ASL namepath17320optimization option for the compiler. This option optimizes all17321references to named objects to the shortest possible path. The17322first attempt tries to utilize a single nameseg (4 characters) and17323the "search-to-root" algorithm used by the interpreter. If that17324cannot be used (because either the name is not in the search path17325or there is a conflict with another object with the same name),17326the pathname is optimized using the carat prefix (usually a17327shorter string than specifying the entire path from the root.)1732817329Implemented support to obtain the DSDT from the Windows registry17330(when the disassembly option is specified with no input file).17331Added this code as the implementation for AcpiOsTableOverride in17332the Windows OSL. Migrated the 16-bit code (used in the AcpiDump17333utility) to scan memory for the DSDT to the AcpiOsTableOverride17334function in the DOS OSL to make the disassembler truly OS17335independent.1733617337Implemented a new option to disassemble and compile in one step.17338When used without an input filename, this option will grab the17339DSDT from the local machine, disassemble it, and compile it in one17340step.1734117342Added a warning message for invalid escapes (a backslash followed17343by any character other than the allowable escapes). This catches17344the quoted string error "\_SB_" (which should be "\\_SB_" ).1734517346Also, there are numerous instances in the ACPI specification where17347this error occurs.1734817349Added a compiler option to disable all optimizations. This is17350basically the "compatibility mode" because by using this option,17351the AML code will come out exactly the same as other ASL17352compilers.1735317354Added error messages for incorrectly ordered dependent resource17355functions. This includes: missing EndDependentFn macro at end of17356dependent resource list, nested dependent function macros (both17357start and end), and missing StartDependentFn macro. These are17358common errors that should be caught at compile time.1735917360Implemented _OSI support for the disassembler and compiler. _OSI17361must be included in the namespace for proper disassembly (because17362the disassembler must know the number of arguments.)1736317364Added an "optimization" message type that is optional (off by17365default). This message is used for all optimizations - including17366constant folding, integer optimization, and namepath optimization.1736717368----------------------------------------1736925 July 2002. Summary of changes for this release.1737017371173721) ACPI CA Core Subsystem Version 20020725:1737317374The AML Disassembler has been enhanced to produce compilable ASL17375code and has been integrated into the iASL compiler (see below) as17376well as the single-step disassembly for the AML debugger and the17377disassembler for the AcpiDump utility. All ACPI 2.0A opcodes,17378resource templates and macros are fully supported. The17379disassembler has been tested on over 30 different AML files,17380producing identical AML when the resulting disassembled ASL file17381is recompiled with the same ASL compiler.1738217383Modified the Resource Manager to allow zero interrupts and zero17384dma channels during the GetCurrentResources call. This was17385causing problems on some platforms.1738617387Added the AcpiOsRedirectOutput interface to the OSL to simplify17388output redirection for the AcpiOsPrintf and AcpiOsVprintf17389interfaces.1739017391Code and Data Size: Current core subsystem library sizes are shown17392below. These are the code and data sizes for the acpica.lib17393produced by the Microsoft Visual C++ 6.0 compiler, and these17394values do not include any ACPI driver or OSPM code. The debug17395version of the code includes the debug output trace mechanism and17396has a larger code and data size. Note that these values will vary17397depending on the efficiency of the compiler and the compiler17398options used during generation.1739917400Previous Release17401Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total17402Debug Version: 142.9K Code, 58.7K Data, 201.6K Total17403Current Release:17404Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total17405Debug Version: 149.4K Code, 61.6K Data, 211.0K Total1740617407174082) Linux1740917410Fixed a panic in the EC driver (Dominik Brodowski)1741117412Implemented checksum of the R/XSDT itself during Linux table scan17413(Richard Schaal)1741417415174163) iASL compiler1741717418The AML disassembler is integrated into the compiler. The "-d"17419option invokes the disassembler to completely disassemble an17420input AML file, producing as output a text ASL file with the17421extension ".dsl" (to avoid name collisions with existing .asl17422source files.) A future enhancement will allow the disassembler17423to obtain the BIOS DSDT from the registry under Windows.1742417425Fixed a problem with the VendorShort and VendorLong resource17426descriptors where an invalid AML sequence was created.1742717428Implemented a fix for BufferData term in the ASL parser. It was17429inadvertently defined twice, allowing invalid syntax to pass and17430causing reduction conflicts.1743117432Fixed a problem where the Ones opcode could get converted to a17433value of zero if "Ones" was used where a byte, word or dword value17434was expected. The 64-bit value is now truncated to the correct17435size with the correct value.17436174371743817439----------------------------------------1744002 July 2002. Summary of changes for this release.1744117442174431) ACPI CA Core Subsystem Version 20020702:1744417445The Table Manager code has been restructured to add several new17446features. Tables that are not required by the core subsystem17447(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer17448validated in any way and are returned from AcpiGetFirmwareTable if17449requested. The AcpiOsTableOverride interface is now called for17450each table that is loaded by the subsystem in order to allow the17451host to override any table it chooses. Previously, only the DSDT17452could be overridden. Added one new files, tbrsdt.c and17453tbgetall.c.1745417455Fixed a problem with the conversion of internal package objects to17456external objects (when a package is returned from a control17457method.) The return buffer length was set to zero instead of the17458proper length of the package object.1745917460Fixed a reported problem with the use of the RefOf and DeRefOf17461operators when passing reference arguments to control methods. A17462new type of Reference object is used internally for references17463produced by the RefOf operator.1746417465Added additional error messages in the Resource Manager to explain17466AE_BAD_DATA errors when they occur during resource parsing.1746717468Split the AcpiEnableSubsystem into two primitives to enable a17469finer granularity initialization sequence. These two calls should17470be called in this order: AcpiEnableSubsystem (flags),17471AcpiInitializeObjects (flags). The flags parameter remains the17472same.1747317474174752) Linux1747617477Updated the ACPI utilities module to understand the new style of17478fully resolved package objects that are now returned from the core17479subsystem. This eliminates errors of the form:1748017481ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]17482acpi_utils-0430 [145] acpi_evaluate_reference:17483Invalid element in package (not a device reference)1748417485The method evaluation utility uses the new buffer allocation17486scheme instead of calling AcpiEvaluate Object twice.1748717488Added support for ECDT. This allows the use of the Embedded1748917490Controller before the namespace has been fully initialized, which17491is necessary for ACPI 2.0 support, and for some laptops to17492initialize properly. (Laptops using ECDT are still rare, so only17493limited testing was performed of the added functionality.)1749417495Fixed memory leaks in the EC driver.1749617497Eliminated a brittle code structure in acpi_bus_init().1749817499Eliminated the acpi_evaluate() helper function in utils.c. It is17500no longer needed since acpi_evaluate_object can optionally17501allocate memory for the return object.1750217503Implemented fix for keyboard hang when getting battery readings on17504some systems (Stephen White)1750517506PCI IRQ routing update (Dominik Brodowski)1750717508Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC17509support1751017511----------------------------------------1751211 June 2002. Summary of changes for this release.1751317514175151) ACPI CA Core Subsystem Version 20020611:1751617517Fixed a reported problem where constants such as Zero and One17518appearing within _PRT packages were not handled correctly within17519the resource manager code. Originally reported against the ASL17520compiler because the code generator now optimizes integers to17521their minimal AML representation (i.e. AML constants if possible.)17522The _PRT code now handles all AML constant opcodes correctly17523(Zero, One, Ones, Revision).1752417525Fixed a problem with the Concatenate operator in the AML17526interpreter where a buffer result object was incorrectly marked as17527not fully evaluated, causing a run-time error of AE_AML_INTERNAL.1752817529All package sub-objects are now fully resolved before they are17530returned from the external ACPI interfaces. This means that name17531strings are resolved to object handles, and constant operators17532(Zero, One, Ones, Revision) are resolved to Integers.1753317534Implemented immediate resolution of the AML Constant opcodes17535(Zero, One, Ones, Revision) to Integer objects upon detection17536within the AML stream. This has simplified and reduced the17537generated code size of the subsystem by eliminating about 1017538switch statements for these constants (which previously were17539contained in Reference objects.) The complicating issues are that17540the Zero opcode is used as a "placeholder" for unspecified17541optional target operands and stores to constants are defined to be17542no-ops.1754317544Code and Data Size: Current core subsystem library sizes are shown17545below. These are the code and data sizes for the acpica.lib17546produced by the Microsoft Visual C++ 6.0 compiler, and these17547values do not include any ACPI driver or OSPM code. The debug17548version of the code includes the debug output trace mechanism and17549has a larger code and data size. Note that these values will vary17550depending on the efficiency of the compiler and the compiler17551options used during generation.1755217553Previous Release17554Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total17555Debug Version: 143.8K Code, 58.8K Data, 202.6K Total17556Current Release:17557Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total17558Debug Version: 142.9K Code, 58.7K Data, 201.6K Total1755917560175612) Linux175621756317564Added preliminary support for obtaining _TRA data for PCI root17565bridges (Bjorn Helgaas).1756617567175683) iASL Compiler Version X2046:1756917570Fixed a problem where the "_DDN" reserved name was defined to be a17571control method with one argument. There are no arguments, and17572_DDN does not have to be a control method.1757317574Fixed a problem with the Linux version of the compiler where the17575source lines printed with error messages were the wrong lines.17576This turned out to be the "LF versus CR/LF" difference between17577Windows and Unix. This appears to be the longstanding issue17578concerning listing output and error messages.1757917580Fixed a problem with the Linux version of compiler where opcode17581names within error messages were wrong. This was caused by a17582slight difference in the output of the Flex tool on Linux versus17583Windows.1758417585Fixed a problem with the Linux compiler where the hex output files17586contained some garbage data caused by an internal buffer overrun.175871758817589----------------------------------------1759017 May 2002. Summary of changes for this release.1759117592175931) ACPI CA Core Subsystem Version 20020517:1759417595Implemented a workaround to an BIOS bug discovered on the HP17596OmniBook where the FADT revision number and the table size are17597inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new17598behavior is to fallback to using only the ACPI 1.0 fields of the17599FADT if the table is too small to be a ACPI 2.0 table as claimed17600by the revision number. Although this is a BIOS bug, this is a17601case where the workaround is simple enough and with no side17602effects, so it seemed prudent to add it. A warning message is17603issued, however.1760417605Implemented minimum size checks for the fixed-length ACPI tables -17606- the FADT and FACS, as well as consistency checks between the17607revision number and the table size.1760817609Fixed a reported problem in the table override support where the17610new table pointer was incorrectly treated as a physical address17611instead of a logical address.1761217613Eliminated the use of the AE_AML_ERROR exception and replaced it17614with more descriptive codes.1761517616Fixed a problem where an exception would occur if an ASL Field was17617defined with no named Field Units underneath it (used by some17618index fields).1761917620Code and Data Size: Current core subsystem library sizes are shown17621below. These are the code and data sizes for the acpica.lib17622produced by the Microsoft Visual C++ 6.0 compiler, and these17623values do not include any ACPI driver or OSPM code. The debug17624version of the code includes the debug output trace mechanism and17625has a larger code and data size. Note that these values will vary17626depending on the efficiency of the compiler and the compiler17627options used during generation.1762817629Previous Release17630Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total17631Debug Version: 142.9K Code, 58.4K Data, 201.3K Total17632Current Release:17633Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total17634Debug Version: 143.8K Code, 58.8K Data, 202.6K Total176351763617637176382) Linux1763917640Much work done on ACPI init (MADT and PCI IRQ routing support).17641(Paul D. and Dominik Brodowski)1764217643Fix PCI IRQ-related panic on boot (Sam Revitch)1764417645Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)1764617647Fix "MHz" typo (Dominik Brodowski)1764817649Fix RTC year 2000 issue (Dominik Brodowski)1765017651Preclude multiple button proc entries (Eric Brunet)1765217653Moved arch-specific code out of include/platform/aclinux.h17654176553) iASL Compiler Version X2044:1765617657Implemented error checking for the string used in the EISAID macro17658(Usually used in the definition of the _HID object.) The code now17659strictly enforces the PnP format - exactly 7 characters, 317660uppercase letters and 4 hex digits.1766117662If a raw string is used in the definition of the _HID object17663(instead of the EISAID macro), the string must contain all17664alphanumeric characters (e.g., "*PNP0011" is not allowed because17665of the asterisk.)1766617667Implemented checking for invalid use of ACPI reserved names for17668most of the name creation operators (Name, Device, Event, Mutex,17669OperationRegion, PowerResource, Processor, and ThermalZone.)17670Previously, this check was only performed for control methods.1767117672Implemented an additional check on the Name operator to emit an17673error if a reserved name that must be implemented in ASL as a17674control method is used. We know that a reserved name must be a17675method if it is defined with input arguments.1767617677The warning emitted when a namespace object reference is not found17678during the cross reference phase has been changed into an error.17679The "External" directive should be used for names defined in other17680modules.1768117682176834) Tools and Utilities1768417685The 16-bit tools (adump16 and aexec16) have been regenerated and17686tested.1768717688Fixed a problem with the output of both acpidump and adump16 where17689the indentation of closing parentheses and brackets was not1769017691aligned properly with the parent block.176921769317694----------------------------------------1769503 May 2002. Summary of changes for this release.1769617697176981) ACPI CA Core Subsystem Version 20020503:1769917700Added support a new OSL interface that allows the host operating1770117702system software to override the DSDT found in the firmware -17703AcpiOsTableOverride. With this interface, the OSL can examine the17704version of the firmware DSDT and replace it with a different one17705if desired.1770617707Added new external interfaces for accessing ACPI registers from17708device drivers and other system software - AcpiGetRegister and17709AcpiSetRegister. This was simply an externalization of the17710existing AcpiHwBitRegister interfaces.1771117712Fixed a regression introduced in the previous build where the17713ASL/AML CreateField operator always returned an error,17714"destination must be a NS Node".1771517716Extended the maximum time (before failure) to successfully enable17717ACPI mode to 3 seconds.1771817719Code and Data Size: Current core subsystem library sizes are shown17720below. These are the code and data sizes for the acpica.lib17721produced by the Microsoft Visual C++ 6.0 compiler, and these17722values do not include any ACPI driver or OSPM code. The debug17723version of the code includes the debug output trace mechanism and17724has a larger code and data size. Note that these values will vary17725depending on the efficiency of the compiler and the compiler17726options used during generation.1772717728Previous Release17729Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total17730Debug Version: 142.4K Code, 58.3K Data, 200.7K Total17731Current Release:17732Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total17733Debug Version: 142.9K Code, 58.4K Data, 201.3K Total1773417735177362) Linux1773717738Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-17739free. While 3 out of 4 of our in-house systems work fine, the last17740one still hangs when testing the LAPIC timer.1774117742Renamed many files in 2.5 kernel release to omit "acpi_" from the17743name.1774417745Added warning on boot for Presario 711FR.1774617747Sleep improvements (Pavel Machek)1774817749ACPI can now be built without CONFIG_PCI enabled.1775017751IA64: Fixed memory map functions (JI Lee)1775217753177543) iASL Compiler Version X2043:1775517756Added support to allow the compiler to be integrated into the MS17757VC++ development environment for one-button compilation of single17758files or entire projects -- with error-to-source-line mapping.1775917760Implemented support for compile-time constant folding for the17761Type3, Type4, and Type5 opcodes first defined in the ACPI 2.017762specification. This allows the ASL writer to use expressions17763instead of Integer/Buffer/String constants in terms that must17764evaluate to constants at compile time and will also simplify the17765emitted AML in any such sub-expressions that can be folded17766(evaluated at compile-time.) This increases the size of the17767compiler significantly because a portion of the ACPI CA AML17768interpreter is included within the compiler in order to pre-17769evaluate constant expressions.177701777117772Fixed a problem with the "Unicode" ASL macro that caused the17773compiler to fault. (This macro is used in conjunction with the17774_STR reserved name.)1777517776Implemented an AML opcode optimization to use the Zero, One, and17777Ones opcodes where possible to further reduce the size of integer17778constants and thus reduce the overall size of the generated AML17779code.1778017781Implemented error checking for new reserved terms for ACPI version177822.0A.1778317784Implemented the -qr option to display the current list of ACPI17785reserved names known to the compiler.1778617787Implemented the -qc option to display the current list of ASL17788operators that are allowed within constant expressions and can17789therefore be folded at compile time if the operands are constants.1779017791177924) Documentation1779317794Updated the Programmer's Reference for new interfaces, data types,17795and memory allocation model options.1779617797Updated the iASL Compiler User Reference to apply new format and17798add information about new features and options.1779917800----------------------------------------1780119 April 2002. Summary of changes for this release.17802178031) ACPI CA Core Subsystem Version 20020419:1780417805The source code base for the Core Subsystem has been completely17806cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit17807versions. The Lint option files used are included in the17808/acpi/generate/lint directory.1780917810Implemented enhanced status/error checking across the entire17811Hardware manager subsystem. Any hardware errors (reported from17812the OSL) are now bubbled up and will abort a running control17813method.178141781517816Fixed a problem where the per-ACPI-table integer width (32 or 64)17817was stored only with control method nodes, causing a fault when17818non-control method code was executed during table loading. The17819solution implemented uses a global variable to indicate table17820width across the entire ACPI subsystem. Therefore, ACPI CA does17821not support mixed integer widths across different ACPI tables17822(DSDT, SSDT).1782317824Fixed a problem where NULL extended fields (X fields) in an ACPI178252.0 ACPI FADT caused the table load to fail. Although the17826existing ACPI specification is a bit fuzzy on this topic, the new17827behavior is to fall back on a ACPI 1.0 field if the corresponding17828ACPI 2.0 X field is zero (even though the table revision indicates17829a full ACPI 2.0 table.) The ACPI specification will be updated to17830clarify this issue.1783117832Fixed a problem with the SystemMemory operation region handler17833where memory was always accessed byte-wise even if the AML-17834specified access width was larger than a byte. This caused17835problems on systems with memory-mapped I/O. Memory is now17836accessed with the width specified. On systems that do not support17837non-aligned transfers, a check is made to guarantee proper address17838alignment before proceeding in order to avoid an AML-caused17839alignment fault within the kernel.178401784117842Fixed a problem with the ExtendedIrq resource where only one byte17843of the 4-byte Irq field was extracted.1784417845Fixed the AcpiExDigitsNeeded() procedure to support _UID. This17846function was out of date and required a rewrite.1784717848Code and Data Size: Current core subsystem library sizes are shown17849below. These are the code and data sizes for the acpica.lib17850produced by the Microsoft Visual C++ 6.0 compiler, and these17851values do not include any ACPI driver or OSPM code. The debug17852version of the code includes the debug output trace mechanism and17853has a larger code and data size. Note that these values will vary17854depending on the efficiency of the compiler and the compiler17855options used during generation.1785617857Previous Release17858Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total17859Debug Version: 139.8K Code, 57.4K Data, 197.2K Total17860Current Release:17861Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total17862Debug Version: 142.4K Code, 58.3K Data, 200.7K Total1786317864178652) Linux1786617867PCI IRQ routing fixes (Dominik Brodowski)1786817869178703) iASL Compiler Version X2042:1787117872Implemented an additional compile-time error check for a field17873unit whose size + minimum access width would cause a run-time17874access beyond the end-of-region. Previously, only the field size17875itself was checked.1787617877The Core subsystem and iASL compiler now share a common parse17878object in preparation for compile-time evaluation of the type178793/4/5 ASL operators.178801788117882----------------------------------------17883Summary of changes for this release: 03_29_0217884178851) ACPI CA Core Subsystem Version 20020329:1788617887Implemented support for late evaluation of TermArg operands to17888Buffer and Package objects. This allows complex expressions to be17889used in the declarations of these object types.1789017891Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI178921.0, if the field was larger than 32 bits, it was returned as a17893buffer - otherwise it was returned as an integer. In ACPI 2.0,17894the field is returned as a buffer only if the field is larger than1789564 bits. The TableRevision is now considered when making this17896conversion to avoid incompatibility with existing ASL code.1789717898Implemented logical addressing for AcpiOsGetRootPointer. This17899allows an RSDP with either a logical or physical address. With17900this support, the host OS can now override all ACPI tables with17901one logical RSDP. Includes implementation of "typed" pointer17902support to allow a common data type for both physical and logical17903pointers internally. This required a change to the17904AcpiOsGetRootPointer interface.1790517906Implemented the use of ACPI 2.0 Generic Address Structures for all17907GPE, Fixed Event, and PM Timer I/O. This allows the use of memory17908mapped I/O for these ACPI features.1790917910Initialization now ignores not only non-required tables (All17911tables other than the FADT, FACS, DSDT, and SSDTs), but also does17912not validate the table headers of unrecognized tables.1791317914Fixed a problem where a notify handler could only be17915installed/removed on an object of type Device. All "notify"1791617917objects are now supported -- Devices, Processor, Power, and17918Thermal.1791917920Removed most verbosity from the ACPI_DB_INFO debug level. Only17921critical information is returned when this debug level is enabled.1792217923Code and Data Size: Current core subsystem library sizes are shown17924below. These are the code and data sizes for the acpica.lib17925produced by the Microsoft Visual C++ 6.0 compiler, and these17926values do not include any ACPI driver or OSPM code. The debug17927version of the code includes the debug output trace mechanism and17928has a larger code and data size. Note that these values will vary17929depending on the efficiency of the compiler and the compiler17930options used during generation.1793117932Previous Release17933Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total17934Debug Version: 138.0K Code, 56.6K Data, 194.6K Total17935Current Release:17936Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total17937Debug Version: 139.8K Code, 57.4K Data, 197.2K Total1793817939179402) Linux:1794117942The processor driver (acpi_processor.c) now fully supports ACPI179432.0-based processor performance control (e.g. Intel(R)17944SpeedStep(TM) technology) Note that older laptops that only have17945the Intel "applet" interface are not supported through this. The17946'limit' and 'performance' interface (/proc) are fully functional.17947[Note that basic policy for controlling performance state17948transitions will be included in the next version of ospmd.] The17949idle handler was modified to more aggressively use C2, and PIIX417950errata handling underwent a complete overhaul (big thanks to17951Dominik Brodowski).1795217953Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-17954based devices in the ACPI namespace are now dynamically bound17955(associated) with their PCI counterparts (e.g. PCI1->01:00.0).17956This allows, among other things, ACPI to resolve bus numbers for17957subordinate PCI bridges.1795817959Enhanced PCI IRQ routing to get the proper bus number for _PRT17960entries defined underneath PCI bridges.1796117962Added IBM 600E to bad bios list due to invalid _ADR value for17963PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.1796417965In the process of adding full MADT support (e.g. IOAPIC) for IA3217966(acpi.c, mpparse.c) -- stay tuned.1796717968Added back visual differentiation between fixed-feature and17969control-method buttons in dmesg. Buttons are also subtyped (e.g.17970button/power/PWRF) to simplify button identification.1797117972We no longer use -Wno-unused when compiling debug. Please ignore17973any "_THIS_MODULE defined but not used" messages.1797417975Can now shut down the system using "magic sysrq" key.1797617977179783) iASL Compiler version 2041:1797917980Fixed a problem where conversion errors for hex/octal/decimal17981constants were not reported.1798217983Implemented a fix for the General Register template Address field.17984This field was 8 bits when it should be 64.1798517986Fixed a problem where errors/warnings were no longer being emitted17987within the listing output file.1798817989Implemented the ACPI 2.0A restriction on ACPI Table Signatures to17990exactly 4 characters, alphanumeric only.1799117992179931799417995----------------------------------------17996Summary of changes for this release: 03_08_021799717998179991) ACPI CA Core Subsystem Version 20020308:1800018001Fixed a problem with AML Fields where the use of the "AccessAny"18002keyword could cause an interpreter error due to attempting to read18003or write beyond the end of the parent Operation Region.1800418005Fixed a problem in the SystemMemory Operation Region handler where18006an attempt was made to map memory beyond the end of the region.18007This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"18008errors on some Linux systems.1800918010Fixed a problem where the interpreter/namespace "search to root"18011algorithm was not functioning for some object types. Relaxed the18012internal restriction on the search to allow upsearches for all18013external object types as well as most internal types.1801418015180162) Linux:1801718018We now use safe_halt() macro versus individual calls to sti | hlt.1801918020Writing to the processor limit interface should now work. "echo 1"18021will increase the limit, 2 will decrease, and 0 will reset to the1802218023default.1802418025180263) ASL compiler:1802718028Fixed segfault on Linux version.180291803018031----------------------------------------18032Summary of changes for this release: 02_25_0218033180341) ACPI CA Core Subsystem:180351803618037Fixed a problem where the GPE bit masks were not initialized18038properly, causing erratic GPE behavior.1803918040Implemented limited support for multiple calling conventions. The18041code can be generated with either the VPL (variable parameter18042list, or "C") convention, or the FPL (fixed parameter list, or18043"Pascal") convention. The core subsystem is about 3.4% smaller18044when generated with FPL.1804518046180472) Linux1804818049Re-add some /proc/acpi/event functionality that was lost during18050the rewrite1805118052Resolved issue with /proc events for fixed-feature buttons showing18053up as the system device.1805418055Fixed checks on C2/C3 latencies to be inclusive of maximum values.1805618057Replaced AE_ERRORs in acpi_osl.c with more specific error codes.1805818059Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"1806018061Fixed limit interface & usage to fix bugs with passive cooling18062hysterisis.1806318064Restructured PRT support.180651806618067----------------------------------------18068Summary of changes for this label: 02_14_021806918070180711) ACPI CA Core Subsystem:1807218073Implemented support in AcpiLoadTable to allow loading of FACS and18074FADT tables.1807518076Support for the now-obsolete interim 0.71 64-bit ACPI tables has18077been removed. All 64-bit platforms should be migrated to the ACPI180782.0 tables. The actbl71.h header has been removed from the source18079tree.1808018081All C macros defined within the subsystem have been prefixed with18082"ACPI_" to avoid collision with other system include files.1808318084Removed the return value for the two AcpiOsPrint interfaces, since18085it is never used and causes lint warnings for ignoring the return18086value.1808718088Added error checking to all internal mutex acquire and release18089calls. Although a failure from one of these interfaces is18090probably a fatal system error, these checks will cause the18091immediate abort of the currently executing method or interface.1809218093Fixed a problem where the AcpiSetCurrentResources interface could18094fault. This was a side effect of the deployment of the new memory18095allocation model.1809618097Fixed a couple of problems with the Global Lock support introduced18098in the last major build. The "common" (1.0/2.0) internal FACS was18099being overwritten with the FACS signature and clobbering the18100Global Lock pointer. Also, the actual firmware FACS was being18101unmapped after construction of the "common" FACS, preventing18102access to the actual Global Lock field within it. The "common"18103internal FACS is no longer installed as an actual ACPI table; it18104is used simply as a global.1810518106Code and Data Size: Current core subsystem library sizes are shown18107below. These are the code and data sizes for the acpica.lib18108produced by the Microsoft Visual C++ 6.0 compiler, and these18109values do not include any ACPI driver or OSPM code. The debug18110version of the code includes the debug output trace mechanism and18111has a larger code and data size. Note that these values will vary18112depending on the efficiency of the compiler and the compiler18113options used during generation.1811418115Previous Release (02_07_01)18116Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total18117Debug Version: 136.9K Code, 56.4K Data, 193.3K Total18118Current Release:18119Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total18120Debug Version: 138.0K Code, 56.6K Data, 194.6K Total1812118122181232) Linux1812418125Updated Linux-specific code for core macro and OSL interface18126changes described above.1812718128Improved /proc/acpi/event. It now can be opened only once and has18129proper poll functionality.1813018131Fixed and restructured power management (acpi_bus).1813218133Only create /proc "view by type" when devices of that class exist.1813418135Fixed "charging/discharging" bug (and others) in acpi_battery.1813618137Improved thermal zone code.1813818139181403) ASL Compiler, version X2039:181411814218143Implemented the new compiler restriction on ASL String hex/octal18144escapes to non-null, ASCII values. An error results if an invalid18145value is used. (This will require an ACPI 2.0 specification18146change.)1814718148AML object labels that are output to the optional C and ASM source18149are now prefixed with both the ACPI table signature and table ID18150to help guarantee uniqueness within a large BIOS project.181511815218153----------------------------------------18154Summary of changes for this label: 02_01_0218155181561) ACPI CA Core Subsystem:1815718158ACPI 2.0 support is complete in the entire Core Subsystem and the18159ASL compiler. All new ACPI 2.0 operators are implemented and all18160other changes for ACPI 2.0 support are complete. With18161simultaneous code and data optimizations throughout the subsystem,18162ACPI 2.0 support has been implemented with almost no additional18163cost in terms of code and data size.1816418165Implemented a new mechanism for allocation of return buffers. If18166the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will18167be allocated on behalf of the caller. Consolidated all return18168buffer validation and allocation to a common procedure. Return18169buffers will be allocated via the primary OSL allocation interface18170since it appears that a separate pool is not needed by most users.18171If a separate pool is required for these buffers, the caller can18172still use the original mechanism and pre-allocate the buffer(s).1817318174Implemented support for string operands within the DerefOf18175operator.1817618177Restructured the Hardware and Event managers to be table driven,18178simplifying the source code and reducing the amount of generated18179code.1818018181Split the common read/write low-level ACPI register bitfield18182procedure into a separate read and write, simplifying the code18183considerably.1818418185Obsoleted the AcpiOsCallocate OSL interface. This interface was18186used only a handful of times and didn't have enough critical mass18187for a separate interface. Replaced with a common calloc procedure18188in the core.1818918190Fixed a reported problem with the GPE number mapping mechanism18191that allows GPE1 numbers to be non-contiguous with GPE0.18192Reorganized the GPE information and shrunk a large array that was18193originally large enough to hold info for all possible GPEs (256)18194to simply large enough to hold all GPEs up to the largest GPE18195number on the machine.1819618197Fixed a reported problem with resource structure alignment on 64-18198bit platforms.1819918200Changed the AcpiEnableEvent and AcpiDisableEvent external18201interfaces to not require any flags for the common case of18202enabling/disabling a GPE.1820318204Implemented support to allow a "Notify" on a Processor object.1820518206Most TBDs in comments within the source code have been resolved18207and eliminated.182081820918210Fixed a problem in the interpreter where a standalone parent18211prefix (^) was not handled correctly in the interpreter and18212debugger.1821318214Removed obsolete and unnecessary GPE save/restore code.1821518216Implemented Field support in the ASL Load operator. This allows a18217table to be loaded from a named field, in addition to loading a18218table directly from an Operation Region.1821918220Implemented timeout and handle support in the external Global Lock18221interfaces.1822218223Fixed a problem in the AcpiDump utility where pathnames were no18224longer being generated correctly during the dump of named objects.1822518226Modified the AML debugger to give a full display of if/while18227predicates instead of just one AML opcode at a time. (The18228predicate can have several nested ASL statements.) The old method18229was confusing during single stepping.1823018231Code and Data Size: Current core subsystem library sizes are shown18232below. These are the code and data sizes for the acpica.lib18233produced by the Microsoft Visual C++ 6.0 compiler, and these18234values do not include any ACPI driver or OSPM code. The debug18235version of the code includes the debug output trace mechanism and18236has a larger code and data size. Note that these values will vary18237depending on the efficiency of the compiler and the compiler18238options used during generation.1823918240Previous Release (12_18_01)18241Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total18242Debug Version: 138.3K Code, 55.9K Data, 194.2K Total18243Current Release:18244Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total18245Debug Version: 136.9K Code, 56.4K Data, 193.3K Total18246182472) Linux1824818249Implemented fix for PIIX reverse throttling errata (Processor18250driver)1825118252Added new Limit interface (Processor and Thermal drivers)1825318254New thermal policy (Thermal driver)1825518256Many updates to /proc1825718258Battery "low" event support (Battery driver)1825918260Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)1826118262IA32 - IA64 initialization unification, no longer experimental1826318264Menuconfig options redesigned18265182663) ASL Compiler, version X2037:1826718268Implemented several new output features to simplify integration of18269AML code into firmware: 1) Output the AML in C source code with18270labels for each named ASL object. The original ASL source code18271is interleaved as C comments. 2) Output the AML in ASM source code18272with labels and interleaved ASL source. 3) Output the AML in18273raw hex table form, in either C or ASM.1827418275Implemented support for optional string parameters to the18276LoadTable operator.1827718278Completed support for embedded escape sequences within string18279literals. The compiler now supports all single character escapes18280as well as the Octal and Hex escapes. Note: the insertion of a18281null byte into a string literal (via the hex/octal escape) causes18282the string to be immediately terminated. A warning is issued.1828318284Fixed a problem where incorrect AML was generated for the case18285where an ASL namepath consists of a single parent prefix (1828618287) with no trailing name segments.1828818289The compiler has been successfully generated with a 64-bit C18290compiler.1829118292182931829418295----------------------------------------18296Summary of changes for this label: 12_18_0118297182981) Linux1829918300Enhanced blacklist with reason and severity fields. Any table's18301signature may now be used to identify a blacklisted system.1830218303Call _PIC control method to inform the firmware which interrupt18304model the OS is using. Turn on any disabled link devices.1830518306Cleaned up busmgr /proc error handling (Andreas Dilger)18307183082) ACPI CA Core Subsystem:1830918310Implemented ACPI 2.0 semantics for the "Break" operator (Exit from18311while loop)1831218313Completed implementation of the ACPI 2.0 "Continue",18314"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"18315operators. All new ACPI 2.0 operators are now implemented in both18316the ASL compiler and the AML interpreter. The only remaining ACPI183172.0 task is support for the String data type in the DerefOf18318operator. Fixed a problem with AcquireMutex where the status code18319was lost if the caller had to actually wait for the mutex.1832018321Increased the maximum ASL Field size from 64K bits to 4G bits.1832218323Completed implementation of the external Global Lock interfaces --18324AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and18325Handler parameters were added.1832618327Completed another pass at removing warnings and issues when18328compiling with 64-bit compilers. The code now compiles cleanly18329with the Intel 64-bit C/C++ compiler. Most notably, the pointer18330add and subtract (diff) macros have changed considerably.183311833218333Created and deployed a new ACPI_SIZE type that is 64-bits wide on1833464-bit platforms, 32-bits on all others. This type is used18335wherever memory allocation and/or the C sizeof() operator is used,18336and affects the OSL memory allocation interfaces AcpiOsAllocate18337and AcpiOsCallocate.1833818339Implemented sticky user breakpoints in the AML debugger.1834018341Code and Data Size: Current core subsystem library sizes are shown18342below. These are the code and data sizes for the acpica.lib18343produced by the Microsoft Visual C++ 6.0 compiler, and these18344values do not include any ACPI driver or OSPM code. The debug18345version of the code includes the debug output trace mechanism and18346has a larger code and data size. Note that these values will vary18347depending on the efficiency of the compiler and the compiler18348options used during generation.1834918350Previous Release (12_05_01)18351Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total18352Debug Version: 136.2K Code, 55.6K Data, 191.8K Total18353Current Release:18354Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total18355Debug Version: 138.3K Code, 55.9K Data, 194.2K Total18356183573) ASL Compiler, version X2034:1835818359Now checks for (and generates an error if detected) the use of a18360Break or Continue statement without an enclosing While statement.183611836218363Successfully generated the compiler with the Intel 64-bit C18364compiler.1836518366----------------------------------------18367Summary of changes for this label: 12_05_0118368183691) ACPI CA Core Subsystem:1837018371The ACPI 2.0 CopyObject operator is fully implemented. This18372operator creates a new copy of an object (and is also used to18373bypass the "implicit conversion" mechanism of the Store operator.)1837418375The ACPI 2.0 semantics for the SizeOf operator are fully18376implemented. The change is that performing a SizeOf on a18377reference object causes an automatic dereference of the object to18378the actual value before the size is evaluated. This behavior was18379undefined in ACPI 1.0.1838018381The ACPI 2.0 semantics for the Extended IRQ resource descriptor18382have been implemented. The interrupt polarity and mode are now18383independently set.1838418385Fixed a problem where ASL Constants (Zero, One, Ones, Revision)18386appearing in Package objects were not properly converted to18387integers when the internal Package was converted to an external18388object (via the AcpiEvaluateObject interface.)1838918390Fixed a problem with the namespace object deletion mechanism for18391objects created by control methods. There were two parts to this18392problem: 1) Objects created during the initialization phase method18393parse were not being deleted, and 2) The object owner ID mechanism18394to track objects was broken.1839518396Fixed a problem where the use of the ASL Scope operator within a18397control method would result in an invalid opcode exception.1839818399Fixed a problem introduced in the previous label where the buffer18400length required for the _PRT structure was not being returned18401correctly.1840218403Code and Data Size: Current core subsystem library sizes are shown18404below. These are the code and data sizes for the acpica.lib18405produced by the Microsoft Visual C++ 6.0 compiler, and these18406values do not include any ACPI driver or OSPM code. The debug18407version of the code includes the debug output trace mechanism and18408has a larger code and data size. Note that these values will vary18409depending on the efficiency of the compiler and the compiler18410options used during generation.1841118412Previous Release (11_20_01)18413Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total18414Debug Version: 135.1K Code, 55.4K Data, 190.5K Total1841518416Current Release:18417Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total18418Debug Version: 136.2K Code, 55.6K Data, 191.8K Total18419184202) Linux:1842118422Updated all files to apply cleanly against 2.4.16.1842318424Added basic PCI Interrupt Routing Table (PRT) support for IA3218425(acpi_pci.c), and unified the PRT code for IA32 and IA64. This18426version supports both static and dynamic PRT entries, but dynamic18427entries are treated as if they were static (not yet18428reconfigurable). Architecture- specific code to use this data is18429absent on IA32 but should be available shortly.1843018431Changed the initialization sequence to start the ACPI interpreter18432(acpi_init) prior to initialization of the PCI driver (pci_init)18433in init/main.c. This ordering is required to support PRT and18434facilitate other (future) enhancement. A side effect is that the18435ACPI bus driver and certain device drivers can no longer be loaded18436as modules.1843718438Modified the 'make menuconfig' options to allow PCI Interrupt18439Routing support to be included without the ACPI Bus and other18440device drivers.18441184423) ASL Compiler, version X2033:1844318444Fixed some issues with the use of the new CopyObject and18445DataTableRegion operators. Both are fully functional.1844618447----------------------------------------18448Summary of changes for this label: 11_20_01184491845020 November 2001. Summary of changes for this release.18451184521) ACPI CA Core Subsystem:1845318454Updated Index support to match ACPI 2.0 semantics. Storing a18455Integer, String, or Buffer to an Index of a Buffer will store only18456the least-significant byte of the source to the Indexed buffer18457byte. Multiple writes are not performed.1845818459Fixed a problem where the access type used in an AccessAs ASL18460operator was not recorded correctly into the field object.1846118462Fixed a problem where ASL Event objects were created in a18463signalled state. Events are now created in an unsignalled state.1846418465The internal object cache is now purged after table loading and18466initialization to reduce the use of dynamic kernel memory -- on18467the assumption that object use is greatest during the parse phase18468of the entire table (versus the run-time use of individual control18469methods.)1847018471ACPI 2.0 variable-length packages are now fully operational.1847218473Code and Data Size: Code and Data optimizations have permitted new18474feature development with an actual reduction in the library size.18475Current core subsystem library sizes are shown below. These are18476the code and data sizes for the acpica.lib produced by the18477Microsoft Visual C++ 6.0 compiler, and these values do not include18478any ACPI driver or OSPM code. The debug version of the code18479includes the debug output trace mechanism and has a larger code18480and data size. Note that these values will vary depending on the18481efficiency of the compiler and the compiler options used during18482generation.1848318484Previous Release (11_09_01):18485Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total18486Debug Version: 134.5K Code, 55.4K Data, 189.9K Total1848718488Current Release:18489Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total18490Debug Version: 135.1K Code, 55.4K Data, 190.5K Total18491184922) Linux:1849318494Enhanced the ACPI boot-time initialization code to allow the use18495of Local APIC tables for processor enumeration on IA-32, and to18496pave the way for a fully MPS-free boot (on SMP systems) in the18497near future. This functionality replaces18498arch/i386/kernel/acpitables.c, which was introduced in an earlier184992.4.15-preX release. To enable this feature you must add18500"acpi_boot=on" to the kernel command line -- see the help entry18501for CONFIG_ACPI_BOOT for more information. An IA-64 release is in18502the works...1850318504Restructured the configuration options to allow boot-time table18505parsing support without inclusion of the ACPI Interpreter (and18506other) code.1850718508NOTE: This release does not include fixes for the reported events,18509power-down, and thermal passive cooling issues (coming soon).18510185113) ASL Compiler:1851218513Added additional typechecking for Fields within restricted access18514Operation Regions. All fields within EC and CMOS regions must be18515declared with ByteAcc. All fields within SMBus regions must be18516declared with the BufferAcc access type.1851718518Fixed a problem where the listing file output of control methods18519no longer interleaved the actual AML code with the ASL source18520code.1852118522185231852418525----------------------------------------18526Summary of changes for this label: 11_09_0118527185281) ACPI CA Core Subsystem:1852918530Implemented ACPI 2.0-defined support for writes to fields with a18531Buffer, String, or Integer source operand that is smaller than the18532target field. In these cases, the source operand is zero-extended18533to fill the target field.1853418535Fixed a problem where a Field starting bit offset (within the18536parent operation region) was calculated incorrectly if the1853718538alignment of the field differed from the access width. This18539affected CreateWordField, CreateDwordField, CreateQwordField, and18540possibly other fields that use the "AccessAny" keyword.1854118542Fixed a problem introduced in the 11_02_01 release where indirect18543stores through method arguments did not operate correctly.18544185452) Linux:1854618547Implemented boot-time ACPI table parsing support18548(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code18549facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than18550legacy BIOS interfaces (e.g. MPS) for the configuration of system18551processors, memory, and interrupts during setup_arch(). Note that18552this patch does not include the required architecture-specific18553changes required to apply this information -- subsequent patches18554will be posted for both IA32 and IA64 to achieve this.1855518556Added low-level sleep support for IA32 platforms, courtesy of Pat18557Mochel. This allows IA32 systems to transition to/from various18558sleeping states (e.g. S1, S3), although the lack of a centralized18559driver model and power-manageable drivers will prevent its18560(successful) use on most systems.1856118562Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"18563submenu, unified IA32 and IA64 options, added new "Boot using ACPI18564tables" option, etc.1856518566Increased the default timeout for the EC driver from 1ms to 10ms18567(1000 cycles of 10us) to try to address AE_TIME errors during EC18568transactions.1856918570----------------------------------------18571Summary of changes for this label: 11_02_0118572185731) ACPI CA Core Subsystem:1857418575ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access18576(QWordAcc keyword). All ACPI 2.0 64-bit support is now18577implemented.1857818579OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required18580changes to support ACPI 2.0 Qword field access. Read/Write18581PciConfiguration(), Read/Write Memory(), and Read/Write Port() now18582accept an ACPI_INTEGER (64 bits) as the value parameter. Also,18583the value parameter for the address space handler interface is now18584an ACPI_INTEGER. OSL implementations of these interfaces must now18585handle the case where the Width parameter is 64.1858618587Index Fields: Fixed a problem where unaligned bit assembly and18588disassembly for IndexFields was not supported correctly.1858918590Index and Bank Fields: Nested Index and Bank Fields are now18591supported. During field access, a check is performed to ensure18592that the value written to an Index or Bank register is not out of18593the range of the register. The Index (or Bank) register is18594written before each access to the field data. Future support will18595include allowing individual IndexFields to be wider than the18596DataRegister width.1859718598Fields: Fixed a problem where the AML interpreter was incorrectly18599attempting to write beyond the end of a Field/OpRegion. This was18600a boundary case that occurred when a DWORD field was written to a18601BYTE access OpRegion, forcing multiple writes and causing the18602interpreter to write one datum too many.1860318604Fields: Fixed a problem with Field/OpRegion access where the18605starting bit address of a field was incorrectly calculated if the18606current access type was wider than a byte (WordAcc, DwordAcc, or18607QwordAcc).1860818609Fields: Fixed a problem where forward references to individual18610FieldUnits (individual Field names within a Field definition) were18611not resolved during the AML table load.1861218613Fields: Fixed a problem where forward references from a Field18614definition to the parent Operation Region definition were not18615resolved during the AML table load.1861618617Fields: Duplicate FieldUnit names within a scope are now detected18618during AML table load.1861918620Acpi Interfaces: Fixed a problem where the AcpiGetName() interface18621returned an incorrect name for the root node.1862218623Code and Data Size: Code and Data optimizations have permitted new18624feature development with an actual reduction in the library size.18625Current core subsystem library sizes are shown below. These are18626the code and data sizes for the acpica.lib produced by the18627Microsoft Visual C++ 6.0 compiler, and these values do not include18628any ACPI driver or OSPM code. The debug version of the code18629includes the debug output trace mechanism and has a larger code18630and data size. Note that these values will vary depending on the18631efficiency of the compiler and the compiler options used during18632generation.1863318634Previous Release (10_18_01):18635Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total18636Debug Version: 136.7K Code, 57.4K Data, 194.2K Total1863718638Current Release:18639Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total18640Debug Version: 134.5K Code, 55.4K Data, 189.9K Total18641186422) Linux:1864318644Improved /proc processor output (Pavel Machek) Re-added18645MODULE_LICENSE("GPL") to all modules.18646186473) ASL Compiler version X2030:1864818649Duplicate FieldUnit names within a scope are now detected and18650flagged as errors.18651186524) Documentation:1865318654Programmer Reference updated to reflect OSL and address space18655handler interface changes described above.1865618657----------------------------------------18658Summary of changes for this label: 10_18_011865918660ACPI CA Core Subsystem:1866118662Fixed a problem with the internal object reference count mechanism18663that occasionally caused premature object deletion. This resolves18664all of the outstanding problem reports where an object is deleted18665in the middle of an interpreter evaluation. Although this problem18666only showed up in rather obscure cases, the solution to the18667problem involved an adjustment of all reference counts involving18668objects attached to namespace nodes.1866918670Fixed a problem with Field support in the interpreter where18671writing to an aligned field whose length is an exact multiple (218672or greater) of the field access granularity would cause an attempt18673to write beyond the end of the field.1867418675The top level AML opcode execution functions within the18676interpreter have been renamed with a more meaningful and18677consistent naming convention. The modules exmonad.c and18678exdyadic.c were eliminated. New modules are exoparg1.c,18679exoparg2.c, exoparg3.c, and exoparg6.c.1868018681Support for the ACPI 2.0 "Mid" ASL operator has been implemented.1868218683Fixed a problem where the AML debugger was causing some internal18684objects to not be deleted during subsystem termination.1868518686Fixed a problem with the external AcpiEvaluateObject interface18687where the subsystem would fault if the named object to be18688evaluated referred to a constant such as Zero, Ones, etc.1868918690Fixed a problem with IndexFields and BankFields where the18691subsystem would fault if the index, data, or bank registers were18692not defined in the same scope as the field itself.1869318694Added printf format string checking for compilers that support18695this feature. Corrected more than 50 instances of issues with18696format specifiers within invocations of ACPI_DEBUG_PRINT18697throughout the core subsystem code.1869818699The ASL "Revision" operator now returns the ACPI support level18700implemented in the core - the value "2" since the ACPI 2.0 support18701is more than 50% implemented.1870218703Enhanced the output of the AML debugger "dump namespace" command18704to output in a more human-readable form.1870518706Current core subsystem library code sizes are shown below. These1870718708are the code and data sizes for the acpica.lib produced by the18709Microsoft Visual C++ 6.0 compiler, and these values do not include18710any ACPI driver or OSPM code. The debug version of the code18711includes the full debug trace mechanism -- leading to a much1871218713larger code and data size. Note that these values will vary18714depending on the efficiency of the compiler and the compiler18715options used during generation.1871618717Previous Label (09_20_01):18718Non-Debug Version: 65K Code, 5K Data, 70K Total18719Debug Version: 138K Code, 58K Data, 196K Total1872018721This Label:1872218723Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total18724Debug Version: 136.7K Code, 57.4K Data, 194.2K Total1872518726Linux:1872718728Implemented a "Bad BIOS Blacklist" to track machines that have18729known ASL/AML problems.1873018731Enhanced the /proc interface for the thermal zone driver and added18732support for _HOT (the critical suspend trip point). The 'info'18733file now includes threshold/policy information, and allows setting18734of _SCP (cooling preference) and _TZP (polling frequency) values18735to the 'info' file. Examples: "echo tzp=5 > info" sets the polling18736frequency to 5 seconds, and "echo scp=1 > info" sets the cooling18737preference to the passive/quiet mode (if supported by the ASL).1873818739Implemented a workaround for a gcc bug that resuted in an OOPs18740when loading the control method battery driver.1874118742----------------------------------------18743Summary of changes for this label: 09_20_011874418745ACPI CA Core Subsystem:1874618747The AcpiEnableEvent and AcpiDisableEvent interfaces have been18748modified to allow individual GPE levels to be flagged as wake-18749enabled (i.e., these GPEs are to remain enabled when the platform18750sleeps.)1875118752The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now18753support wake-enabled GPEs. This means that upon entering the18754sleep state, all GPEs that are not wake-enabled are disabled.18755When leaving the sleep state, these GPEs are re-enabled.1875618757A local double-precision divide/modulo module has been added to18758enhance portability to OS kernels where a 64-bit math library is18759not available. The new module is "utmath.c".1876018761Several optimizations have been made to reduce the use of CPU18762stack. Originally over 2K, the maximum stack usage is now below187632K at 1860 bytes (1.82k)1876418765Fixed a problem with the AcpiGetFirmwareTable interface where the18766root table pointer was not mapped into a logical address properly.1876718768Fixed a problem where a NULL pointer was being dereferenced in the18769interpreter code for the ASL Notify operator.1877018771Fixed a problem where the use of the ASL Revision operator18772returned an error. This operator now returns the current version18773of the ACPI CA core subsystem.1877418775Fixed a problem where objects passed as control method parameters18776to AcpiEvaluateObject were always deleted at method termination.18777However, these objects may end up being stored into the namespace18778by the called method. The object reference count mechanism was18779applied to these objects instead of a force delete.1878018781Fixed a problem where static strings or buffers (contained in the18782AML code) that are declared as package elements within the ASL18783code could cause a fault because the interpreter would attempt to18784delete them. These objects are now marked with the "static18785object" flag to prevent any attempt to delete them.1878618787Implemented an interpreter optimization to use operands directly18788from the state object instead of extracting the operands to local18789variables. This reduces stack use and code size, and improves18790performance.1879118792The module exxface.c was eliminated as it was an unnecessary extra18793layer of code.1879418795Current core subsystem library code sizes are shown below. These18796are the code and data sizes for the acpica.lib produced by the18797Microsoft Visual C++ 6.0 compiler, and these values do not include18798any ACPI driver or OSPM code. The debug version of the code18799includes the full debug trace mechanism -- leading to a much18800larger code and data size. Note that these values will vary18801depending on the efficiency of the compiler and the compiler18802options used during generation.1880318804Non-Debug Version: 65K Code, 5K Data, 70K Total18805(Previously 69K) Debug Version: 138K Code, 58K Data, 196K18806Total (Previously 195K)1880718808Linux:1880918810Support for ACPI 2.0 64-bit integers has been added. All ACPI18811Integer objects are now 64 bits wide1881218813All Acpi data types and structures are now in lower case. Only18814Acpi macros are upper case for differentiation.1881518816Documentation:1881718818Changes to the external interfaces as described above.1881918820----------------------------------------18821Summary of changes for this label: 08_31_011882218823ACPI CA Core Subsystem:1882418825A bug with interpreter implementation of the ASL Divide operator18826was found and fixed. The implicit function return value (not the18827explicit store operands) was returning the remainder instead of18828the quotient. This was a longstanding bug and it fixes several18829known outstanding issues on various platforms.1883018831The ACPI_DEBUG_PRINT and function trace entry/exit macros have18832been further optimized for size. There are 700 invocations of the18833DEBUG_PRINT macro alone, so each optimization reduces the size of18834the debug version of the subsystem significantly.1883518836A stack trace mechanism has been implemented. The maximum stack18837usage is about 2K on 32-bit platforms. The debugger command "stat18838stack" will display the current maximum stack usage.1883918840All public symbols and global variables within the subsystem are18841now prefixed with the string "Acpi". This keeps all of the18842symbols grouped together in a kernel map, and avoids conflicts18843with other kernel subsystems.1884418845Most of the internal fixed lookup tables have been moved into the18846code segment via the const operator.1884718848Several enhancements have been made to the interpreter to both18849reduce the code size and improve performance.1885018851Current core subsystem library code sizes are shown below. These18852are the code and data sizes for the acpica.lib produced by the18853Microsoft Visual C++ 6.0 compiler, and these values do not include18854any ACPI driver or OSPM code. The debug version of the code18855includes the full debug trace mechanism which contains over 70018856invocations of the DEBUG_PRINT macro, 500 function entry macro18857invocations, and over 900 function exit macro invocations --18858leading to a much larger code and data size. Note that these18859values will vary depending on the efficiency of the compiler and18860the compiler options used during generation.1886118862Non-Debug Version: 64K Code, 5K Data, 69K Total18863Debug Version: 137K Code, 58K Data, 195K Total1886418865Linux:1886618867Implemented wbinvd() macro, pending a kernel-wide definition.1886818869Fixed /proc/acpi/event to handle poll() and short reads.1887018871ASL Compiler, version X2026:1887218873Fixed a problem introduced in the previous label where the AML1887418875code emitted for package objects produced packages with zero18876length.1887718878----------------------------------------18879Summary of changes for this label: 08_16_011888018881ACPI CA Core Subsystem:1888218883The following ACPI 2.0 ASL operators have been implemented in the18884AML interpreter (These are already supported by the Intel ASL18885compiler): ToDecimalString, ToHexString, ToString, ToInteger, and18886ToBuffer. Support for 64-bit AML constants is implemented in the18887AML parser, debugger, and disassembler.1888818889The internal memory tracking mechanism (leak detection code) has18890been upgraded to reduce the memory overhead (a separate tracking18891block is no longer allocated for each memory allocation), and now18892supports all of the internal object caches.1889318894The data structures and code for the internal object caches have18895been coelesced and optimized so that there is a single cache and18896memory list data structure and a single group of functions that18897implement generic cache management. This has reduced the code18898size in both the debug and release versions of the subsystem.1889918900The DEBUG_PRINT macro(s) have been optimized for size and replaced18901by ACPI_DEBUG_PRINT. The syntax for this macro is slightly18902different, because it generates a single call to an internal18903function. This results in a savings of about 90 bytes per18904invocation, resulting in an overall code and data savings of about1890516% in the debug version of the subsystem.1890618907Linux:1890818909Fixed C3 disk corruption problems and re-enabled C3 on supporting18910machines.1891118912Integrated low-level sleep code by Patrick Mochel.1891318914Further tweaked source code Linuxization.1891518916Other minor fixes.1891718918ASL Compiler:1891918920Support for ACPI 2.0 variable length packages is fixed/completed.1892118922Fixed a problem where the optional length parameter for the ACPI189232.0 ToString operator.1892418925Fixed multiple extraneous error messages when a syntax error is18926detected within the declaration line of a control method.1892718928----------------------------------------18929Summary of changes for this label: 07_17_011893018931ACPI CA Core Subsystem:1893218933Added a new interface named AcpiGetFirmwareTable to obtain any18934ACPI table via the ACPI signature. The interface can be called at18935any time during kernel initialization, even before the kernel18936virtual memory manager is initialized and paging is enabled. This18937allows kernel subsystems to obtain ACPI tables very early, even18938before the ACPI CA subsystem is initialized.1893918940Fixed a problem where Fields defined with the AnyAcc attribute18941could be resolved to the incorrect address under the following18942conditions: 1) the field width is larger than 8 bits and 2) the18943parent operation region is not defined on a DWORD boundary.1894418945Fixed a problem where the interpreter is not being locked during18946namespace initialization (during execution of the _INI control18947methods), causing an error when an attempt is made to release it18948later.1894918950ACPI 2.0 support in the AML Interpreter has begun and will be18951ongoing throughout the rest of this year. In this label, The Mod18952operator is implemented.1895318954Added a new data type to contain full PCI addresses named18955ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,18956and Function values.1895718958Linux:1895918960Enhanced the Linux version of the source code to change most18961capitalized ACPI type names to lowercase. For example, all18962instances of ACPI_STATUS are changed to acpi_status. This will18963result in a large diff, but the change is strictly cosmetic and18964aligns the CA code closer to the Linux coding standard.1896518966OSL Interfaces:1896718968The interfaces to the PCI configuration space have been changed to18969add the PCI Segment number and to split the single 32-bit combined18970DeviceFunction field into two 16-bit fields. This was18971accomplished by moving the four values that define an address in18972PCI configuration space (segment, bus, device, and function) to18973the new ACPI_PCI_ID structure.1897418975The changes to the PCI configuration space interfaces led to a18976reexamination of the complete set of address space access18977interfaces for PCI, I/O, and Memory. The previously existing 1818978interfaces have proven difficult to maintain (any small change18979must be propagated across at least 6 interfaces) and do not easily18980allow for future expansion to 64 bits if necessary. Also, on some18981systems, it would not be appropriate to demultiplex the access18982width (8, 16, 32,or 64) before calling the OSL if the18983corresponding native OS interfaces contain a similar access width18984parameter. For these reasons, the 18 address space interfaces18985have been replaced by these 6 new ones:1898618987AcpiOsReadPciConfiguration18988AcpiOsWritePciConfiguration18989AcpiOsReadMemory18990AcpiOsWriteMemory18991AcpiOsReadPort18992AcpiOsWritePort1899318994Added a new interface named AcpiOsGetRootPointer to allow the OSL18995to perform the platform and/or OS-specific actions necessary to18996obtain the ACPI RSDP table pointer. On IA-32 platforms, this18997interface will simply call down to the CA core to perform the low-18998memory search for the table. On IA-64, the RSDP is obtained from18999EFI. Migrating this interface to the OSL allows the CA core to1900019001remain OS and platform independent.1900219003Added a new interface named AcpiOsSignal to provide a generic19004"function code and pointer" interface for various miscellaneous19005signals and notifications that must be made to the host OS. The19006first such signals are intended to support the ASL Fatal and19007Breakpoint operators. In the latter case, the AcpiOsBreakpoint19008interface has been obsoleted.1900919010The definition of the AcpiFormatException interface has been19011changed to simplify its use. The caller no longer must supply a19012buffer to the call; A pointer to a const string is now returned19013directly. This allows the call to be easily used in printf19014statements, etc. since the caller does not have to manage a local19015buffer.190161901719018ASL Compiler, Version X2025:1901919020The ACPI 2.0 Switch/Case/Default operators have been implemented19021and are fully functional. They will work with all ACPI 1.019022interpreters, since the operators are simply translated to If/Else19023pairs.1902419025The ACPI 2.0 ElseIf operator is implemented and will also work19026with 1.0 interpreters, for the same reason.1902719028Implemented support for ACPI 2.0 variable-length packages. These19029packages have a separate opcode, and their size is determined by19030the interpreter at run-time.1903119032Documentation The ACPI CA Programmer Reference has been updated to19033reflect the new interfaces and changes to existing interfaces.1903419035------------------------------------------19036Summary of changes for this label: 06_15_011903719038ACPI CA Core Subsystem:1903919040Fixed a problem where a DWORD-accessed field within a Buffer19041object would get its byte address inadvertently rounded down to19042the nearest DWORD. Buffers are always Byte-accessible.1904319044ASL Compiler, version X2024:1904519046Fixed a problem where the Switch() operator would either fault or19047hang the compiler. Note however, that the AML code for this ACPI190482.0 operator is not yet implemented.1904919050Compiler uses the new AcpiOsGetTimer interface to obtain compile19051timings.1905219053Implementation of the CreateField operator automatically converts19054a reference to a named field within a resource descriptor from a19055byte offset to a bit offset if required.1905619057Added some missing named fields from the resource descriptor19058support. These are the names that are automatically created by the19059compiler to reference fields within a descriptor. They are only19060valid at compile time and are not passed through to the AML19061interpreter.1906219063Resource descriptor named fields are now typed as Integers and19064subject to compile-time typechecking when used in expressions.1906519066------------------------------------------19067Summary of changes for this label: 05_18_011906819069ACPI CA Core Subsystem:1907019071Fixed a couple of problems in the Field support code where bits19072from adjacent fields could be returned along with the proper field19073bits. Restructured the field support code to improve performance,19074readability and maintainability.1907519076New DEBUG_PRINTP macro automatically inserts the procedure name19077into the output, saving hundreds of copies of procedure name19078strings within the source, shrinking the memory footprint of the19079debug version of the core subsystem.1908019081Source Code Structure:1908219083The source code directory tree was restructured to reflect the19084current organization of the component architecture. Some files19085and directories have been moved and/or renamed.1908619087Linux:1908819089Fixed leaking kacpidpc processes.1909019091Fixed queueing event data even when /proc/acpi/event is not19092opened.1909319094ASL Compiler, version X2020:1909519096Memory allocation performance enhancement - over 24X compile time19097improvement on large ASL files. Parse nodes and namestring19098buffers are now allocated from a large internal compiler buffer.1909919100The temporary .SRC file is deleted unless the "-s" option is19101specified1910219103The "-d" debug output option now sends all output to the .DBG file19104instead of the console.1910519106"External" second parameter is now optional1910719108"ElseIf" syntax now properly allows the predicate1910919110Last operand to "Load" now recognized as a Target operand1911119112Debug object can now be used anywhere as a normal object.1911319114ResourceTemplate now returns an object of type BUFFER1911519116EISAID now returns an object of type INTEGER1911719118"Index" now works with a STRING operand1911919120"LoadTable" now accepts optional parameters1912119122"ToString" length parameter is now optional1912319124"Interrupt (ResourceType," parse error fixed.1912519126"Register" with a user-defined region space parse error fixed1912719128Escaped backslash at the end of a string ("\\") scan/parse error19129fixed1913019131"Revision" is now an object of type INTEGER.19132191331913419135------------------------------------------19136Summary of changes for this label: 05_02_011913719138Linux:1913919140/proc/acpi/event now blocks properly.1914119142Removed /proc/sys/acpi. You can still dump your DSDT from19143/proc/acpi/dsdt.1914419145ACPI CA Core Subsystem:1914619147Fixed a problem introduced in the previous label where some of the19148"small" resource descriptor types were not recognized.1914919150Improved error messages for the case where an ASL Field is outside19151the range of the parent operation region.1915219153ASL Compiler, version X2018:191541915519156Added error detection for ASL Fields that extend beyond the length19157of the parent operation region (only if the length of the region19158is known at compile time.) This includes fields that have a19159minimum access width that is smaller than the parent region, and19160individual field units that are partially or entirely beyond the19161extent of the parent.19162191631916419165------------------------------------------19166Summary of changes for this label: 04_27_011916719168ACPI CA Core Subsystem:1916919170Fixed a problem where the namespace mutex could be released at the19171wrong time during execution of AcpiRemoveAddressSpaceHandler.1917219173Added optional thread ID output for debug traces, to simplify19174debugging of multiple threads. Added context switch notification19175when the debug code realizes that a different thread is now19176executing ACPI code.1917719178Some additional external data types have been prefixed with the19179string "ACPI_" for consistency. This may effect existing code.19180The data types affected are the external callback typedefs - e.g.,1918119182WALK_CALLBACK becomes ACPI_WALK_CALLBACK.1918319184Linux:1918519186Fixed an issue with the OSL semaphore implementation where a19187thread was waking up with an error from receiving a SIGCHLD19188signal.1918919190Linux version of ACPI CA now uses the system C library for string19191manipulation routines instead of a local implementation.1919219193Cleaned up comments and removed TBDs.1919419195ASL Compiler, version X2017:1919619197Enhanced error detection and reporting for all file I/O19198operations.1919919200Documentation:1920119202Programmer Reference updated to version 1.06.19203192041920519206------------------------------------------19207Summary of changes for this label: 04_13_011920819209ACPI CA Core Subsystem:1921019211Restructured support for BufferFields and RegionFields.19212BankFields support is now fully operational. All known 32-bit19213limitations on field sizes have been removed. Both BufferFields19214and (Operation) RegionFields are now supported by the same field19215management code.1921619217Resource support now supports QWORD address and IO resources. The1921816/32/64 bit address structures and the Extended IRQ structure19219have been changed to properly handle Source Resource strings.1922019221A ThreadId of -1 is now used to indicate a "mutex not acquired"19222condition internally and must never be returned by AcpiOsThreadId.19223This reserved value was changed from 0 since Unix systems allow a19224thread ID of 0.1922519226Linux:1922719228Driver code reorganized to enhance portability1922919230Added a kernel configuration option to control ACPI_DEBUG1923119232Fixed the EC driver to honor _GLK.1923319234ASL Compiler, version X2016:1923519236Fixed support for the "FixedHw" keyword. Previously, the FixedHw19237address space was set to 0, not 0x7f as it should be.1923819239------------------------------------------19240Summary of changes for this label: 03_13_011924119242ACPI CA Core Subsystem:1924319244During ACPI initialization, the _SB_._INI method is now run if19245present.1924619247Notify handler fix - notifies are deferred until the parent method19248completes execution. This fixes the "mutex already acquired"19249issue seen occasionally.1925019251Part of the "implicit conversion" rules in ACPI 2.0 have been19252found to cause compatibility problems with existing ASL/AML. The19253convert "result-to-target-type" implementation has been removed19254for stores to method Args and Locals. Source operand conversion19255is still fully implemented. Possible changes to ACPI 2.019256specification pending.1925719258Fix to AcpiRsCalculatePciRoutingTableLength to return correct19259length.1926019261Fix for compiler warnings for 64-bit compiles.1926219263Linux:1926419265/proc output aligned for easier parsing.1926619267Release-version compile problem fixed.1926819269New kernel configuration options documented in Configure.help.1927019271IBM 600E - Fixed Sleep button may generate "Invalid <NULL>19272context" message.1927319274OSPM:1927519276Power resource driver integrated with bus manager.1927719278Fixed kernel fault during active cooling for thermal zones.1927919280Source Code:1928119282The source code tree has been restructured.19283192841928519286------------------------------------------19287Summary of changes for this label: 03_02_011928819289Linux OS Services Layer (OSL):1929019291Major revision of all Linux-specific code.1929219293Modularized all ACPI-specific drivers.1929419295Added new thermal zone and power resource drivers.1929619297Revamped /proc interface (new functionality is under /proc/acpi).1929819299New kernel configuration options.1930019301Linux known issues:1930219303New kernel configuration options not documented in Configure.help19304yet.193051930619307Module dependencies not currently implemented. If used, they19308should be loaded in this order: busmgr, power, ec, system,19309processor, battery, ac_adapter, button, thermal.1931019311Modules will not load if CONFIG_MODVERSION is set.1931219313IBM 600E - entering S5 may reboot instead of shutting down.1931419315IBM 600E - Sleep button may generate "Invalid <NULL> context"19316message.1931719318Some systems may fail with "execution mutex already acquired"19319message.1932019321ACPI CA Core Subsystem:1932219323Added a new OSL Interface, AcpiOsGetThreadId. This was required19324for the deadlock detection code. Defined to return a non-zero, 32-19325bit thread ID for the currently executing thread. May be a non-19326zero constant integer on single-thread systems.1932719328Implemented deadlock detection for internal subsystem mutexes. We19329may add conditional compilation for this code (debug only) later.1933019331ASL/AML Mutex object semantics are now fully supported. This19332includes multiple acquires/releases by owner and support for the1933319334Mutex SyncLevel parameter.1933519336A new "Force Release" mechanism automatically frees all ASL19337Mutexes that have been acquired but not released when a thread19338exits the interpreter. This forces conformance to the ACPI spec19339("All mutexes must be released when an invocation exits") and19340prevents deadlocked ASL threads. This mechanism can be expanded19341(later) to monitor other resource acquisitions if OEM ASL code19342continues to misbehave (which it will).1934319344Several new ACPI exception codes have been added for the Mutex19345support.1934619347Recursive method calls are now allowed and supported (the ACPI19348spec does in fact allow recursive method calls.) The number of19349recursive calls is subject to the restrictions imposed by the19350SERIALIZED method keyword and SyncLevel (ACPI 2.0) method19351parameter.1935219353Implemented support for the SyncLevel parameter for control19354methods (ACPI 2.0 feature)1935519356Fixed a deadlock problem when multiple threads attempted to use19357the interpreter.1935819359Fixed a problem where the string length of a String package19360element was not always set in a package returned from19361AcpiEvaluateObject.1936219363Fixed a problem where the length of a String package element was19364not always included in the length of the overall package returned19365from AcpiEvaluateObject.1936619367Added external interfaces (Acpi*) to the ACPI debug memory19368manager. This manager keeps a list of all outstanding19369allocations, and can therefore detect memory leaks and attempts to19370free memory blocks more than once. Useful for code such as the19371power manager, etc. May not be appropriate for device drivers.19372Performance with the debug code enabled is slow.1937319374The ACPI Global Lock is now an optional hardware element.1937519376ASL Compiler Version X2015:1937719378Integrated changes to allow the compiler to be generated on19379multiple platforms.1938019381Linux makefile added to generate the compiler on Linux1938219383Source Code:1938419385All platform-specific headers have been moved to their own19386subdirectory, Include/Platform.1938719388New source file added, Interpreter/ammutex.c1938919390New header file, Include/acstruct.h1939119392Documentation:1939319394The programmer reference has been updated for the following new19395interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree1939619397------------------------------------------19398Summary of changes for this label: 02_08_011939919400Core ACPI CA Subsystem: Fixed a problem where an error was19401incorrectly returned if the return resource buffer was larger than19402the actual data (in the resource interfaces).1940319404References to named objects within packages are resolved to the1940519406full pathname string before packages are returned directly (via19407the AcpiEvaluateObject interface) or indirectly via the resource19408interfaces.1940919410Linux OS Services Layer (OSL):1941119412Improved /proc battery interface.194131941419415Added C-state debugging output and other miscellaneous fixes.1941619417ASL Compiler Version X2014:1941819419All defined method arguments can now be used as local variables,19420including the ones that are not actually passed in as parameters.19421The compiler tracks initialization of the arguments and issues an19422exception if they are used without prior assignment (just like19423locals).1942419425The -o option now specifies a filename prefix that is used for all19426output files, including the AML output file. Otherwise, the19427default behavior is as follows: 1) the AML goes to the file19428specified in the DSDT. 2) all other output files use the input19429source filename as the base.1943019431------------------------------------------19432Summary of changes for this label: 01_25_011943319434Core ACPI CA Subsystem: Restructured the implementation of object19435store support within the interpreter. This includes support for19436the Store operator as well as any ASL operators that include a19437target operand.1943819439Partially implemented support for Implicit Result-to-Target19440conversion. This is when a result object is converted on the fly19441to the type of an existing target object. Completion of this19442support is pending further analysis of the ACPI specification19443concerning this matter.1944419445CPU-specific code has been removed from the subsystem (hardware19446directory).1944719448New Power Management Timer functions added1944919450Linux OS Services Layer (OSL): Moved system state transition code19451to the core, fixed it, and modified Linux OSL accordingly.1945219453Fixed C2 and C3 latency calculations.194541945519456We no longer use the compilation date for the version message on19457initialization, but retrieve the version from AcpiGetSystemInfo().1945819459Incorporated for fix Sony VAIO machines.1946019461Documentation: The Programmer Reference has been updated and19462reformatted.194631946419465ASL Compiler: Version X2013: Fixed a problem where the line19466numbering and error reporting could get out of sync in the19467presence of multiple include files.1946819469------------------------------------------19470Summary of changes for this label: 01_15_011947119472Core ACPI CA Subsystem:1947319474Implemented support for type conversions in the execution of the19475ASL Concatenate operator (The second operand is converted to19476match the type of the first operand before concatenation.)1947719478Support for implicit source operand conversion is partially19479implemented. The ASL source operand types Integer, Buffer, and19480String are freely interchangeable for most ASL operators and are19481converted by the interpreter on the fly as required. Implicit19482Target operand conversion (where the result is converted to the19483target type before storing) is not yet implemented.1948419485Support for 32-bit and 64-bit BCD integers is implemented.1948619487Problem fixed where a field read on an aligned field could cause a19488read past the end of the field.1948919490New exception, AE_AML_NO_RETURN_VALUE, is returned when a method19491does not return a value, but the caller expects one. (The ASL19492compiler flags this as a warning.)1949319494ASL Compiler:1949519496Version X2011:194971. Static typechecking of all operands is implemented. This19498prevents the use of invalid objects (such as using a Package where19499an Integer is required) at compile time instead of at interpreter19500run-time.195012. The ASL source line is printed with ALL errors and warnings.195023. Bug fix for source EOF without final linefeed.195034. Debug option is split into a parse trace and a namespace trace.195045. Namespace output option (-n) includes initial values for19505integers and strings.195066. Parse-only option added for quick syntax checking.195077. Compiler checks for duplicate ACPI name declarations1950819509Version X2012:195101. Relaxed typechecking to allow interchangeability between19511strings, integers, and buffers. These types are now converted by19512the interpreter at runtime.195132. Compiler reports time taken by each internal subsystem in the19514debug output file.195151951619517------------------------------------------19518Summary of changes for this label: 12_14_001951919520ASL Compiler:1952119522This is the first official release of the compiler. Since the19523compiler requires elements of the Core Subsystem, this label19524synchronizes everything.1952519526------------------------------------------19527Summary of changes for this label: 12_08_00195281952919530Fixed a problem where named references within the ASL definition19531of both OperationRegions and CreateXXXFields did not work19532properly. The symptom was an AE_AML_OPERAND_TYPE during19533initialization of the region/field. This is similar (but not19534related internally) to the problem that was fixed in the last19535label.1953619537Implemented both 32-bit and 64-bit support for the BCD ASL19538functions ToBCD and FromBCD.1953919540Updated all legal headers to include "2000" in the copyright19541years.1954219543------------------------------------------19544Summary of changes for this label: 12_01_001954519546Fixed a problem where method invocations within the ASL definition19547of both OperationRegions and CreateXXXFields did not work19548properly. The symptom was an AE_AML_OPERAND_TYPE during19549initialization of the region/field:1955019551nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments19552[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s)19553(0x3005)1955419555Fixed a problem where operators with more than one nested19556subexpression would fail. The symptoms were varied, by mostly19557AE_AML_OPERAND_TYPE errors. This was actually a rather serious19558problem that has gone unnoticed until now.1955919560Subtract (Add (1,2), Multiply (3,4))1956119562Fixed a problem where AcpiGetHandle didn't quite get fixed in the19563previous build (The prefix part of a relative path was handled19564incorrectly).1956519566Fixed a problem where Operation Region initialization failed if19567the operation region name was a "namepath" instead of a simple19568"nameseg". Symptom was an AE_NO_OPERAND error.1956919570Fixed a problem where an assignment to a local variable via the19571indirect RefOf mechanism only worked for the first such19572assignment. Subsequent assignments were ignored.1957319574------------------------------------------19575Summary of changes for this label: 11_15_001957619577ACPI 2.0 table support with backwards support for ACPI 1.0 and the195780.71 extensions. Note: although we can read ACPI 2.0 BIOS tables,19579the AML interpreter does NOT have support for the new 2.0 ASL19580grammar terms at this time.1958119582All ACPI hardware access is via the GAS structures in the ACPI 2.019583FADT.1958419585All physical memory addresses across all platforms are now 64 bits19586wide. Logical address width remains dependent on the platform19587(i.e., "void *").1958819589AcpiOsMapMemory interface changed to a 64-bit physical address.1959019591The AML interpreter integer size is now 64 bits, as per the ACPI195922.0 specification.1959319594For backwards compatibility with ACPI 1.0, ACPI tables with a19595revision number less than 2 use 32-bit integers only.1959619597Fixed a problem where the evaluation of OpRegion operands did not19598always resolve them to numbers properly.1959919600------------------------------------------19601Summary of changes for this label: 10_20_001960219603Fix for CBN_._STA issue. This fix will allow correct access to19604CBN_ OpRegions when the _STA returns 0x8.1960519606Support to convert ACPI constants (Ones, Zeros, One) to actual19607values before a package object is returned1960819609Fix for method call as predicate to if/while construct causing19610incorrect if/while behavior1961119612Fix for Else block package lengths sometimes calculated wrong (if19613block > 63 bytes)1961419615Fix for Processor object length field, was always zero1961619617Table load abort if FACP sanity check fails1961819619Fix for problem with Scope(name) if name already exists1962019621Warning emitted if a named object referenced cannot be found19622(resolved) during method execution.196231962419625196261962719628------------------------------------------19629Summary of changes for this label: 9_29_001963019631New table initialization interfaces: AcpiInitializeSubsystem no19632longer has any parameters AcpiFindRootPointer - Find the RSDP (if19633necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-19634>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by19635AcpiLoadTables1963619637Note: These interface changes require changes to all existing OSDs1963819639The PCI_Config default address space handler is always installed19640at the root namespace object.1964119642-------------------------------------------19643Summary of changes for this label: 09_15_001964419645The new initialization architecture is implemented. New19646interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)19647AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace1964819649(Namespace is automatically loaded when a table is loaded)1965019651The ACPI_OPERAND_OBJECT has been optimized to shrink its size from1965252 bytes to 32 bytes. There is usually one of these for every19653namespace object, so the memory savings is significant.1965419655Implemented just-in-time evaluation of the CreateField operators.1965619657Bug fixes for IA-64 support have been integrated.1965819659Additional code review comments have been implemented1966019661The so-called "third pass parse" has been replaced by a final walk19662through the namespace to initialize all operation regions (address19663spaces) and fields that have not yet been initialized during the19664execution of the various _INI and REG methods.1966519666New file - namespace/nsinit.c1966719668-------------------------------------------19669Summary of changes for this label: 09_01_001967019671Namespace manager data structures have been reworked to change the19672primary object from a table to a single object. This has19673resulted in dynamic memory savings of 3X within the namespace and196742X overall in the ACPI CA subsystem.1967519676Fixed problem where the call to AcpiEvFindPciRootBuses was19677inadvertently left commented out.1967819679Reduced the warning count when generating the source with the GCC19680compiler.1968119682Revision numbers added to each module header showing the19683SourceSafe version of the file. Please refer to this version19684number when giving us feedback or comments on individual modules.1968519686The main object types within the subsystem have been renamed to19687clarify their purpose:1968819689ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT19690ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT19691ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE1969219693NOTE: no changes to the initialization sequence are included in19694this label.1969519696-------------------------------------------19697Summary of changes for this label: 08_23_001969819699Fixed problem where TerminateControlMethod was being called19700multiple times per method1970119702Fixed debugger problem where single stepping caused a semaphore to19703be oversignalled1970419705Improved performance through additional parse object caching -19706added ACPI_EXTENDED_OP type1970719708-------------------------------------------19709Summary of changes for this label: 08_10_001971019711Parser/Interpreter integration: Eliminated the creation of19712complete parse trees for ACPI tables and control methods.19713Instead, parse subtrees are created and then deleted as soon as19714they are processed (Either entered into the namespace or executed19715by the interpreter). This reduces the use of dynamic kernel19716memory significantly. (about 10X)1971719718Exception codes broken into classes and renumbered. Be sure to19719recompile all code that includes acexcep.h. Hopefully we won't19720have to renumber the codes again now that they are split into19721classes (environment, programmer, AML code, ACPI table, and19722internal).1972319724Fixed some additional alignment issues in the Resource Manager19725subcomponent1972619727Implemented semaphore tracking in the AcpiExec utility, and fixed19728several places where mutexes/semaphores were being unlocked19729without a corresponding lock operation. There are no known19730semaphore or mutex "leaks" at this time.1973119732Fixed the case where an ASL Return operator is used to return an19733unnamed package.1973419735-------------------------------------------19736Summary of changes for this label: 07_28_001973719738Fixed a problem with the way addresses were calculated in19739AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem19740manifested itself when a Field was created with WordAccess or19741DwordAccess, but the field unit defined within the Field was less1974219743than a Word or Dword.1974419745Fixed a problem in AmlDumpOperands() module's loop to pull19746operands off of the operand stack to display information. The19747problem manifested itself as a TLB error on 64-bit systems when19748accessing an operand stack with two or more operands.1974919750Fixed a problem with the PCI configuration space handlers where19751context was getting confused between accesses. This required a19752change to the generic address space handler and address space19753setup definitions. Handlers now get both a global handler context19754(this is the one passed in by the user when executing19755AcpiInstallAddressSpaceHandler() and a specific region context19756that is unique to each region (For example, the _ADR, _SEG and19757_BBN values associated with a specific region). The generic19758function definitions have changed to the following:1975919760typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,19761UINT32 Address, UINT32 BitWidth, UINT32 *Value, void19762*HandlerContext, // This used to be void *Context void19763*RegionContext); // This is an additional parameter1976419765typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE19766RegionHandle, UINT32 Function, void *HandlerContext, void19767**RegionContext); // This used to be **ReturnContext1976819769-------------------------------------------19770Summary of changes for this label: 07_21_001977119772Major file consolidation and rename. All files within the19773interpreter have been renamed as well as most header files. This19774was done to prevent collisions with existing files in the host19775OSs -- filenames such as "config.h" and "global.h" seem to be19776quite common. The VC project files have been updated. All19777makefiles will require modification.1977819779The parser/interpreter integration continues in Phase 5 with the19780implementation of a complete 2-pass parse (the AML is parsed19781twice) for each table; This avoids the construction of a huge19782parse tree and therefore reduces the amount of dynamic memory19783required by the subsystem. Greater use of the parse object cache19784means that performance is unaffected.1978519786Many comments from the two code reviews have been rolled in.1978719788The 64-bit alignment support is complete.1978919790-------------------------------------------19791Summary of changes for this label: 06_30_001979219793With a nod and a tip of the hat to the technology of yesteryear,19794we've added support in the source code for 80 column output19795devices. The code is now mostly constrained to 80 columns or19796less to support environments and editors that 1) cannot display19797or print more than 80 characters on a single line, and 2) cannot19798disable line wrapping.1979919800A major restructuring of the namespace data structure has been19801completed. The result is 1) cleaner and more19802understandable/maintainable code, and 2) a significant reduction19803in the dynamic memory requirement for each named ACPI object19804(almost half).1980519806-------------------------------------------19807Summary of changes for this label: 06_23_001980819809Linux support has been added. In order to obtain approval to get19810the ACPI CA subsystem into the Linux kernel, we've had to make19811quite a few changes to the base subsystem that will affect all19812users (all the changes are generic and OS- independent). The19813effects of these global changes have been somewhat far reaching.19814Files have been merged and/or renamed and interfaces have been19815renamed. The major changes are described below.1981619817Osd* interfaces renamed to AcpiOs* to eliminate namespace19818pollution/confusion within our target kernels. All OSD19819interfaces must be modified to match the new naming convention.1982019821Files merged across the subsystem. A number of the smaller source19822and header files have been merged to reduce the file count and19823increase the density of the existing files. There are too many19824to list here. In general, makefiles that call out individual19825files will require rebuilding.1982619827Interpreter files renamed. All interpreter files now have the19828prefix am* instead of ie* and is*.1982919830Header files renamed: The acapi.h file is now acpixf.h. The19831acpiosd.h file is now acpiosxf.h. We are removing references to19832the acronym "API" since it is somewhat windowsy. The new name is19833"external interface" or xface or xf in the filenames.j198341983519836All manifest constants have been forced to upper case (some were19837mixed case.) Also, the string "ACPI_" has been prepended to many19838(not all) of the constants, typedefs, and structs.1983919840The globals "DebugLevel" and "DebugLayer" have been renamed19841"AcpiDbgLevel" and "AcpiDbgLayer" respectively.1984219843All other globals within the subsystem are now prefixed with19844"AcpiGbl_" Internal procedures within the subsystem are now19845prefixed with "Acpi" (with only a few exceptions). The original19846two-letter abbreviation for the subcomponent remains after "Acpi"19847- for example, CmCallocate became AcpiCmCallocate.1984819849Added a source code translation/conversion utility. Used to19850generate the Linux source code, it can be modified to generate19851other types of source as well. Can also be used to cleanup19852existing source by removing extraneous spaces and blank lines.19853Found in tools/acpisrc/*1985419855OsdUnMapMemory was renamed to OsdUnmapMemory and then19856AcpiOsUnmapMemory. (UnMap became Unmap).1985719858A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.19859When set to one, this indicates that the caller wants to use the1986019861semaphore as a mutex, not a counting semaphore. ACPI CA uses19862both types. However, implementers of this call may want to use19863different OS primitives depending on the type of semaphore19864requested. For example, some operating systems provide separate1986519866"mutex" and "semaphore" interfaces - where the mutex interface is19867much faster because it doesn't have all the overhead of a full19868semaphore implementation.1986919870Fixed a deadlock problem where a method that accesses the PCI19871address space can block forever if it is the first access to the19872space.1987319874-------------------------------------------19875Summary of changes for this label: 06_02_001987619877Support for environments that cannot handle unaligned data19878accesses (e.g. firmware and OS environments devoid of alignment19879handler technology namely SAL/EFI and the IA-64 Linux kernel) has19880been added (via configurable macros) in these three areas: -19881Transfer of data from the raw AML byte stream is done via byte19882moves instead of word/dword/qword moves. - External objects are19883aligned within the user buffer, including package elements (sub-19884objects). - Conversion of name strings to UINT32 Acpi Names is now19885done byte-wise.1988619887The Store operator was modified to mimic Microsoft's19888implementation when storing to a Buffer Field.1988919890Added a check of the BM_STS bit before entering C3.1989119892The methods subdirectory has been obsoleted and removed. A new19893file, cmeval.c subsumes the functionality.1989419895A 16-bit (DOS) version of AcpiExec has been developed. The19896makefile is under the acpiexec directory.198971989819899