Path: blob/main/sys/contrib/dev/acpica/changes.txt
105584 views
----------------------------------------112 December 2025. Summary of changes for version 20251212:23Major changes:45Update many existing ACPI tables to follow the ACPI 6.6 Specification6changes and/or newly approved ASWG ECRs - multiple contributors78Add a few new ACPI tables: IOVT, SWFT, KEYP - multiple contributors910Add many new UUIDs, Hardware/PnP/ACPI IDs - Armin Wolf and Pawel11Chmielewski1213Support a few new special methods (_xxx format) and modify few existing14ones to stay compliant with the latest ACPI Specification changes1516Improve existing tools/utilities and fix/clean up some problematic usages17along with patching certain vulnerabilities181920----------------------------------------217 August 2025. Summary of changes for version 20250807:2223Major changes:2425Added option to skip the global lock for SMM - Huacai Chen2627Fixed non-NUL terminated string implementations - Ahmed Salem2829Fixed CCEL and CDAT templates - Ahmed Salem3031Fixed a major Linux kernel bug (UAF) that was triggered by unequal number32of method parameters (definition) vs arguments (invocation) in different33places - Peter Williams, Hans de Goede, Rafael Wysocki3435Define distinct D3 states (D3Hot and D3Cold) that help clarify the device36behavior support - Aymeric Wibo3738A few cleanups, improvements to existing table supports, small fixes,39spelling corrections etc.404142----------------------------------------434 April 2025. Summary of changes for version 20250404:4445Major changes:4647Update all the copyright continuation year to 2025 in the license header48of all files4950Add complete support for 3 new ACPI tables - MRRM,ERDT and RIMT (Tony51Luck & V L Sunil)5253Add a license file to the project which is a great improvement (Dionna54Glaze)5556Update DMAR and TPM2 tables to support their latest versions (Alexey57Neyman and Stuart Yoder)5859A few fixes including local cache allocation, FFixedHW Region, attribute60packing, string vs. non-string char array, vsnprintf()etc. along with61some comments, spelling errors and code alignment (multiple awesome62contributors)636465----------------------------------------6612 December 2024. Summary of changes for version 20241212:6768Major changes:6970Fix 2 critical CVE addressing memory leaks - Seunghun Han7172EINJ V2 updates - Zaid Alali (Ampere Computing)7374CDAT updates - Ira Weiny (Intel Corporation)7576Fix mutex handling, do not release ones that were never acquired - Daniil77Tatianin7879Experiment with new tag name format Ryyyy_mm_dd to solve chronological80sorting problems818283----------------------------------------8427 September 2024. Summary of changes for version 20240927:8586Major changes:8788Fix the acpixf.h file which caused issues for the last release (before89this) 202408279091Fix the pointer offset for the SLIC table9293Verify the local environment and GitHub commits are all in sync which was94a problem with the second from last release (before this)20240322 (aka9520240323 - date issue)96979899----------------------------------------10027 August 2024. Summary of changes for version 20240827:101102Major changes:103104Fix the PHAT table working: ensure that the PHAT firmware health record105offset works correctly, fix various sub-table offsets, prevent106segmentation faults when encountering invalid device paths. Contributed107by: Armin Wolf <[email protected]>108109Fix the optional table 4-byte signature. Contributed by: Daniil Tatianin110<[email protected]>111112Correct the dumping of SLIC and DBG2 tables. Contributed by: Al Stone113(Fedora) <[email protected]>114115Add support for QWordPCC and DWordPCC by Jose Marinho (ARM)116117Fix the integer to hex string conversions by Armin Wolf118119Detecting FACS in reduced HW mode and allowing setting waking vector120thereby waking up from S3 state121122Fixing issues with crossing page boundaries when mapping operation123regions by Raju Rangoju, Sanath S and Mario Limonciello (AMD)124125Update the support for IORT, HMAT, MPAM, AEST, CEDT, SPCR etc. tables126127Fix multiple issues with table parsing, compilation and disassembly by128Myra DeMere (Google)129130Allow for more flexibility in _DSM usage.131132133----------------------------------------13422 March 2024. Summary of changes for version 20240322:135136Major changes:137138Update all the license header year from 2023 to 2024.139140Fix table argument ordering to work properly with iasl.141142Get rid of the annoying repeated warning types in MSVC and Windows.143144Fix a test in ASLTS with edge case failure.145146Fix a couple of issues with how GPEs are counted and enabled.147148Add new tables for various architectures/OS, mainly RISC-V and also149update many more.150151Add an option to either make the output deterministic or non-152deterministic.153154Remove redundant checks, duplicated code and fix spellings in various155files.156157Fix flex arrays for C++ compilers and also make ACPICA overall more158compatible with different compilers which throw warnings related to159memory sanitization etc.160161162----------------------------------------16328 June 2023. Summary of changes for version 20230628:1641650) Global changes:166167Fixed a problem with the ASL/AML Timer() operator. Discovered by UBSAN:168?array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of169range for type 'acpi_operand_object?. Added AML_NO_OPERAND_RESOLVE flag170to Timer (since there are no runtime arguments). Reported by: Abhishek171Mainkar [email protected].172173Added a define for size of acpi_srat_generic_affinity DeviceHandle.174Replaced a magic number with a define. The Linux kernel code will utilize175this. Reported by Dave Jiang [email protected].176177Added support for _DSC (Deepest State for Configuration) as per ACPI 6.5.1781791) ACPICA kernel-resident subsystem:180181Added port definitions for CDAT SSLBIS. Add upstream port and any port182definitions for SSLBIS. Reported by: Dave Jiang [email protected].183184Fixed misspelled CDAT DSMAS define: ACPI_CEDT_DSMAS_NON_VOLATILE ->185ACPI_CDAT_DSMAS_NON_VOLATILE. Reported by: Dave Jiang186[email protected].1871881) ACPICA kernel-resident subsystem:189190Fix GCC 12 dangling-pointer warning. We're storing a persistent pointer191to an ephemeral local variable which technically is a dangling pointer192and the compiler is correct. However, since we never indirect the193pointer, this is a safe operation and we can suppress the warning.194195Also, some C run-times (like MUSL) aren't including <stdint.h> indirectly196so we must include it explicitly or we won't have the type definition for197uintptr_t.1981992) iASL Compiler/Disassembler and ACPICA tools:.200201IASL/RHCT: Enable dumping and compiling newly added nodes. The RHCT table202is updated with new nodes. Add compile and dump functionality for these203new structures.204205AcpiExec: Added a new command, ?interrupt?. The Interrupt command206simulates an interrupt with a IntID (GSIV) equal to the first argument of207the call/invocation. The acpiexec code simulates the behavior by OSPM:208execute the _EVT method of the GED device associated with that IntID.209Submitted by: Jose Marinho [email protected].210211AcpiExec: Detect GED device and keep track of _EVT. The GED device is212described by a _HID of ACPI0013. This code traverses the namespace213identifying all GED devices. For each GED device in the namespace we214record the Interrupt object and the _EVT method. This information is used215when an interrupt is simulated via the ?interrupt? command. Submitted by:216Jose Marinho [email protected].217----------------------------------------21831 March 2023. Summary of changes for version 20230331:219220This release is available at https://acpica.org/downloads2212220) Global changes:223224225Update all copyright notices to the year 2023. This effects all source226modules, as well as utility signons.227Add OS-specific support for Zephyr RTOS.228Fix miscellaneous code that accesses various objects.229Remove some dead code.230Add C ?Flexible Array? support.231Add support for 64 bit LoongArch compilation.232Add first batch of RISC-V related definitions.233Performed a global automated update to remove tabs, fix indentation234issues, etc.2352361) ACPICA kernel-resident subsystem:237238hwvalid: Drop port I/O validation.2392402) ACPICA tools and utilities:241242iASL: Added full macro support in the preprocessor. Example:243#define ABCD(a,b,c,d) a+b+c-d244245Known macro support limitations (at this time):246No support for multi-line #define macros (backslash continuation247lines)248No support for the C-style ternary operator249No support for the stringizing operator (#)250No support for the concatenation (token pasting) operator (##)251No support for variable number of macro arguments252253Add support for AMD Secure Processor Table (ASPT) version 1.254Add support for Arm's MPAM ACPI table version 2.255ACPI 6.5: MADT: add support for trace buffer extension in GICC.256Headers: Delete bogus NodeArray array of pointers from AEST table.257PHAT table support is still ongoing.258259260----------------------------------------26120 October 2022. Summary of changes for version 20221020:262263This release is available at https://acpica.org/downloads2642650) Global changes:266267Allow disabling of -Werror. For distro maintainers having `-Werror` can268delay update of GCC. Since every GCC release might add new warnings that269were not yet captured, it might break the build of packages. With this270change, distros can now build with `NOWERROR=TRUE` instead of patching271either the errors or the makefiles. The default behavior keeps on using272`-Werror`.2732741) ACPICA kernel-resident subsystem:275276Added support for FFH Operation Region special context data. FFH(Fixed277Function Hardware) Opregion is approved to be added in ACPI 6.5 via code278first approach[1]. It requires special context data similar to GPIO and279Generic Serial Bus as it needs to know platform specific offset and280length.281282Reverted this commit "executer/exsystem: Warn about sleeps greater than28310 ms." Due to user complaints about valid sleeps greater than 10ms seen284in some existing machines -- generating lots of warnings.285286Do not touch VGA memory when EBDA < 1KiB. The ACPICA code assumes that287EBDA region must be at least 1KiB in size. Because this is not288guaranteed, it might happen that while scanning the memory for RSDP289pointer, the kernel touches memory above 640KiB. This is unwanted as the290VGA memory range may not be decoded or even present when running under291virtualization.292293Check that EBDA pointer is in valid memory. If the memory at 0x40e is294uninitialized, the retrieved physical memory address of EBDA may be295beyond the low memory (i.e. above 640K). If so, the kernel may296unintentionally access the VGA memory, that might not be decoded or even297present in case of virtualization.2982992) iASL Compiler/Disassembler and ACPICA tools:300301Completed the existing partial support for the CDAT "table". Although302this isn't technically an ACPI table (It doesn't go into the XSDT), it is303possible to support this table in the Data Table compiler. Created one304new file, "utilities/utcksum.c", used to centralize checksum305generation/validation into one location. Includes changes to makefiles306and MSVC project files.307308Updated support for the IORT table - update to version E.e309310Added CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table311312iASL: Added CCEL table to both compiler/disassembler.313314iASL: NHLT table: Fixed compilation of optional undocumented fields315316iASL: Fix iASL compile error due to ACPI_TDEL_OFFSET. Commit # 10e4763317("iASL: Add CCEL table to both compiler/disassembler") introduced the318iASL build issue. The issue is due to using ACPI_TDEL_OFFSET for CCEL319table member reference. To fix it, change ACPI_TDEL_OFFSET with320ACPI_CCEL_OFFSET.321322----------------------------------------32331 March 2022. Summary of changes for version 20220331:3243250) Global changes:326327Update all copyright notices to the year 2022. This effects all source328modules, as well as utility signons.3293303311) ACPICA kernel-resident subsystem:332333For the ASL Sleep() operator, issue a warning if the sleep value is334greater than 10 Milliseconds. Quick boottime is important, so warn about335sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350336ms, so excessive delays should be called out. 10 ms is chosen randomly,337but three of such delays would already make up ten percent of the338boottime.339340Namespace: Avoid attempting to walk the Namespace if the Namespace does341not exist.342343AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the344LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a345pass/fail integer. Now load returns a pass/fail integer, as well as346storing the return value in an optional 2nd argument.347348Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid349"performing pointer subtraction with a null pointer has undefined350behavior" compiler warnings, use uintptr_t and offsetof() that are always351available during Linux kernel builds to define ACPI_UINTPTR_T and the352ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code353in the Linux kernel.354355Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted356by superm1.357358executer/exsystem: Inform users about ACPI spec violation for the Stall()359operator. Values greater than 100 microseconds violate the ACPI360specification, so warn users about it. From the ACPI Specification361version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*:362> The implementation of Stall is OS-specific, but must not relinquish363> control of the processor. Because of this, delays longer than 100364> microseconds must use Sleep instead of Stall.3653663672) iASL Compiler/Disassembler and ACPICA tools:368369Data Table Compiler/Disassembler: Add support for the APMT table - ARM370Performance Monitoring Unit table. Submitted by @bwicaksononv.371372Data Table Compiler/Disassembler: For MADT, add support for the OEM-373defined subtables (Types 0x80-0x7F).374375Data Table Compiler: Fixed a problem with support for the SDEV table,376where a subtable Length was not computed correctly.377378Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT379Acpi table support.380381Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and382add template. Submitted by MasterDrogo.383384Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz:385iASL/NHLT: Rename linux specific structures to DeviceInfo to improve386readability of the code.387iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint.388Undocumented bytes at the end of Endpoint Descriptor can be present389independently of Linux-specific structures. Their size can also vary.390iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4391bytes of size and then an amount of bytes specified by size. All of the392terminators that I've seen had a size equal to 4, but theoretically it393can vary.394395iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C).396397iASL: Remove a remark due to excessive output. Removed a remark for398duplicate Offset() operators, due to a user complaint.399400----------------------------------------40117 December 2021. Summary of changes for version 20211217:4024031) ACPICA kernel-resident subsystem:404405Hardware: Do not flush CPU cache when entering S4 and S5. According to406ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to407S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of408the sleep state. Blind cache flush on entering S5 causes problems for409TDX.410411Avoid subobject buffer overflow when validating RSDP signature. Since the412Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to413it is only to a 4-char array, and so trying to read past the 4th414character, as will be done when it is an RSDP, reads beyond the bounds of415the accessed member. Contributed by jrtc27.416417Add support for PCC Opregion special context data. PCC Opregion added in418ACPIC 6.3 requires special context data similar to GPIO and Generic419Serial Bus as it needs to know the internal PCC buffer and its length as420well as the PCC channel index when the opregion handler is being executed421by the OSPM. Adds support for the special context data needed by PCC422Opregion. Submitted by Sudeep Holla <[email protected]>4234242) iASL Compiler/Disassembler and ACPICA tools:425426iASL: Completed compiler support for the NHLT ACPI table.427428iASL/NHLT table: Fixed a reported problem where a fault would occur429during disassembly of a "Linux-Specific" section if the "Specific Data"430part was not present.431432iASL: Added full support (compiler and disassembler) for the AGDI ACPI433table. Contributed by: Ilkka Koskinen <[email protected]>.434435iASL: Added full support for the TDEL ACPI table.436437iASL table compiler: FADT support updates:4381) Allow the 32-bit DSDT address to be zero.4392) Issue error if both the 32-bit and 64-bit DSDT addresses are zero.440441iASL: Fix unaligned accesses to local cache allocations. Contributed by442jrtc27.443444iASL: Open binary input files in binary mode, not text mode Affects445binary input AML files, as well as binary data table files, for446disassembly.447448----------------------------------------44930 September 2021. Summary of changes for version 20210930:450451This release is available at https://acpica.org/downloads4524531) ACPICA kernel-resident subsystem:454455Hardware: Avoid evaluating methods too early during system resume. During456wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called457and it tries to get memory from the OS in order to evaluate a control458method, but if KFENCE is enabled in the Linux kernel, the memory459allocation attempt causes an IRQ work to be queued and a self-IPI to be460sent to the CPU running the code which requires the memory controller to461be ready, so if that happens too early in the wakeup path, it doesn't462work.463464Prevent that from taking place by calling AcpiGetSleepTypeData() for S0465upfront, when preparing to enter a given sleep state, and saving the data466obtained by it for later use during system wakeup.467468Added a new _OSI string, "Windows 2020". Posted by superm1.4694702) iASL Compiler/Disassembler and ACPICA tools:471472iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS473objects:474New/latest rules: Under a Device Object:4751) If _PRS is present, must have _CRS and _SRS4762) If _SRS is present, must have _PRS (_PRS requires _CRS and477_SRS)4783) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS479requires _CRS and _SRS)4804) If _SRS is present, probably should have a _DIS (Remark only)481482iASL table disassembler: Added disassembly support for the NHLT ACPI483table. Note: support for Vendor-defined microphone arrays and SNR484extensions are not supported at this time -- mostly due to a lack of485example tables. Actual compiler support for NHLT is forthcoming.486487Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It488uses the same subtable structure as the existing Generic Initiator489Affinity type.490491Added the flag for online capable in the MADT, introduced in ACPI 6.3.492Posted by superm1.4934943) ACPICA documentation: Updated the legal info (that appears at the495start of the Documents) to clarify distribution rights that are granted.496497498----------------------------------------49930 July 2021. Summary of changes for version 20210730:500501This release is available at https://acpica.org/downloads5025031) ACPICA kernel-resident subsystem:5045052) iASL Compiler/Disassembler and ACPICA tools:506507iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021).508Under the Device Object:5091) If _DIS is present, must have a _CRS and _SRS5102) If _PRS is present, must have a _CRS, _DIS, and _SRS5113) If _SRS is present, must have a _CRS and _DIS512A warning will be issued for each of these cases.513Note: For existing ASL/projects, these warnings may be disabled by514specifying this on the command line:515"-vw 3141"516517iASL Table Disassembler/Table compiler: Fix for WPBT table with no518command-line arguments. Handle the case where the Command-line519Arguments table field does not exist (zero).520521Headers: Add new DBG2 Serial Port Subtypes522The Microsoft Debug Port Table 2 (DBG2) specification revision523September 21, 2020 comprises additional Serial Port Subtypes [1].524Reflect that in the actbl1.h header file. Submitted by:525semihalf-wojtas-marcin526527iASL: Add full support for the AEST table (data compiler)528Includes support in the table compiler and the disassembler.529530Add PRMT module header to facilitate parsing.531This structure is used in to parse PRMT in other Operating Systems532that relies on using subtable headers in order to parse ACPI tables.533Although the PRMT doesn't have "subtables" it has a list of module534information structures that act as subtables.535536iASL: Table disassembler: Add missing strings to decode subtable types.537Includes the MADT and CEDT tables.538539540----------------------------------------54104 June 2021. Summary of changes for version 20210604:5425431) ACPICA kernel-resident subsystem:544545Cleaned up (delete) the context mutex during local address handler object546deletion.547548Fixed a memory leak caused by the _CID repair function.549550Added support for PlatformRtMechanism OperationRegion handler. Adds a new551utility function, AcpiUtConvertUuidToString. Writing a buffer to a552PlatformRtMechanism fieldunit invokes a bidirectional transaction. The553input buffer contains 26 bytes containing 9 bytes of status, a command554byte and a 16-byte UUID. This change will simply pass this incoming555buffer to a handler registered by the OS.5565572) iASL Compiler/Disassembler and ACPICA tools:558559Added full support for the PRMT ACPI table (Platform Runtime Mechanism560Table). Includes support in the iASL compiler, the disassembler, and the561template generator.562563Added full support for the BDAT (BIOS Data ACPI Table) ACPI table.564565Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI566table.567568Added full support for the SVKL (Storage Volume Key Location Table) ACPI569table. Header file support from Kuppuswamy Sathyanarayanan570<[email protected]>.571572Completed full support for the IVRS (I/O Virtualization Reporting573Structure) ACPI table. Added compiler support for IVRS, updated574disassembler support. Adds a new utility, UtIsIdInteger, to determine if575a HID/CID is an integer or a string.576577Headers: Added more structs to the CEDT table: CXL fixed memory window578structure.579580ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure.581582----------------------------------------58331 March 2021. Summary of changes for version 20210331:584585This release is available at https://acpica.org/downloads, and includes586all ACPI 6.4 support5875881) ACPICA kernel-resident subsystem:589ACPI 6.4: iASL: deprecate DDBHandleObj keyword590Always create namespace nodes using AcpiNsCreateNode(). ACPICA is591allocating an object using kmalloc(), but then frees it592using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong.593Fixed a race condition in generic serial bus operation region handler.594Fixed by Hans de Goede.5955962) iASL Compiler/Disassembler and ACPICA tools:597598ACPI 6.4: NFIT: add Location Cookie field599ACPI 6.4: HMAT: add new fields/flags600ACPI 6.4: Add new flags in SRAT601ACPI 6.4: add SDEV secure access components602ACPI 6.4: add Csi2Bus resource template603ACPI 6.4: add support for PHAT table604ACPI 6.4: add support for PMTT table605Add disassembly support for the IVRS table. Compilation of the table is606not yet complete.607Fixed a potential infinite loop due to type mismatch. The for-loop is608using a UINT8 counter and comparing the upper609limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In610the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i611will wrap around to zero and the loop will never exit. I suspect612the AslGbl_ExpectedMessagesIndex is never that high, but fixing613this does future proof the code and cleans up static analysis614warnings.Colin King.615iASL/TableCompiler: update it with IORT table E.b revision changes. From616shamiali2008.617iASL/TableCompiler: Add compilation support for the VIOT table. Signed-618off-by: Jean-Philippe Brucker.619iASL/TableCompiler: Add compilation support for CEDT table. Also, update620the CEDT template.621622----------------------------------------62305 January 2021. Summary of changes for version 20210105:624625This release is available at https://acpica.org/downloads6266276281) ACPICA kernel-resident subsystem:629630Updated all copyrights to 2021. This affects all ACPICA source code631modules.6326332) iASL Compiler/Disassembler and ACPICA tools:634635ASL test suite (ASLTS): Updated all copyrights to 2021.636637Tools and utilities: Updated all signon copyrights to 2021.638639iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC,640MTMR. Al Stone.641642643----------------------------------------64417 December 2020. Summary of changes for version 20201217:645646This release is available at https://acpica.org/downloads6476486491) ACPICA kernel-resident subsystem:650651Note: The implementation of ACPI 6.4 is underway, and is expected to be652mostly finished next month, when ACPI 6.4 is released.653654From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added655several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to656enable this.657658AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0.659These included a few casts, as well as a null pointer check.660661Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on662implicit fallthrough, as well as __attribute__((__fallthrough__)) and663comments to explicitly denote that cases of fallthrough were intentional.664Clang also supports this warning and statement attribute, but not the665comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature666of GCC. With assistance from @nickdesaulniers.6676682) iASL Compiler/Disassembler and ACPICA tools:669670Added improvement to method call analysis by saving the return type and671relaxing certain cases of type checking.672673iASL Table Compiler: Improved info messages. Added a message to the -T674option for when the default template (DSDT) is used.675Also added a note for when multiple SSDTs are created with a DSDT that676the SSDTs are created in the same file as the DSDT.677678679----------------------------------------68068113 November 2020. Summary of changes for version 20201113:682683This release is available at https://acpica.org/downloads6846856861) ACPICA kernel-resident subsystem:687688Interpreter: fixed a memory leak by using use existing buffer in _HID689repair. There was a memory leak that occurred when a _CID object is690defined as a package containing string objects. When _CID is checked for691any possible repairs, it calls a helper function to repair _HID (because692_CID basically contains multiple _HID entries). The _HID repair function693assumes that string objects are standalone objects that are not contained694inside of any packages. The _HID repair function replaced the string695object with a brand new object and attempted to delete the old object by696decrementing the reference count of the old object. Strings inside of697packages have a reference count of 2 so the _HID repair function leaves698this object in a dangling state and causes a memory leak. Instead of699allocating a brand new object and removing the old object, use the700existing object when repairing the _HID object.701702Added function trace macros to improve namespace debugging. The namespace703repair mechanism does not have function tracing macros. Add several trace704macros to improve debuggability.705706Handle "orphan" _REG methods for GPIO OpRegions. Before this change707AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no708matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry709Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs.710The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific711UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads712to potential issues with checks for OpRegion availability, or in other713words checks if _REG has been called for the OpRegion which the ACPI code714wants to use. Except for the "orphan" EC handling, ACPICA core does not715call _REG on an ACPI node which does not define an OpRegion matching the716type being registered; and the reference design DSDT, from which most717Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor718UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins719were assigned ACPI controlled functions in the reference design. Together720this leads to the perfect storm, at least on the Cherry Trail based721Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code722and has added the Cherry Trail specific UserDefined(0x93) opregion to its723GPO2 ACPI node to access this pin. But it uses a "has _REG been called"724availability check for the standard GeneralPurposeIo OpRegion. This725clearly is a bug in the DSDT, but this does work under Windows. This726issue leads to the intel vbtn driver reporting the device always being in727tablet-mode at boot, even if it is in laptop mode. Which in turn causes728userspace to ignore touchpad events. So in other words, this issue causes729the touchpad to not work at boot. This change fixes this by extending the730"orphan" _REG method handling to also apply to GPIO address-space731handlers.7327337342) iASL Compiler/Disassembler and ACPICA tools:735736iASL: Added more info to namespace dump file (-ln option). In a separate737section of the dump file (after the main namespace dump), emit the full738pathname for each namespace node, its type, and the ASL filename and line739number where it is declared.740741AcpiHelp: Added an option to display/decode iASL exceptions. Option is: -742x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value743is omitted, all iASL exceptions are displayed.744745iASL: Use StringLiteral instead of StringData for some ASL macros. The746use of the stringData rule allows for some "string" oriented opcodes747(Such as ToString, ToHexString, etc.) None of which make sense with the748macros in question. This change modifies the StringData part of the rule749for these macros to a simple string literal - thus disallowing the use750of ToString, ToHexString, etc.751The following ASL operators (macros) are affected:752EisaId753Fprintf754Printf755ToUuid756Unicode757Note: The MS compiler requires the use of string literals for these758operators also.759760iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search761the list of "known" UUIDs for the input to the ToUUID macro.762763Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the764NFIT table.765766767----------------------------------------76876925 September 2020. Summary of changes for version 20200925:770771This release is available at https://acpica.org/downloads7727737741) ACPICA kernel-resident subsystem:775776Preserve memory opregion mappings. The ACPICA's strategy with respect to777the handling of memory mappings associated with memory operation regions778is to avoid mapping the entire region at once which may be problematic at779least in principle (for example, it may lead to conflicts with780overlapping mappings having different attributes created by drivers). It781may also be wasteful, because memory opregions on some systems take up782vastchunks of address space while the fields in those regions actually783accessed by AML are sparsely distributed.784785For this reason, a one-page "window" is mapped for a given opregion on786the first memory access through it and if that "window" does not cover an787address range accessed through that opregion subsequently, it is unmapped788and a new "window" is mapped to replace it. Next, if the new "window" is789not sufficient to access memory through the opregion in question in the790future, it will be replaced with yet another "window" and so on. That791may lead to a suboptimal sequence of memory mapping and unmapping792operations, for example if two fields in one opregion separated from each793other by a sufficiently wide chunk of unused address space are accessed794in an alternating pattern.795796Added support for 64 bit risc-v compilation. Useful for acpica tools and797incorporating ACPICA into the Firmware Test Suite. Colin Ian King798<[email protected]>.799800Added support for SMBus predefined names (from SMBus Control Method801Interface Specification, Version 1.0, December 10, 1999. New predefined802names:803_SBA804_SBI805_SBR806_SBT807_SBW808809AML Disassembler: Added a new command, "All <NameSeg>". This command will810evaluate all objects in the current namespace whose NameString contains811the input NameSeg as the last element of the NameString. Useful for812debugging.8138148152) iASL Compiler/Disassembler and ACPICA tools:816817iASL: fixed a crash that occurred when predefined objects return packages818with lengths that exceed the initializer list.819820iASL: added more detail to external resolution error message when821compiling multiple definition blocks.822823iASL: added a remark for an attempt to create a nameseg or namestring824containing lower-case letters. This should prevent declaring multiple825namesegs or namestrings in an attempt to refer to different objects (with826different cases), but actually refer to the same object(s).827828iASL: improve alias analysis by saving object type. If the alias is a829method type, the parameter count is also recorded.830831AcpiExec: Increase the default loop timeout value. Was 1 second, is now83210 seconds. Prevents unnecessary timeouts when executing control methods833from the command line.834835AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal836list. Includes:837Memory Device838Generic Buttons Device839NVDIMM Root Device840Control Method Battery841Device Graphs for _DSD method842Hierarchical Data Extension843....ARM CoreSight Graph844845----------------------------------------84684784817 July 2020. Summary of changes for version 20200717:849850This release is available at https://acpica.org/downloads8518528531) ACPICA kernel-resident subsystem:854855Do not increment OperationRegion reference counts for field units. Recent856server firmware has revealed that this reference count can overflow on857large servers that declare many field units (thousands) under the same858OperationRegion. This occurs because each field unit declaration will add859a reference count to the source OperationRegion. This release solves the860reference count overflow for OperationRegion objects by preventing861fieldUnits from incrementing their parent OperationRegion's reference862count.863864Replaced one-element arrays with flexible-arrays, which were introduced865in C99.866867Restored the readme file containing the directions for generation of868ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is869located at: generate/msvc2017/readme.txt8708712) iASL Compiler/Disassembler and ACPICA tools:872873iASL: Fixed a regression found in version 20200214. Prevent iASL from874emitting an extra byte of garbage data when control methods declared a875single parameter type without using braces. This extra byte is known to876cause a blue screen on the Windows AML interpreter.877878iASL: Made a change to allow external declarations to specify the type of879a named object even when some name segments are not defined.880This change allows the following ASL code to compile (When DEV0 is not881defined or not defined yet):882883External (\_SB.DEV0.OBJ1, IntObj)884External (\_SB.DEV0, DeviceObj)885886iASL: Fixed a problem where method names in "Alias ()" statement could be887misinterpreted. They are now interpreted correctly as method invocations.888889iASL: capture a method parameter count (Within the Method info segment,890as well as the argument node) when using parameter type lists.891892----------------------------------------89389489528 May 2020. Summary of changes for version 20200528:8968978981) ACPICA kernel-resident subsystem:899900Removed old/obsolete Visual Studio files which were used to build the901Windows versions of the ACPICA tools. Since we have moved to Visual902Studio 2017, we are no longer supporting Visual Studio 2006 and 2009903project files. The new subdirectory and solution file are located at:904905acpica/generate/msvc2017/AcpiComponents.sln9069079082) iASL Compiler/Disassembler and ACPICA tools:909910iASL: added support for a new OperationRegion Address Space (subtype):911PlatformRtMechanism. Support for this new keyword is being released for912early prototyping. It will appear in the next release of the ACPI913specification.914915iASL: do not optimize the NameString parameter of the CondRefOf operator.916In the previous iASL compiler release, the NameString parameter of the917CondRefOf was optimized. There is evidence that some implementations of918the AML interpreter do not perform the recursive search-to-parent search919during the execution of the CondRefOf operator. Therefore, the CondRefOf920operator behaves differently when the NameString parameter is a single921name segment (a NameSeg) as opposed to a full NamePath (starting at the922root scope) or a NameString containing parent prefixes.923924iASL: Prevent an inadvertent remark message. This change prevents a925remark if within a control method the following exist:9261) An Operation Region is defined, and9272) A Field operator is defined that refers to the region.928This happens because at the top level, the Field operator does not929actually create a new named object, it simply references the operation930region.931932Removed support for the acpinames utility. The acpinames was a simple933utility used to populate and display the ACPI namespace without executing934any AML code. However, ACPICA now supports executable opcodes outside of935control methods. This means that executable AML opcodes such as If and936Store opcodes need to be executed during table load. Therefore, acpinames937would need to be updated to match the same behavior as the acpiexec938utility and since acpiexec can already dump the entire namespace (via the939'namespace' command), we no longer have the need to maintain acpinames.940941In order to dump the contents of the ACPI namespace using acpiexec,942execute the following command from the command line:943944acpiexec -b "n" [aml files]945946----------------------------------------94794894930 April 2020. Summary of changes for version 20200430:9509511) ACPICA kernel-resident subsystem:952953Cleaned up the coding style of a couple of global variables954(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers.955AcpiProtocolLengths was made static, and the definition of956AcpiGbl_NextCmdNum was moved to acglobal.h.9579589592) iASL Compiler/Disassembler and ACPICA tools:960961iASL DataTable Compiler: Fixed a segfault on errors that aren't directly962associated with a field.963964Disassembler: has been made more resilient so that it will continue to965parse AML even if the AML generates ACPI namespace errors. This enables966iASL to disassemble some AML that may have been compiled using older967versions of iASL that no longer compile with newer versions of iASL.968969iASL: Fixed the required parameters for _NIH and _NIG. Previously, there970was a mixup where _NIG required one parameter and _NIH required zero971parameters. This change swaps these parameter requirements. Now it is972required that _NIH must be called with one parameter and _NIG requires973zero parameters.974975iASL: Allow use of undefined externals as long as they are protected by976an if (CondRefOf (...)) block when compiling multiple definition blocks.977978iASL: Fixed the type override behavior of named objects that are declared979as External. External declarations will no longer override the type of980the actual definition if it already exists.981982AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable983command line wildcard support on Windows. Note: the AcpiNames utility is984essentially redundant with the AcpiExec utility (using the "namespace"985command) and is therefore deprecated. It will be removed in future986releases of ACPICA.987988Disassembler: ignore AE_ALREADY_EXISTS status when parsing create*989operators. The disassembler is intended to emit existing ASL code as-is.990Therefore, error messages emitted during disassembly should be ignored or991handled in a way such that the disassembler can continue to parse the992AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op993parsing for create operators in order to complete parsing ASL termlists.994995iASL DataTable Compiler: IVRS table: fix potentially uninitialized996variable warning. Some compilers catch potential uninitialized variables.997This is done by examining branches of if/else statements. This change998replaces an "else if" with an "else" to fix the uninitialized variable999warning.100010011002----------------------------------------100326 March 2020. Summary of changes for version 20200326:1004100510061) ACPICA kernel-resident subsystem:10071008Performed a code clean-up to prevent build errors on early versions of1009GCC-10.10101011Added the NHLT table signature. iASL data table compiler/disassembler1012support for this table is coming soon.1013101410152) iASL Compiler/Disassembler and ACPICA tools:10161017AcpiExec: Fixed several problems with the namespace initialization file1018(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS1019errors, several seg faults, and enhancements to line parsing within the1020init file. In addition, each object found in the init file and it's new1021value is displayed, as well as any such entries that do not have a1022corresponding name in the namespace. For reference, the syntax for the1023various supported data types are presented below:1024PCHG 0x777788889999BBBB // Integer1025\DEV1.STR1 "XYZ" // String1026BUF1 (88 99 AA) // Buffer1027PKG1 [0x1111 0x2222] // Package1028\BF1 0x7980 // BufferField1029RCRV 0x0123456789ABCDEF // Field Unit10301031iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro1032can be used anywhere in a given ASL file to configure iASL to expect an1033iASL compiler error code on the line where this macro was placed. If the1034error code does not exist, an error is generated. This is intended to be1035used for ACPICA's ASL test suite, but can be used by ASL developers as1036well.10371038iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD1039IVRS table parsing supported only IVHD type 10h structures. Parsing an1040IVHD type 11h caused the iasl to report unknown subtable type. Add1041necessary structure definition for IVHD type 11h and apply correct1042parsing method based on subtable type. Micha? ?ygowski.10431044iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name1045According to AMD IOMMU Specification Revision 3.05 the reserved field1046should be IOMMU Feature Reporting. Change the name of the field to the1047correct one. Micha? ?ygowski.10481049acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch1050based on suggestions by David Seifert and Benjamin Berg.10511052iASL: table compiler: removed an unused variable (DtCompilerParserResult)1053causing linking errors. Patch based on suggestions by David Seifert and1054Benjamin Berg.10551056iASL: table compiler: make LexBuffer static to avoid linking errors in1057newer compilers. Patch based on suggestions by David Seifert and Benjamin1058Berg.10591060iASL: fixed type matching between External and Named objects. External1061object types can only be expressed with ACPI object type values that are1062defined in the ACPI spec. However, iASL uses ACPI object type values that1063are local to ACPICA in addition to the values defined in the ACPI spec.1064This change implements type matching to map some object type values1065specific to ACPICA to ones that are defined in the ACPI spec.10661067iASL: Dropped the type mismatch compiler error that can arise from1068External declarations to a warning. This warning can occur when there is1069a type difference between the external declaration and the actual object1070declaration (when compiling multiple files/modules simultaneously).10711072iASL: removed an incorrect error message regarding externals. This change1073removes an incorrect error that is emitted when a duplicate external1074declaration does not contain a type that opens a scope. This is incorrect1075because the duplicate external with conflicting types are already caught1076by iASL and it doesn't make any sense to enforce what this conflicting1077type should be.10781079AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be1080surrounded by parens. Otherwise, a logical statement that applies a1081logical not operator to this macro could result in a computation that1082applies the operator to the left side of the logical and but not the1083right. Reported-by: John Levon <[email protected]>10841085Fixed a problem with the local version of sprint(): On 32-bit, the1086provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX,1087String + Size will wrap, meaning End < Start, and1088AcpiUtBoundStringOutput() will never output anything as a result. The1089symptom seen of this was acpixtract failing to output anything -- with a1090custom build that included utprint.c. Signed-off-by: John Levon1091<[email protected]>10921093iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the1094ACPI specification.109510961097----------------------------------------109814 February 2020. Summary of changes for version 20200214:1099110011011) ACPICA kernel-resident subsystem:11021103Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered1104in a guest when it receives a sleep trigger from the hypervisor. When the1105guest resumes from this power state, it does not see the SleepEnabled1106bit. In other words, the sleepHibernation (S4) is triggered in a guest1107when it receives a sleep trigger from the hypervisor. When the guest1108resumes from this power state, it does not see the SleepEnabled bit. In1109other words, the sleep button is not enabled on waking from an S4 state.1110This causes subsequent invocation of sleep state to fail since the1111guest.button is not enabled on waking from an S4 state. This causes1112subsequent invocation of sleep state to fail in the guest. Fix this1113problem by enabling the sleep button in ACPI legacy wake. From Anchal1114Agarwal <[email protected]>.11151116Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used1117for checking the status bits of all enabled GPEs in one go. It is needed1118to distinguish spurious SCIs from genuine ones when deciding whether or1119not to wake up the system from suspend-to-idle.11201121Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be1122using HOST in their environment to represent the host name for their1123machines. Avoid this problem by renaming this variable from HOST to1124ACPI_HOST.11251126MSVC 2017 project files: Enable multiprocessor generation to improve1127build performance.11281129Added a macro to get the byte width of a Generic Address structure. New1130ACPI_ACCESS_BYTE_WIDTH is in addition to the existing1131ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg.1132113311342) iASL Compiler/Disassembler and ACPICA tools:11351136iASL: Implemented full support for the (optional, rarely used) ReturnType1137and ParameterTypesList for the Method, Function, and External operators.1138For Method declarations, the number of individual ParameterTypes must1139match the declaration of the number of arguments (NumArgs). This also1140Fixes a problem with the External operator where extra/extraneous bytes1141were emitted in the AML code if the optional ReturnType/ParameterTypes1142were specified for a MethodObj declaration.1143New error message:11441) Method NumArgs count does not match length of ParameterTypes list11451146iASL: Implemented detection of type mismatches between External1147declarations and named object declarations. Also, detect type mismatches1148between multiple External declarations of the same Name.1149New error messages:11501) Type mismatch between external declaration and actual object1151declaration detected11522) Type mismatch between multiple external declarations detected11531154iASL: Implemented new error messages for External operators that specify1155a ReturnType and/or ParameterTypesList for any object type other than1156control methods (MethodObj).1157New error messages:11581) Return type is only allowed for Externals declared as MethodObj11592) Parameter type is only allowed for Externals declared as MethodObj11601161iASL: Implemented two new remark/warning messages for ASL code that1162creates named objects from within a control method. This is very1163inefficient since the named object must be created and deleted each time1164the method is executed.1165New messages:11661) Creation of named objects within a method is highly inefficient, use1167globals or method local variables instead (remark)11682) Static OperationRegion should be declared outside control method1169(warning)11701171iASL: Improved illegal forward reference detection by adding support to1172detect forward-reference method invocations.11731174iASL: Detect and issue an error message for NameStrings that contain too1175many individual NameSegs (>255). This is an AML limitation that is1176defined in the ACPI specification.1177New message:11781) NameString contains too many NameSegs (>255)11791180acpidump: windows: use GetSystemFirmwareTable API for all tables except1181SSDT. By using this API, acpidump is able to get all tables in the XSDT11821183iASL: Removed unused parser file and updated msvc2017 project files.1184Removed the obsolete AslCompiler.y from the repository.11851186iASL: msvc2017: Fixed macros in the file dependency list to prevent1187unnecessary rebuilds. Replace %(Directory) with %(RelativeDir).11881189Disassembler: Prevent spilling error messages to the output file. All1190errors are directed to the console instead. These error messages1191prevented re-compilation of the resulting disassembled ASL output file1192(.DSL).119311941195----------------------------------------119610 January 2020. Summary of changes for version 20200110:1197119811991) ACPICA kernel-resident subsystem:12001201Updated all copyrights to 2020. This affects all ACPICA source code1202modules.1203120412052) iASL Compiler/Disassembler and ACPICA tools:12061207ASL test suite (ASLTS): Updated all copyrights to 2020.12081209Tools and utilities: Updated all signon copyrights to 2020.12101211iASL: fix forward reference analysis for field declarations. Fixes1212forward reference analysis for field declarations by searching the1213parent scope for the named object when the object is not present in1214the current scope.12151216iASL: Improved the error output for ALREADY_EXISTS errors. Now, the1217full pathname of the name that already exists is printed.12181219iASL: Enhance duplicate Case() detection for buffers. Add check for1220buffers with no initializer list (these buffers will be filled with1221zeros at runtime.)122212231224----------------------------------------122513 December 2019. Summary of changes for version 20191213:1226122712281) ACPICA kernel-resident subsystem:12291230Return a Buffer object for all fields created via the CreateField1231operator. Previously, an Integer would be returned if the size of1232the field was less than or equal to the current size of an Integer.1233Although this goes against the ACPI specification, it provides1234compatibility with other ACPI implementations. Also updated the1235ASLTS test suite to reflect this new behavior.123612372) iASL Compiler/Disassembler and ACPICA tools:12381239iASL: Implemented detection of (and throw an error for) duplicate1240values for Case statements within a single Switch statement. Duplicate1241Integers, Strings, and Buffers are supported.12421243iASL: Fix error logging issue during multiple file compilation --1244Switch to the correct input file during error node creation.12451246iASL: For duplicate named object creation, now emit an error instead1247of a warning - since this will cause a runtime error.12481249AcpiSrc: Add unix line-ending support for non-Windows builds.12501251iASL: Add an error condition for an attempt to create a NameString1252with > 255 NameSegs (the max allowable via the AML definition).125312541255----------------------------------------125618 October 2019. Summary of changes for version 20191018:1257125812591) ACPICA kernel-resident subsystem:12601261Debugger: added a new command: ?Fields [address space ID]?. This command1262dumps the contents of all field units that are defined within the1263namespace with a particular address space ID.12641265Modified the external interface AcpiLoadTable() to return a table index.1266This table index can be used for unloading a table for debugging.1267ACPI_STATUS1268AcpiLoadTable (1269ACPI_TABLE_HEADER *Table,1270UINT32 *TableIndex))12711272Implemented a new external interface: AcpiUnloadTable() This new function1273takes a table index as an argument and unloads the table. Useful for1274debugging only.1275ACPI_STATUS1276AcpiUnloadTable (1277UINT32 TableIndex))12781279Ported the AcpiNames utility to use the new table initialization1280sequence. The utility was broken before this change. Also, it was1281required to include most of the AML interpreter into the utility in order1282to process table initialization (module-level code execution.)12831284Update for results from running Clang V8.0.1. This fixes all "dead1285assignment" warnings. There are still several "Dereference of NULL1286pointer" warnings, but these have been found to be false positive1287warnings.1288128912902) iASL Compiler/Disassembler and ACPICA tools:12911292iASL: numerous table compiler changes to ensure that the usage of1293yacc/bison syntax is POSIX-compliant.12941295iASL/disassembler: several simple bug fixes in the data table1296disassembler.12971298Acpiexec: expanded the initialization file (the -fi option) to initialize1299strings, buffers, packages, and field units.130013011302----------------------------------------130316 August 2019. Summary of changes for version 20190816:13041305This release is available at https://acpica.org/downloads1306130713081) ACPICA kernel-resident subsystem:13091310Modified the OwnerId mechanism to allow for more Owner Ids. The previous1311limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT1312exceptions on machines with a large number of initialization threads,1313many CPU cores and nested initialization control methods.13141315Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for1316checking if the given GPE (as represented by a GPE device handle and a1317GPE number) is currently active and dispatching it (if that's the case)1318outside of interrupt context.13191320Table load: exit the interpreter before initializing objects within the1321new table This prevents re-acquiring the interpreter lock when loading1322tables13231324Added the "Windows 2019" string to the _OSI support (version 1903). Jung-1325uk Kim13261327Macros: removed pointer math on a null pointer. Causes warnings on some1328compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR1329instead of using arithmetic.13301331Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used1332across all "printf-like" internal functions. Also, cleanup all calls to1333such functions (both in 32-bit mode and 64-bit mode) now that they are1334analyzed by the gcc compiler via ACPI_PRINTF_LIKE.1335133613372) iASL Compiler/Disassembler and ACPICA tools:13381339iASL: implemented a new data table compiler flex/bison front-end. This1340change is internal and is not intended to result in changes to the1341compiled code. This new compiler front-end can be invoked using the -tp1342option for now, until the old mechanism is removed.13431344ASLTS: Implemented a new data table compiler test suite. This test suite1345generates all table templates and compile/disassemble/re-compile/binary-1346compare each file.13471348iASL: return -1 if AML files were not generated due to compiler errors13491350iASL: added a warning on use of the now-legacy ASL Processor () keyword.13511352iASL: added an error on _UID object declaration that returns a String1353within a Processor () declaration. A _UID for a processor must be an1354Integer.13551356iASL: added a null terminator to name strings that consist only of1357multiple parent prefixes (^)13581359iASL: added support to compile both ASL and data table files in a single1360command.13611362Updated the tool generation project files that were recently migrated to1363MSVC 2017 to eliminate all new warnings. The new project files appear in1364the directory \acpica\generate\msvc2017. This change effectively1365deprecates the older project files in \acpica\generate\msvc9.136613671368----------------------------------------136903 July 2019. Summary of changes for version 20190703:1370137113721) ACPICA kernel-resident subsystem:13731374Remove legacy module-level support code. There were still some remnants1375of the legacy module-level code executions. Since we no longer support1376this option, this is essentially dead code and has been removed from the1377ACPICA source.13781379iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root1380scope. If these named objects are declared outside the root scope, they1381will not be invoked by any host Operating System.13821383Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC1384one) can be enabled in two situations. First, the GPEs with existing _Lxx1385and _Exx methods are enabled implicitly by ACPICA during system1386initialization. Second, the GPEs without these methods (like GPEs listed1387by _PRW objects for wakeup devices) need to be enabled directly by the1388code that is going to use them (e.g. ACPI power management or device1389drivers).13901391In the former case, if the status of a given GPE is set to start with,1392its handler method (either _Lxx or _Exx) needs to be invoked to take care1393of the events (possibly) signaled before the GPE was enabled. In the1394latter case, however, the first caller of AcpiEnableGpe() for a given GPE1395should not be expected to care about any events that might be signaled1396through it earlier. In that case, it is better to clear the status of1397the GPE before enabling it, to prevent stale events from triggering1398unwanted actions (like spurious system resume, for example).13991400For this reason, modify AcpiEvAddGpeReference() to take an additional1401boolean argument indicating whether or not the GPE status needs to be1402cleared when its reference counter changes from zero to one and make1403AcpiEnableGpe() pass TRUE to it through that new argument.1404140514062) iASL Compiler/Disassembler and ACPICA tools:14071408The tool generation process has been migrated to MSVC 2017, and all1409project files have been upgraded. The new project files appear in the1410directory \acpica\generate\msvc2017. This change effectively deprecates1411the older project files in \acpica\generate\msvc9.14121413iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root1414scope. If these named objects are declared outside the root scope, they1415will not be invoked by any host Operating System14161417----------------------------------------141809 May 2019. Summary of changes for version 20190509:1419142014211) ACPICA kernel-resident subsystem:14221423Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling1424them") that causes problems with Thunderbolt controllers to occur if a1425dock device is connected at init time (the xhci_hcd and thunderbolt1426modules crash which prevents peripherals connected through them from1427working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA:1428Dispatch active GPEs at init time") to get undone, so the problem1429addressed by commit ecc1165b8b74 appears again as a result of it.1430143114322) iASL Compiler/Disassembler and ACPICA tools:14331434Reverted iASL: Additional forward reference detection. This change1435reverts forward reference detection for field declarations. The feature1436unintentionally emitted AML bytecode with incorrect package lengths for1437some ASL code related to Fields and OperationRegions. This malformed AML1438can cause systems to crash1439during boot. The malformed AML bytecode is emitted in iASL version144020190329 and 20190405.14411442iASL: improve forward reference detection. This change improves forward1443reference detection for named objects inside of scopes. If a parse object1444has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to1445a named object that is declared later in the AML bytecode. This is1446allowed if the reference is inside of a method and the declaration is1447outside of a method like so:14481449DefinitionBlock(...)1450{1451Method (TEST)1452{1453Return (NUM0)1454}1455Name (NUM0,0)1456}14571458However, if the declaration and reference are both in the same method or1459outside any methods, this is a forward reference and should be marked as1460an error because it would result in runtime errors.14611462DefinitionBlock(...)1463{1464Name (BUFF, Buffer (NUM0) {}) // Forward reference1465Name (NUM0, 0x0)14661467Method (TEST)1468{1469Local0 = NUM11470Name (NUM1, 0x1) // Forward reference1471return (Local0)1472}1473}14741475iASL: Implemented additional buffer overflow analysis for BufferField1476declarations. Check if a buffer index argument to a create buffer field1477operation is beyond the end of the target buffer.14781479This affects these AML operators:14801481AML_CREATE_FIELD_OP1482AML_CREATE_BIT_FIELD_OP1483AML_CREATE_BYTE_FIELD_OP1484AML_CREATE_WORD_FIELD_OP1485AML_CREATE_DWORD_FIELD_OP1486AML_CREATE_QWORD_FIELD_OP14871488There are three conditions that must be satisfied in order to allow this1489validation at compile time:149014911) The length of the target buffer must be an integer constant14922) The index specified in the create* must be an integer constant14933) For CreateField, the bit length argument must be non-zero.14941495Example:1496Name (BUF1, Buffer() {1,2})1497CreateField (BUF1, 7, 9, CF03) // 3: ERR14981499dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR1500Error 6165 - ^ Buffer index beyond end of1501target buffer150215031504----------------------------------------150505 April 2019. Summary of changes for version 20190405:1506150715081) ACPICA kernel-resident subsystem:15091510Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop1511unconditionally clearing ACPI IRQs during suspend/resume") was added1512earlier to stop clearing of event status bits unconditionally on suspend1513and resume paths. Though this change fixed an issue on suspend path, it1514introduced regressions on several resume paths. In the case of S0ix,1515events are enabled as part of device suspend path. If status bits for the1516events are set when they are enabled, it could result in premature wake1517from S0ix. If status is cleared for any event that is being enabled so1518that any stale events are cleared out. In case of S0ix, events are1519enabled as part of device suspend path. If status bits for the events are1520set when they are enabled, it could result in premature wake from S0ix.15211522This change ensures that status is cleared for any event that is being1523enabled so that any stale events are cleared out.1524152515262) iASL Compiler/Disassembler and ACPICA tools:15271528iASL: Implemented an enhanced multiple file compilation that combines1529named objects from all input files to a single namespace. With this1530feature, any unresolved external declarations as well as duplicate named1531object declarations can be detected during compilation rather than1532generating errors much later at runtime. The following commands are1533examples that utilize this feature:1534iasl dsdt.asl ssdt.asl1535iasl dsdt.asl ssdt1.asl ssdt2.asl1536iasl dsdt.asl ssdt*.asl15371538----------------------------------------153929 March 2019. Summary of changes for version 20190329:1540154115421) ACPICA kernel-resident subsystem:15431544Namespace support: Remove the address nodes from global list after method1545termination. The global address list contains pointers to namespace nodes1546that represent Operation Regions. This change properly removes Operation1547Region namespace nodes that are declared dynamically during method1548execution.15491550Linux: Use a different debug default than ACPICA. There was a divergence1551between Linux and the ACPICA codebases. In order to resolve this1552divergence, Linux now declares its own debug default in aclinux.h15531554Renamed some internal macros to improve code understanding and1555maintenance. The macros below all operate on single 4-character ACPI1556NameSegs, not generic strings (old -> new):1557ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE1558ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG1559ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG15601561Fix for missing comma in array declaration for the AcpiGbl_GenericNotify1562table.15631564Test suite: Update makefiles, add PCC operation region support1565156615672) iASL Compiler/Disassembler and Tools:15681569iASL: Implemented additional illegal forward reference detection. Now1570detect and emit an error upon detection of a forward reference from a1571Field to an Operation Region. This will fail at runtime if allowed to1572pass the compiler.15731574AcpiExec: Add an address list check for dynamic Operation Regions. This1575feature performs a sanity test for each node the global address list.1576This is done in order to ensure that all dynamic operation regions are1577properly removed from the global address list and no dangling pointers1578are left behind.15791580Disassembler: Improved generation of resource pathnames. This change1581improves the code that generates resource descriptor and resource tag1582pathnames. The original code used a bunch of str* C library functions1583that caused warnings on some compilers.15841585iASL: Removed some uses of strncpy and replaced with memmove. The strncpy1586function can overwrite buffers if the calling code is not very careful.1587In the case of generating a module/table header, use of memmove is a1588better implementation.1589159015913) Status of new features that have not been completed at this time:15921593iASL: Implementing an enhanced multiple file compilation into a single1594namespace feature (Status): This feature will be released soon, and1595allows multiple ASL files to be compiled into the same single namespace.1596By doing so, any unresolved external declarations as well as duplicate1597named object declarations can be detected during compilation (rather than1598later during runtime). The following commands are examples that utilize1599this feature:1600iasl dsdt.asl ssdt.asl1601iasl dsdt.asl ssdt1.asl ssdt2.asl1602iasl dsdt.asl ssdt*.asl16031604ASL tutorial status: Feedback is being gathered internally and the1605current plan is to publish this tutorial on the ACPICA website after a1606final review by a tech writer.16071608----------------------------------------160915 February 2019. Summary of changes for version 20190215:1610161116120) Support for ACPI specification version 6.3:16131614Add PCC operation region support for the AML interpreter. This adds PCC1615operation region support in the AML interpreter and a default handler for1616acpiexec. The change also renames the PCC region address space keyword to1617PlatformCommChannel.16181619Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG.1620These methods provide OSPM with health information and device boot1621status.16221623PDTT: Add TriggerOrder to the PCC Identifier structure. The field value1624defines if the trigger needs to be invoked by OSPM before or at the end1625of kernel crash dump processing/handling operation.16261627SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT1628is used for describing devices such as heterogeneous processors,1629accelerators, GPUs, and IO devices with integrated compute or DMA1630engines.16311632MADT: Add support for statistical profiling in GICC. Statistical1633profiling extension (SPE) is an architecture-specific feature for ARM.16341635MADT: Add online capable flag. If this bit is set, system hardware1636supports enabling this processor during OS runtime.16371638New Error Disconnect Recover Notification value. There are a number of1639scenarios where system Firmware in collaboration with hardware may1640disconnect one or more devices from the rest of the system for purposes1641of error containment. Firmware can use this new notification value to1642alert OSPM of such a removal.16431644PPTT: New additional fields in Processor Structure Flags. These flags1645provide more information about processor topology.16461647NFIT/Disassembler: Change a field name from "Address Range" to "Region1648Type".16491650HMAT updates: make several existing fields to be reserved as well as1651rename subtable 0 to "memory proximity domain attributes".16521653GTDT: Add support for new GTDT Revision 3. This revision adds information1654for the EL2 timer.16551656iASL: Update the HMAT example template for new fields.16571658iASL: Add support for the new revision of the GTDT (Rev 3).1659166016611) ACPICA kernel-resident subsystem:16621663AML Parser: fix the main AML parse loop to correctly skip erroneous1664extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2-1665byte extended opcodes. If an error occurs during an AML table load, the1666AML parser will continue loading the table by skipping the offending1667opcode. This implements a "load table at any cost" philosophy.1668166916702) iASL Compiler/Disassembler and Tools:16711672iASL: Add checks for illegal object references, such as a reference1673outside of method to an object within a method. Such an object is only1674temporary.16751676iASL: Emit error for creation of a zero-length operation region. Such a1677region is rather pointless. If encountered, a runtime error is also1678implemented in the interpreter.16791680Debugger: Fix a possible fault with the "test objects" command.16811682iASL: Makefile: support parent directory filenames containing embedded1683spaces.16841685iASL: Update the TPM2 template to revision 4.16861687iASL: Add the ability to report specific warnings or remarks as errors.16881689Disassembler: Disassemble OEMx tables as actual AML byte code.1690Previously, these tables were treated as "unknown table".16911692iASL: Add definition and disassembly for TPM2 revision 3.16931694iASL: Add support for TPM2 rev 3 compilation.169516961697----------------------------------------169808 January 2019. Summary of changes for version 20190108:1699170017011) ACPICA kernel-resident subsystem:17021703Updated all copyrights to 2019. This affects all source code modules.1704170517062) iASL Compiler/Disassembler and Tools:17071708ASL test suite (ASLTS): Updated all copyrights to 2019.17091710Tools: Updated all signon copyrights to 2019.17111712AcpiExec: Added a new option to dump extra information concerning any1713memory leaks detected by the internal object/cache tracking mechanism. -1714va17151716iASL: Updated the table template for the TPM2 table to the newest version1717of the table (Revision 4)171817191720----------------------------------------172113 December 2018. Summary of changes for version 20181213:1722172317241) ACPICA Kernel-resident Subsystem:17251726Fixed some buffer length issues with the GenericSerialBus, related to two1727of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes,1728which are rarely seen in the field. For these, the LEN field of the ASL1729buffer is now ignored. Hans de Goede17301731Implemented a new object evaluation trace mechanism for control methods1732and data objects. This includes nested control methods. It is1733particularly useful for examining the ACPI execution during system1734initialization since the output is relatively terse. The flag below1735enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface:1736#define ACPI_LV_EVALUATION 0x0008000017371738Examples:1739Enter evaluation : _SB.PCI0._INI (Method)1740Exit evaluation : _SB.PCI0._INI1741Enter evaluation : _OSI (Method)1742Exit evaluation : _OSI1743Enter evaluation : _SB.PCI0.TEST (Method)1744Nested method call : _SB.PCI0.NST11745Exit nested method : _SB.PCI0.NST11746Exit evaluation : _SB.PCI0.TEST17471748Added two recently-defined _OSI strings. See1749https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-1750osi.1751"Windows 2018"1752"Windows 2018.2"17531754Update for buffer-to-string conversions via the ToHexString ASL operator.1755A "0x" is now prepended to each of the hex values in the output string.1756This provides compatibility with other ACPI implementations. The ACPI1757specification is somewhat vague on this issue.1758Example output string after conversion:1759"0x01,0x02,0x03,0x04,0x05,0x06"17601761Return a run-time error for TermArg expressions within individual package1762elements. Although this is technically supported by the ASL grammar,1763other ACPI implementations do not support this either. Also, this fixes a1764fault if this type of construct is ever encountered (it never has been).1765176617672) iASL Compiler/Disassembler and Tools:17681769iASL: Implemented a new compile option (-ww) that will promote individual1770warnings and remarks to errors. This is intended to enhance the firmware1771build process.17721773AcpiExec: Implemented a new command-line option (-eo) to support the new1774object evaluation trace mechanism described above.17751776Disassembler: Added support to disassemble OEMx tables as AML/ASL tables1777instead of a "unknown table" message.17781779AcpiHelp: Improved support for the "special" predefined names such as1780_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be1781used for "xx" and "x".17821783----------------------------------------178431 October 2018. Summary of changes for version 20181031:178517861787An Operation Region regression was fixed by properly adding address1788ranges to a global list during initialization. This allows OS to1789accurately check for overlapping regions between native devices (such as1790PCI) and Operation regions as well as checking for region conflicts1791between two Operation Regions.17921793Added support for the 2-byte extended opcodes in the code/feature that1794attempts to continue parsing during the table load phase. Skip parsing1795Device declarations (and other extended opcodes) when an error occurs1796during parsing. Previously, only single-byte opcodes were supported.17971798Cleanup: Simplified the module-level code support by eliminating a1799useless global variable (AcpiGbl_GroupModuleLeveCode).1800180118022) iASL Compiler/Disassembler and Tools:18031804iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE1805could cause a fault in the preprocessor. This was an inadvertent side-1806effect from moving more allocations/frees to the local cache/memory1807mechanism.18081809iASL: Enhanced error detection by validating that all NameSeg elements1810within a NamePatch actually exist. The previous behavior was spotty at1811best, and such errors could be improperly ignored at compiler time (never1812at runtime, however. There are two new error messages, as shown in the1813examples below:18141815dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1)1816Error 6161 - ^ One or more objects within1817the Pathname do not exist (TTTT.BXXX)18181819dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1)1820Error 6160 - One or more prefix Scopes do not exist ^1821(BBBB.CBF1)18221823iASL: Disassembler/table-compiler: Added support for the static data1824table TPM2 revision 3 (an older version of TPM2). The support has been1825added for the compiler and the disassembler.18261827Fixed compilation of DOS format data table file on Unix/Linux systems.1828iASL now properly detects line continuations (\) for DOS format data1829table definition language files on when executing on Unix/Linux.18301831----------------------------------------183203 October 2018. Summary of changes for version 20181003:1833183418352) iASL Compiler/Disassembler and Tools:18361837Fixed a regression introduced in version 20180927 that could cause the1838compiler to fault, especially with NamePaths containing one or more1839carats (^). Such as: ^^_SB_PCI018401841Added a new remark for the Sleep() operator when the sleep time operand1842is larger than one second. This is a very long time for the ASL/BIOS code1843and may not be what was intended by the ASL writer.18441845----------------------------------------184627 September 2018. Summary of changes for version 20180927:1847184818491) ACPICA kernel-resident subsystem:18501851Updated the GPE support to clear the status of all ACPI events when1852entering any/all sleep states in order to avoid premature wakeups. In1853theory, this may cause some wakeup events to be missed, but the1854likelihood of this is small. This change restores the original behavior1855of the ACPICA code in order to fix a regression seen from the previous1856"Stop unconditionally clearing ACPI IRQs during suspend/resume" change.1857This regression could cause some systems to incorrectly wake immediately.18581859Updated the execution of the _REG methods during initialization and1860namespace loading to bring the behavior into closer conformance to the1861ACPI specification and other ACPI implementations:18621863From the ACPI specification 6.2A, section 6.5.4 "_REG (Region):1864"Control methods must assume all operation regions are inaccessible1865until the _REG(RegionSpace, 1) method is executed"18661867"The exceptions to this rule are:18681. OSPM must guarantee that the following operation regions are always1869accessible:1870SystemIO operation regions.1871SystemMemory operation regions when accessing memory returned by the1872System Address Map reporting interfaces."18731874Since the state of both the SystemIO and SystemMemory address spaces are1875defined by the specification to never change, this ACPICA change ensures1876that now _REG is never called on them. This solves some problems seen in1877the field and provides compatibility with other ACPI implementations. An1878update to the upcoming new version of the ACPI specification will help1879clarify this behavior.18801881Updated the implementation of support for the Generic Serial Bus. For the1882"bidirectional" protocols, the internal implementation now automatically1883creates a return data buffer of the maximum size (255). This handles the1884worst-case for data that is returned from the serial bus handler, and1885fixes some problems seen in the field. This new buffer is directly1886returned to the ASL. As such, there is no true "bidirectional" buffer,1887which matches the ACPI specification. This is the reason for the "double1888store" seen in the example ASL code in the specification, shown below:18891890Word Process Call (AttribProcessCall):1891OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100)1892Field(TOP1, BufferAcc, NoLock, Preserve)1893{1894FLD1, 8, // Virtual register at command value 1.1895}18961897Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer1898// as BUFF1899CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word)19001901Store(0x5416, DATA) // Save 0x5416 into the data buffer1902Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call1903transaction1904// This is the "double store". The write to1905// FLD1 returns a new buffer, which is stored1906// back into BUFF with the second Store.1907190819092) iASL Compiler/Disassembler and Tools:19101911iASL: Implemented detection of extraneous/redundant uses of the Offset()1912operator within a Field Unit list. A remark is now issued for these. For1913example, the first two of the Offset() operators below are extraneous.1914Because both the compiler and the interpreter track the offsets1915automatically, these Offsets simply refer to the current offset and are1916unnecessary. Note, when optimization is enabled, the iASL compiler will1917in fact remove the redundant Offset operators and will not emit any AML1918code for them.19191920OperationRegion (OPR1, SystemMemory, 0x100, 0x100)1921Field (OPR1)1922{1923Offset (0), // Never needed1924FLD1, 32,1925Offset (4), // Redundant, offset is already 4 (bytes)1926FLD2, 8,1927Offset (64), // OK use of Offset.1928FLD3, 16,1929}1930dsdt.asl 14: Offset (0),1931Remark 2158 - ^ Unnecessary/redundant use of Offset1932operator19331934dsdt.asl 16: Offset (4),1935Remark 2158 - ^ Unnecessary/redundant use of Offset1936operator19371938----------------------------------------193910 August 2018. Summary of changes for version 20180810:1940194119421) ACPICA kernel-resident subsystem:19431944Initial ACPI table loading: Attempt to continue loading ACPI tables1945regardless of malformed AML. Since migrating table initialization to the1946new module-level code support, the AML interpreter rejected tables upon1947any ACPI error encountered during table load. This is a problem because1948non-serious ACPI errors during table load do not necessarily mean that1949the entire definition block (DSDT or SSDT) is invalid. This change1950improves the table loading by ignoring some types of errors that can be1951generated by incorrect AML. This can range from object type errors, scope1952errors, and index errors.19531954Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs1955during suspend/resume. The status of ACPI events is no longer cleared1956when entering the ACPI S5 system state (power off) which caused some1957systems to power up immediately after turning off power in certain1958situations. This was a functional regression. It was fixed by clearing1959the status of all ACPI events again when entering S5 (for system-wide1960suspend or hibernation the clearing of the status of all events is not1961desirable, as it might cause the kernel to miss wakeup events sometimes).1962Rafael Wysocki.1963196419652) iASL Compiler/Disassembler and Tools:19661967AcpiExec: Enhanced the -fi option (Namespace initialization file). Field1968elements listed in the initialization file were previously initialized1969after the table load and before executing module-level code blocks.1970Recent changes in the module-level code support means that the table load1971becomes a large control method execution. If fields are used within1972module-level code and we are executing with the -fi option, the1973initialization values were used to initialize the namespace object(s)1974only after the table was finished loading. This change Provides an early1975initialization of objects specified in the initialization file so that1976field unit values are populated during the table load (not after the1977load).19781979AcpiExec: Fixed a small memory leak regression that could result in1980warnings during exit of the utility. These warnings were similar to1981these:19820002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small]19830002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x000119841985----------------------------------------198629 June 2018. Summary of changes for version 20180629:1987198819891) iASL Compiler/Disassembler and Tools:19901991iASL: Fixed a regression related to the use of the ASL External1992statement. Error checking for the use of the External() statement has1993been relaxed. Previously, a restriction on the use of External meant that1994the referenced named object was required to be defined in a different1995table (an SSDT). Thus it would be an error to declare an object as an1996external and then define the same named object in the same table. For1997example:1998DefinitionBlock (...)1999{2000External (DEV1)2001Device (DEV1){...} // This was an error2002}2003However, this behavior has caused regressions in some existing ASL code,2004because there is code that depends on named objects and externals (with2005the same name) being declared in the same table. This change will allow2006the ASL code above to compile without errors or warnings.20072008iASL: Implemented ASL language extensions for four operators to make some2009of their arguments optional instead of required:20101) Field (RegionName, AccessType, LockRule, UpdateRule)20112) BankField (RegionName, BankName, BankValue,2012AccessType, LockRule, UpdateRule)20133) IndexField (IndexName, DataName,2014AccessType, LockRule, UpdateRule)2015For the Field operators above, the AccessType, LockRule, and UpdateRule2016are now optional arguments. The default values are:2017AccessType: AnyAcc2018LockRule: NoLock2019UpdateRule: Preserve20204) Mutex (MutexName, SyncLevel)2021For this operator, the SyncLevel argument is now optional. This argument2022is rarely used in any meaningful way by ASL code, and thus it makes sense2023to make it optional. The default value is:2024SyncLevel: 020252026iASL: Attempted use of the ASL Unload() operator now results in the2027following warning:2028"Unload is not supported by all operating systems"2029This is in fact very true, and the Unload operator may be completely2030deprecated in the near future.20312032AcpiExec: Fixed a regression for the -fi option (Namespace initialization2033file. Recent changes in the ACPICA module-level code support altered the2034table load/initialization sequence . This means that the table load has2035become a large method execution of the table itself. If Operation Region2036Fields are used within any module-level code and the -fi option was2037specified, the initialization values were populated only after the table2038had completely finished loading (and thus the module-level code had2039already been executed). This change moves the initialization of objects2040listed in the initialization file to before the table is executed as a2041method. Field unit values are now initialized before the table execution2042is performed.20432044----------------------------------------204531 May 2018. Summary of changes for version 20180531:2046204720481) ACPICA kernel-resident Subsystem:20492050Implemented additional support to help ensure that a DSDT or SSDT is2051fully loaded even if errors are incurred during the load. The majority of2052the problems that are seen is the failure of individual AML operators2053that occur during execution of any module-level code (MLC) existing in2054the table. This support adds a mechanism to abort the current ASL2055statement (AML opcode), emit an error message, and to simply move on to2056the next opcode -- instead of aborting the entire table load. This is2057different than the execution of a control method where the entire method2058is aborted upon any error. The goal is to perform a very "best effort" to2059load the ACPI tables. The most common MLC errors that have been seen in2060the field are direct references to unresolved ASL/AML symbols (referenced2061directly without the use of the CondRefOf operator to validate the2062symbol). This new ACPICA behavior is now compatible with other ACPI2063implementations.20642065Interpreter: The Unload AML operator is no longer supported for the2066reasons below. An AE_NOT_IMPLEMENTED exception is returned.20671) A correct implementation on at least some hosts may not be possible.20682) Other ACPI implementations do not correctly/fully support it.20693) It requires host device driver support which is not known to exist.2070(To properly support namespace unload out from underneath.)20714) This AML operator has never been seen in the field.20722073Parser: Added a debug option to dump AML parse sub-trees as they are2074being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is2075ACPI_DB_PARSE_TREES.20762077Debugger: Reduced the verbosity for errors incurred during table load and2078module-level code execution.20792080Completed an investigation into adding a namespace node "owner list"2081instead of the current "owner ID" associated with namespace nodes. This2082list would link together all nodes that are owned by an individual2083control method. The purpose would be to enhance control method execution2084by speeding up cleanup during method exit (all namespace nodes created by2085a method are deleted upon method termination.) Currently, the entire2086namespace must be searched for matching owner IDs if (and only if) the2087method creates named objects outside of the local scope. However, by far2088the most common case is that methods create objects locally, not outside2089the method scope. There is already an ACPICA optimization in place that2090only searches the entire namespace in the rare case of a method creating2091objects elsewhere in the namespace. Therefore, it is felt that the2092overhead of adding an additional pointer to each namespace node to2093implement the owner list makes this feature unnecessary.2094209520962) iASL Compiler/Disassembler and Tools:20972098iASL, Disassembler, and Template generator: Implemented support for2099Revision D of the IORT table. Adds a new subtable that is used to specify2100SMMUv3 PMCGs. rmurphy-arm.21012102Disassembler: Restored correct table header validation for the "special"2103ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI2104table header and must be special-cased. This was a regression that has2105been present for apparently a long time.21062107AcpiExec: Reduced verbosity of the local exception handler implemented2108within acpiexec. This handler is invoked by ACPICA upon any exceptions2109generated during control method execution. A new option was added: -vh2110restores the original verbosity level if desired.21112112AcpiExec: Changed the default base from decimal to hex for the -x option2113(set debug level). This simplifies the use of this option and matches the2114behavior of the corresponding iASL -x option.21152116AcpiExec: Restored a force-exit on multiple control-c (sigint)2117interrupts. This allows program termination even if other issues cause2118the control-c to fail.21192120ASL test suite (ASLTS): Added tests for the recently implemented package2121element resolution mechanism that allows forward references to named2122objects from individual package elements (this mechanism provides2123compatibility with other ACPI implementations.)212421252126----------------------------------------21278 May 2018. Summary of changes for version 20180508:2128212921301) ACPICA kernel-resident subsystem:21312132Completed the new (recently deployed) package resolution mechanism for2133the Load and LoadTable ASL/AML operators. This fixes a regression that2134was introduced in version 20180209 that could result in an2135AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table2136(SSDT) that contains package objects.2137213821392) iASL Compiler/Disassembler and Tools:21402141AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than21421 MB. This change allows for table offsets within the acpidump file to be2143up to 8 characters. These changes are backwards compatible with existing2144acpidump files.214521462147----------------------------------------214827 April 2018. Summary of changes for version 20180427:2149215021511) ACPICA kernel-resident subsystem:21522153Debugger: Added support for Package objects in the "Test Objects"2154command. This command walks the entire namespace and evaluates all named2155data objects (Integers, Strings, Buffers, and now Packages).21562157Improved error messages for the namespace root node. Originally, the root2158was referred to by the confusing string "\___". This has been replaced by2159"Namespace Root" for clarification.21602161Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin2162Ian King <[email protected]>.2163216421652) iASL Compiler/Disassembler and Tools:21662167iASL: Implemented support to detect and flag illegal forward references.2168For compatibility with other ACPI implementations, these references are2169now illegal at the root level of the DSDT or SSDTs. Forward references2170have always been illegal within control methods. This change should not2171affect existing ASL/AML code because of the fact that these references2172have always been illegal in the other ACPI implementation.21732174iASL: Added error messages for the case where a table OEM ID and OEM2175TABLE ID strings are longer than the ACPI-defined length. Previously,2176these strings were simply silently truncated.21772178iASL: Enhanced the -tc option (which creates an AML hex file in C,2179suitable for import into a firmware project):21801) Create a unique name for the table, to simplify use of multiple2181SSDTs.21822) Add a protection #ifdef in the file, similar to a .h header file.2183With assistance from Sami Mujawar, [email protected] and Evan Lloyd,2184[email protected]21852186AcpiExec: Added a new option, -df, to disable the local fault handler.2187This is useful during debugging, where it may be desired to drop into a2188debugger on a fault.21892190----------------------------------------219113 March 2018. Summary of changes for version 20180313:2192219321941) ACPICA kernel-resident subsystem:21952196Implemented various improvements to the GPE support:219721981) Dispatch all active GPEs at initialization time so that no GPEs are2199lost.22002) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled2201before devices are enumerated.22023) Don't unconditionally clear ACPI IRQs during suspend/resume, so that2203IRQs are not lost.22044) Add parallel GPE handling to eliminate the possibility of dispatching2205the same GPE twice.22065) Dispatch any pending GPEs after enabling for the first time.22072208AcpiGetObjectInfo - removed support for the _STA method. This was causing2209problems on some platforms.22102211Added a new _OSI string, "Windows 2017.2".22122213Cleaned up and simplified the module-level code support. These changes2214are in preparation for the eventual removal of the legacy MLC support2215(deferred execution), replaced by the new MLC architecture which executes2216the MLC as a table is loaded (DSDT/SSDTs).22172218Changed a compile-time option to a runtime option. Changes the option to2219ignore ACPI table load-time package resolution errors into a runtime2220option. Used only for platforms that generate many AE_NOT_FOUND errors2221during boot. AcpiGbl_IgnorePackageResolutionErrors.22222223Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some2224ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid2225compilation errors from unused variables (seen with some compilers).2226222722282) iASL Compiler/Disassembler and Tools:22292230ASLTS: parallelized execution in order to achieve an (approximately) 2X2231performance increase.22322233ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves2234error reporting.22352236----------------------------------------223709 February 2018. Summary of changes for version 20180209:2238223922401) ACPICA kernel-resident subsystem:22412242Completed the final integration of the recent changes to Package Object2243handling and the module-level AML code support. This allows forward2244references from individual package elements when the package object is2245declared from within module-level code blocks. Provides compatibility2246with other ACPI implementations.22472248The new architecture for the AML module-level code has been completed and2249is now the default for the ACPICA code. This new architecture executes2250the module-level code in-line as the ACPI table is loaded/parsed instead2251of the previous architecture which deferred this code until after the2252table was fully loaded. This solves some ASL code ordering issues and2253provides compatibility with other ACPI implementations. At this time,2254there is an option to fallback to the earlier architecture, but this2255support is deprecated and is planned to be completely removed later this2256year.22572258Added a compile-time option to ignore AE_NOT_FOUND exceptions during2259resolution of named reference elements within Package objects. Although2260this is potentially a serious problem, it can generate a lot of2261noise/errors on platforms whose firmware carries around a bunch of unused2262Package objects. To disable these errors, define2263ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All2264errors are always reported for ACPICA applications such as AcpiExec.22652266Fixed a regression related to the explicit type-conversion AML operators2267(ToXXXX). The regression was introduced early in 2017 but was not seen2268until recently because these operators are not fully supported by other2269ACPI implementations and are thus rarely used by firmware developers. The2270operators are defined by the ACPI specification to not implement the2271"implicit result object conversion". The regression incorrectly2272introduced this object conversion for the following explicit conversion2273operators:2274ToInteger2275ToString2276ToBuffer2277ToDecimalString2278ToHexString2279ToBCD2280FromBCD2281228222832) iASL Compiler/Disassembler and Tools:22842285iASL: Fixed a problem with the compiler constant folding feature as2286related to the ToXXXX explicit conversion operators. These operators do2287not support the "implicit result object conversion" by definition. Thus,2288ASL expressions that use these operators cannot be folded to a simple2289Store operator because Store implements the implicit conversion. This2290change uses the CopyObject operator for the ToXXXX operator folding2291instead. CopyObject is defined to not implement implicit result2292conversions and is thus appropriate for folding the ToXXXX operators.22932294iASL: Changed the severity of an error condition to a simple warning for2295the case where a symbol is declared both locally and as an external2296symbol. This accommodates existing ASL code.22972298AcpiExec: The -ep option to enable the new architecture for module-level2299code has been removed. It is replaced by the -dp option which instead has2300the opposite effect: it disables the new architecture (the default) and2301enables the legacy architecture. When the legacy code is removed in the2302future, the -dp option will be removed also.23032304----------------------------------------230505 January 2018. Summary of changes for version 20180105:2306230723081) ACPICA kernel-resident subsystem:23092310Updated all copyrights to 2018. This affects all source code modules.23112312Fixed a possible build error caused by an unresolved reference to the2313AcpiUtSafeStrncpy function.23142315Removed NULL pointer arithmetic in the various pointer manipulation2316macros. All "(void *) NULL" constructs are converted to "(void *) 0".2317This eliminates warnings/errors in newer C compilers. Jung-uk Kim.23182319Added support for A32 ABI compilation, which uses the ILP32 model. Anuj2320Mittal.2321232223232) iASL Compiler/Disassembler and Tools:23242325ASLTS: Updated all copyrights to 2018.23262327Tools: Updated all signon copyrights to 2018.23282329AcpiXtract: Fixed a regression related to ACPI table signatures where the2330signature was truncated to 3 characters (instead of 4).23312332AcpiExec: Restore the original terminal mode after the use of the -v and2333-vd options.23342335ASLTS: Deployed the iASL __METHOD__ macro across the test suite.23362337----------------------------------------233814 December 2017. Summary of changes for version 20171214:2339234023411) ACPICA kernel-resident subsystem:23422343Fixed a regression in the external (public) AcpiEvaluateObjectTyped2344interface where the optional "pathname" argument had inadvertently become2345a required argument returning an error if omitted (NULL pointer2346argument).23472348Fixed two possible memory leaks related to the recently developed "late2349resolution" of reference objects within ASL Package Object definitions.23502351Added two recently defined _OSI strings: "Windows 2016" and "Windows23522017". Mario Limonciello.23532354Implemented and deployed a safer version of the C library function2355strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the2356creation of unterminated strings as a possible result of a standard2357strncpy.23582359Cleaned up and restructured the global variable file (acglobal.h). There2360are many changes, but no functional changes.2361236223632) iASL Compiler/Disassembler and Tools:23642365iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the2366optional OemData field at the end of the table was incorrectly required2367for proper compilation. It is now correctly an optional field.23682369ASLTS: The entire suite was converted from standard ASL to the ASL+2370language, using the ASL-to-ASL+ converter which is integrated into the2371iASL compiler. A binary compare of all output files has verified the2372correctness of the conversion.23732374iASL: Fixed the source code build for platforms where "char" is unsigned.2375This affected the iASL lexer only. Jung-uk Kim.23762377----------------------------------------237810 November 2017. Summary of changes for version 20171110:2379238023811) ACPICA kernel-resident subsystem:23822383This release implements full support for ACPI 6.2A:2384NFIT - Added a new subtable, "Platform Capabilities Structure"2385No other changes to ACPICA were required, since ACPI 6.2A is primarily an2386errata release of the specification.23872388Other ACPI table changes:2389IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo2390PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy2391Linton23922393Utilities: Modified the string/integer conversion functions to use2394internal 64-bit divide support instead of a native divide. On 32-bit2395platforms, a 64-bit divide typically requires a library function which2396may not be present in the build (kernel or otherwise).23972398Implemented a targeted error message for timeouts returned from the2399Embedded Controller device driver. This is seen frequently enough to2400special-case an AE_TIME returned from an EC operation region access:2401"Timeout from EC hardware or EC device driver"24022403Changed the "ACPI Exception" message prefix to "ACPI Error" so that all2404runtime error messages have the identical prefix.2405240624072) iASL Compiler/Disassembler and Tools:24082409AcpiXtract: Fixed a problem with table header detection within the2410acpidump file. Processing a table could be ended early if a 0x40 (@)2411appears in the original binary table, resulting in the @ symbol appearing2412in the decoded ASCII field at the end of the acpidump text line. The2413symbol caused acpixtract to incorrectly think it had reached the end of2414the current table and the beginning of a new table.24152416AcpiXtract: Added an option (-f) to ignore some errors during table2417extraction. This initial implementation ignores non-ASCII and non-2418printable characters found in the acpidump text file.24192420TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics2421for ASLTS. This feature is used to track memory allocations from2422different memory caches within the ACPICA code. At the end of an ASLTS2423run, these memory statistics are recorded and stored in a log file.24242425Debugger (user-space version): Implemented a simple "Background" command.2426Creates a new thread to execute a control method in the background, while2427control returns to the debugger prompt to allow additional commands.2428Syntax: Background <Namepath> [Arguments]24292430----------------------------------------243129 September 2017. Summary of changes for version 20170929:2432243324341) ACPICA kernel-resident subsystem:24352436Redesigned and implemented an improved ASL While() loop timeout2437mechanism. This mechanism is used to prevent infinite loops in the kernel2438AML interpreter caused by either non-responsive hardware or incorrect AML2439code. The new implementation uses AcpiOsGetTimer instead of a simple2440maximum loop count, and is thus more accurate and constant across2441different machines. The default timeout is currently 30 seconds, but this2442may be adjusted later.24432444Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to2445better reflect the new implementation of the loop timeout mechanism.24462447Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support2448and to fix an off-by-one error. Jung-uk Kim.24492450Fixed an EFI build problem by updating the makefiles to for a new file2451that was added, utstrsuppt.c2452245324542) iASL Compiler/Disassembler and Tools:24552456Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This2457includes support in the table disassembler, compiler, and template2458generator.24592460iASL: Added an exception for an illegal type of recursive method2461invocation. If a method creates named objects, the first recursive call2462will fail at runtime. This change adds an error detection at compile time2463to catch the problem up front. Note: Marking such a method as2464"serialized" will not help with this problem, because the same thread can2465acquire the method mutex more than once. Example compiler and runtime2466output:24672468Method (MTH1)2469{2470Name (INT1, 1)2471MTH1 ()2472}24732474dsdt.asl 22: MTH1 ()2475Error 6152 - ^ Illegal recursive call to method2476that creates named objects (MTH1)24772478Previous runtime exception:2479ACPI Error: [INT1] Namespace lookup failure,2480AE_ALREADY_EXISTS (20170831/dswload2-465)24812482iASL: Updated support for External() opcodes to improve namespace2483management and error detection. These changes are related to issues seen2484with multiple-segment namespace pathnames within External declarations,2485such as below:24862487External(\_SB.PCI0.GFX0, DeviceObj)2488External(\_SB.PCI0.GFX0.ALSI)24892490iASL: Implemented support for multi-line error/warning messages. This2491enables more detailed and helpful error messages as below, from the2492initial deployment for the duplicate names error:24932494DSDT.iiii 1692: Device(PEG2) {2495Error 6074 - ^ Name already exists in scope2496(PEG2)24972498Original name creation/declaration below:2499DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj)25002501AcpiXtract: Added additional flexibility to support differing input hex2502dump formats. Specifically, hex dumps that contain partial disassembly2503and/or comments within the ACPI table data definition. There exist some2504dump utilities seen in the field that create this type of hex dump (such2505as Simics). For example:25062507DSDT @ 0xdfffd0c0 (10999 bytes)2508Signature DSDT2509Length 109992510Revision 12511Checksum 0xf3 (Ok)2512OEM_ID BXPC2513OEM_table_id BXDSDT2514OEM_revision 12515Creator_id 12805934812516Creator_revision 53739934525170000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 002518...25192af0: 5f 4c 30 46 00 a4 0125202521Test suite: Miscellaneous changes/fixes:2522More cleanup and simplification of makefiles2523Continue compilation of test cases after a compile failure2524Do not perform binary compare unless both files actually exist25252526iASL: Performed some code/module restructuring. Moved all memory2527allocation functions to new modules. Two new files, aslallocate.c and2528aslcache.c25292530----------------------------------------253131 August 2017. Summary of changes for version 20170831:2532253325341) ACPICA kernel-resident subsystem:25352536Implemented internal support for full 64-bit addresses that appear in all2537Generic Address Structure (GAS) structures. Previously, only the lower 322538bits were used. Affects the use of GAS structures in the FADT and other2539tables, as well as the GAS structures passed to the AcpiRead and2540AcpiWrite public external interfaces that are used by drivers. Lv Zheng.25412542Added header support for the PDTT ACPI table (Processor Debug Trigger2543Table). Full support in the iASL Data Table Compiler and disassembler is2544forthcoming.2545254625472) iASL Compiler/Disassembler and Tools:25482549iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor2550Properties Topology Table) where a flag bit was specified in the wrong2551bit position ("Line Size Valid", bit 6).25522553iASL: Implemented support for Octal integer constants as defined by the2554ASL language grammar, per the ACPI specification. Any integer constant2555that starts with a zero is an octal constant. For example,2556Store (037777, Local0) /* Octal constant */2557Store (0x3FFF, Local0) /* Hex equivalent */2558Store (16383, Local0) /* Decimal equivalent */25592560iASL: Improved overflow detection for 64-bit string conversions during2561compilation of integer constants. "Overflow" in this case means a string2562that represents an integer that is too large to fit into a 64-bit value.2563Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to2564the low-order 32 bits with a warning, as previously implemented. Several2565new exceptions are defined that indicate a 64-bit overflow, as well as2566the base (radix) that was used during the attempted conversion. Examples:2567Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW2568Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW2569Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW25702571iASL: Added a warning for the case where a ResourceTemplate is declared2572with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In2573this case, the resulting template is created with a single END_TAG2574descriptor, which is essentially useless.25752576iASL: Expanded the -vw option (ignore specific warnings/remarks) to2577include compilation error codes as well.25782579----------------------------------------258028 July 2017. Summary of changes for version 20170728:2581258225831) ACPICA kernel-resident subsystem:25842585Fixed a regression seen with small resource descriptors that could cause2586an inadvertent AE_AML_NO_RESOURCE_END_TAG exception.25872588AML interpreter: Implemented a new feature that allows forward references2589from individual named references within package objects that are2590contained within blocks of "module-level code". This provides2591compatibility with other ACPI implementations and supports existing2592firmware that depends on this feature. Example:25932594Name (ABCD, 1)2595If (ABCD) /* An If() at module-level */2596{2597Name (PKG1, Package()2598{2599INT1 /* Forward reference to object INT12600*/2601})2602Name (INT1, 0x1234)2603}26042605AML Interpreter: Fixed a problem with the Alias() operator where aliases2606to some ASL objects were not handled properly. Objects affected are:2607Mutex, Event, and OperationRegion.26082609AML Debugger: Enhanced to properly handle AML Alias objects. These2610objects have one level of indirection which was not fully supported by2611the debugger.26122613Table Manager: Added support to detect and ignore duplicate SSDTs within2614the XSDT/RSDT. This error in the XSDT has been seen in the field.26152616EFI and EDK2 support:2617Enabled /WX flag for MSVC builds2618Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer2619Added local support for 64-bit multiply and shift operations2620Added support to compile acpidump.efi on Windows2621Added OSL function stubs for interfaces not used under EFI26222623Added additional support for the _DMA predefined name. _DMA returns a2624buffer containing a resource template. This change add support within the2625resource manager (AcpiWalkResourceBuffer) to walk and parse this list of2626resource descriptors. Lorenzo Pieralisi <[email protected]>2627262826292) iASL Compiler/Disassembler and Tools:26302631iASL: Fixed a problem where the internal input line buffer(s) could2632overflow if there are very long lines in the input ASL source code file.2633Implemented buffer management that automatically increases the size of2634the buffers as necessary.26352636iASL: Added an option (-vx) to "expect" particular remarks, warnings and2637errors. If the specified exception is not raised during compilation, the2638compiler emits an error. This is intended to support the ASL test suite,2639but may be useful in other contexts.26402641iASL: Implemented a new predefined macro, __METHOD__, which returns a2642string containing the name of the current control method that is being2643compiled.26442645iASL: Implemented debugger and table compiler support for the SDEI ACPI2646table (Software Delegated Exception Interface). James Morse2647<[email protected]>26482649Unix/Linux makefiles: Added an option to disable compile optimizations.2650The disable occurs when the NOOPT flag is set to TRUE.2651[email protected]26522653Acpidump: Added support for multiple DSDT and FACS tables. This can occur2654when there are different tables for 32-bit versus 64-bit.26552656Enhanced error reporting for the ASL test suite (ASLTS) by removing2657unnecessary/verbose text, and emit the actual line number where an error2658has occurred. These changes are intended to improve the usefulness of the2659test suite.26602661----------------------------------------266229 June 2017. Summary of changes for version 20170629:2663266426651) ACPICA kernel-resident subsystem:26662667Tables: Implemented a deferred ACPI table verification. This is useful2668for operating systems where the tables cannot be verified in the early2669initialization stage due to early memory mapping limitations on some2670architectures. Lv Zheng.26712672Tables: Removed the signature validation for dynamically loaded tables.2673Provides compatibility with other ACPI implementations. Previously, only2674SSDT tables were allowed, as per the ACPI specification. Now, any table2675signature can be used via the Load() operator. Lv Zheng.26762677Tables: Fixed several mutex issues that could cause errors during table2678acquisition. Lv Zheng.26792680Tables: Fixed a problem where an ACPI warning could be generated if a2681null pointer was passed to the AcpiPutTable interface. Lv Zheng.26822683Tables: Added a mechanism to handle imbalances for the AcpiGetTable and2684AcpiPutTable interfaces. This applies to the "late stage" table loading2685when the use of AcpiPutTable is no longer required (since the system2686memory manager is fully running and available). Lv Zheng.26872688Fixed/Reverted a regression during processing of resource descriptors2689that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG2690exception in this case.26912692Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the2693I/O Remapping specification. Robin Murphy <[email protected]>26942695Interpreter: Fixed a possible fault if an Alias operator with an invalid2696or duplicate target is encountered during Alias creation in2697AcpiExCreateAlias. Alex James <[email protected]>26982699Added an option to use designated initializers for function pointers.2700Kees Cook <[email protected]>2701270227032) iASL Compiler/Disassembler and Tools:27042705iASL: Allow compilation of External declarations with target pathnames2706that refer to existing named objects within the table. Erik Schmauss.27072708iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a2709FieldUnit name also is declared via External in the same table. Erik2710Schmauss.27112712iASL: Allow existing scope names within pathnames used in External2713statements. For example:2714External (ABCD.EFGH) // ABCD exists, but EFGH is truly external2715Device (ABCD)27162717iASL: IORT ACPI table: Implemented changes required to decode the new2718Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table2719compiler. Ganapatrao Kulkarni <[email protected]>27202721Disassembler: Don't abort disassembly on errors from External()2722statements. Erik Schmauss.27232724Disassembler: fixed a possible fault when one of the Create*Field2725operators references a Resource Template. ACPICA Bugzilla 1396.27262727iASL: In the source code, resolved some naming inconsistences across the2728parsing support. Fixes confusion between "Parse Op" and "Parse Node".2729Adds a new file, aslparseop.c27302731----------------------------------------273231 May 2017. Summary of changes for version 20170531:2733273427350) ACPI 6.2 support:27362737The ACPI specification version 6.2 has been released and is available at2738http://uefi.org/specifications27392740This version of ACPICA fully supports the ACPI 6.2 specification. Changes2741are summarized below.27422743New ACPI tables (Table Compiler/Disassembler/Templates):2744HMAT (Heterogeneous Memory Attributes Table)2745WSMT (Windows SMM Security Mitigation Table)2746PPTT (Processor Properties Topology Table)27472748New subtables for existing ACPI tables:2749HEST (New subtable, Arch-deferred machine check)2750SRAT (New subtable, Arch-specific affinity structure)2751PCCT (New subtables, Extended PCC subspaces (types 3 and 4))27522753Simple updates for existing ACPI tables:2754BGRT (two new flag bits)2755HEST (New bit defined for several subtables, GHES_ASSIST)27562757New Resource Descriptors and Resource macros (Compiler/Disassembler):2758PinConfig()2759PinFunction()2760PinGroup()2761PinGroupConfig()2762PinGroupFunction()2763New type for hardware error notification (section 18.3.2.9)27642765New predefined names/methods (Compiler/Interpreter):2766_HMA (Heterogeneous Memory Attributes)2767_LSI (Label Storage Information)2768_LSR (Label Storage Read)2769_LSW (Label Storage Write)27702771ASL grammar/macro changes (Compiler):2772For() ASL macro, implemented with the AML while operator2773Extensions to Concatenate operator2774Support for multiple definition blocks in same ASL file2775Clarification for Buffer operator2776Allow executable AML code underneath all scopes (Devices, etc.)2777Clarification/change for the _OSI return value2778ASL grammar update for reference operators2779Allow a zero-length string for AML filename in DefinitionBlock27802781Miscellaneous:2782New device object notification value2783Remove a notify value (0x0C) for graceful shutdown2784New UUIDs for processor/cache properties and2785physical package property2786New _HID, ACPI0014 (Wireless Power Calibration Device)2787278827891) ACPICA kernel-resident subsystem:27902791Added support to disable ACPI events on hardware-reduced platforms.2792Eliminates error messages of the form "Could not enable fixed event". Lv2793Zheng27942795Fixed a problem using Device/Thermal objects with the ObjectType and2796DerefOf ASL operators. This support had not been fully/properly2797implemented.27982799Fixed a problem where if a Buffer object containing a resource template2800was longer than the actual resource template, an error was generated --2801even though the AML is legal. This case has been seen in the field.28022803Fixed a problem with the header definition of the MADT PCAT_COMPAT flag.2804The values for DUAL_PIC and MULTIPLE_APIC were reversed.28052806Added header file changes for the TPM2 ACPI table. Update to new version2807of the TCG specification. Adds a new TPM2 subtable for ARM SMC.28082809Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex.2810These interfaces are intended to be used only in conjunction with the2811predefined _DLM method (Device Lock Method). "This object appears in a2812device scope when AML access to the device must be synchronized with the2813OS environment".28142815Example Code and Data Size: These are the sizes for the OS-independent2816acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The2817debug version of the code includes the debug output trace mechanism and2818has a much larger code and data size.28192820Current Release:2821Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total2822Debug Version: 204.0K Code, 84.3K Data, 288.3K Total2823Previous Release:2824Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total2825Debug Version: 207.5K Code, 82.7K Data, 290.2K Total2826282728282) iASL Compiler/Disassembler and Tools:28292830iASL: Fixed a problem where an External() declaration could not refer to2831a Field Unit. Erik Schmauss.28322833Disassembler: Improved support for the Switch/Case operators. This2834feature will disassemble AML code back to the original Switch operators2835when possible, instead of an If..Else sequence. David Box28362837iASL and disassembler: Improved the handling of multiple extraneous2838parentheses for both ASL input and disassembled ASL output.28392840Improved the behavior of the iASL compiler and disassembler to detect2841improper use of external declarations28422843Disassembler: Now aborts immediately upon detection of an unknown AML2844opcode. The AML parser has no real way to recover from this, and can2845result in the creation of an ill-formed parse tree that causes errors2846later during the disassembly.28472848All tools: Fixed a problem where the Unix application OSL did not handle2849control-c correctly. For example, a control-c could incorrectly wake the2850debugger.28512852AcpiExec: Improved the Control-C handling and added a handler for2853segmentation faults (SIGSEGV). Supports both Windows and Unix-like2854environments.28552856Reduced the verbosity of the generic unix makefiles. Previously, each2857compilation displayed the full set of compiler options. This has been2858eliminated as the options are easily inspected within the makefiles. Each2859compilation now results in a single line of output.28602861----------------------------------------286203 March 2017. Summary of changes for version 20170303:2863286428650) ACPICA licensing:28662867The licensing information at the start of each source code module has2868been updated. In addition to the Intel license, the dual GPLv2/BSD2869license has been added for completeness. Now, a single version of the2870source code should be suitable for all ACPICA customers. This is the2871major change for this release since it affects all source code modules.2872287328741) ACPICA kernel-resident subsystem:28752876Fixed two issues with the common asltypes.h header that could cause2877problems in some environments: (Kim Jung-uk)2878Removed typedef for YY_BUFFER_STATE ?2879Fixes an error with earlier versions of Flex.2880Removed use of FILE typedef (which is only defined in stdio.h)2881288228832) iASL Compiler/Disassembler and Tools:28842885Disassembler: fixed a regression introduced in 20170224. A fix for a2886memory leak related to resource descriptor tags (names) could fault when2887the disassembler was generated with 64-bit compilers.28882889The ASLTS test suite has been updated to implement a new testing2890architecture. During generation of the suite from ASL source, both the2891ASL and ASL+ compilers are now validated, as well as the disassembler2892itself (Erik Schmauss). The architecture executes as follows:28932894For every ASL source module:2895Compile (legacy ASL compilation)2896Disassemble the resulting AML to ASL+ source code2897Compile the new ASL+ module2898Perform a binary compare on the legacy AML and the new ASL+ AML2899The ASLTS suite then executes normally using the AML binaries.29002901----------------------------------------290224 February 2017. Summary of changes for version 20170224:2903290429051) ACPICA kernel-resident subsystem:29062907Interpreter: Fixed two issues with the control method return value auto-2908repair feature, where an attempt to double-delete an internal object2909could result in an ACPICA warning (for _CID repair and others). No fault2910occurs, however, because the attempted deletion (actually a release to an2911internal cache) is detected and ignored via object poisoning.29122913Debugger: Fixed an AML interpreter mutex issue during the single stepping2914of control methods. If certain debugger commands are executed during2915stepping, a mutex acquire/release error could occur. Lv Zheng.29162917Fixed some issues generating ACPICA with the Intel C compiler by2918restoring the original behavior and compiler-specific include file in2919acenv.h. Lv Zheng.29202921Example Code and Data Size: These are the sizes for the OS-independent2922acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The2923debug version of the code includes the debug output trace mechanism and2924has a much larger code and data size.29252926Current Release:2927Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total2928Debug Version: 207.5K Code, 82.7K Data, 290.2K Total2929Previous Release:2930Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total2931Debug Version: 201.5K Code, 82.2K Data, 283.7K Total2932293329342) iASL Compiler/Disassembler and Tools:29352936iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion2937tool has been designed, implemented, and included in this release. The2938key feature of this utility is that the original comments within the2939input ASL file are preserved during the conversion process, and included2940within the converted ASL+ file -- thus creating a transparent conversion2941of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss.29422943Usage: iasl -ca <ASL-filename> // Output is a .dsl file with2944converted code29452946iASL/Disassembler: Improved the detection and correct disassembly of2947Switch/Case operators. This feature detects sequences of if/elseif/else2948operators that originated from ASL Switch/Case/Default operators and2949emits the original operators. David Box.29502951iASL: Improved the IORT ACPI table support in the following areas. Lv2952Zheng:2953Clear MappingOffset if the MappingCount is zero.2954Fix the disassembly of the SMMU GSU interrupt offset.2955Update the template file for the IORT table.29562957Disassembler: Enhanced the detection and disassembly of resource2958template/descriptor within a Buffer object. An EndTag descriptor is now2959required to have a zero second byte, since all known ASL compilers emit2960this. This helps eliminate incorrect decisions when a buffer is2961disassembled (false positives on resource templates).29622963----------------------------------------296419 January 2017. Summary of changes for version 20170119:2965296629671) General ACPICA software:29682969Entire source code base: Added the 2017 copyright to all source code2970legal/licensing module headers and utility/tool signons. This includes2971the standard Linux dual-license header. This affects virtually every file2972in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and2973the ACPICA test suite.2974297529762) iASL Compiler/Disassembler and Tools:29772978iASL: Removed/fixed an inadvertent remark when a method argument2979containing a reference is used as a target operand within the method (and2980never used as a simple argument), as in the example below. Jeffrey Hugo.29812982dsdt.asl 1507: Store(0x1, Arg0)2983Remark 2146 - ^ Method Argument is never used (Arg0)29842985All tools: Removed the bit width of the compiler that generated the tool2986from the common signon for all user space tools. This proved to be2987confusing and unnecessary. This includes similar removal of HARDWARE_NAME2988from the generic makefiles (Thomas Petazzoni). Example below.29892990Old:2991ASL+ Optimizing Compiler version 20170119-322992ASL+ Optimizing Compiler version 20170119-6429932994New:2995ASL+ Optimizing Compiler version 2017011929962997----------------------------------------299822 December 2016. Summary of changes for version 20161222:2999300030011) ACPICA kernel-resident subsystem:30023003AML Debugger: Implemented a new mechanism to simplify and enhance3004debugger integration into all environments, including kernel debuggers3005and user-space utilities, as well as remote debug services. This3006mechanism essentially consists of new OSL interfaces to support debugger3007initialization/termination, as well as wait/notify interfaces to perform3008the debugger handshake with the host. Lv Zheng.30093010New OSL interfaces:3011AcpiOsInitializeDebugger (void)3012AcpiOsTerminateDebugger (void)3013AcpiOsWaitCommandReady (void)3014AcpiOsNotifyCommandComplete (void)30153016New OS services layer:3017osgendbg.c -- Example implementation, and used for AcpiExec30183019Update for Generic Address Space (GAS) support: Although the AccessWidth3020and/or BitOffset fields of the GAS are not often used, this change now3021fully supports these fields. This affects the internal support for FADT3022registers, registers in other ACPI data tables, and the AcpiRead and3023AcpiWrite public interfaces. Lv Zheng.30243025Sleep support: In order to simplify integration of ACPI sleep for the3026various host operating systems, a new OSL interface has been introduced.3027AcpiOsEnterSleep allows the host to perform any required operations3028before the final write to the sleep control register(s) is performed by3029ACPICA. Lv Zheng.30303031New OSL interface:3032AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)30333034Called from these internal interfaces:3035AcpiHwLegacySleep3036AcpiHwExtendedSleep30373038EFI support: Added a very small EFI/ACPICA example application. Provides3039a simple demo for EFI integration, as well as assisting with resolution3040of issues related to customer ACPICA/EFI integration. Lv Zheng. See:30413042source/tools/efihello/efihello.c30433044Local C library: Implemented several new functions to enhance ACPICA3045portability, for environments where these clib functions are not3046available (such as EFI). Lv Zheng:3047putchar3048getchar3049strpbrk3050strtok3051memmove30523053Fixed a regression where occasionally a valid resource descriptor was3054incorrectly detected as invalid at runtime, and a3055AE_AML_NO_RESOURCE_END_TAG was returned.30563057Fixed a problem with the recently implemented support that enables3058control method invocations as Target operands to many ASL operators.3059Warnings of this form: "Needed type [Reference], found [Processor]" were3060seen at runtime for some method invocations.30613062Example Code and Data Size: These are the sizes for the OS-independent3063acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3064debug version of the code includes the debug output trace mechanism and3065has a much larger code and data size.30663067Current Release:3068Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total3069Debug Version: 201.7K Code, 82.7K Data, 284.4K Total3070Previous Release:3071Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total3072Debug Version: 201.3K Code, 82.7K Data, 284.0K Total3073307430752) iASL Compiler/Disassembler and Tools:30763077Disassembler: Enhanced output by adding the capability to detect and3078disassemble ASL Switch/Case statements back to the original ASL source3079code instead of if/else blocks. David Box.30803081AcpiHelp: Split a large file into separate files based upon3082functionality/purpose. New files are:3083ahaml.c3084ahasl.c30853086----------------------------------------308717 November 2016. Summary of changes for version 20161117:3088308930901) ACPICA kernel-resident subsystem:30913092Table Manager: Fixed a regression introduced in 20160729, "FADT support3093cleanup". This was an attempt to remove all references in the source to3094the FADT version 2, which never was a legal version number. It was3095skipped because it was an early version of 64-bit support that was3096eventually abandoned for the current 64-bit support.30973098Interpreter: Fixed a problem where runtime implicit conversion was3099incorrectly disabled for the ASL operators below. This brings the3100behavior into compliance with the ACPI specification:3101FromBCD3102ToBCD3103ToDecimalString3104ToHexString3105ToInteger3106ToBuffer31073108Table Manager: Added a new public interface, AcpiPutTable, used to3109release and free an ACPI table returned by AcpiGetTable and related3110interfaces. Lv Zheng.31113112Example Code and Data Size: These are the sizes for the OS-independent3113acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3114debug version of the code includes the debug output trace mechanism and3115has a much larger code and data size.31163117Current Release:3118Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total3119Debug Version: 201.3K Code, 82.7K Data, 284.0K Total3120Previous Release:3121Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total3122Debug Version: 200.7K Code, 82.1K Data, 282.8K Total3123312431252) iASL Compiler/Disassembler and Tools:31263127Disassembler: Fixed a regression for disassembly of Resource Template.3128Detection of templates in the AML stream missed some types of templates.31293130iASL: Fixed a problem where an Access Size error was returned for the PCC3131address space when the AccessSize of the GAS register is greater than a3132DWORD. Hoan Tran.31333134iASL: Implemented several grammar changes for the operators below. These3135changes are slated for the next version of the ACPI specification:3136RefOf - Disallow method invocation as an operand3137CondRefOf - Disallow method invocation as an operand3138DerefOf - Disallow operands that use the result from operators3139that3140do not return a reference (Changed TermArg to3141SuperName).31423143iASL: Control method invocations are now allowed for Target operands, as3144per the ACPI specification. Removed error for using a control method3145invocation as a Target operand.31463147Disassembler: Improved detection of Resource Templates, Unicode, and3148Strings within Buffer objects. These subtypes do not contain a specific3149opcode to indicate the originating ASL code, and they must be detected by3150other means within the disassembler.31513152iASL: Implemented an optimization improvement for 32-bit ACPI tables3153(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode3154only after 64-bit to 32-bit truncation. A truncation warning message is3155still emitted, however.31563157AcpiXtract: Implemented handling for both types of line terminators (LF3158or CR/LF) so that it can accept AcpiDump output files from any system.3159Peter Wu.31603161AcpiBin: Added two new options for comparing AML files:3162-a: compare and display ALL mismatches3163-o: start compare at this offset into the second file31643165----------------------------------------316630 September 2016. Summary of changes for version 20160930:3167316831691) ACPICA kernel-resident subsystem:31703171Fixed a regression in the internal AcpiTbFindTable function where a non3172AE_OK exception could inadvertently be returned even if the function did3173not fail. This problem affects the following operators:3174DataTableRegion3175LoadTable31763177Fixed a regression in the LoadTable operator where a load to any3178namespace location other than the root no longer worked properly.31793180Increased the maximum loop count value that will result in the3181AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to3182prevent infinite loops within the AML interpreter and thus the host OS3183kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to31841,048,575).31853186Moved the AcpiGbl_MaxLoopIterations configuration variable to the public3187acpixf.h file. This allows hosts to easily configure the maximum loop3188count at runtime.31893190Removed an illegal character in the strtoul64.c file. This character3191caused errors with some C compilers.31923193Example Code and Data Size: These are the sizes for the OS-independent3194acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3195debug version of the code includes the debug output trace mechanism and3196has a much larger code and data size.31973198Current Release:3199Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total3200Debug Version: 200.7K Code, 82.1K Data, 282.8K Total3201Previous Release:3202Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total3203Debug Version: 200.3K Code, 82.1K Data, 282.4K Total3204320532062) iASL Compiler/Disassembler and Tools:32073208Disassembler: Fixed a problem with the conversion of Else{If{ blocks into3209the simpler ASL ElseIf keyword. During the conversion, a trailing If3210block could be lost and missing from the disassembled output.32113212iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+,3213the missing rule caused a parse error when using the Index operator as an3214operand to ObjectType. This construct now compiles properly. Example:3215ObjectType(PKG1[4]).32163217iASL: Correctly handle unresolved symbols in the hardware map file (-lm3218option). Previously, unresolved symbols could cause a protection fault.3219Such symbols are now marked as unresolved in the map file.32203221iASL: Implemented support to allow control method invocations as an3222operand to the ASL DeRefOf operator. Example:3223DeRefOf(MTH1(Local0))32243225Disassembler: Improved support for the ToPLD ASL macro. Detection of a3226possible _PLD buffer now includes examination of both the normal buffer3227length (16 or 20) as well as the surrounding AML package length.32283229Disassembler: Fixed a problem with the decoding of complex expressions3230within the Divide operator for ASL+. For the case where both the quotient3231and remainder targets are specified, the entire statement cannot be3232disassembled. Previously, the output incorrectly contained a mix of ASL-3233and ASL+ operators. This mixed statement causes a syntax error when3234compiled. Example:3235Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly3236disassembled to:3237Divide (INT1 + 6, 128, RSLT, QUOT)32383239iASL/Tools: Added support to process AML and non-AML ACPI tables3240consistently. For the disassembler and AcpiExec, allow all types of ACPI3241tables (AML and data tables). For the iASL -e option, allow only AML3242tables (DSDT/SSDT).32433244----------------------------------------324531 August 2016. Summary of changes for version 20160831:3246324732481) ACPICA kernel-resident subsystem:32493250Improve support for the so-called "module-level code", which is defined3251to be math, logical and control AML opcodes that appear outside of any3252control method. This change improves the support by adding more opcodes3253that can be executed in the manner. Some other issues have been solved,3254and the ASL grammar changes to support such code under all scope3255operators (Device, etc.) are complete. Lv Zheng.32563257UEFI support: these OSL functions have been implemented. This is an3258additional step toward supporting the AcpiExec utility natively (with3259full hardware access) under UEFI. Marcelo Ferreira.3260AcpiOsReadPciConfiguration3261AcpiOsWritePciConfiguration32623263Fixed a possible mutex error during control method auto-serialization. Lv3264Zheng.32653266Updated support for the Generic Address Structure by fully implementing3267all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv3268Zheng.32693270Updated the return value for the internal _OSI method. Instead of32710xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF3272for 64-bit ACPI tables. This fixes an incompatibility with other ACPI3273implementations, and will be reflected and clarified in the next version3274of the ACPI specification.32753276Implemented two new table events that can be passed to an ACPICA table3277handler. These events are used to indicate a table installation or3278uninstallation. These events are used in addition to existed table load3279and unload events. Lv Zheng.32803281Implemented a cleanup for all internal string-to-integer conversions.3282Consolidate multiple versions of this functionality and limit possible3283bases to either 10 or 16 to simplify the code. Adds a new file,3284utstrtoul64.32853286Cleanup the inclusion order of the various compiler-specific headers.3287This simplifies build configuration management. The compiler-specific3288headers are now split out from the host-specific headers. Lv Zheng.32893290Example Code and Data Size: These are the sizes for the OS-independent3291acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3292debug version of the code includes the debug output trace mechanism and3293has a much larger code and data size.32943295Current Release:3296Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total3297Debug Version: 200.3K Code, 82.1K Data, 282.4K Total3298329933002) iASL Compiler/Disassembler and Tools:33013302iASL/AcpiExec: Added a command line option to display the build date/time3303of the tool (-vd). This can be useful to verify that the correct version3304of the tools are being used.33053306AML Debugger: Implemented a new subcommand ("execute predef") to execute3307all predefined control methods and names within the current namespace.3308This can be useful for debugging problems with ACPI tables and the ACPI3309namespace.33103311----------------------------------------331229 July 2016. Summary of changes for version 20160729:3313331433151) ACPICA kernel-resident subsystem:33163317Implemented basic UEFI support for the various ACPICA tools. This3318includes:33191) An OSL to implement the various AcpiOs* interfaces on UEFI.33202) Support to obtain the ACPI tables on UEFI.33213) Local implementation of required C library functions not available on3322UEFI.33234) A front-end (main) function for the tools for UEFI-related3324initialization.33253326The initial deployment of this support is the AcpiDump utility executing3327as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit").3328Current environments supported are Linux/Unix. MSVC generation is not3329supported at this time. See the generate/efi/README file for build3330instructions. Lv Zheng.33313332Future plans include porting the AcpiExec utility to execute natively on3333the platform with I/O and memory access. This will allow viewing/dump of3334the platform namespace and native execution of ACPI control methods that3335access the actual hardware. To fully implement this support, the OSL3336functions below must be implemented with UEFI interfaces. Any community3337help in the implementation of these functions would be appreciated:3338AcpiOsReadPort3339AcpiOsWritePort3340AcpiOsReadMemory3341AcpiOsWriteMemory3342AcpiOsReadPciConfiguration3343AcpiOsWritePciConfiguration33443345Restructured and standardized the C library configuration for ACPICA,3346resulting in the various configuration options below. This includes a3347global restructuring of the compiler-dependent and platform-dependent3348include files. These changes may affect the existing platform-dependent3349configuration files on some hosts. Lv Zheng.33503351The current C library configuration options appear below. For any issues,3352it may be helpful to examine the existing compiler-dependent and3353platform-dependent files as examples. Lv Zheng.335433551) Linux kernel:3356ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C3357library.3358ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.33592) Unix/Windows/BSD applications:3360ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C3361library.3362ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library.33633) UEFI applications:3364ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C3365library.3366ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library.33674) UEFI applications (EDK2/StdLib):3368ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library.3369ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library.337033713372AML interpreter: "module-level code" support. Allows for execution of so-3373called "executable" AML code (math/logical operations, etc.) outside of3374control methods not just at the module level (top level) but also within3375any scope declared outside of a control method - Scope{}, Device{},3376Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng.33773378Simplified the configuration of the "maximum AML loops" global option by3379adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be3380modified at runtime.338133823383Example Code and Data Size: These are the sizes for the OS-independent3384acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3385debug version of the code includes the debug output trace mechanism and3386has a much larger code and data size.33873388Current Release:3389Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total3390Debug Version: 199.0K Code, 81.8K Data, 280.8K Total3391339233932) iASL Compiler/Disassembler and Tools:33943395iASL: Add full support for the RASF ACPI table (RAS Features Table).3396Includes disassembler, data table compiler, and header support.33973398iASL Expand "module-level code" support. Allows for3399compilation/disassembly of so-called "executable" AML code (math/logical3400operations, etc.) outside of control methods not just at the module level3401(top level) but also within any scope declared outside of a control3402method - Scope{}, Device{}, Processor{}, PowerResource{}, and3403ThermalZone{}.34043405AcpiDump: Added support for dumping all SSDTs on newer versions of3406Windows. These tables are now easily available -- SSDTs are not available3407through the registry on older versions.34083409----------------------------------------341027 May 2016. Summary of changes for version 20160527:3411341234131) ACPICA kernel-resident subsystem:34143415Temporarily reverted the new arbitrary bit length/alignment support in3416AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been3417a number of regressions with the new code that need to be fully resolved3418and tested before this support can be finally integrated into ACPICA.3419Apologies for any inconveniences these issues may have caused.34203421The ACPI message macros are not configurable (ACPI_MSG_ERROR,3422ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR,3423and ACPI_MSG_BIOS_WARNING). Lv Zheng.34243425Fixed a couple of GCC warnings associated with the use of the -Wcast-qual3426option. Adds a new return macro, return_STR. Junk-uk Kim.34273428Example Code and Data Size: These are the sizes for the OS-independent3429acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3430debug version of the code includes the debug output trace mechanism and3431has a much larger code and data size.34323433Current Release:3434Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total3435Debug Version: 201.5K Code, 82.2K Data, 283.7K Total3436Previous Release:3437Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total3438Debug Version: 200.9K Code, 82.2K Data, 283.1K Total34393440----------------------------------------344122 April 2016. Summary of changes for version 20160422:344234431) ACPICA kernel-resident subsystem:34443445Fixed a regression in the GAS (generic address structure) arbitrary bit3446support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior3447and incorrect return values. Lv Zheng. ACPICA BZ 1270.34483449ACPI 6.0: Added support for new/renamed resource macros. One new argument3450was added to each of these macros, and the original name has been3451deprecated. The AML disassembler will always disassemble to the new3452names. Support for the new macros was added to iASL, disassembler,3453resource manager, and the acpihelp utility. ACPICA BZ 1274.34543455I2cSerialBus -> I2cSerialBusV23456SpiSerialBus -> SpiSerialBusV23457UartSerialBus -> UartSerialBusV234583459ACPI 6.0: Added support for a new integer field that was appended to the3460package object returned by the _BIX method. This adds iASL compile-time3461and AML runtime error checking. ACPICA BZ 1273.34623463ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm3464Subspace Type2" (Headers, Disassembler, and data table compiler).34653466Example Code and Data Size: These are the sizes for the OS-independent3467acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3468debug version of the code includes the debug output trace mechanism and3469has a much larger code and data size.34703471Current Release:3472Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total3473Debug Version: 201.5K Code, 82.2K Data, 283.7K Total3474Previous Release:3475Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total3476Debug Version: 201.0K Code, 82.0K Data, 283.0K Total3477347834792) iASL Compiler/Disassembler and Tools:34803481iASL: Implemented an ASL grammar extension to allow/enable executable3482"module-level code" to be created and executed under the various3483operators that create new scopes. This type of AML code is already3484supported in all known AML interpreters, and the grammar change will3485appear in the next version of the ACPI specification. Simplifies the3486conditional runtime creation of named objects under these object types:34873488Device3489PowerResource3490Processor3491Scope3492ThermalZone34933494iASL: Implemented a new ASL extension, a "For" loop macro to add greater3495ease-of-use to the ASL language. The syntax is similar to the3496corresponding C operator, and is implemented with the existing AML While3497opcode -- thus requiring no changes to existing AML interpreters.34983499For (Initialize, Predicate, Update) {TermList}35003501Grammar:3502ForTerm :=3503For (3504Initializer // Nothing | TermArg => ComputationalData3505Predicate // Nothing | TermArg => ComputationalData3506Update // Nothing | TermArg => ComputationalData3507) {TermList}350835093510iASL: The _HID/_ADR detection and validation has been enhanced to search3511under conditionals in order to allow these objects to be conditionally3512created at runtime.35133514iASL: Fixed several issues with the constant folding feature. The3515improvement allows better detection and resolution of statements that can3516be folded at compile time. ACPICA BZ 1266.35173518iASL/Disassembler: Fixed a couple issues with the Else{If{}...}3519conversion to the ASL ElseIf operator where incorrect ASL code could be3520generated.35213522iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where3523sometimes an extra (and extraneous) set of parentheses were emitted for3524some combinations of operators. Although this did not cause any problems3525with recompilation of the disassembled code, it made the code more3526difficult to read. David Box. ACPICA BZ 1231.35273528iASL: Changed to ignore the unreferenced detection for predefined names3529of resource descriptor elements, when the resource descriptor is3530created/defined within a control method.35313532iASL: Disassembler: Fix a possible fault with externally declared Buffer3533objects.35343535----------------------------------------353618 March 2016. Summary of changes for version 20160318:353735381) ACPICA kernel-resident subsystem:35393540Added support for arbitrary bit lengths and bit offsets for registers3541defined by the Generic Address Structure. Previously, only aligned bit3542lengths of 8/16/32/64 were supported. This was sufficient for many years,3543but recently some machines have been seen that require arbitrary bit-3544level support. ACPICA BZ 1240. Lv Zheng.35453546Fixed an issue where the \_SB._INI method sometimes must be evaluated3547before any _REG methods are evaluated. Lv Zheng.35483549Implemented several changes related to ACPI table support3550(Headers/Disassembler/TableCompiler):3551NFIT: For ACPI 6.1, updated to add some additional new fields and3552constants.3553FADT: Updated a warning message and set compliance to ACPI 6.1 (Version35546).3555DMAR: Added new constants per the 10/2014 DMAR spec.3556IORT: Added new subtable per the 10/2015 IORT spec.3557HEST: For ACPI 6.1, added new constants and new subtable.3558DBG2: Added new constants per the 12/2015 DBG2 spec.3559FPDT: Fixed several incorrect fields, add the FPDT boot record structure.3560ACPICA BZ 1249.3561ERST/EINJ: Updated disassembler with new "Execute Timings" actions.35623563Updated header support for the DMAR table to match the current version of3564the related spec.35653566Added extensions to the ASL Concatenate operator to allow any ACPI object3567to be passed as an operand. Any object other than Integer/String/Buffer3568simply returns a string containing the object type. This extends the3569usefulness of the Printf macros. Previously, Concatenate would abort the3570control method if a non-data object was encountered.35713572ACPICA source code: Deployed the C "const" keyword across the source code3573where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD).35743575Example Code and Data Size: These are the sizes for the OS-independent3576acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3577debug version of the code includes the debug output trace mechanism and3578has a much larger code and data size.35793580Current Release:3581Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total3582Debug Version: 201.0K Code, 82.0K Data, 283.0K Total3583Previous Release:3584Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total3585Debug Version: 200.4K Code, 82.0K Data, 282.4K Total3586358735882) iASL Compiler/Disassembler and Tools:35893590iASL/Disassembler: Improved the heuristic used to determine the number of3591arguments for an externally defined control method (a method in another3592table). Although this is an improvement, there is no deterministic way to3593"guess" the number of method arguments. Only the ACPI 6.0 External opcode3594will completely solve this problem as it is deployed (automatically) in3595newer BIOS code.35963597iASL/Disassembler: Fixed an ordering issue for emitted External() ASL3598statements that could cause errors when the disassembled file is3599compiled. ACPICA BZ 1243. David Box.36003601iASL: Fixed a regression caused by the merger of the two versions of the3602local strtoul64. Because of a dependency on a global variable, strtoul643603could return an error for integers greater than a 32-bit value. ACPICA BZ36041260.36053606iASL: Fixed a regression where a fault could occur for an ASL Return3607statement if it invokes a control method that is not resolved. ACPICA BZ36081264.36093610AcpiXtract: Improved input file validation: detection of binary files and3611non-acpidump text files.36123613----------------------------------------361412 February 2016. Summary of changes for version 20160212:361536161) ACPICA kernel-resident subsystem:36173618Implemented full support for the ACPI 6.1 specification (released in3619January). This version of the specification is available at:3620http://www.uefi.org/specifications36213622Only a relatively small number of changes were required in ACPICA to3623support ACPI 6.1, in these areas:3624- New predefined names3625- New _HID values3626- A new subtable for HEST3627- A few other header changes for new values36283629Ensure \_SB_._INI is executed before any _REG methods are executed. There3630appears to be existing BIOS code that relies on this behavior. Lv Zheng.36313632Reverted a change made in version 20151218 which enabled method3633invocations to be targets of various ASL operators (SuperName and Target3634grammar elements). While the new behavior is supported by the ACPI3635specification, other AML interpreters do not support this behavior and3636never will. The ACPI specification will be updated for ACPI 6.2 to remove3637this support. Therefore, the change was reverted to the original ACPICA3638behavior.36393640ACPICA now supports the GCC 6 compiler.36413642Current Release: (Note: build changes increased sizes)3643Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total3644Debug Version: 200.4K Code, 82.0K Data, 282.4K Total3645Previous Release:3646Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total3647Debug Version: 200.4K Code, 81.9K Data, 282.3K Total3648364936502) iASL Compiler/Disassembler and Tools:36513652Completed full support for the ACPI 6.0 External() AML opcode. The3653compiler emits an external AML opcode for each ASL External statement.3654This opcode is used by the disassembler to assist with the disassembly of3655external control methods by specifying the required number of arguments3656for the method. AML interpreters do not use this opcode. To ensure that3657interpreters do not even see the opcode, a block of one or more external3658opcodes is surrounded by an "If(0)" construct. As this feature becomes3659commonly deployed in BIOS code, the ability of disassemblers to correctly3660disassemble AML code will be greatly improved. David Box.36613662iASL: Implemented support for an optional cross-reference output file.3663The -lx option will create a the cross-reference file with the suffix3664"xrf". Three different types of cross-reference are created in this file:3665- List of object references made from within each control method3666- Invocation (caller) list for each user-defined control method3667- List of references to each non-method object in the namespace36683669iASL: Method invocations as ASL Target operands are now disallowed and3670flagged as errors in preparation for ACPI 6.2 (see the description of the3671problem above).36723673----------------------------------------36748 January 2016. Summary of changes for version 20160108:367536761) ACPICA kernel-resident subsystem:36773678Updated all ACPICA copyrights and signons to 2016: Added the 20163679copyright to all source code module headers and utility/tool signons.3680This includes the standard Linux dual-license header. This affects3681virtually every file in the ACPICA core subsystem, iASL compiler, all3682ACPICA utilities, and the ACPICA test suite.36833684Fixed a regression introduced in version 20151218 concerning the3685execution of so-called module-level ASL/AML code. Namespace objects3686created under a module-level If() construct were not properly/fully3687entered into the namespace and could cause an interpreter fault when3688accessed.36893690Example Code and Data Size: These are the sizes for the OS-independent3691acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3692debug version of the code includes the debug output trace mechanism and3693has a much larger code and data size.36943695Current Release:3696Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total3697Debug Version: 200.4K Code, 81.9K Data, 282.4K Total3698Previous Release:3699Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total3700Debug Version: 200.3K Code, 81.9K Data, 282.3K Total3701370237032) iASL Compiler/Disassembler and Tools:37043705Fixed a problem with the compilation of the GpioIo and GpioInt resource3706descriptors. The _PIN field name was incorrectly defined to be an array3707of 32-bit values, but the _PIN values are in fact 16 bits each. This3708would cause incorrect bit width warnings when using Word (16-bit) fields3709to access the descriptors.371037113712----------------------------------------371318 December 2015. Summary of changes for version 20151218:371437151) ACPICA kernel-resident subsystem:37163717Implemented per-AML-table execution of "module-level code" as individual3718ACPI tables are loaded into the namespace during ACPICA initialization.3719In other words, any module-level code within an AML table is executed3720immediately after the table is loaded, instead of batched and executed3721after all of the tables have been loaded. This provides compatibility3722with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng,3723David Box.37243725To fully support the feature above, the default operation region handlers3726for the SystemMemory, SystemIO, and PCI_Config address spaces are now3727installed before any ACPI tables are loaded. This enables module-level3728code to access these address spaces during the table load and module-3729level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David3730Box.37313732Implemented several changes to the internal _REG support in conjunction3733with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples3734utilities for the changes above. Although these tools were changed, host3735operating systems that simply use the default handlers for SystemMemory,3736SystemIO, and PCI_Config spaces should not require any update. Lv Zheng.37373738For example, in the code below, DEV1 is conditionally added to the3739namespace by the DSDT via module-level code that accesses an operation3740region. The SSDT references DEV1 via the Scope operator. DEV1 must be3741created immediately after the DSDT is loaded in order for the SSDT to3742successfully reference DEV1. Previously, this code would cause an3743AE_NOT_EXIST exception during the load of the SSDT. Now, this code is3744fully supported by ACPICA.37453746DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1)3747{3748OperationRegion (OPR1, SystemMemory, 0x400, 32)3749Field (OPR1, AnyAcc, NoLock, Preserve)3750{3751FLD1, 13752}3753If (FLD1)3754{3755Device (\DEV1)3756{3757}3758}3759}3760DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1)3761{3762External (\DEV1, DeviceObj)3763Scope (\DEV1)3764{3765}3766}37673768Fixed an AML interpreter problem where control method invocations were3769not handled correctly when the invocation was itself a SuperName argument3770to another ASL operator. In these cases, the method was not invoked.3771ACPICA BZ 1002. Affects the following ASL operators that have a SuperName3772argument:3773Store3774Acquire, Wait3775CondRefOf, RefOf3776Decrement, Increment3777Load, Unload3778Notify3779Signal, Release, Reset3780SizeOf37813782Implemented automatic String-to-ObjectReference conversion support for3783packages returned by predefined names (such as _DEP). A common BIOS error3784is to add double quotes around an ObjectReference namepath, which turns3785the reference into an unexpected string object. This support detects the3786problem and corrects it before the package is returned to the caller that3787invoked the method. Lv Zheng.37883789Implemented extensions to the Concatenate operator. Concatenate now3790accepts any type of object, it is not restricted to simply3791Integer/String/Buffer. For objects other than these 3 basic data types,3792the argument is treated as a string containing the name of the object3793type. This expands the utility of Concatenate and the Printf/Fprintf3794macros. ACPICA BZ 1222.37953796Cleaned up the output of the ASL Debug object. The timer() value is now3797optional and no longer emitted by default. Also, the basic data types of3798Integer/String/Buffer are simply emitted as their values, without a data3799type string -- since the data type is obvious from the output. ACPICA BZ38001221.38013802Example Code and Data Size: These are the sizes for the OS-independent3803acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3804debug version of the code includes the debug output trace mechanism and3805has a much larger code and data size.38063807Current Release:3808Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total3809Debug Version: 200.3K Code, 81.9K Data, 282.3K Total3810Previous Release:3811Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total3812Debug Version: 199.6K Code, 81.8K Data, 281.4K Total3813381438152) iASL Compiler/Disassembler and Tools:38163817iASL: Fixed some issues with the ASL Include() operator. This operator3818was incorrectly defined in the iASL parser rules, causing a new scope to3819be opened for the code within the include file. This could lead to3820several issues, including allowing ASL code that is technically illegal3821and not supported by AML interpreters. Note, this does not affect the3822related #include preprocessor operator. ACPICA BZ 1212.38233824iASL/Disassembler: Implemented support for the ASL ElseIf operator. This3825operator is essentially an ASL macro since there is no AML opcode3826associated with it. The code emitted by the iASL compiler for ElseIf is3827an Else opcode followed immediately by an If opcode. The disassembler3828will now emit an ElseIf if it finds an Else immediately followed by an3829If. This simplifies the decoded ASL, especially for deeply nested3830If..Else and large Switch constructs. Thus, the disassembled code more3831closely follows the original source ASL. ACPICA BZ 1211. Example:38323833Old disassembly:3834Else3835{3836If (Arg0 == 0x02)3837{3838Local0 = 0x053839}3840}38413842New disassembly:3843ElseIf (Arg0 == 0x02)3844{3845Local0 = 0x053846}38473848AcpiExec: Added support for the new module level code behavior and the3849early region installation. This required a small change to the3850initialization, since AcpiExec must install its own operation region3851handlers.38523853AcpiExec: Added support to make the debug object timer optional. Default3854is timer disabled. This cleans up the debug object output -- the timer3855data is rarely used.38563857AcpiExec: Multiple ACPI tables are now loaded in the order that they3858appear on the command line. This can be important when there are3859interdependencies/references between the tables.38603861iASL/Templates. Add support to generate template files with multiple3862SSDTs within a single output file. Also added ommand line support to3863specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ38641223, 1225.386538663867----------------------------------------386824 November 2015. Summary of changes for version 20151124:386938701) ACPICA kernel-resident subsystem:38713872Fixed a possible regression for a previous update to FADT handling. The3873FADT no longer has a fixed table ID, causing some issues with code that3874was hardwired to a specific ID. Lv Zheng.38753876Fixed a problem where the method auto-serialization could interfere with3877the current SyncLevel. This change makes the auto-serialization support3878transparent to the SyncLevel support and management.38793880Removed support for the _SUB predefined name in AcpiGetObjectInfo. This3881interface is intended for early access to the namespace during the3882initial namespace device discovery walk. The _SUB method has been seen to3883access operation regions in some cases, causing errors because the3884operation regions are not fully initialized.38853886AML Debugger: Fixed some issues with the terminate/quit/exit commands3887that can cause faults. Lv Zheng.38883889AML Debugger: Add thread ID support so that single-step mode only applies3890to the AML Debugger thread. This prevents runtime errors within some3891kernels. Lv Zheng.38923893Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx3894methods that are invoked by this interface are optional, removed warnings3895emitted for the case where one or more of these methods do not exist.3896ACPICA BZ 1208, original change by Prarit Bhargava.38973898Made a major pass through the entire ACPICA source code base to3899standardize formatting that has diverged a bit over time. There are no3900functional changes, but this will of course cause quite a few code3901differences from the previous ACPICA release.39023903Example Code and Data Size: These are the sizes for the OS-independent3904acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3905debug version of the code includes the debug output trace mechanism and3906has a much larger code and data size.39073908Current Release:3909Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total3910Debug Version: 199.6K Code, 81.8K Data, 281.4K Total3911Previous Release:3912Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total3913Debug Version: 199.3K Code, 81.4K Data, 280.7K Total3914391539162) iASL Compiler/Disassembler and Tools:39173918iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple3919definition blocks within a single ASL file and the resulting AML file.3920Support for this type of file was also added to the various tools that3921use binary AML files: acpiexec, acpixtract, and the AML disassembler. The3922example code below shows two definition blocks within the same file:39233924DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template",39250x12345678)3926{3927}3928DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01)3929{3930}39313932iASL: Enhanced typechecking for the Name() operator. All expressions for3933the value of the named object must be reduced/folded to a single constant3934at compile time, as per the ACPI specification (the AML definition of3935Name()).39363937iASL: Fixed some code indentation issues for the -ic and -ia options (C3938and assembly headers). Now all emitted code correctly begins in column 1.39393940iASL: Added an error message for an attempt to open a Scope() on an3941object defined in an SSDT. The DSDT is always loaded into the namespace3942first, so any attempt to open a Scope on an SSDT object will fail at3943runtime.394439453946----------------------------------------394730 September 2015. Summary of changes for version 20150930:394839491) ACPICA kernel-resident subsystem:39503951Debugger: Implemented several changes and bug fixes to assist support for3952the in-kernel version of the AML debugger. Lv Zheng.3953- Fix the "predefined" command for in-kernel debugger.3954- Do not enter debug command loop for the help and version commands.3955- Disallow "execute" command during execution/single-step of a method.39563957Interpreter: Updated runtime typechecking for all operators that have3958target operands. The operand is resolved and validated that it is legal.3959For example, the target cannot be a non-data object such as a Device,3960Mutex, ThermalZone, etc., as per the ACPI specification.39613962Debugger: Fixed the double-mutex user I/O handshake to work when local3963deadlock detection is enabled.39643965Debugger: limited display of method locals and arguments (LocalX and3966ArgX) to only those that have actually been initialized. This prevents3967lines of extraneous output.39683969Updated the definition of the NFIT table to correct the bit polarity of3970one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED39713972Example Code and Data Size: These are the sizes for the OS-independent3973acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The3974debug version of the code includes the debug output trace mechanism and3975has a much larger code and data size.39763977Current Release:3978Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total3979Debug Version: 199.3K Code, 81.4K Data, 280.7K Total3980Previous Release:3981Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total3982Debug Version: 198.6K Code, 80.9K Data, 279.5K Total3983398439852) iASL Compiler/Disassembler and Tools:39863987iASL: Improved the compile-time typechecking for operands of many of the3988ASL operators:39893990-- Added an option to disable compiler operand/operator typechecking (-3991ot).39923993-- For the following operators, the TermArg operands are now validated3994when possible to be Integer data objects: BankField, OperationRegion,3995DataTableRegion, Buffer, and Package.39963997-- Store (Source, Target): Both the source and target operands are3998resolved and checked that the operands are both legal. For example,3999neither operand can be a non-data object such as a Device, Mutex,4000ThermalZone, etc. Note, as per the ACPI specification, the CopyObject4001operator can be used to store an object to any type of target object.40024003-- Store (Source, Target): If the source is a Package object, the target4004must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target4005is a Package, the source must also be a Package.40064007-- Store (Source, Target): A warning is issued if the source and target4008resolve to the identical named object.40094010-- Store (Source, <method invocation>): An error is generated for the4011target method invocation, as this construct is not supported by the AML4012interpreter.40134014-- For all ASL math and logic operators, the target operand must be a4015data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This4016includes the function return value also.40174018-- External declarations are also included in the typechecking where4019possible. External objects defined using the UnknownObj keyword cannot be4020typechecked, however.40214022iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index4023operator:4024- Legacy code: Index(PKG1, 3)4025- New ASL+ code: PKG1[3]4026This completes the ACPI 6.0 ASL+ support as it was the only operator not4027supported.40284029iASL: Fixed the file suffix for the preprocessor output file (.i). Two4030spaces were inadvertently appended to the filename, causing file access4031and deletion problems on some systems.40324033ASL Test Suite (ASLTS): Updated the master makefile to generate all4034possible compiler output files when building the test suite -- thus4035exercising these features of the compiler. These files are automatically4036deleted when the test suite exits.403740384039----------------------------------------404018 August 2015. Summary of changes for version 20150818:404140421) ACPICA kernel-resident subsystem:40434044Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv4045Zheng. ACPICA BZ 1186.40464047Completed development to ensure that the ACPICA Disassembler and Debugger4048are fully standalone components of ACPICA. Removed cross-component4049dependences. Lv Zheng.40504051The max-number-of-AML-loops is now runtime configurable (previously was4052compile-time only). This is essentially a loop timeout to force-abort4053infinite AML loops. ACPCIA BZ 1192.40544055Debugger: Cleanup output to dump ACPI names and namepaths without any4056trailing underscores. Lv Zheng. ACPICA BZ 1135.40574058Removed unnecessary conditional compilations across the Debugger and4059Disassembler components where entire modules could be left uncompiled.40604061The aapits test is deprecated and has been removed from the ACPICA git4062tree. The test has never been completed and has not been maintained, thus4063becoming rather useless. ACPICA BZ 1015, 794.40644065A batch of small changes to close bugzilla and other reports:4066- Remove duplicate code for _PLD processing. ACPICA BZ 1176.4067- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185.4068- iASL: Support POSIX yacc again in makefile. Jung-uk Kim.4069- ACPI table support: general cleanup and simplification. Lv Zheng, Bob4070Moore.4071- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable.4072ACPICA BZ 1184.4073- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML4074operators.4075- Debugger: Split debugger initialization/termination interfaces. Lv4076Zheng.4077- AcpiExec: Emit OemTableId for SSDTs during the load phase for table4078identification.4079- AcpiExec: Add debug message during _REG method phase during table4080load/init.4081- AcpiNames: Fix a regression where some output was missing and no longer4082emitted.4083- Debugger: General cleanup and simplification. Lv Zheng.4084- Disassembler: Cleanup use of several global option variables. Lv Zheng.40854086Example Code and Data Size: These are the sizes for the OS-independent4087acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4088debug version of the code includes the debug output trace mechanism and4089has a much larger code and data size.40904091Current Release:4092Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total4093Debug Version: 198.6K Code, 80.9K Data, 279.5K Total4094Previous Release:4095Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total4096Debug Version: 197.8K Code, 81.5K Data, 279.3K Total4097409840992) iASL Compiler/Disassembler and Tools:41004101AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT4102were not handled properly and caused load errors. Now, properly invoke4103and use the ACPICA auto-reallocate mechanism for ACPI table data4104structures. ACPICA BZ 118841054106AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA4107BZ 1190.41084109AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For4110AcpiExec, this means that no control methods (like _REG/_INI/_STA) are4111executed during initialization. ACPICA BZ 1187, 1189.41124113iASL/Disassembler: Implemented a prototype "listing" mode that emits AML4114that corresponds to each disassembled ASL statement, to simplify4115debugging. ACPICA BZ 1191.41164117Debugger: Add option to the "objects" command to display a summary of the4118current namespace objects (Object type and count). This is displayed if4119the command is entered with no arguments.41204121AcpiNames: Add -x option to specify debug level, similar to AcpiExec.412241234124----------------------------------------412517 July 2015. Summary of changes for version 20150717:412641271) ACPICA kernel-resident subsystem:41284129Improved the partitioning between the Debugger and Disassembler4130components. This allows the Debugger to be used standalone within kernel4131code without the Disassembler (which is used for single stepping also).4132This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng.41334134Debugger: Implemented a new command to trace the execution of control4135methods (Trace). This is especially useful for the in-kernel version of4136the debugger when file I/O may not be available for method trace output.4137See the ACPICA reference for more information. Lv Zheng.41384139Moved all C library prototypes (used for the local versions of these4140functions when requested) to a new header, acclib.h4141Cleaned up the use of non-ANSI C library functions. These functions are4142implemented locally in ACPICA. Moved all such functions to a common4143source file, utnonansi.c41444145Debugger: Fixed a problem with the "!!" command (get last command4146executed) where the debugger could enter an infinite loop and eventually4147crash.41484149Removed the use of local macros that were used for some of the standard C4150library functions to automatically cast input parameters. This mostly4151affected the is* functions where the input parameter is defined to be an4152int. This required a few modifications to the main ACPICA source code to4153provide casting for these functions and eliminate possible compiler4154warnings for these parameters.41554156Across the source code, added additional status/error checking to resolve4157issues discovered by static source code analysis tools such as Coverity.41584159Example Code and Data Size: These are the sizes for the OS-independent4160acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4161debug version of the code includes the debug output trace mechanism and4162has a much larger code and data size.41634164Current Release:4165Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total4166Debug Version: 197.8K Code, 81.5K Data, 279.3K Total4167Previous Release:4168Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total4169Debug Version: 196.2K Code, 81.0K Data, 277.2K Total4170417141722) iASL Compiler/Disassembler and Tools:41734174iASL: Fixed a regression where the device map file feature no longer4175worked properly when used in conjunction with the disassembler. It only4176worked properly with the compiler itself.41774178iASL: Implemented a new warning for method LocalX variables that are set4179but never used (similar to a C compiler such as gcc). This also applies4180to ArgX variables that are not defined by the parent method, and are4181instead (legally) used as local variables.41824183iASL/Preprocessor: Finished the pass-through of line numbers from the4184preprocessor to the compiler. This ensures that compiler errors/warnings4185have the correct original line numbers and filenames, regardless of any4186#include files.41874188iASL/Preprocessor: Fixed a couple of issues with comment handling and the4189pass-through of comments to the preprocessor output file (which becomes4190the compiler input file). Also fixed a problem with // comments that4191appear after a math expression.41924193iASL: Added support for the TCPA server table to the table compiler and4194template generator. (The client table was already previously supported)41954196iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to4197identify the iASL compiler.41984199Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined4200multiple times. The new names are ACPI_SIGN_NEGATIVE and4201ACPI_SIGN_POSITIVE.42024203AcpiHelp: Update to expand help messages for the iASL preprocessor4204directives.420542064207----------------------------------------420819 June 2015. Summary of changes for version 20150619:42094210Two regressions in version 20150616 have been addressed:42114212Fixes some problems/issues with the C library macro removal (ACPI_STRLEN,4213etc.) This update changes ACPICA to only use the standard headers for4214functions, or the prototypes for the local versions of the C library4215functions. Across the source code, this required some additional casts4216for some Clib invocations for portability. Moved all local prototypes to4217a new file, acclib.h42184219Fixes several problems with recent changes to the handling of the FACS4220table that could cause some systems not to boot.422142224223----------------------------------------422416 June 2015. Summary of changes for version 20150616:4225422642271) ACPICA kernel-resident subsystem:42284229Across the entire ACPICA source code base, the various macros for the C4230library functions (such as ACPI_STRLEN, etc.) have been removed and4231replaced by the standard C library names (strlen, etc.) The original4232purpose for these macros is no longer applicable. This simplification4233reduces the number of macros used in the ACPICA source code4234significantly, improving readability and maintainability.42354236Implemented support for a new ACPI table, the OSDT. This table, the4237"override" SDT, can be loaded directly by the host OS at boot time. It4238enables the replacement of existing namespace objects that were installed4239via the DSDT and/or SSDTs. The primary purpose for this is to replace4240buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated4241for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob4242Moore.42434244Added support for systems with (improperly) two FACS tables -- a "32-bit"4245table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit4246X field). This change will support both automatically. There continues to4247be systems found with this issue. This support requires a change to the4248AcpiSetFirmwareWakingVector interface. Also, a public global variable has4249been added to allow the host to select which FACS is desired4250(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more4251details Lv Zheng.42524253Added a new feature to allow for systems that do not contain an FACS.4254Although this is already supported on hardware-reduced platforms, the4255feature has been extended for all platforms. The reasoning is that we do4256not want to abort the entire ACPICA initialization just because the4257system is seriously buggy and has no FACS.42584259Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were4260not correctly transcribed from the ACPI specification in ACPICA version426120150515.42624263Implemented support for the _CLS object in the AcpiGetObjectInfo external4264interface.42654266Updated the definitions of the TCPA and TPM2 ACPI tables to the more4267recent TCG ACPI Specification, December 14, 2014. Table disassembler and4268compiler also updated. Note: The TCPA "server" table is not supported by4269the disassembler/table-compiler at this time.42704271ACPI 6.0: Added definitions for the new GIC version field in the MADT.42724273Example Code and Data Size: These are the sizes for the OS-independent4274acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4275debug version of the code includes the debug output trace mechanism and4276has a much larger code and data size.42774278Current Release:4279Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total4280Debug Version: 196.2K Code, 81.0K Data, 277.2K Total4281Previous Release:4282Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total4283Debug Version: 195.2K Code, 80.8K Data, 276.0K Total4284428542862) iASL Compiler/Disassembler and Tools:42874288Disassembler: Fixed a problem with the new symbolic operator disassembler4289where incorrect ASL code could be emitted in some cases for the "non-4290commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and4291ShiftRight. The actual problem cases seem to be rather unusual in common4292ASL code, however. David Box.42934294Modified the linux version of acpidump to obtain ACPI tables from not4295just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv4296Zheng.42974298iASL: Fixed a problem where the user preprocessor output file (.i)4299contained extra data that was not expected. The compiler was using this4300file as a temporary file and passed through #line directives in order to4301keep compiler error messages in sync with the input file and line number4302across multiple include files. The (.i) is no longer a temporary file as4303the compiler uses a new, different file for the original purpose.43044305iASL: Fixed a problem where comments within the original ASL source code4306file were not passed through to the preprocessor output file, nor any4307listing files.43084309iASL: Fixed some issues for the handling of the "#include" preprocessor4310directive and the similar (but not the same) "Include" ASL operator.43114312iASL: Add support for the new OSDT in both the disassembler and compiler.43134314iASL: Fixed a problem with the constant folding support where a Buffer4315object could be incorrectly generated (incorrectly formed) during a4316conversion to a Store() operator.43174318AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new4319description text for the _REV predefined name. _REV now permanently4320returns 2, as per the ACPI 6.0 specification.43214322Debugger: Enhanced the output of the Debug ASL object for references4323produced by the Index operator. For Buffers and strings, only output the4324actual byte pointed to by the index. For packages, only print the single4325package element decoded by the index. Previously, the entire4326buffer/string/package was emitted.43274328iASL/Table-compiler: Fixed a regression where the "generic" data types4329were no longer recognized, causing errors.433043314332----------------------------------------433315 May 2015. Summary of changes for version 20150515:43344335This release implements most of ACPI 6.0 as described below.433643371) ACPICA kernel-resident subsystem:43384339Implemented runtime argument checking and return value checking for all4340new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI,4341_MTL, _PRR, _RDI, _RST, _TFP, _TSN.43424343Example Code and Data Size: These are the sizes for the OS-independent4344acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4345debug version of the code includes the debug output trace mechanism and4346has a much larger code and data size.43474348Current Release:4349Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total4350Debug Version: 195.2K Code, 80.8K Data, 276.0K Total4351Previous Release:4352Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total4353Debug Version: 192.8K Code, 79.9K Data, 272.7K Total4354435543562) iASL Compiler/Disassembler and Tools:43574358iASL compiler: Added compile-time support for all new ACPI 6.0 predefined4359names (argument count validation and return value typechecking.)43604361iASL disassembler and table compiler: implemented support for all new4362ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV.43634364iASL disassembler and table compiler: Added ACPI 6.0 changes to existing4365tables: FADT, MADT.43664367iASL preprocessor: Added a new directive to enable inclusion of binary4368blobs into ASL code. The new directive is #includebuffer. It takes a4369binary file as input and emits a named ascii buffer object into the ASL4370code.43714372AcpiHelp: Added support for all new ACPI 6.0 predefined names.43734374AcpiHelp: Added a new option, -d, to display all iASL preprocessor4375directives.43764377AcpiHelp: Added a new option, -t, to display all known/supported ACPI4378tables.437943804381----------------------------------------438210 April 2015. Summary of changes for version 20150410:43834384Reverted a change introduced in version 20150408 that caused4385a regression in the disassembler where incorrect operator4386symbols could be emitted.438743884389----------------------------------------439008 April 2015. Summary of changes for version 20150408:4391439243931) ACPICA kernel-resident subsystem:43944395Permanently set the return value for the _REV predefined name. It now4396returns 2 (was 5). This matches other ACPI implementations. _REV will be4397deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 24398for ACPI 2.0 and later. It should never be used to differentiate or4399identify operating systems.44004401Added the "Windows 2015" string to the _OSI support. ACPICA will now4402return TRUE to a query with this string.44034404Fixed several issues with the local version of the printf function.44054406Added the C99 compiler option (-std=c99) to the Unix makefiles.44074408Current Release:4409Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total4410Debug Version: 195.2K Code, 80.7K Data, 275.9K Total4411Previous Release:4412Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4413Debug Version: 192.1K Code, 79.8K Data, 271.9K Total4414441544162) iASL Compiler/Disassembler and Tools:44174418iASL: Implemented an enhancement to the constant folding feature to4419transform the parse tree to a simple Store operation whenever possible:4420Add (2, 3, X) ==> is converted to: Store (5, X)4421X = 2 + 3 ==> is converted to: Store (5, X)44224423Updated support for the SLIC table (Software Licensing Description Table)4424in both the Data Table compiler and the disassembler. The SLIC table4425support now conforms to "Microsoft Software Licensing Tables (SLIC and4426MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data4427following the ACPI header is now defined to be "Proprietary Data", and as4428such, can only be entered or displayed as a hex data block.44294430Implemented full support for the MSDM table as described in the document4431above. Note: The format of MSDM is similar to SLIC. Any MSDM data4432following the ACPI header is defined to be "Proprietary Data", and can4433only be entered or displayed as a hex data block.44344435Implemented the -Pn option for the iASL Table Compiler (was only4436implemented for the ASL compiler). This option disables the iASL4437preprocessor.44384439Disassembler: For disassembly of Data Tables, added a comment field4440around the Ascii equivalent data that is emitted as part of the "Raw4441Table Data" block. This prevents the iASL Preprocessor from possible4442confusion if/when the table is compiled.44434444Disassembler: Added an option (-df) to force the disassembler to assume4445that the table being disassembled contains valid AML. This feature is4446useful for disassembling AML files that contain ACPI signatures other4447than DSDT or SSDT (such as OEMx or other signatures).44484449Changes for the EFI version of the tools:44501) Fixed a build error/issue44512) Fixed a cast warning44524453iASL: Fixed a path issue with the __FILE__ operator by making the4454directory prefix optional within the internal SplitInputFilename4455function.44564457Debugger: Removed some unused global variables.44584459Tests: Updated the makefile for proper generation of the AAPITS suite.446044614462----------------------------------------446304 February 2015. Summary of changes for version 20150204:44644465ACPICA kernel-resident subsystem:44664467Updated all ACPICA copyrights and signons to 2014. Added the 20144468copyright to all module headers and signons, including the standard Linux4469header. This affects virtually every file in the ACPICA core subsystem,4470iASL compiler, all ACPICA utilities, and the test suites.44714472Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues.4473A raw gpe handling mechanism was created to allow better handling of GPE4474storms that aren't easily managed by the normal handler. The raw handler4475allows disabling/renabling of the GPE so that interrupt storms can be4476avoided in cases where events cannot be timely serviced. In this4477scenario, handlers should use the AcpiSetGpe() API to disable/enable the4478GPE. This API will leave the reference counts undisturbed, thereby4479preventing unintentional clearing of the GPE when the intent in only to4480temporarily disable it. Raw handlers allow enabling and disabling of a4481GPE by removing GPE register locking. As such, raw handlers much provide4482their own locks while using GPE API's to protect access to GPE data4483structures.4484Lv Zheng44854486Events: Always modify GPE registers under the GPE lock.4487Applies GPE lock around AcpiFinishGpe() to protect access to GPE register4488values. Reported as bug by [email protected].44894490Unix makefiles: Separate option to disable optimizations and4491_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the4492NOOPT disable option and creates a separate flag (NOFORTIFY) for this4493purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined4494errors when building ACPICA. This allows disabling the option without4495also having to disable optimazations.4496David Box44974498Current Release:4499Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total4500Debug Version: 199.2K Code, 82.4K Data, 281.6K Total45014502--4503--------------------------------------450407 November 2014. Summary of changes for version 20141107:45054506This release is available at https://acpica.org/downloads45074508This release introduces and implements language extensions to ASL that4509provide support for symbolic ("C-style") operators and expressions. These4510language extensions are known collectively as ASL+.4511451245131) iASL Compiler/Disassembler and Tools:45144515Disassembler: Fixed a problem with disassembly of the UartSerialBus4516macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E.4517Box.45184519Disassembler: Fixed the Unicode macro support to add escape sequences.4520All non-printable ASCII values are emitted as escape sequences, as well4521as the standard escapes for quote and backslash. Ensures that the4522disassembled macro can be correctly recompiled.45234524iASL: Added Printf/Fprintf macros for formatted output. These macros are4525translated to existing AML Concatenate and Store operations. Printf4526writes to the ASL Debug object. Fprintf allows the specification of an4527ASL name as the target. Only a single format specifier is required, %o,4528since the AML interpreter dynamically converts objects to the required4529type. David E. Box.45304531(old) Store (Concatenate (Concatenate (Concatenate (Concatenate4532(Concatenate (Concatenate (Concatenate ("", Arg0),4533": Unexpected value for "), Arg1), ", "), Arg2),4534" at line "), Arg3), Debug)45354536(new) Printf ("%o: Unexpected value for %o, %o at line %o",4537Arg0, Arg1, Arg2, Arg3)45384539(old) Store (Concatenate (Concatenate (Concatenate (Concatenate4540("", Arg1), ": "), Arg0), " Successful"), STR1)45414542(new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0)45434544iASL: Added debug options (-bp, -bt) to dynamically prune levels of the4545ASL parse tree before the AML code is generated. This allows blocks of4546ASL code to be removed in order to help locate and identify problem4547devices and/or code. David E. Box.45484549AcpiExec: Added support (-fi) for an optional namespace object4550initialization file. This file specifies initial values for namespace4551objects as necessary for debugging and testing different ASL code paths4552that may be taken as a result of BIOS options.4553455445552) Overview of symbolic operator support for ASL (ASL+)4556-------------------------------------------------------45574558As an extension to the ASL language, iASL implements support for symbolic4559(C-style) operators for math and logical expressions. This can greatly4560simplify ASL code as well as improve both readability and4561maintainability. These language extensions can exist concurrently with4562all legacy ASL code and expressions.45634564The symbolic extensions are 100% compatible with existing AML4565interpreters, since no new AML opcodes are created. To implement the4566extensions, the iASL compiler transforms the symbolic expressions into4567the legacy ASL/AML equivalents at compile time.45684569Full symbolic expressions are supported, along with the standard C4570precedence and associativity rules.45714572Full disassembler support for the symbolic expressions is provided, and4573creates an automatic migration path for existing ASL code to ASL+ code4574via the disassembly process. By default, the disassembler now emits ASL+4575code with symbolic expressions. An option (-dl) is provided to force the4576disassembler to emit legacy ASL code if desired.45774578Below is the complete list of the currently supported symbolic operators4579with examples. See the iASL User Guide for additional information.458045814582ASL+ Syntax Legacy ASL Equivalent4583----------- ---------------------45844585// Math operators45864587Z = X + Y Add (X, Y, Z)4588Z = X - Y Subtract (X, Y, Z)4589Z = X * Y Multiply (X, Y, Z)4590Z = X / Y Divide (X, Y, , Z)4591Z = X % Y Mod (X, Y, Z)4592Z = X << Y ShiftLeft (X, Y, Z)4593Z = X >> Y ShiftRight (X, Y, Z)4594Z = X & Y And (X, Y, Z)4595Z = X | Y Or (X, Y, Z)4596Z = X ^ Y Xor (X, Y, Z)4597Z = ~X Not (X, Z)4598X++ Increment (X)4599X-- Decrement (X)46004601// Logical operators46024603(X == Y) LEqual (X, Y)4604(X != Y) LNotEqual (X, Y)4605(X < Y) LLess (X, Y)4606(X > Y) LGreater (X, Y)4607(X <= Y) LLessEqual (X, Y)4608(X >= Y) LGreaterEqual (X, Y)4609(X && Y) LAnd (X, Y)4610(X || Y) LOr (X, Y)4611(!X) LNot (X)46124613// Assignment and compound assignment operations46144615X = Y Store (Y, X)4616X += Y Add (X, Y, X)4617X -= Y Subtract (X, Y, X)4618X *= Y Multiply (X, Y, X)4619X /= Y Divide (X, Y, , X)4620X %= Y Mod (X, Y, X)4621X <<= Y ShiftLeft (X, Y, X)4622X >>= Y ShiftRight (X, Y, X)4623X &= Y And (X, Y, X)4624X |= Y Or (X, Y, X)4625X ^= Y Xor (X, Y, X)4626462746283) ASL+ Examples:4629-----------------46304631Legacy ASL:4632If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual (4633And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530,46340x03FB),46350x02E0), LEqual (And (R540, 0x03FB), 0x02E0))))4636{4637And (MEMB, 0xFFFFFFF0, SRMB)4638Store (MEMB, Local2)4639Store (PDBM, Local1)4640And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM)4641Store (SRMB, MEMB)4642Or (PDBM, 0x02, PDBM)4643}46444645ASL+ version:4646If (((R510 & 0x03FB) == 0x02E0) ||4647((R520 & 0x03FB) == 0x02E0) ||4648((R530 & 0x03FB) == 0x02E0) ||4649((R540 & 0x03FB) == 0x02E0))4650{4651SRMB = (MEMB & 0xFFFFFFF0)4652Local2 = MEMB4653Local1 = PDBM4654PDBM &= 0xFFFFFFFFFFFFFFF94655MEMB = SRMB4656PDBM |= 0x024657}46584659Legacy ASL:4660Store (0x1234, Local1)4661Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3)4662Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3)4663Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3)4664Store (Index (PKG1, 0x03), Local6)4665Store (Add (Local3, Local2), Debug)4666Add (Local1, 0x0F, Local2)4667Add (Local1, Multiply (Local2, Local3), Local2)4668Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3)46694670ASL+ version:4671Local1 = 0x12344672Local3 = (((Local1 + TEST) + 0x20) * Local2)4673Local3 = (Local2 * ((Local1 + TEST) + 0x20))4674Local3 = (Local1 + (TEST + (0x20 * Local2)))4675Local6 = Index (PKG1, 0x03)4676Debug = (Local3 + Local2)4677Local2 = (Local1 + 0x0F)4678Local2 = (Local1 + (Local2 * Local3))4679Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1))468046814682----------------------------------------468326 September 2014. Summary of changes for version 20140926:468446851) ACPICA kernel-resident subsystem:46864687Updated the GPIO operation region handler interface (GeneralPurposeIo).4688In order to support GPIO Connection objects with multiple pins, along4689with the related Field objects, the following changes to the interface4690have been made: The Address is now defined to be the offset in bits of4691the field unit from the previous invocation of a Connection. It can be4692viewed as a "Pin Number Index" into the connection resource descriptor.4693The BitWidth is the exact bit width of the field. It is usually one bit,4694but not always. See the ACPICA reference guide (section 8.8.6.2.1) for4695additional information and examples.46964697GPE support: During ACPICA/GPE initialization, ensure that all GPEs with4698corresponding _Lxx/_Exx methods are disabled (they may have been enabled4699by the firmware), so that they cannot fire until they are enabled via4700AcpiUpdateAllGpes. Rafael J. Wysocki.47014702Added a new return flag for the Event/GPE status interfaces --4703AcpiGetEventStatus and AcpiGetGpeStatus. The new4704ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or4705GPE currently has a handler associated with it, and can thus actually4706affect the system. Lv Zheng.47074708Example Code and Data Size: These are the sizes for the OS-independent4709acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4710debug version of the code includes the debug output trace mechanism and4711has a much larger code and data size.47124713Current Release:4714Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total4715Debug Version: 192.8K Code, 79.9K Data, 272.7K Total4716Previous Release:4717Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4718Debug Version: 192.1K Code, 79.8K Data, 271.9K Total471947202) iASL Compiler/Disassembler and Tools:47214722iASL: Fixed a memory allocation/free regression introduced in 201408284723that could cause the compiler to crash. This was introduced inadvertently4724during the effort to eliminate compiler memory leaks. ACPICA BZ 1111,47251113.47264727iASL: Removed two error messages that have been found to create false4728positives, until they can be fixed and fully validated (ACPICA BZ 1112):47291) Illegal forward reference within a method47302) Illegal reference across two methods47314732iASL: Implemented a new option (-lm) to create a hardware mapping file4733that summarizes all GPIO, I2C, SPI, and UART connections. This option4734works for both the compiler and disassembler. See the iASL compiler user4735guide for additional information and examples (section 6.4.6).47364737AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to4738version 2. This corrects the AE_BAD_HEADER exception seen on systems with4739a version 1 RSDP. Lv Zheng ACPICA BZ 1097.47404741AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode4742unless STDIN is actually a terminal. Assists with batch-mode processing.4743ACPICA BZ 1114.47444745Disassembler/AcpiHelp: Added another large group of recognized _HID4746values.474747484749----------------------------------------475028 August 2014. Summary of changes for version 20140828:475147521) ACPICA kernel-resident subsystem:47534754Fixed a problem related to the internal use of the Timer() operator where4755a 64-bit divide could cause an attempted link to a double-precision math4756library. This divide is not actually necessary, so the code was4757restructured to eliminate it. Lv Zheng.47584759ACPI 5.1: Added support for the runtime validation of the _DSD package4760(similar to the iASL support).47614762ACPI 5.1/Headers: Added support for the GICC affinity subtable to the4763SRAT table. Hanjun Guo <[email protected]>.47644765Example Code and Data Size: These are the sizes for the OS-independent4766acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4767debug version of the code includes the debug output trace mechanism and4768has a much larger code and data size.47694770Current Release:4771Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total4772Debug Version: 192.1K Code, 79.8K Data, 271.9K Total4773Previous Release:4774Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total14775Debug Version: 192.0K Code, 79.7K Data, 271.7K Total477647772) iASL Compiler/Disassembler and Tools:47784779AcpiExec: Fixed a problem on unix systems where the original terminal4780state was not always properly restored upon exit. Seen when using the -v4781option. ACPICA BZ 1104.47824783iASL: Fixed a problem with the validation of the ranges/length within the4784Memory24 resource descriptor. There was a boundary condition when the4785range was equal to the (length -1) caused by the fact that these values4786are defined in 256-byte blocks, not bytes. ACPICA BZ 109847874788Disassembler: Fixed a problem with the GpioInt descriptor interrupt4789polarity4790flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword4791is4792now supported properly.47934794ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported4795in the disassembler, data table compiler, and table template generator.47964797iASL: Added a requirement for Device() objects that one of either a _HID4798or _ADR must exist within the scope of a Device, as per the ACPI4799specification. Remove a similar requirement that was incorrectly in place4800for the _DSD object.48014802iASL: Added error detection for illegal named references within control4803methods that would cause runtime failures. Now trapped as errors are: 1)4804References to objects within a non-parent control method. 2) Forward4805references (within a method) -- for control methods, AML interpreters use4806a one-pass parse of control methods. ACPICA BZ 1008.48074808iASL: Added error checking for dependencies related to the _PSx power4809methods. ACPICA BZ 1029.48101) For _PS0, one of these must exist within the same scope: _PS1, _PS2,4811_PS3.48122) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same4813scope.48144815iASL and table compiler: Cleanup miscellaneous memory leaks by fully4816deploying the existing object and string caches and adding new caches for4817the table compiler.48184819iASL: Split the huge parser source file into multiple subfiles to improve4820manageability. Generation now requires the M4 macro preprocessor, which4821is part of the Bison distribution on both unix and windows platforms.48224823AcpiSrc: Fixed and removed all extraneous warnings generated during4824entire ACPICA source code scan and/or conversion.482548264827----------------------------------------4828482924 July 2014. Summary of changes for version 20140724:48304831The ACPI 5.1 specification has been released and is available at:4832http://uefi.org/specs/access4833483448350) ACPI 5.1 support in ACPICA:48364837ACPI 5.1 is fully supported in ACPICA as of this release.48384839New predefined names. Support includes iASL and runtime ACPICA4840validation.4841_CCA (Cache Coherency Attribute).4842_DSD (Device-Specific Data). David Box.48434844Modifications to existing ACPI tables. Support includes headers, iASL4845Data Table compiler, disassembler, and the template generator.4846FADT - New fields and flags. Graeme Gregory.4847GTDT - One new subtable and new fields. Tomasz Nowicki.4848MADT - Two new subtables. Tomasz Nowicki.4849PCCT - One new subtable.48504851Miscellaneous.4852New notification type for System Resource Affinity change events.4853485448551) ACPICA kernel-resident subsystem:48564857Fixed a regression introduced in 20140627 where a fault can happen during4858the deletion of Alias AML namespace objects. The problem affected both4859the core ACPICA and the ACPICA tools including iASL and AcpiExec.48604861Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a4862simple mechanism to enable wake GPEs that have no associated handler or4863control method. Rafael Wysocki.48644865Updated the AcpiEnableGpe interface to disallow the enable if there is no4866handler or control method associated with the particular GPE. This will4867help avoid meaningless GPEs and even GPE floods. Rafael Wysocki.48684869Updated GPE handling and dispatch by disabling the GPE before clearing4870the status bit for edge-triggered GPEs. Lv Zheng.48714872Added Timer() support to the AML Debug object. The current timer value is4873now displayed with each invocation of (Store to) the debug object to4874enable simple generation of execution times for AML code (method4875execution for example.) ACPICA BZ 1093.48764877Example Code and Data Size: These are the sizes for the OS-independent4878acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4879debug version of the code includes the debug output trace mechanism and4880has a much larger code and data size.48814882Current Release:4883Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total4884Debug Version: 192.0K Code, 79.7K Data, 271.7K Total4885Previous Release:4886Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total4887Debug Version: 191.7K Code, 79.6K Data, 271.3K Total4888488948902) iASL Compiler/Disassembler and Tools:48914892Fixed an issue with the recently added local printf implementation,4893concerning width/precision specifiers that could cause incorrect output.4894Lv Zheng. ACPICA BZ 1094.48954896Disassembler: Added support to detect buffers that contain UUIDs and4897disassemble them to an invocation of the ToUUID operator. Also emit4898commented descriptions of known ACPI-related UUIDs.48994900AcpiHelp: Added support to display known ACPI-related UUIDs. New option,4901-u. Adds three new files.49024903iASL: Update table compiler and disassembler for DMAR table changes that4904were introduced in September 2013. With assistance by David Woodhouse.49054906----------------------------------------490727 June 2014. Summary of changes for version 20140627:490849091) ACPICA kernel-resident subsystem:49104911Formatted Output: Implemented local versions of standard formatted output4912utilities such as printf, etc. Over time, it has been discovered that4913there are in fact many portability issues with printf, and the addition4914of this feature will fix/prevent these issues once and for all. Some4915known issues are summarized below:491649171) Output of 64-bit values is not portable. For example, UINT64 is %ull4918for the Linux kernel and is %uI64 for some MSVC versions.49192) Invoking printf consistently in a manner that is portable across both492032-bit and 64-bit platforms is difficult at best in many situations.49213) The output format for pointers varies from system to system (leading4922zeros especially), and leads to inconsistent output from ACPICA across4923platforms.49244) Certain platform-specific printf formats may conflict with ACPICA use.49255) If there is no local C library available, ACPICA now has local support4926for printf.49274928-- To address these printf issues in a complete manner, ACPICA now4929directly implements a small subset of printf format specifiers, only4930those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng.49314932Implemented support for ACPICA generation within the EFI environment.4933Initially, the AcpiDump utility is supported in the UEFI shell4934environment. Lv Zheng.49354936Added a new external interface, AcpiLogError, to improve ACPICA4937portability. This allows the host to redirect error messages from the4938ACPICA utilities. Lv Zheng.49394940Added and deployed new OSL file I/O interfaces to improve ACPICA4941portability:4942AcpiOsOpenFile4943AcpiOsCloseFile4944AcpiOsReadFile4945AcpiOsWriteFile4946AcpiOsGetFileOffset4947AcpiOsSetFileOffset4948There are C library implementations of these functions in the new file4949service_layers/oslibcfs.c -- however, the functions can be implemented by4950the local host in any way necessary. Lv Zheng.49514952Implemented a mechanism to disable/enable ACPI table checksum validation4953at runtime. This can be useful when loading tables very early during OS4954initialization when it may not be possible to map the entire table in4955order to compute the checksum. Lv Zheng.49564957Fixed a buffer allocation issue for the Generic Serial Bus support.4958Originally, a fixed buffer length was used. This change allows for4959variable-length buffers based upon the protocol indicated by the field4960access attributes. Reported by Lan Tianyu. Lv Zheng.49614962Fixed a problem where an object detached from a namespace node was not4963properly terminated/cleared and could cause a circular list problem if4964reattached. ACPICA BZ 1063. David Box.49654966Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick.49674968Fixed a possible memory leak in an error return path within the function4969AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King.49704971Example Code and Data Size: These are the sizes for the OS-independent4972acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The4973debug version of the code includes the debug output trace mechanism and4974has a much larger code and data size.49754976Current Release:4977Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total4978Debug Version: 191.7K Code, 79.6K Data, 271.3K Total4979Previous Release:4980Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total4981Debug Version: 189.5K Code, 79.7K Data, 269.2K Total4982498349842) iASL Compiler/Disassembler and Tools:49854986Disassembler: Add dump of ASCII equivalent text within a comment at the4987end of each line of the output for the Buffer() ASL operator.49884989AcpiDump: Miscellaneous changes:4990Fixed repetitive table dump in -n mode.4991For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if4992the ACPI 2.0 GUID fails.49934994iASL: Fixed a problem where the compiler could fault if incorrectly given4995an acpidump output file as input. ACPICA BZ 1088. David Box.49964997AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if4998they are invoked without any arguments.49995000Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ50011086. Colin Ian King.50025003Disassembler: Cleaned up a block of code that extracts a parent Op5004object. Added a comment that explains that the parent is guaranteed to be5005valid in this case. ACPICA BZ 1069.500650075008----------------------------------------500924 April 2014. Summary of changes for version 20140424:501050111) ACPICA kernel-resident subsystem:50125013Implemented support to skip/ignore NULL address entries in the RSDT/XSDT.5014Some of these tables are known to contain a trailing NULL entry. Lv5015Zheng.50165017Removed an extraneous error message for the case where there are a large5018number of system GPEs (> 124). This was the "32-bit FADT register is too5019long to convert to GAS struct" message, which is irrelevant for GPEs5020since the GPEx_BLK_LEN fields of the FADT are always used instead of the5021(limited capacity) GAS bit length. Also, several changes to ensure proper5022support for GPE numbers > 255, where some "GPE number" fields were 8-bits5023internally.50245025Implemented and deployed additional configuration support for the public5026ACPICA external interfaces. Entire classes of interfaces can now be5027easily modified or configured out, replaced by stubbed inline functions5028by default. Lv Zheng.50295030Moved all public ACPICA runtime configuration globals to the public5031ACPICA external interface file for convenience. Also, removed some5032obsolete/unused globals. See the file acpixf.h. Lv Zheng.50335034Documentation: Added a new section to the ACPICA reference describing the5035maximum number of GPEs that can be supported by the FADT-defined GPEs in5036block zero and one. About 1200 total. See section 4.4.1 of the ACPICA5037reference.50385039Example Code and Data Size: These are the sizes for the OS-independent5040acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5041debug version of the code includes the debug output trace mechanism and5042has a much larger code and data size.50435044Current Release:5045Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total5046Debug Version: 189.5K Code, 79.7K Data, 269.2K Total5047Previous Release:5048Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total5049Debug Version: 189.7K Code, 79.5K Data, 269.2K Total5050505150522) iASL Compiler/Disassembler and Tools:50535054iASL and disassembler: Add full support for the LPIT table (Low Power5055Idle Table). Includes support in the disassembler, data table compiler,5056and template generator.50575058AcpiDump utility:50591) Add option to force the use of the RSDT (over the XSDT).50602) Improve validation of the RSDP signature (use 8 chars instead of 4).50615062iASL: Add check for predefined packages that are too large. For5063predefined names that contain subpackages, check if each subpackage is5064too large. (Check for too small already exists.)50655066Debugger: Updated the GPE command (which simulates a GPE by executing the5067GPE code paths in ACPICA). The GPE device is now optional, and defaults5068to the GPE 0/1 FADT-defined blocks.50695070Unix application OSL: Update line-editing support. Add additional error5071checking and take care not to reset terminal attributes on exit if they5072were never set. This should help guarantee that the terminal is always5073left in the previous state on program exit.507450755076----------------------------------------507725 March 2014. Summary of changes for version 20140325:507850791) ACPICA kernel-resident subsystem:50805081Updated the auto-serialize feature for control methods. This feature5082automatically serializes all methods that create named objects in order5083to prevent runtime errors. The update adds support to ignore the5084currently executing AML SyncLevel when invoking such a method, in order5085to prevent disruption of any existing SyncLevel priorities that may exist5086in the AML code. Although the use of SyncLevels is relatively rare, this5087change fixes a regression where an AE_AML_MUTEX_ORDER exception can5088appear on some machines starting with the 20140214 release.50895090Added a new external interface to allow the host to install ACPI tables5091very early, before the namespace is even created. AcpiInstallTable gives5092the host additional flexibility for ACPI table management. Tables can be5093installed directly by the host as if they had originally appeared in the5094XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables5095(anything except the DSDT and FACS). Adds a new file, tbdata.c, along5096with additional internal restructuring and cleanup. See the ACPICA5097Reference for interface details. Lv Zheng.50985099Added validation of the checksum for all incoming dynamically loaded5100tables (via external interfaces or via AML Load/LoadTable operators). Lv5101Zheng.51025103Updated the use of the AcpiOsWaitEventsComplete interface during Notify5104and GPE handler removal. Restructured calls to eliminate possible race5105conditions. Lv Zheng.51065107Added a warning for the use/execution of the ASL/AML Unload (table)5108operator. This will help detect and identify machines that use this5109operator if and when it is ever used. This operator has never been seen5110in the field and the usage model and possible side-effects of the drastic5111runtime action of a full table removal are unknown.51125113Reverted the use of #pragma push/pop which was introduced in the 201402145114release. It appears that push and pop are not implemented by enough5115compilers to make the use of this feature feasible for ACPICA at this5116time. However, these operators may be deployed in a future ACPICA5117release.51185119Added the missing EXPORT_SYMBOL macros for the install and remove SCI5120handler interfaces.51215122Source code generation:51231) Disabled the use of the "strchr" macro for the gcc-specific5124generation. For some versions of gcc, this macro can periodically expose5125a compiler bug which in turn causes compile-time error(s).51262) Added support for PPC64 compilation. Colin Ian King.51275128Example Code and Data Size: These are the sizes for the OS-independent5129acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5130debug version of the code includes the debug output trace mechanism and5131has a much larger code and data size.51325133Current Release:5134Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total5135Debug Version: 189.7K Code, 79.5K Data, 269.2K Total5136Previous Release:5137Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total5138Debug Version: 188.6K Code, 79.0K Data, 267.6K Total5139514051412) iASL Compiler/Disassembler and Tools:51425143Disassembler: Added several new features to improve the readability of5144the resulting ASL code. Extra information is emitted within comment5145fields in the ASL code:51461) Known _HID/_CID values are decoded to descriptive text.51472) Standard values for the Notify() operator are decoded to descriptive5148text.51493) Target operands are expanded to full pathnames (in a comment) when5150possible.51515152Disassembler: Miscellaneous updates for extern() handling:51531) Abort compiler if file specified by -fe option does not exist.51542) Silence unnecessary warnings about argument count mismatches.51553) Update warning messages concerning unresolved method externals.51564) Emit "UnknownObj" keyword for externals whose type cannot be5157determined.51585159AcpiHelp utility:51601) Added the -a option to display both the ASL syntax and the AML5161encoding for an input ASL operator. This effectively displays all known5162information about an ASL operator with one AcpiHelp invocation.51632) Added substring match support (similar to a wildcard) for the -i5164(_HID/PNP IDs) option.51655166iASL/Disassembler: Since this tool does not yet support execution on big-5167endian machines, added detection of endianness and an error message if5168execution is attempted on big-endian. Support for big-endian within iASL5169is a feature that is on the ACPICA to-be-done list.51705171AcpiBin utility:51721) Remove option to extract binary files from an acpidump; this function5173is made obsolete by the AcpiXtract utility.51742) General cleanup of open files and allocated buffers.517551765177----------------------------------------517814 February 2014. Summary of changes for version 20140214:517951801) ACPICA kernel-resident subsystem:51815182Implemented a new mechanism to proactively prevent problems with ill-5183behaved reentrant control methods that create named ACPI objects. This5184behavior is illegal as per the ACPI specification, but is nonetheless5185frequently seen in the field. Previously, this could lead to an5186AE_ALREADY_EXISTS exception if the method was actually entered by more5187than one thread. This new mechanism detects such methods at table load5188time and marks them "serialized" to prevent reentrancy. A new global5189option, AcpiGbl_AutoSerializeMethods, has been added to disable this5190feature if desired. This mechanism and global option obsoletes and5191supersedes the previous AcpiGbl_SerializeAllMethods option.51925193Added the "Windows 2013" string to the _OSI support. ACPICA will now5194respond TRUE to _OSI queries with this string. It is the stated policy of5195ACPICA to add new strings to the _OSI support as soon as possible after5196they are defined. See the full ACPICA _OSI policy which has been added to5197the utilities/utosi.c file.51985199Hardened/updated the _PRT return value auto-repair code:52001) Do not abort the repair on a single subpackage failure, continue to5201check all subpackages.52022) Add check for the minimum subpackage length (4).52033) Properly handle extraneous NULL package elements.52045205Added support to avoid the possibility of infinite loops when traversing5206object linked lists. Never allow an infinite loop, even in the face of5207corrupted object lists.52085209ACPICA headers: Deployed the use of #pragma pack(push) and #pragma5210pack(pop) directives to ensure that the ACPICA headers are independent of5211compiler settings or other host headers.52125213Example Code and Data Size: These are the sizes for the OS-independent5214acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5215debug version of the code includes the debug output trace mechanism and5216has a much larger code and data size.52175218Current Release:5219Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total5220Debug Version: 188.6K Code, 79.0K Data, 267.6K Total5221Previous Release:5222Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total5223Debug Version: 187.5K Code, 78.3K Data, 265.8K Total5224522552262) iASL Compiler/Disassembler and Tools:52275228iASL/Table-compiler: Fixed a problem with support for the SPMI table. The5229first reserved field was incorrectly forced to have a value of zero. This5230change correctly forces the field to have a value of one. ACPICA BZ 1081.52315232Debugger: Added missing support for the "Extra" and "Data" subobjects5233when displaying object data.52345235Debugger: Added support to display entire object linked lists when5236displaying object data.52375238iASL: Removed the obsolete -g option to obtain ACPI tables from the5239Windows registry. This feature has been superseded by the acpidump5240utility.524152425243----------------------------------------524414 January 2014. Summary of changes for version 20140114:524552461) ACPICA kernel-resident subsystem:52475248Updated all ACPICA copyrights and signons to 2014. Added the 20145249copyright to all module headers and signons, including the standard Linux5250header. This affects virtually every file in the ACPICA core subsystem,5251iASL compiler, all ACPICA utilities, and the test suites.52525253Improved parameter validation for AcpiInstallGpeBlock. Added the5254following checks:52551) The incoming device handle refers to type ACPI_TYPE_DEVICE.52562) There is not already a GPE block attached to the device.5257Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a5258device.52595260Correctly support "references" in the ACPI_OBJECT. This change fixes the5261support to allow references (namespace nodes) to be passed as arguments5262to control methods via the evaluate object interface. This is probably5263most useful for testing purposes, however.52645265Improved support for 32/64 bit physical addresses in printf()-like5266output. This change improves the support for physical addresses in printf5267debug statements and other output on both 32-bit and 64-bit hosts. It5268consistently outputs the appropriate number of bytes for each host. The5269%p specifier is unsatisfactory since it does not emit uniform output on5270all hosts/clib implementations (on some, leading zeros are not supported,5271leading to difficult-to-read output).52725273Example Code and Data Size: These are the sizes for the OS-independent5274acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5275debug version of the code includes the debug output trace mechanism and5276has a much larger code and data size.52775278Current Release:5279Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total5280Debug Version: 187.5K Code, 78.3K Data, 265.8K Total5281Previous Release:5282Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total5283Debug Version: 185.6K Code, 77.3K Data, 262.9K Total5284528552862) iASL Compiler/Disassembler and Tools:52875288iASL: Fix a possible fault when using the Connection() operator. Fixes a5289problem if the parent Field definition for the Connection operator refers5290to an operation region that does not exist. ACPICA BZ 1064.52915292AcpiExec: Load of local test tables is now optional. The utility has the5293capability to load some various tables to test features of ACPICA.5294However, there are enough of them that the output of the utility became5295confusing. With this change, only the required local tables are displayed5296(RSDP, XSDT, etc.) along with the actual tables loaded via the command5297line specification. This makes the default output simler and easier to5298understand. The -el command line option restores the original behavior5299for testing purposes.53005301AcpiExec: Added support for overlapping operation regions. This change5302expands the simulation of operation regions by supporting regions that5303overlap within the given address space. Supports SystemMemory and5304SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031.53055306AcpiExec: Added region handler support for PCI_Config and EC spaces. This5307allows AcpiExec to simulate these address spaces, similar to the current5308support for SystemMemory and SystemIO.53095310Debugger: Added new command to read/write/compare all namespace objects.5311The command "test objects" will exercise the entire namespace by writing5312new values to each data object, and ensuring that the write was5313successful. The original value is then restored and verified.53145315Debugger: Added the "test predefined" command. This change makes this5316test public and puts it under the new "test" command. The test executes5317each and every predefined name within the current namespace.531853195320----------------------------------------532118 December 2013. Summary of changes for version 20131218:53225323Global note: The ACPI 5.0A specification was released this month. There5324are no changes needed for ACPICA since this release of ACPI is an5325errata/clarification release. The specification is available at5326acpi.info.5327532853291) ACPICA kernel-resident subsystem:53305331Added validation of the XSDT root table if it is present. Some older5332platforms contain an XSDT that is ill-formed or otherwise invalid (such5333as containing some or all entries that are NULL pointers). This change5334adds a new function to validate the XSDT before actually using it. If the5335XSDT is found to be invalid, ACPICA will now automatically fall back to5336using the RSDT instead. Original implementation by Zhao Yakui. Ported to5337ACPICA and enhanced by Lv Zheng and Bob Moore.53385339Added a runtime option to ignore the XSDT and force the use of the RSDT.5340This change adds a runtime option that will force ACPICA to use the RSDT5341instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec5342requires that an XSDT be used instead of the RSDT, the XSDT has been5343found to be corrupt or ill-formed on some machines. Lv Zheng.53445345Added a runtime option to favor 32-bit FADT register addresses over the534664-bit addresses. This change adds an option to favor 32-bit FADT5347addresses when there is a conflict between the 32-bit and 64-bit versions5348of the same register. The default behavior is to use the 64-bit version5349in accordance with the ACPI specification. This can now be overridden via5350the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng.53515352During the change above, the internal "Convert FADT" and "Verify FADT"5353functions have been merged to simplify the code, making it easier to5354understand and maintain. ACPICA BZ 933.53555356Improve exception reporting and handling for GPE block installation.5357Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the5358status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019.53595360Added helper macros to extract bus/segment numbers from the HEST table.5361This change adds two macros to extract the encoded bus and segment5362numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT.5363Betty Dall <[email protected]>53645365Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used5366by ACPICA. It is not a public macro, so it should have no effect on5367existing OSV code. Lv Zheng.53685369Example Code and Data Size: These are the sizes for the OS-independent5370acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5371debug version of the code includes the debug output trace mechanism and5372has a much larger code and data size.53735374Current Release:5375Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total5376Debug Version: 185.6K Code, 77.3K Data, 262.9K Total5377Previous Release:5378Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total5379Debug Version: 185.1K Code, 77.2K Data, 262.3K Total5380538153822) iASL Compiler/Disassembler and Tools:53835384Disassembler: Improved pathname support for emitted External()5385statements. This change adds full pathname support for external names5386that have been resolved internally by the inclusion of additional ACPI5387tables (via the iASL -e option). Without this change, the disassembler5388can emit multiple externals for the same object, or it become confused5389when the Scope() operator is used on an external object. Overall, greatly5390improves the ability to actually recompile the emitted ASL code when5391objects a referenced across multiple ACPI tables. Reported by Michael5392Tsirkin ([email protected]).53935394Tests/ASLTS: Updated functional control suite to execute with no errors.5395David Box. Fixed several errors related to the testing of the interpreter5396slack mode. Lv Zheng.53975398iASL: Added support to detect names that are declared within a control5399method, but are unused (these are temporary names that are only valid5400during the time the method is executing). A remark is issued for these5401cases. ACPICA BZ 1022.54025403iASL: Added full support for the DBG2 table. Adds full disassembler,5404table compiler, and template generator support for the DBG2 table (Debug5405Port 2 table).54065407iASL: Added full support for the PCCT table, update the table definition.5408Updates the PCCT table definition in the actbl3.h header and adds table5409compiler and template generator support.54105411iASL: Added an option to emit only error messages (no warnings/remarks).5412The -ve option will enable only error messages, warnings and remarks are5413suppressed. This can simplify debugging when only the errors are5414important, such as when an ACPI table is disassembled and there are many5415warnings and remarks -- but only the actual errors are of real interest.54165417Example ACPICA code (source/tools/examples): Updated the example code so5418that it builds to an actual working program, not just example code. Added5419ACPI tables and execution of an example control method in the DSDT. Added5420makefile support for Unix generation.542154225423----------------------------------------542415 November 2013. Summary of changes for version 20131115:54255426This release is available at https://acpica.org/downloads5427542854291) ACPICA kernel-resident subsystem:54305431Resource Manager: Fixed loop termination for the "get AML length"5432function. The loop previously had an error termination on a NULL resource5433pointer, which can never happen since the loop simply increments a valid5434resource pointer. This fix changes the loop to terminate with an error on5435an invalid end-of-buffer condition. The problem can be seen as an5436infinite loop by callers to AcpiSetCurrentResources with an invalid or5437corrupted resource descriptor, or a resource descriptor that is missing5438an END_TAG descriptor. Reported by Dan Carpenter5439<[email protected]>. Lv Zheng, Bob Moore.54405441Table unload and ACPICA termination: Delete all attached data objects5442during namespace node deletion. This fix updates namespace node deletion5443to delete the entire list of attached objects (attached via5444AcpiAttachObject) instead of just one of the attached items. ACPICA BZ54451024. Tomasz Nowicki ([email protected]).54465447ACPICA termination: Added support to delete all objects attached to the5448root namespace node. This fix deletes any and all objects that have been5449attached to the root node via AcpiAttachData. Previously, none of these5450objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026.54515452Debug output: Do not emit the function nesting level for the in-kernel5453build. The nesting level is really only useful during a single-thread5454execution. Therefore, only enable this output for the AcpiExec utility.5455Also, only emit the thread ID when executing under AcpiExec (Context5456switches are still always detected and a message is emitted). ACPICA BZ5457972.54585459Example Code and Data Size: These are the sizes for the OS-independent5460acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5461debug version of the code includes the debug output trace mechanism and5462has a much larger code and data size.54635464Current Release:5465Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total5466Debug Version: 185.1K Code, 77.2K Data, 262.3K Total5467Previous Release:5468Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total5469Debug Version: 185.2K Code, 77.2K Data, 262.4K Total5470547154722) iASL Compiler/Disassembler and Tools:54735474AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the5475correct portable POSIX header for terminal control functions.54765477Disassembler: Fixed control method invocation issues related to the use5478of the CondRefOf() operator. The problem is seen in the disassembly where5479control method invocations may not be disassembled properly if the5480control method name has been used previously as an argument to CondRefOf.5481The solution is to not attempt to emit an external declaration for the5482CondRefOf target (it is not necessary in the first place). This prevents5483disassembler object type confusion. ACPICA BZ 988.54845485Unix Makefiles: Added an option to disable compiler optimizations and the5486_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA5487with optimizations (reportedly, gcc 4.4 for example). This change adds a5488command line option for make (NOOPT) that disables all compiler5489optimizations and the _FORTIFY_SOURCE compiler flag. The default5490optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ54911034. Lv Zheng, Bob Moore.54925493Tests/ASLTS: Added options to specify individual test cases and modes.5494This allows testers running aslts.sh to optionally specify individual5495test modes and test cases. Also added an option to disable the forced5496generation of the ACPICA tools from source if desired. Lv Zheng.54975498----------------------------------------549927 September 2013. Summary of changes for version 20130927:55005501This release is available at https://acpica.org/downloads5502550355041) ACPICA kernel-resident subsystem:55055506Fixed a problem with store operations to reference objects. This change5507fixes a problem where a Store operation to an ArgX object that contained5508a5509reference to a field object did not complete the automatic dereference5510and5511then write to the actual field object. Instead, the object type of the5512field object was inadvertently changed to match the type of the source5513operand. The new behavior will actually write to the field object (buffer5514field or field unit), thus matching the correct ACPI-defined behavior.55155516Implemented support to allow the host to redefine individual OSL5517prototypes. This change enables the host to redefine OSL prototypes found5518in the acpiosxf.h file. This allows the host to implement OSL interfaces5519with a macro or inlined function. Further, it allows the host to add any5520additional required modifiers such as __iomem, __init, __exit, etc., as5521necessary on a per-interface basis. Enables maximum flexibility for the5522OSL interfaces. Lv Zheng.55235524Hardcoded the access width for the FADT-defined reset register. The ACPI5525specification requires the reset register width to be 8 bits. ACPICA now5526hardcodes the width to 8 and ignores the FADT width value. This provides5527compatibility with other ACPI implementations that have allowed BIOS code5528with bad register width values to go unnoticed. Matthew Garett, Bob5529Moore,5530Lv Zheng.55315532Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is5533used5534in the OSL header (acpiosxf). The change modifies the position of this5535macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid5536build issues if the OSL defines the implementation of the interface to be5537an inline stub function. Lv Zheng.55385539Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA5540initialization interfaces. This change adds a new macro for the main init5541and terminate external interfaces in order to support hosts that require5542additional or different processing for these functions. Changed from5543ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv5544Zheng, Bob Moore.55455546Cleaned up the memory allocation macros for configurability. In the5547common5548case, the ACPI_ALLOCATE and related macros now resolve directly to their5549respective AcpiOs* OSL interfaces. Two options:55501) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by5551default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define.55522) For AcpiExec (and for debugging), the macros can optionally be5553resolved5554to the local ACPICA interfaces that track each allocation (local tracking5555is used to immediately detect memory leaks).5556Lv Zheng.55575558Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel5559to predefine this macro to either TRUE or FALSE during the system build.55605561Replaced __FUNCTION_ with __func__ in the gcc-specific header.55625563Example Code and Data Size: These are the sizes for the OS-independent5564acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5565debug version of the code includes the debug output trace mechanism and5566has a much larger code and data size.55675568Current Release:5569Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total5570Debug Version: 185.2K Code, 77.2K Data, 262.4K Total5571Previous Release:5572Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total5573Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5574557555762) iASL Compiler/Disassembler and Tools:55775578iASL: Implemented wildcard support for the -e option. This simplifies use5579when there are many SSDTs that must be included to resolve external5580method5581declarations. ACPICA BZ 1041. Example:5582iasl -e ssdt*.dat -d dsdt.dat55835584AcpiExec: Add history/line-editing for Unix/Linux systems. This change5585adds a portable module that implements full history and limited line5586editing for Unix and Linux systems. It does not use readline() due to5587portability issues. Instead it uses the POSIX termio interface to put the5588terminal in raw input mode so that the various special keys can be5589trapped5590(such as up/down-arrow for history support and left/right-arrow for line5591editing). Uses the existing debugger history mechanism. ACPICA BZ 1036.55925593AcpiXtract: Add support to handle (ignore) "empty" lines containing only5594one or more spaces. This provides compatible with early or different5595versions of the AcpiDump utility. ACPICA BZ 1044.55965597AcpiDump: Do not ignore tables that contain only an ACPI table header.5598Apparently, some BIOSs create SSDTs that contain an ACPI table header but5599no other data. This change adds support to dump these tables. Any tables5600shorter than the length of an ACPI table header remain in error (an error5601message is emitted). Reported by Yi Li.56025603Debugger: Echo actual command along with the "unknown command" message.56045605----------------------------------------560623 August 2013. Summary of changes for version 20130823:560756081) ACPICA kernel-resident subsystem:56095610Implemented support for host-installed System Control Interrupt (SCI)5611handlers. Certain ACPI functionality requires the host to handle raw5612SCIs. For example, the "SCI Doorbell" that is defined for memory power5613state support requires the host device driver to handle SCIs to examine5614if the doorbell has been activated. Multiple SCI handlers can be5615installed to allow for future expansion. New external interfaces are5616AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for5617details. Lv Zheng, Bob Moore. ACPICA BZ 1032.56185619Operation region support: Never locally free the handler "context"5620pointer. This change removes some dangerous code that attempts to free5621the handler context pointer in some (rare) circumstances. The owner of5622the handler owns this pointer and the ACPICA code should never touch it.5623Although not seen to be an issue in any kernel, it did show up as a5624problem (fault) under AcpiExec. Also, set the internal storage field for5625the context pointer to zero when the region is deactivated, simply for5626sanity. David Box. ACPICA BZ 1039.56275628AcpiRead: On error, do not modify the return value target location. If an5629error happens in the middle of a split 32/32 64-bit I/O operation, do not5630modify the target of the return value pointer. Makes the code consistent5631with the rest of ACPICA. Bjorn Helgaas.56325633Example Code and Data Size: These are the sizes for the OS-independent5634acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5635debug version of the code includes the debug output trace mechanism and5636has a much larger code and data size.56375638Current Release:5639Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total5640Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5641Previous Release:5642Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total5643Debug Version: 185.4K Code, 77.1K Data, 262.5K Total5644564556462) iASL Compiler/Disassembler and Tools:56475648AcpiDump: Implemented several new features and fixed some problems:56491) Added support to dump the RSDP, RSDT, and XSDT tables.56502) Added support for multiple table instances (SSDT, UEFI).56513) Added option to dump "customized" (overridden) tables (-c).56524) Fixed a problem where some table filenames were improperly5653constructed.56545) Improved some error messages, removed some unnecessary messages.56555656iASL: Implemented additional support for disassembly of ACPI tables that5657contain invocations of external control methods. The -fe<file> option5658allows the import of a file that specifies the external methods along5659with the required number of arguments for each -- allowing for the5660correct disassembly of the table. This is a workaround for a limitation5661of AML code where the disassembler often cannot determine the number of5662arguments required for an external control method and generates incorrect5663ASL code. See the iASL reference for details. ACPICA BZ 1030.56645665Debugger: Implemented a new command (paths) that displays the full5666pathnames (namepaths) and object types of all objects in the namespace.5667This is an alternative to the namespace command.56685669Debugger: Implemented a new command (sci) that invokes the SCI dispatch5670mechanism and any installed handlers.56715672iASL: Fixed a possible segfault for "too many parent prefixes" condition.5673This can occur if there are too many parent prefixes in a namepath (for5674example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035.56755676Application OSLs: Set the return value for the PCI read functions. These5677functions simply return AE_OK, but should set the return value to zero5678also. This change implements this. ACPICA BZ 1038.56795680Debugger: Prevent possible command line buffer overflow. Increase the5681size of a couple of the debugger line buffers, and ensure that overflow5682cannot happen. ACPICA BZ 1037.56835684iASL: Changed to abort immediately on serious errors during the parsing5685phase. Due to the nature of ASL, there is no point in attempting to5686compile these types of errors, and they typically end up causing a5687cascade of hundreds of errors which obscure the original problem.56885689----------------------------------------569025 July 2013. Summary of changes for version 20130725:569156921) ACPICA kernel-resident subsystem:56935694Fixed a problem with the DerefOf operator where references to FieldUnits5695and BufferFields incorrectly returned the parent object, not the actual5696value of the object. After this change, a dereference of a FieldUnit5697reference results in a read operation on the field to get the value, and5698likewise, the appropriate BufferField value is extracted from the target5699buffer.57005701Fixed a problem where the _WAK method could cause a fault under these5702circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK5703method returned no value. The problem is rarely seen because most kernels5704run ACPICA in slack mode.57055706For the DerefOf operator, a fatal error now results if an attempt is made5707to dereference a reference (created by the Index operator) to a NULL5708package element. Provides compatibility with other ACPI implementations,5709and this behavior will be added to a future version of the ACPI5710specification.57115712The ACPI Power Management Timer (defined in the FADT) is now optional.5713This provides compatibility with other ACPI implementations and will5714appear in the next version of the ACPI specification. If there is no PM5715Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of5716zero in the FADT indicates no PM timer.57175718Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This5719allows the host to globally enable/disable all vendor strings, all5720feature strings, or both. Intended to be primarily used for debugging5721purposes only. Lv Zheng.57225723Expose the collected _OSI data to the host via a global variable. This5724data tracks the highest level vendor ID that has been invoked by the BIOS5725so that the host (and potentially ACPICA itself) can change behaviors5726based upon the age of the BIOS.57275728Example Code and Data Size: These are the sizes for the OS-independent5729acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5730debug version of the code includes the debug output trace mechanism and5731has a much larger code and data size.57325733Current Release:5734Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total5735Debug Version: 184.4K Code, 76.8K Data, 261.2K Total5736Previous Release:5737Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total5738Debug Version: 184.1K Code, 76.7K Data, 260.8K Total5739574057412) iASL Compiler/Disassembler and Tools:57425743iASL: Created the following enhancements for the -so option (create5744offset table):57451)Add offsets for the last nameseg in each namepath for every supported5746object type57472)Add support for Processor, Device, Thermal Zone, and Scope objects57483)Add the actual AML opcode for the parent object of every supported5749object type57504)Add support for the ZERO/ONE/ONES AML opcodes for integer objects57515752Disassembler: Emit all unresolved external symbols in a single block.5753These are external references to control methods that could not be5754resolved, and thus, the disassembler had to make a guess at the number of5755arguments to parse.57565757iASL: The argument to the -T option (create table template) is now5758optional. If not specified, the default table is a DSDT, typically the5759most common case.57605761----------------------------------------576226 June 2013. Summary of changes for version 20130626:576357641) ACPICA kernel-resident subsystem:57655766Fixed an issue with runtime repair of the _CST object. Null or invalid5767elements were not always removed properly. Lv Zheng.57685769Removed an arbitrary restriction of 256 GPEs per GPE block (such as the5770FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device,5771the maximum number of GPEs is 1016. Use of multiple GPE block devices5772makes the system-wide number of GPEs essentially unlimited.57735774Example Code and Data Size: These are the sizes for the OS-independent5775acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5776debug version of the code includes the debug output trace mechanism and5777has a much larger code and data size.57785779Current Release:5780Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total5781Debug Version: 184.1K Code, 76.7K Data, 260.8K Total5782Previous Release:5783Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total5784Debug Version: 184.1K Code, 76.8K Data, 260.9K Total5785578657872) iASL Compiler/Disassembler and Tools:57885789Portable AcpiDump: Implemented full support for the Linux and FreeBSD5790hosts. Now supports Linux, FreeBSD, and Windows.57915792Disassembler: Added some missing types for the HEST and EINJ tables: "Set5793Error Type With Address", "CMCI", "MCE", and "Flush Cacheline".57945795iASL/Preprocessor: Implemented full support for nested5796#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks.57975798Disassembler: Expanded maximum output string length to 64K. Was 256 bytes5799max. The original purpose of this constraint was to limit the amount of5800debug output. However, the string function in question (UtPrintString) is5801now used for the disassembler also, where 256 bytes is insufficient.5802Reported by RehabMan@GitHub.58035804iASL/DataTables: Fixed some problems and issues with compilation of DMAR5805tables. ACPICA BZ 999. Lv Zheng.58065807iASL: Fixed a couple of error exit issues that could result in a "Could5808not delete <file>" message during ASL compilation.58095810AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though5811the actual signatures for these tables are "FACP" and "APIC",5812respectively.58135814AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI5815tables are allowed to have multiple instances.58165817----------------------------------------581817 May 2013. Summary of changes for version 20130517:581958201) ACPICA kernel-resident subsystem:58215822Fixed a regression introduced in version 20130328 for _INI methods. This5823change fixes a problem introduced in 20130328 where _INI methods are no5824longer executed properly because of a memory block that was not5825initialized correctly. ACPICA BZ 1016. Tomasz Nowicki5826<[email protected]>.58275828Fixed a possible problem with the new extended sleep registers in the5829ACPI58305.0 FADT. Do not use these registers (even if populated) unless the HW-5831reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ58321020. Lv Zheng.58335834Implemented return value repair code for _CST predefined objects: Sort5835the5836list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng.58375838Implemented a debug-only option to disable loading of SSDTs from the5839RSDT/XSDT during ACPICA initialization. This can be useful for debugging5840ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in5841acglobal.h - ACPICA BZ 1005. Lv Zheng.58425843Fixed some issues in the ACPICA initialization and termination code:5844Tomasz Nowicki <[email protected]>58451) Clear events initialized flag upon event component termination. ACPICA5846BZ 1013.58472) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018.58483) Delete global lock pending lock during termination. ACPICA BZ 1012.58494) Clear debug buffer global on termination to prevent possible multiple5850delete. ACPICA BZ 1010.58515852Standardized all switch() blocks across the entire source base. After5853many5854years, different formatting for switch() had crept in. This change makes5855the formatting of every switch block identical. ACPICA BZ 997. Chao Guan.58565857Split some files to enhance ACPICA modularity and configurability:58581) Split buffer dump routines into utilities/utbuffer.c58592) Split internal error message routines into utilities/uterror.c58603) Split table print utilities into tables/tbprint.c58614) Split iASL command-line option processing into asloptions.c58625863Makefile enhancements:58641) Support for all new files above.58652) Abort make on errors from any subcomponent. Chao Guan.58663) Add build support for Apple Mac OS X. Liang Qi.58675868Example Code and Data Size: These are the sizes for the OS-independent5869acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5870debug version of the code includes the debug output trace mechanism and5871has a much larger code and data size.58725873Current Release:5874Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total5875Debug Version: 184.1K Code, 76.8K Data, 260.9K Total5876Previous Release:5877Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total5878Debug Version: 183.5K Code, 76.6K Data, 260.1K Total5879588058812) iASL Compiler/Disassembler and Tools:58825883New utility: Implemented an easily portable version of the acpidump5884utility to extract ACPI tables from the system (or a file) in an ASCII5885hex5886dump format. The top-level code implements the various command line5887options, file I/O, and table dump routines. To port to a new host, only5888three functions need to be implemented to get tables -- since this5889functionality is OS-dependent. See the tools/acpidump/apmain.c module and5890the ACPICA reference for porting instructions. ACPICA BZ 859. Notes:58911) The Windows version obtains the ACPI tables from the Registry.58922) The Linux version is under development.58933) Other hosts - If an OS-dependent module is submitted, it will be5894distributed with ACPICA.58955896iASL: Fixed a regression for -D preprocessor option (define symbol). A5897restructuring/change to the initialization sequence caused this option to5898no longer work properly.58995900iASL: Implemented a mechanism to disable specific warnings and remarks.5901Adds a new command line option, "-vw <messageid> as well as "#pragma5902disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore.59035904iASL: Fix for too-strict package object validation. The package object5905validation for return values from the predefined names is a bit too5906strict, it does not allow names references within the package (which will5907be resolved at runtime.) These types of references cannot be validated at5908compile time. This change ignores named references within package objects5909for names that return or define static packages.59105911Debugger: Fixed the 80-character command line limitation for the History5912command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan.59135914iASL: Added control method and package support for the -so option5915(generates AML offset table for BIOS support.)59165917iASL: issue a remark if a non-serialized method creates named objects. If5918a thread blocks within the method for any reason, and another thread5919enters the method, the method will fail because an attempt will be made5920to5921create the same (named) object twice. In this case, issue a remark that5922the method should be marked serialized. NOTE: may become a warning later.5923ACPICA BZ 909.59245925----------------------------------------592618 April 2013. Summary of changes for version 20130418:592759281) ACPICA kernel-resident subsystem:59295930Fixed a possible buffer overrun during some rare but specific field unit5931read operations. This overrun can only happen if the DSDT version is 1 --5932meaning that all AML integers are 32 bits -- and the field length is5933between 33 and 55 bits long. During the read, an internal buffer object5934is5935created for the field unit because the field is larger than an integer5936(325937bits). However, in this case, the buffer will be incorrectly written5938beyond the end because the buffer length is less than the internal5939minimum5940of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes5941long, but a full 8 bytes will be written.59425943Updated the Embedded Controller "orphan" _REG method support. This refers5944to _REG methods under the EC device that have no corresponding operation5945region. This is allowed by the ACPI specification. This update removes a5946dependency on the existence an ECDT table. It will execute an orphan _REG5947method as long as the operation region handler for the EC is installed at5948the EC device node and not the namespace root. Rui Zhang (original5949update), Bob Moore (update/integrate).59505951Implemented run-time argument typechecking for all predefined ACPI names5952(_STA, _BIF, etc.) This change performs object typechecking on all5953incoming arguments for all predefined names executed via5954AcpiEvaluateObject. This ensures that ACPI-related device drivers are5955passing correct object types as well as the correct number of arguments5956(therefore identifying any issues immediately). Also, the ASL/namespace5957definition of the predefined name is checked against the ACPI5958specification for the proper argument count. Adds one new file,5959nsarguments.c59605961Changed an exception code for the ASL UnLoad() operator. Changed the5962exception code for the case where the input DdbHandle is invalid, from5963AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE.59645965Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the5966global makefile. The use of this flag causes compiler errors on earlier5967versions of GCC, so it has been removed for compatibility.59685969Miscellaneous cleanup:59701) Removed some unused/obsolete macros59712) Fixed a possible memory leak in the _OSI support59723) Removed an unused variable in the predefined name support59734) Windows OSL: remove obsolete reference to a memory list field59745975Example Code and Data Size: These are the sizes for the OS-independent5976acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The5977debug version of the code includes the debug output trace mechanism and5978has a much larger code and data size.59795980Current Release:5981Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total5982Debug Version: 183.0K Code, 76.0K Data, 259.0K Total5983Previous Release:5984Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total5985Debug Version: 183.5K Code, 76.6K Data, 260.1K Total5986598759882) iASL Compiler/Disassembler and Tools:59895990AcpiExec: Added installation of a handler for the SystemCMOS address5991space. This prevents control method abort if a method accesses this5992space.59935994AcpiExec: Added support for multiple EC devices, and now install EC5995operation region handler(s) at the actual EC device instead of the5996namespace root. This reflects the typical behavior of host operating5997systems.59985999AcpiExec: Updated to ensure that all operation region handlers are6000installed before the _REG methods are executed. This prevents a _REG6001method from aborting if it accesses an address space has no handler.6002AcpiExec installs a handler for every possible address space.60036004Debugger: Enhanced the "handlers" command to display non-root handlers.6005This change enhances the handlers command to display handlers associated6006with individual devices throughout the namespace, in addition to the6007currently supported display of handlers associated with the root6008namespace6009node.60106011ASL Test Suite: Several test suite errors have been identified and6012resolved, reducing the total error count during execution. Chao Guan.60136014----------------------------------------601528 March 2013. Summary of changes for version 20130328:601660171) ACPICA kernel-resident subsystem:60186019Fixed several possible race conditions with the internal object reference6020counting mechanism. Some of the external ACPICA interfaces update object6021reference counts without holding the interpreter or namespace lock. This6022change adds a spinlock to protect reference count updates on the internal6023ACPICA objects. Reported by and with assistance from Andriy Gapon6024([email protected]).60256026FADT support: Removed an extraneous warning for very large GPE register6027sets. This change removes a size mismatch warning if the legacy length6028field for a GPE register set is larger than the 64-bit GAS structure can6029accommodate. GPE register sets can be larger than the 255-bit width6030limitation of the GAS structure. Linn Crosetto ([email protected]).60316032_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error6033return from this interface. Handles a possible timeout case if6034ACPI_WAIT_FOREVER is modified by the host to be a value less than6035"forever". Jung-uk Kim.60366037Predefined name support: Add allowed/required argument type information6038to6039the master predefined info table. This change adds the infrastructure to6040enable typechecking on incoming arguments for all predefined6041methods/objects. It does not actually contain the code that will fully6042utilize this information, this is still under development. Also condenses6043some duplicate code for the predefined names into a new module,6044utilities/utpredef.c60456046Example Code and Data Size: These are the sizes for the OS-independent6047acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6048debug version of the code includes the debug output trace mechanism and6049has a much larger code and data size.60506051Previous Release:6052Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total6053Debug Version: 182.9K Code, 75.6K Data, 258.5K Total6054Current Release:6055Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total6056Debug Version: 183.0K Code, 76.0K Data, 259.0K Total6057605860592) iASL Compiler/Disassembler and Tools:60606061iASL: Implemented a new option to simplify the development of ACPI-6062related6063BIOS code. Adds support for a new "offset table" output file. The -so6064option will create a C table containing the AML table offsets of various6065named objects in the namespace so that BIOS code can modify them easily6066at6067boot time. This can simplify BIOS runtime code by eliminating expensive6068searches for "magic values", enhancing boot times and adding greater6069reliability. With assistance from Lee Hamel.60706071iASL: Allow additional predefined names to return zero-length packages.6072Now, all predefined names that are defined by the ACPI specification to6073return a "variable-length package of packages" are allowed to return a6074zero length top-level package. This allows the BIOS to tell the host that6075the requested feature is not supported, and supports existing BIOS/ASL6076code and practices.60776078iASL: Changed the "result not used" warning to an error. This is the case6079where an ASL operator is effectively a NOOP because the result of the6080operation is not stored anywhere. For example:6081Add (4, Local0)6082There is no target (missing 3rd argument), nor is the function return6083value used. This is potentially a very serious problem -- since the code6084was probably intended to do something, but for whatever reason, the value6085was not stored. Therefore, this issue has been upgraded from a warning to6086an error.60876088AcpiHelp: Added allowable/required argument types to the predefined names6089info display. This feature utilizes the recent update to the predefined6090names table (above).60916092----------------------------------------609314 February 2013. Summary of changes for version 20130214:609460951) ACPICA Kernel-resident Subsystem:60966097Fixed a possible regression on some hosts: Reinstated the safe return6098macros (return_ACPI_STATUS, etc.) that ensure that the argument is6099evaluated only once. Although these macros are not needed for the ACPICA6100code itself, they are often used by ACPI-related host device drivers6101where6102the safe feature may be necessary.61036104Fixed several issues related to the ACPI 5.0 reduced hardware support6105(SOC): Now ensure that if the platform declares itself as hardware-6106reduced6107via the FADT, the following functions become NOOPs (and always return6108AE_OK) because ACPI is always enabled by definition on these machines:6109AcpiEnable6110AcpiDisable6111AcpiHwGetMode6112AcpiHwSetMode61136114Dynamic Object Repair: Implemented additional runtime repairs for6115predefined name return values. Both of these repairs can simplify code in6116the related device drivers that invoke these methods:61171) For the _STR and _MLS names, automatically repair/convert an ASCII6118string to a Unicode buffer.61192) For the _CRS, _PRS, and _DMA names, return a resource descriptor with6120a6121lone end tag descriptor in the following cases: A Return(0) was executed,6122a null buffer was returned, or no object at all was returned (non-slack6123mode only). Adds a new file, nsconvert.c6124ACPICA BZ 998. Bob Moore, Lv Zheng.61256126Resource Manager: Added additional code to prevent possible infinite6127loops6128while traversing corrupted or ill-formed resource template buffers. Check6129for zero-length resource descriptors in all code that loops through6130resource templates (the length field is used to index through the6131template). This change also hardens the external AcpiWalkResources and6132AcpiWalkResourceBuffer interfaces.61336134Local Cache Manager: Enhanced the main data structure to eliminate an6135unnecessary mechanism to access the next object in the list. Actually6136provides a small performance enhancement for hosts that use the local6137ACPICA cache manager. Jung-uk Kim.61386139Example Code and Data Size: These are the sizes for the OS-independent6140acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6141debug version of the code includes the debug output trace mechanism and6142has a much larger code and data size.61436144Previous Release:6145Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total6146Debug Version: 182.3K Code, 75.0K Data, 257.3K Total6147Current Release:6148Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total6149Debug Version: 182.9K Code, 75.6K Data, 258.5K Total6150615161522) iASL Compiler/Disassembler and Tools:61536154iASL/Disassembler: Fixed several issues with the definition of the ACPI61555.0 RASF table (RAS Feature Table). This change incorporates late changes6156that were made to the ACPI 5.0 specification.61576158iASL/Disassembler: Added full support for the following new ACPI tables:61591) The MTMR table (MID Timer Table)61602) The VRTC table (Virtual Real Time Clock Table).6161Includes header file, disassembler, table compiler, and template support6162for both tables.61636164iASL: Implemented compile-time validation of package objects returned by6165predefined names. This new feature validates static package objects6166returned by the various predefined names defined to return packages. Both6167object types and package lengths are validated, for both parent packages6168and sub-packages, if any. The code is similar in structure and behavior6169to6170the runtime repair mechanism within the AML interpreter and uses the6171existing predefined name information table. Adds a new file, aslprepkg.c.6172ACPICA BZ 938.61736174iASL: Implemented auto-detection of binary ACPI tables for disassembly.6175This feature detects a binary file with a valid ACPI table header and6176invokes the disassembler automatically. Eliminates the need to6177specifically invoke the disassembler with the -d option. ACPICA BZ 862.61786179iASL/Disassembler: Added several warnings for the case where there are6180unresolved control methods during the disassembly. This can potentially6181cause errors when the output file is compiled, because the disassembler6182assumes zero method arguments in these cases (it cannot determine the6183actual number of arguments without resolution/definition of the method).61846185Debugger: Added support to display all resources with a single command.6186Invocation of the resources command with no arguments will now display6187all6188resources within the current namespace.61896190AcpiHelp: Added descriptive text for each ACPICA exception code displayed6191via the -e option.61926193----------------------------------------619417 January 2013. Summary of changes for version 20130117:619561961) ACPICA Kernel-resident Subsystem:61976198Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to6199return either 1 or 2 integers. Although the ACPI spec defines the \_Sx6200objects to return a package containing one integer, most BIOS code6201returns6202two integers and the previous code reflects that. However, we also need6203to6204support BIOS code that actually implements to the ACPI spec, and this6205change reflects this.62066207Fixed two issues with the ACPI_DEBUG_PRINT macros:62081) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for6209C compilers that require this support.62102) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since6211ACPI_DEBUG is already used by many of the various hosts.62126213Updated all ACPICA copyrights and signons to 2013. Added the 20136214copyright to all module headers and signons, including the standard Linux6215header. This affects virtually every file in the ACPICA core subsystem,6216iASL compiler, all ACPICA utilities, and the test suites.62176218Example Code and Data Size: These are the sizes for the OS-independent6219acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6220debug version of the code includes the debug output trace mechanism and6221has a much larger code and data size.62226223Previous Release:6224Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total6225Debug Version: 182.2K Code, 74.9K Data, 257.1K Total6226Current Release:6227Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total6228Debug Version: 182.3K Code, 75.0K Data, 257.3K Total6229623062312) iASL Compiler/Disassembler and Tools:62326233Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and6234prevent a possible fault on some hosts. Some C libraries modify the arg6235pointer parameter to vfprintf making it difficult to call it twice in the6236AcpiOsVprintf function. Use a local buffer to workaround this issue. This6237does not affect the Windows OSL since the Win C library does not modify6238the arg pointer. Chao Guan, Bob Moore.62396240iASL: Fixed a possible infinite loop when the maximum error count is6241reached. If an output file other than the .AML file is specified (such as6242a listing file), and the maximum number of errors is reached, do not6243attempt to flush data to the output file(s) as the compiler is aborting.6244This can cause an infinite loop as the max error count code essentially6245keeps calling itself.62466247iASL/Disassembler: Added an option (-in) to ignore NOOP6248opcodes/operators.6249Implemented for both the compiler and the disassembler. Often, the NOOP6250opcode is used as padding for packages that are changed dynamically by6251the6252BIOS. When disassembled and recompiled, these NOOPs will cause syntax6253errors. This option causes the disassembler to ignore all NOOP opcodes6254(0xA3), and it also causes the compiler to ignore all ASL source code6255NOOP6256statements as well.62576258Debugger: Enhanced the Sleep command to execute all sleep states. This6259change allows Sleep to be invoked with no arguments and causes the6260debugger to execute all of the sleep states, 0-5, automatically.62616262----------------------------------------626320 December 2012. Summary of changes for version 20121220:626462651) ACPICA Kernel-resident Subsystem:62666267Implemented a new interface, AcpiWalkResourceBuffer. This interface is an6268alternate entry point for AcpiWalkResources and improves the usability of6269the resource manager by accepting as input a buffer containing the output6270of either a _CRS, _PRS, or _AEI method. The key functionality is that the6271input buffer is not deleted by this interface so that it can be used by6272the host later. See the ACPICA reference for details.62736274Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table6275(DSDT version < 2). The constant will be truncated and this warning6276reflects that behavior.62776278Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ,6279ExtendedInterrupt, and GpioInt descriptors. This change adds support to6280both get and set the new wake bit in these descriptors, separately from6281the existing share bit. Reported by Aaron Lu.62826283Interpreter: Fix Store() when an implicit conversion is not possible. For6284example, in the cases such as a store of a string to an existing package6285object, implement the store as a CopyObject(). This is a small departure6286from the ACPI specification which states that the control method should6287be6288aborted in this case. However, the ASLTS suite depends on this behavior.62896290Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT6291macros: check if debug output is currently enabled as soon as possible to6292minimize performance impact if debug is in fact not enabled.62936294Source code restructuring: Cleanup to improve modularity. The following6295new files have been added: dbconvert.c, evhandler.c, nsprepkg.c,6296psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c.6297Associated makefiles and project files have been updated.62986299Changed an exception code for LoadTable operator. For the case where one6300of the input strings is too long, change the returned exception code from6301AE_BAD_PARAMETER to AE_AML_STRING_LIMIT.63026303Fixed a possible memory leak in dispatcher error path. On error, delete6304the mutex object created during method mutex creation. Reported by6305[email protected].63066307Example Code and Data Size: These are the sizes for the OS-independent6308acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6309debug version of the code includes the debug output trace mechanism and6310has a much larger code and data size.63116312Previous Release:6313Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total6314Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6315Current Release:6316Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total6317Debug Version: 182.2K Code, 74.9K Data, 257.1K Total6318631963202) iASL Compiler/Disassembler and Tools:63216322iASL: Disallow a method call as argument to the ObjectType ASL operator.6323This change tracks an errata to the ACPI 5.0 document. The AML grammar6324will not allow the interpreter to differentiate between a method and a6325method invocation when these are used as an argument to the ObjectType6326operator. The ACPI specification change is to disallow a method6327invocation6328(UserTerm) for the ObjectType operator.63296330Finish support for the TPM2 and CSRT tables in the headers, table6331compiler, and disassembler.63326333Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout6334always expires immediately if the semaphore is not available. The6335original6336code was using a relative-time timeout, but sem_timedwait requires the6337use6338of an absolute time.63396340iASL: Added a remark if the Timer() operator is used within a 32-bit6341table. This operator returns a 64-bit time value that will be truncated6342within a 32-bit table.63436344iASL Source code restructuring: Cleanup to improve modularity. The6345following new files have been added: aslhex.c, aslxref.c, aslnamesp.c,6346aslmethod.c, and aslfileio.c. Associated makefiles and project files have6347been updated.634863496350----------------------------------------635114 November 2012. Summary of changes for version 20121114:635263531) ACPICA Kernel-resident Subsystem:63546355Implemented a performance enhancement for ACPI/AML Package objects. This6356change greatly increases the performance of Package objects within the6357interpreter. It changes the processing of reference counts for packages6358by6359optimizing for the most common case where the package sub-objects are6360either Integers, Strings, or Buffers. Increases the overall performance6361of6362the ASLTS test suite by 1.5X (Increases the Slack Mode performance by63632X.)6364Chao Guan. ACPICA BZ 943.63656366Implemented and deployed common macros to extract flag bits from resource6367descriptors. Improves readability and maintainability of the code. Fixes6368a6369problem with the UART serial bus descriptor for the number of data bits6370flags (was incorrectly 2 bits, should be 3).63716372Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation6373of the macros and changed the SETx macros to the style of (destination,6374source). Also added ACPI_CASTx companion macros. Lv Zheng.63756376Example Code and Data Size: These are the sizes for the OS-independent6377acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6378debug version of the code includes the debug output trace mechanism and6379has a much larger code and data size.63806381Previous Release:6382Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total6383Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6384Current Release:6385Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total6386Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6387638863892) iASL Compiler/Disassembler and Tools:63906391Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change6392adds the ShareAndWake and ExclusiveAndWake flags which were added to the6393Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986.63946395Disassembler: Fixed a problem with external declaration generation. Fixes6396a problem where an incorrect pathname could be generated for an external6397declaration if the original reference to the object includes leading6398carats (^). ACPICA BZ 984.63996400Debugger: Completed a major update for the Disassemble<method> command.6401This command was out-of-date and did not properly disassemble control6402methods that had any reasonable complexity. This fix brings the command6403up6404to the same level as the rest of the disassembler. Adds one new file,6405dmdeferred.c, which is existing code that is now common with the main6406disassembler and the debugger disassemble command. ACPICA MZ 978.64076408iASL: Moved the parser entry prototype to avoid a duplicate declaration.6409Newer versions of Bison emit this prototype, so moved the prototype out6410of6411the iASL header to where it is actually used in order to avoid a6412duplicate6413declaration.64146415iASL/Tools: Standardized use of the stream I/O functions:64161) Ensure check for I/O error after every fopen/fread/fwrite64172) Ensure proper order of size/count arguments for fread/fwrite64183) Use test of (Actual != Requested) after all fwrite, and most fread64194) Standardize I/O error messages6420Improves reliability and maintainability of the code. Bob Moore, Lv6421Zheng.6422ACPICA BZ 981.64236424Disassembler: Prevent duplicate External() statements. During generation6425of external statements, detect similar pathnames that are actually6426duplicates such as these:6427External (\ABCD)6428External (ABCD)6429Remove all leading '\' characters from pathnames during the external6430statement generation so that duplicates will be detected and tossed.6431ACPICA BZ 985.64326433Tools: Replace low-level I/O with stream I/O functions. Replace6434open/read/write/close with the stream I/O equivalents6435fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob6436Moore.64376438AcpiBin: Fix for the dump-to-hex function. Now correctly output the table6439name header so that AcpiXtract recognizes the output file/table.64406441iASL: Remove obsolete -2 option flag. Originally intended to force the6442compiler/disassembler into an ACPI 2.0 mode, this was never implemented6443and the entire concept is now obsolete.64446445----------------------------------------644618 October 2012. Summary of changes for version 20121018:6447644864491) ACPICA Kernel-resident Subsystem:64506451Updated support for the ACPI 5.0 MPST table. Fixes some problems6452introduced by late changes to the table as it was added to the ACPI 5.06453specification. Includes header, disassembler, and data table compiler6454support as well as a new version of the MPST template.64556456AcpiGetObjectInfo: Enhanced the device object support to include the ACPI64575.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID6458methods: _HID, _CID, and _UID.64596460Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed6461ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent6462name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId)6463names for their various drivers. Affects the AcpiGetObjectInfo external6464interface, and other internal interfaces as well.64656466Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME.6467This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME6468on machines that support non-aligned transfers. Optimizes for this case6469rather than using a strncpy. With assistance from Zheng Lv.64706471Resource Manager: Small fix for buffer size calculation. Fixed a one byte6472error in the output buffer calculation. Feng Tang. ACPICA BZ 849.64736474Added a new debug print message for AML mutex objects that are force-6475released. At control method termination, any currently acquired mutex6476objects are force-released. Adds a new debug-only message for each one6477that is released.64786479Audited/updated all ACPICA return macros and the function debug depth6480counter: 1) Ensure that all functions that use the various TRACE macros6481also use the appropriate ACPICA return macros. 2) Ensure that all normal6482return statements surround the return expression (value) with parens to6483ensure consistency across the ACPICA code base. Guan Chao, Tang Feng,6484Zheng Lv, Bob Moore. ACPICA Bugzilla 972.64856486Global source code changes/maintenance: All extra lines at the start and6487end of each source file have been removed for consistency. Also, within6488comments, all new sentences start with a single space instead of a double6489space, again for consistency across the code base.64906491Example Code and Data Size: These are the sizes for the OS-independent6492acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6493debug version of the code includes the debug output trace mechanism and6494has a much larger code and data size.64956496Previous Release:6497Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total6498Debug Version: 175.0K Code, 74.4K Data, 249.4K Total6499Current Release:6500Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total6501Debug Version: 175.5K Code, 74.5K Data, 250.0K Total6502650365042) iASL Compiler/Disassembler and Tools:65056506AcpiExec: Improved the algorithm used for memory leak/corruption6507detection. Added some intelligence to the code that maintains the global6508list of allocated memory. The list is now ordered by allocated memory6509address, significantly improving performance. When running AcpiExec on6510the ASLTS test suite, speed improvements of 3X to 5X are seen, depending6511on the platform and/or the environment. Note, this performance6512enhancement affects the AcpiExec utility only, not the kernel-resident6513ACPICA code.65146515Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For6516the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix6517incorrect table offset reported for invalid opcodes. Report the original651832-bit value for bad ACPI_NAMEs (as well as the repaired name.)65196520Disassembler: Enhanced the -vt option to emit the binary table data in6521hex format to assist with debugging.65226523Fixed a potential filename buffer overflow in osunixdir.c. Increased the6524size of file structure. Colin Ian King.65256526----------------------------------------652713 September 2012. Summary of changes for version 20120913:6528652965301) ACPICA Kernel-resident Subsystem:65316532ACPI 5.0: Added two new notify types for the Hardware Error Notification6533Structure within the Hardware Error Source Table (HEST) table -- CMCI(5)6534and6535MCE(6).65366537Table Manager: Merged/removed duplicate code in the root table resize6538functions. One function is external, the other is internal. Lv Zheng,6539ACPICA6540BZ 846.65416542Makefiles: Completely removed the obsolete "Linux" makefiles under6543acpica/generate/linux. These makefiles are obsolete and have been6544replaced6545by6546the generic unix makefiles under acpica/generate/unix.65476548Makefiles: Ensure that binary files always copied properly. Minor rule6549change6550to ensure that the final binary output files are always copied up to the6551appropriate binary directory (bin32 or bin64.)65526553Example Code and Data Size: These are the sizes for the OS-independent6554acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6555debug6556version of the code includes the debug output trace mechanism and has a6557much6558larger code and data size.65596560Previous Release:6561Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total6562Debug Version: 175.7K Code, 74.8K Data, 250.5K Total6563Current Release:6564Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total6565Debug Version: 175.0K Code, 74.4K Data, 249.4K Total6566656765682) iASL Compiler/Disassembler and Tools:65696570Disassembler: Fixed a possible fault during the disassembly of resource6571descriptors when a second parse is required because of the invocation of6572external control methods within the table. With assistance from6573[email protected]. ACPICA BZ 976.65746575iASL: Fixed a namepath optimization problem. An error can occur if the6576parse6577node that contains the namepath to be optimized does not have a parent6578node6579that is a named object. This change fixes the problem.65806581iASL: Fixed a regression where the AML file is not deleted on errors. The6582AML6583output file should be deleted if there are any errors during the6584compiler.6585The6586only exception is if the -f (force output) option is used. ACPICA BZ 974.65876588iASL: Added a feature to automatically increase internal line buffer6589sizes.6590Via realloc(), automatically increase the internal line buffer sizes as6591necessary to support very long source code lines. The current version of6592the6593preprocessor requires a buffer long enough to contain full source code6594lines.6595This change increases the line buffer(s) if the input lines go beyond the6596current buffer size. This eliminates errors that occurred when a source6597code6598line was longer than the buffer.65996600iASL: Fixed a problem with constant folding in method declarations. The6601SyncLevel term is a ByteConstExpr, and incorrect code would be generated6602if a6603Type3 opcode was used.66046605Debugger: Improved command help support. For incorrect argument count,6606display6607full help for the command. For help command itself, allow an argument to6608specify a command.66096610Test Suites: Several bug fixes for the ASLTS suite reduces the number of6611errors during execution of the suite. Guan Chao.66126613----------------------------------------661416 August 2012. Summary of changes for version 20120816:6615661666171) ACPICA Kernel-resident Subsystem:66186619Removed all use of the deprecated _GTS and _BFS predefined methods. The6620_GTS6621(Going To Sleep) and _BFS (Back From Sleep) methods are essentially6622deprecated and will probably be removed from the ACPI specification.6623Windows6624does not invoke them, and reportedly never will. The final nail in the6625coffin6626is that the ACPI specification states that these methods must be run with6627interrupts off, which is not going to happen in a kernel interpreter.6628Note:6629Linux has removed all use of the methods also. It was discovered that6630invoking these functions caused failures on some machines, probably6631because6632they were never tested since Windows does not call them. Affects two6633external6634interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng.6635ACPICA BZ 969.66366637Implemented support for complex bit-packed buffers returned from the _PLD6638(Physical Location of Device) predefined method. Adds a new external6639interface, AcpiDecodePldBuffer that parses the buffer into a more usable6640C6641structure. Note: C Bitfields cannot be used for this type of predefined6642structure since the memory layout of individual bitfields is not defined6643by6644the C language. In addition, there are endian concerns where a compiler6645will6646change the bitfield ordering based on the machine type. The new ACPICA6647interface eliminates these issues, and should be called after _PLD is6648executed. ACPICA BZ 954.66496650Implemented a change to allow a scope change to root (via "Scope (\)")6651during6652execution of module-level ASL code (code that is executed at table load6653time.) Lin Ming.66546655Added the Windows8/Server2012 string for the _OSI method. This change6656adds6657a6658new _OSI string, "Windows 2012" for both Windows 8 and Windows Server66592012.66606661Added header support for the new ACPI tables DBG2 (Debug Port Table Type66622)6663and CSRT (Core System Resource Table).66646665Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined6666names. This simplifies access to the buffers returned by these predefined6667names. Adds a new file, include/acbuffer.h. ACPICA BZ 956.66686669GPE support: Removed an extraneous parameter from the various low-level6670internal GPE functions. Tang Feng.66716672Removed the linux makefiles from the unix packages. The generate/linux6673makefiles are obsolete and have been removed from the unix tarball6674release6675packages. The replacement makefiles are under generate/unix, and there is6676a6677top-level makefile under the main acpica directory. ACPICA BZ 967, 912.66786679Updates for Unix makefiles:66801) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven.66812) Update linker flags (move to end of command line) for AcpiExec6682utility.6683Guan Chao.66846685Split ACPICA initialization functions to new file, utxfinit.c. Split from6686utxface.c to improve modularity and reduce file size.66876688Example Code and Data Size: These are the sizes for the OS-independent6689acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6690debug version of the code includes the debug output trace mechanism and6691has a6692much larger code and data size.66936694Previous Release:6695Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total6696Debug Version: 173.7K Code, 74.0K Data, 247.7K Total6697Current Release:6698Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total6699Debug Version: 175.7K Code, 74.8K Data, 250.5K Total6700670167022) iASL Compiler/Disassembler and Tools:67036704iASL: Fixed a problem with constant folding for fixed-length constant6705expressions. The constant-folding code was not being invoked for constant6706expressions that allow the use of type 3/4/5 opcodes to generate6707constants6708for expressions such as ByteConstExpr, WordConstExpr, etc. This could6709result6710in the generation of invalid AML bytecode. ACPICA BZ 970.67116712iASL: Fixed a generation issue on newer versions of Bison. Newer versions6713apparently automatically emit some of the necessary externals. This6714change6715handles these versions in order to eliminate generation warnings.67166717Disassembler: Added support to decode the DBG2 and CSRT ACPI tables.67186719Disassembler: Add support to decode _PLD buffers. The decoded buffer6720appears6721within comments in the output file.67226723Debugger: Fixed a regression with the "Threads" command where6724AE_BAD_PARAMETER was always returned.67256726----------------------------------------672711 July 2012. Summary of changes for version 20120711:672867291) ACPICA Kernel-resident Subsystem:67306731Fixed a possible fault in the return package object repair code. Fixes a6732problem that can occur when a lone package object is wrapped with an6733outer6734package object in order to force conformance to the ACPI specification.6735Can6736affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX,6737_DLM,6738_CSD, _PSD, _TSD.67396740Removed code to disable/enable bus master arbitration (ARB_DIS bit in the6741PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the6742ARB_DIS bit must be implemented in the host-dependent C3 processor power6743state6744support. Note, ARB_DIS is obsolete and only applies to older chipsets,6745both6746Intel and other vendors. (for Intel: ICH4-M and earlier)67476748This change removes the code to disable/enable bus master arbitration6749during6750suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register6751causes6752resume problems on some machines. The change has been in use for over6753seven6754years within Linux.67556756Implemented two new external interfaces to support host-directed dynamic6757ACPI6758table load and unload. They are intended to simplify the host6759implementation6760of hot-plug support:6761AcpiLoadTable: Load an SSDT from a buffer into the namespace.6762AcpiUnloadParentTable: Unload an SSDT via a named object owned by the6763table.6764See the ACPICA reference for additional details. Adds one new file,6765components/tables/tbxfload.c67666767Implemented and deployed two new interfaces for errors and warnings that6768are6769known to be caused by BIOS/firmware issues:6770AcpiBiosError: Prints "ACPI Firmware Error" message.6771AcpiBiosWarning: Prints "ACPI Firmware Warning" message.6772Deployed these new interfaces in the ACPICA Table Manager code for ACPI6773table6774and FADT errors. Additional deployment to be completed as appropriate in6775the6776future. The associated conditional macros are ACPI_BIOS_ERROR and6777ACPI_BIOS_WARNING. See the ACPICA reference for additional details.6778ACPICA6779BZ6780843.67816782Implicit notify support: ensure that no memory allocation occurs within a6783critical region. This fix moves a memory allocation outside of the time6784that a6785spinlock is held. Fixes issues on systems that do not allow this6786behavior.6787Jung-uk Kim.67886789Split exception code utilities and tables into a new file,6790utilities/utexcep.c67916792Example Code and Data Size: These are the sizes for the OS-independent6793acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6794debug6795version of the code includes the debug output trace mechanism and has a6796much6797larger code and data size.67986799Previous Release:6800Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total6801Debug Version: 172.9K Code, 73.6K Data, 246.5K Total6802Current Release:6803Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total6804Debug Version: 173.7K Code, 74.0K Data, 247.7K Total6805680668072) iASL Compiler/Disassembler and Tools:68086809iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead6810of68110. Jung-uk Kim.68126813Debugger: Enhanced the "tables" command to emit additional information6814about6815the current set of ACPI tables, including the owner ID and flags decode.68166817Debugger: Reimplemented the "unload" command to use the new6818AcpiUnloadParentTable external interface. This command was disable6819previously6820due to need for an unload interface.68216822AcpiHelp: Added a new option to decode ACPICA exception codes. The -e6823option6824will decode 16-bit hex status codes (ACPI_STATUS) to name strings.68256826----------------------------------------682720 June 2012. Summary of changes for version 20120620:6828682968301) ACPICA Kernel-resident Subsystem:68316832Implemented support to expand the "implicit notify" feature to allow6833multiple6834devices to be notified by a single GPE. This feature automatically6835generates a6836runtime device notification in the absence of a BIOS-provided GPE control6837method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit6838notify is6839provided by ACPICA for Windows compatibility, and is a workaround for6840BIOS6841AML6842code errors. See the description of the AcpiSetupGpeForWake interface in6843the6844APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918.68456846Changed some comments and internal function names to simplify and ensure6847correctness of the Linux code translation. No functional changes.68486849Example Code and Data Size: These are the sizes for the OS-independent6850acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6851debug6852version of the code includes the debug output trace mechanism and has a6853much6854larger code and data size.68556856Previous Release:6857Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total6858Debug Version: 172.7K Code, 73.6K Data, 246.3K Total6859Current Release:6860Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total6861Debug Version: 172.9K Code, 73.6K Data, 246.5K Total6862686368642) iASL Compiler/Disassembler and Tools:68656866Disassembler: Added support to emit short, commented descriptions for the6867ACPI6868predefined names in order to improve the readability of the disassembled6869output. ACPICA BZ 959. Changes include:68701) Emit descriptions for all standard predefined names (_INI, _STA,6871_PRW,6872etc.)68732) Emit generic descriptions for the special names (_Exx, _Qxx, etc.)68743) Emit descriptions for the resource descriptor names (_MIN, _LEN,6875etc.)68766877AcpiSrc: Fixed several long-standing Linux code translation issues.6878Argument6879descriptions in function headers are now translated properly to lower6880case6881and6882underscores. ACPICA BZ 961. Also fixes translation problems such as6883these:6884(old -> new)6885i_aSL -> iASL688600-7_f -> 00-7F688716_k -> 16K6888local_fADT -> local_FADT6889execute_oSI -> execute_OSI68906891iASL: Fixed a problem where null bytes were inadvertently emitted into6892some6893listing files.68946895iASL: Added the existing debug options to the standard help screen. There6896are6897no longer two different help screens. ACPICA BZ 957.68986899AcpiHelp: Fixed some typos in the various predefined name descriptions.6900Also6901expand some of the descriptions where appropriate.69026903iASL: Fixed the -ot option (display compile times/statistics). Was not6904working6905properly for standard output; only worked for the debug file case.69066907----------------------------------------690818 May 2012. Summary of changes for version 20120518:6909691069111) ACPICA Core Subsystem:69126913Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is6914defined6915to block until asynchronous events such as notifies and GPEs have6916completed.6917Within ACPICA, it is only called before a notify or GPE handler is6918removed/uninstalled. It also may be useful for the host OS within related6919drivers such as the Embedded Controller driver. See the ACPICA reference6920for6921additional information. ACPICA BZ 868.69226923ACPI Tables: Added a new error message for a possible overflow failure6924during6925the conversion of FADT 32-bit legacy register addresses to internal6926common692764-6928bit GAS structure representation. The GAS has a one-byte "bit length"6929field,6930thus limiting the register length to 255 bits. ACPICA BZ 953.69316932Example Code and Data Size: These are the sizes for the OS-independent6933acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The6934debug6935version of the code includes the debug output trace mechanism and has a6936much6937larger code and data size.69386939Previous Release:6940Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total6941Debug Version: 172.6K Code, 73.4K Data, 246.0K Total6942Current Release:6943Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total6944Debug Version: 172.7K Code, 73.6K Data, 246.3K Total6945694669472) iASL Compiler/Disassembler and Tools:69486949iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL6950macro.6951This keyword was added late in the ACPI 5.0 release cycle and was not6952implemented until now.69536954Disassembler: Added support for Operation Region externals. Adds missing6955support for operation regions that are defined in another table, and6956referenced locally via a Field or BankField ASL operator. Now generates6957the6958correct External statement.69596960Disassembler: Several additional fixes for the External() statement6961generation6962related to some ASL operators. Also, order the External() statements6963alphabetically in the disassembler output. Fixes the External()6964generation6965for6966the Create* field, Alias, and Scope operators:69671) Create* buffer field operators - fix type mismatch warning on6968disassembly69692) Alias - implement missing External support69703) Scope - fix to make sure all necessary externals are emitted.69716972iASL: Improved pathname support. For include files, merge the prefix6973pathname6974with the file pathname and eliminate unnecessary components. Convert6975backslashes in all pathnames to forward slashes, for readability. Include6976file6977pathname changes affect both #include and Include() type operators.69786979iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the6980end6981of a valid line by inserting a newline and then returning the EOF during6982the6983next call to GetNextLine. Prevents the line from being ignored due to EOF6984condition.69856986iASL: Implemented some changes to enhance the IDE support (-vi option.)6987Error6988and Warning messages are now correctly recognized for both the source6989code6990browser and the global error and warning counts.69916992----------------------------------------699320 April 2012. Summary of changes for version 20120420:6994699569961) ACPICA Core Subsystem:69976998Implemented support for multiple notify handlers. This change adds6999support7000to7001allow multiple system and device notify handlers on Device, Thermal Zone,7002and7003Processor objects. This can simplify the host OS notification7004implementation.7005Also re-worked and restructured the entire notify support code to7006simplify7007handler installation, handler removal, notify event queuing, and notify7008dispatch to handler(s). Note: there can still only be two global notify7009handlers - one for system notifies and one for device notifies. There are7010no7011changes to the existing handler install/remove interfaces. Lin Ming, Bob7012Moore, Rafael Wysocki.70137014Fixed a regression in the package repair code where the object reference7015count was calculated incorrectly. Regression was introduced in the commit7016"Support to add Package wrappers".70177018Fixed a couple possible memory leaks in the AML parser, in the error7019recovery7020path. Jesper Juhl, Lin Ming.70217022Example Code and Data Size: These are the sizes for the OS-independent7023acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7024debug version of the code includes the debug output trace mechanism and7025has a7026much larger code and data size.70277028Previous Release:7029Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total7030Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7031Current Release:7032Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total7033Debug Version: 172.6K Code, 73.4K Data, 246.0K Total7034703570362) iASL Compiler/Disassembler and Tools:70377038iASL: Fixed a problem with the resource descriptor support where the7039length7040of the StartDependentFn and StartDependentFnNoPrio descriptors were not7041included in cumulative descriptor offset, resulting in incorrect values7042for7043resource tags within resource descriptors appearing after a7044StartDependent*7045descriptor. Reported by Petr Vandrovec. ACPICA BZ 949.70467047iASL and Preprocessor: Implemented full support for the #line directive7048to7049correctly track original source file line numbers through the .i7050preprocessor7051output file - for error and warning messages.70527053iASL: Expand the allowable byte constants for address space IDs.7054Previously,7055the allowable range was 0x80-0xFF (user-defined spaces), now the range is70560x0A-0xFF to allow for custom and new IDs without changing the compiler.70577058iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948.70597060iASL: Add option to completely disable the preprocessor (-Pn).70617062iASL: Now emit all error/warning messages to standard error (stderr) by7063default (instead of the previous stdout).70647065ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch().7066Update7067for resource descriptor offset fix above. Update/cleanup error output7068routines. Enable and send iASL errors/warnings to an error logfile7069(error.txt). Send all other iASL output to a logfile (compiler.txt).7070Fixed7071several extraneous "unrecognized operator" messages.70727073----------------------------------------707420 March 2012. Summary of changes for version 20120320:7075707670771) ACPICA Core Subsystem:70787079Enhanced the sleep/wake interfaces to optionally execute the _GTS method7080(Going To Sleep) and the _BFS method (Back From Sleep). Windows7081apparently7082does not execute these methods, and therefore these methods are often7083untested. It has been seen on some systems where the execution of these7084methods causes errors and also prevents the machine from entering S5. It7085is7086therefore suggested that host operating systems do not execute these7087methods7088by default. In the future, perhaps these methods can be optionally7089executed7090based on the age of the system and/or what is the newest version of7091Windows7092that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState7093and7094AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin7095Ming.70967097Fixed a problem where the length of the local/common FADT was set too7098early.7099The local FADT table length cannot be set to the common length until the7100original length has been examined. There is code that checks the table7101length7102and sets various fields appropriately. This can affect older machines7103with7104early FADT versions. For example, this can cause inadvertent writes to7105the7106CST_CNT register. Julian Anastasov.71077108Fixed a mapping issue related to a physical table override. Use the7109deferred7110mapping mechanism for tables loaded via the physical override OSL7111interface.7112This allows for early mapping before the virtual memory manager is7113available.7114Thomas Renninger, Bob Moore.71157116Enhanced the automatic return-object repair code: Repair a common problem7117with7118predefined methods that are defined to return a variable-length Package7119of7120sub-objects. If there is only one sub-object, some BIOS ASL code7121mistakenly7122simply returns the single object instead of a Package with one sub-7123object.7124This new support will repair this error by wrapping a Package object7125around7126the original object, creating the correct and expected Package with one7127sub-7128object. Names that can be repaired in this manner include: _ALR, _CSD,7129_HPX,7130_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ7131939.71327133Changed the exception code returned for invalid ACPI paths passed as7134parameters to external interfaces such as AcpiEvaluateObject. Was7135AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME.71367137Example Code and Data Size: These are the sizes for the OS-independent7138acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7139debug7140version of the code includes the debug output trace mechanism and has a7141much7142larger code and data size.71437144Previous Release:7145Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total7146Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7147Current Release:7148Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total7149Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7150715171522) iASL Compiler/Disassembler and Tools:71537154iASL: Added the infrastructure and initial implementation of a integrated7155C-7156like preprocessor. This will simplify BIOS development process by7157eliminating7158the need for a separate preprocessing step during builds. On Windows, it7159also7160eliminates the need to install a separate C compiler. ACPICA BZ 761. Some7161features including full #define() macro support are still under7162development.7163These preprocessor directives are supported:7164#define7165#elif7166#else7167#endif7168#error7169#if7170#ifdef7171#ifndef7172#include7173#pragma message7174#undef7175#warning7176In addition, these new command line options are supported:7177-D <symbol> Define symbol for preprocessor use7178-li Create preprocessed output file (*.i)7179-P Preprocess only and create preprocessor output file (*.i)71807181Table Compiler: Fixed a problem where the equals operator within an7182expression7183did not work properly.71847185Updated iASL to use the current versions of Bison/Flex. Updated the7186Windows7187project file to invoke these tools from the standard location. ACPICA BZ7188904.7189Versions supported:7190Flex for Windows: V2.5.47191Bison for Windows: V2.4.171927193----------------------------------------719415 February 2012. Summary of changes for version 20120215:7195719671971) ACPICA Core Subsystem:71987199There have been some major changes to the sleep/wake support code, as7200described below (a - e).72017202a) The AcpiLeaveSleepState has been split into two interfaces, similar to7203AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is7204AcpiLeaveSleepStatePrep. This allows the host to perform actions between7205the7206time the _BFS method is called and the _WAK method is called. NOTE: all7207hosts7208must update their wake/resume code or else sleep/wake will not work7209properly.7210Rafael Wysocki.72117212b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the7213_WAK7214method. Some machines require that the GPEs are enabled before the _WAK7215method7216is executed. Thomas Renninger.72177218c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status)7219bit.7220Some BIOS code assumes that WAK_STS will be cleared on resume and use it7221to7222determine whether the system is rebooting or resuming. Matthew Garrett.72237224d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From7225Sleep) to7226match the ACPI specification requirement. Rafael Wysocki.72277228e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl7229registers within the V5 FADT. This support adds two new files:7230hardware/hwesleep.c implements the support for the new registers. Moved7231all7232sleep/wake external interfaces to hardware/hwxfsleep.c.723372347235Added a new OSL interface for ACPI table overrides,7236AcpiOsPhysicalTableOverride. This interface allows the host to override a7237table via a physical address, instead of the logical address required by7238AcpiOsTableOverride. This simplifies the host implementation. Initial7239implementation by Thomas Renninger. The ACPICA implementation creates a7240single7241shared function for table overrides that attempts both a logical and a7242physical override.72437244Expanded the OSL memory read/write interfaces to 64-bit data7245(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory7246transfer support for GAS register structures passed to AcpiRead and7247AcpiWrite.72487249Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a7250custom7251build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC)7252model.7253See the ACPICA reference for details. ACPICA BZ 942. This option removes7254about725510% of the code and 5% of the static data, and the following hardware7256ACPI7257features become unavailable:7258PM Event and Control registers7259SCI interrupt (and handler)7260Fixed Events7261General Purpose Events (GPEs)7262Global Lock7263ACPI PM timer72647265Updated the unix tarball directory structure to match the ACPICA git7266source7267tree. This ensures that the generic unix makefiles work properly (in7268generate/unix). Also updated the Linux makefiles to match. ACPICA BZ7269867.72707271Updated the return value of the _REV predefined method to integer value 57272to7273reflect ACPI 5.0 support.72747275Moved the external ACPI PM timer interface prototypes to the public7276acpixf.h7277file where they belong.72787279Example Code and Data Size: These are the sizes for the OS-independent7280acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7281debug7282version of the code includes the debug output trace mechanism and has a7283much7284larger code and data size.72857286Previous Release:7287Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total7288Debug Version: 171.7K Code, 72.9K Data, 244.5K Total7289Current Release:7290Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total7291Debug Version: 172.5K Code, 73.2K Data, 245.7K Total7292729372942) iASL Compiler/Disassembler and Tools:72957296Disassembler: Fixed a problem with the new ACPI 5.0 serial resource7297descriptors (I2C, SPI, UART) where the resource produce/consumer bit was7298incorrectly displayed.72997300AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI7301specification.73027303----------------------------------------730411 January 2012. Summary of changes for version 20120111:7305730673071) ACPICA Core Subsystem:73087309Implemented a new mechanism to allow host device drivers to check for7310address7311range conflicts with ACPI Operation Regions. Both SystemMemory and7312SystemIO7313address spaces are supported. A new external interface,7314AcpiCheckAddressRange,7315allows drivers to check an address range against the ACPI namespace. See7316the7317ACPICA reference for additional details. Adds one new file,7318utilities/utaddress.c. Lin Ming, Bob Moore.73197320Fixed several issues with the ACPI 5.0 FADT support: Add the sleep7321Control7322and7323Status registers, update the ACPI 5.0 flags, and update internal data7324structures to handle an FADT larger than 256 bytes. The size of the ACPI73255.07326FADT is 268 bytes.73277328Updated all ACPICA copyrights and signons to 2012. Added the 20127329copyright to7330all module headers and signons, including the standard Linux header. This7331affects virtually every file in the ACPICA core subsystem, iASL compiler,7332and7333all ACPICA utilities.73347335Example Code and Data Size: These are the sizes for the OS-independent7336acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7337debug7338version of the code includes the debug output trace mechanism and has a7339much7340larger code and data size.73417342Previous Release:7343Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total7344Debug Version: 170.8K Code, 72.6K Data, 243.4K Total7345Current Release:7346Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total7347Debug Version: 171.7K Code, 72.9K Data, 244.5K Total7348734973502) iASL Compiler/Disassembler and Tools:73517352Disassembler: fixed a problem with the automatic resource tag generation7353support. Fixes a problem where the resource tags are inadvertently not7354constructed if the table being disassembled contains external references7355to7356control methods. Moved the actual construction of the tags to after the7357final7358namespace is constructed (after 2nd parse is invoked due to external7359control7360method references.) ACPICA BZ 941.73617362Table Compiler: Make all "generic" operators caseless. These are the7363operators7364like UINT8, String, etc. Making these caseless improves ease-of-use.7365ACPICA BZ7366934.73677368----------------------------------------736923 November 2011. Summary of changes for version 20111123:737073710) ACPI 5.0 Support:73727373This release contains full support for the ACPI 5.0 specification, as7374summarized below.73757376Reduced Hardware Support:7377-------------------------73787379This support allows for ACPI systems without the usual ACPI hardware.7380This7381support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA7382will7383not attempt to initialize or use any of the usual ACPI hardware. Note,7384when7385this flag is set, all of the following ACPI hardware is assumed to be not7386present and is not initialized or accessed:73877388General Purpose Events (GPEs)7389Fixed Events (PM1a/PM1b and PM Control)7390Power Management Timer and Console Buttons (power/sleep)7391Real-time Clock Alarm7392Global Lock7393System Control Interrupt (SCI)7394The FACS is assumed to be non-existent73957396ACPI Tables:7397------------73987399All new tables and updates to existing tables are fully supported in the7400ACPICA headers (for use by device drivers), the disassembler, and the7401iASL7402Data Table Compiler. ACPI 5.0 defines these new tables:74037404BGRT /* Boot Graphics Resource Table */7405DRTM /* Dynamic Root of Trust for Measurement table */7406FPDT /* Firmware Performance Data Table */7407GTDT /* Generic Timer Description Table */7408MPST /* Memory Power State Table */7409PCCT /* Platform Communications Channel Table */7410PMTT /* Platform Memory Topology Table */7411RASF /* RAS Feature table */74127413Operation Regions/SpaceIDs:7414---------------------------74157416All new operation regions are fully supported by the iASL compiler, the7417disassembler, and the ACPICA runtime code (for dispatch to region7418handlers.)7419The new operation region Space IDs are:74207421GeneralPurposeIo7422GenericSerialBus74237424Resource Descriptors:7425---------------------74267427All new ASL resource descriptors are fully supported by the iASL7428compiler,7429the7430ASL/AML disassembler, and the ACPICA runtime Resource Manager code7431(including7432all new predefined resource tags). New descriptors are:74337434FixedDma7435GpioIo7436GpioInt7437I2cSerialBus7438SpiSerialBus7439UartSerialBus74407441ASL/AML Operators, New and Modified:7442------------------------------------74437444One new operator is added, the Connection operator, which is used to7445associate7446a GeneralPurposeIo or GenericSerialBus resource descriptor with7447individual7448field objects within an operation region. Several new protocols are7449associated7450with the AccessAs operator. All are fully supported by the iASL compiler,7451disassembler, and runtime ACPICA AML interpreter:74527453Connection // Declare Field Connection7454attributes7455AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol7456AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes7457Protocol7458AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol7459RawDataBuffer // Data type for Vendor Data7460fields74617462Predefined ASL/AML Objects:7463---------------------------74647465All new predefined objects/control-methods are supported by the iASL7466compiler7467and the ACPICA runtime validation/repair (arguments and return values.)7468New7469predefined names include the following:74707471Standard Predefined Names (Objects or Control Methods):7472_AEI, _CLS, _CPC, _CWS, _DEP,7473_DLM, _EVT, _GCP, _CRT, _GWS,7474_HRV, _PRE, _PSE, _SRT, _SUB.74757476Resource Tags (Names used to access individual fields within resource7477descriptors):7478_DBT, _DPL, _DRS, _END, _FLC,7479_IOR, _LIN, _MOD, _PAR, _PHA,7480_PIN, _PPI, _POL, _RXL, _SLV,7481_SPE, _STB, _TXL, _VEN.74827483ACPICA External Interfaces:7484---------------------------74857486Several new interfaces have been defined for use by ACPI-related device7487drivers and other host OS services:74887489AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS7490to7491acquire and release AML mutexes that are defined in the DSDT/SSDT tables7492provided by the BIOS. They are intended to be used in conjunction with7493the7494ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level7495mutual exclusion with the AML code/interpreter.74967497AcpiGetEventResources: Returns the (formatted) resource descriptors as7498defined7499by the ACPI 5.0 _AEI object (ACPI Event Information). This object7500provides7501resource descriptors associated with hardware-reduced platform events,7502similar7503to the AcpiGetCurrentResources interface.75047505Operation Region Handlers: For General Purpose IO and Generic Serial Bus7506operation regions, information about the Connection() object and any7507optional7508length information is passed to the region handler within the Context7509parameter.75107511AcpiBufferToResource: This interface converts a raw AML buffer containing7512a7513resource template or resource descriptor to the ACPI_RESOURCE internal7514format7515suitable for use by device drivers. Can be used by an operation region7516handler7517to convert the Connection() buffer object into a ACPI_RESOURCE.75187519Miscellaneous/Tools/TestSuites:7520-------------------------------75217522Support for extended _HID names (Four alpha characters instead of three).7523Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities.7524Support for ACPI 5.0 features in the ASLTS test suite.7525Fully updated documentation (ACPICA and iASL reference documents.)75267527ACPI Table Definition Language:7528-------------------------------75297530Support for this language was implemented and released as a subsystem of7531the7532iASL compiler in 2010. (See the iASL compiler User Guide.)753375347535Non-ACPI 5.0 changes for this release:7536--------------------------------------753775381) ACPICA Core Subsystem:75397540Fix a problem with operation region declarations where a failure can7541occur7542if7543the region name and an argument that evaluates to an object (such as the7544region address) are in different namespace scopes. Lin Ming, ACPICA BZ7545937.75467547Do not abort an ACPI table load if an invalid space ID is found within.7548This7549will be caught later if the offending method is executed. ACPICA BZ 925.75507551Fixed an issue with the FFixedHW space ID where the ID was not always7552recognized properly (Both ACPICA and iASL). ACPICA BZ 926.75537554Fixed a problem with the 32-bit generation of the unix-specific OSL7555(osunixxf.c). Lin Ming, ACPICA BZ 936.75567557Several changes made to enable generation with the GCC 4.6 compiler.7558ACPICA BZ7559935.75607561New error messages: Unsupported I/O requests (not 8/16/32 bit), and7562Index/Bank7563field registers out-of-range.756475652) iASL Compiler/Disassembler and Tools:75667567iASL: Implemented the __PATH__ operator, which returns the full pathname7568of7569the current source file.75707571AcpiHelp: Automatically display expanded keyword information for all ASL7572operators.75737574Debugger: Add "Template" command to disassemble/dump resource template7575buffers.75767577Added a new master script to generate and execute the ASLTS test suite.7578Automatically handles 32- and 64-bit generation. See tests/aslts.sh75797580iASL: Fix problem with listing generation during processing of the7581Switch()7582operator where AML listing was disabled until the entire Switch block was7583completed.75847585iASL: Improve support for semicolon statement terminators. Fix "invalid7586character" message for some cases when the semicolon is used. Semicolons7587are7588now allowed after every <Term> grammar element. ACPICA BZ 927.75897590iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ7591923.75927593Disassembler: Fix problem with disassembly of the DataTableRegion7594operator7595where an inadvertent "Unhandled deferred opcode" message could be7596generated.759775983) Example Code and Data Size75997600These are the sizes for the OS-independent acpica.lib produced by the7601Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code7602includes the debug output trace mechanism and has a much larger code and7603data7604size.76057606Previous Release:7607Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7608Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7609Current Release:7610Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total7611Debug Version: 170.8K Code, 72.6K Data, 243.4K Total76127613----------------------------------------761422 September 2011. Summary of changes for version 20110922:761576160) ACPI 5.0 News:76177618Support for ACPI 5.0 in ACPICA has been underway for several months and7619will7620be released at the same time that ACPI 5.0 is officially released.76217622The ACPI 5.0 specification is on track for release in the next few7623months.762476251) ACPICA Core Subsystem:76267627Fixed a problem where the maximum sleep time for the Sleep() operator was7628intended to be limited to two seconds, but was inadvertently limited to7629207630seconds instead.76317632Linux and Unix makefiles: Added header file dependencies to ensure7633correct7634generation of ACPICA core code and utilities. Also simplified the7635makefiles7636considerably through the use of the vpath variable to specify search7637paths.7638ACPICA BZ 924.763976402) iASL Compiler/Disassembler and Tools:76417642iASL: Implemented support to check the access length for all fields7643created to7644access named Resource Descriptor fields. For example, if a resource field7645is7646defined to be two bits, a warning is issued if a CreateXxxxField() is7647used7648with an incorrect bit length. This is implemented for all current7649resource7650descriptor names. ACPICA BZ 930.76517652Disassembler: Fixed a byte ordering problem with the output of 24-bit and765356-7654bit integers.76557656iASL: Fixed a couple of issues associated with variable-length package7657objects. 1) properly handle constants like One, Ones, Zero -- do not make7658a7659VAR_PACKAGE when these are used as a package length. 2) Allow the7660VAR_PACKAGE7661opcode (in addition to PACKAGE) when validating object types for7662predefined7663names.76647665iASL: Emit statistics for all output files (instead of just the ASL input7666and7667AML output). Includes listings, hex files, etc.76687669iASL: Added -G option to the table compiler to allow the compilation of7670custom7671ACPI tables. The only part of a table that is required is the standard767236-7673byte7674ACPI header.76757676AcpiXtract: Ported to the standard ACPICA environment (with ACPICA7677headers),7678which also adds correct 64-bit support. Also, now all output filenames7679are7680completely lower case.76817682AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when7683loading table files. A warning is issued for any such tables. The only7684exception is an FADT. This also fixes a possible fault when attempting to7685load7686non-AML tables. ACPICA BZ 932.76877688AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where7689a7690missing table terminator could cause a fault when using the -p option.76917692AcpiSrc: Fixed a possible divide-by-zero fault when generating file7693statistics.769476953) Example Code and Data Size76967697These are the sizes for the OS-independent acpica.lib produced by the7698Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code7699includes the debug output trace mechanism and has a much larger code and7700data7701size.77027703Previous Release (VC 9.0):7704Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7705Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7706Current Release (VC 9.0):7707Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7708Debug Version: 165.6K Code, 68.4K Data, 234.0K Total770977107711----------------------------------------771223 June 2011. Summary of changes for version 20110623:771377141) ACPI CA Core Subsystem:77157716Updated the predefined name repair mechanism to not attempt repair of a7717_TSS7718return object if a _PSS object is present. We can only sort the _TSS7719return7720package if there is no _PSS within the same scope. This is because if7721_PSS7722is7723present, the ACPI specification dictates that the _TSS Power Dissipation7724field7725is to be ignored, and therefore some BIOSs leave garbage values in the7726_TSS7727Power field(s). In this case, it is best to just return the _TSS package7728as-7729is. Reported by, and fixed with assistance from Fenghua Yu.77307731Added an option to globally disable the control method return value7732validation7733and repair. This runtime option can be used to disable return value7734repair7735if7736this is causing a problem on a particular machine. Also added an option7737to7738AcpiExec (-dr) to set this disable flag.77397740All makefiles and project files: Major changes to improve generation of7741ACPICA7742tools. ACPICA BZ 912:7743Reduce default optimization levels to improve compatibility7744For Linux, add strict-aliasing=0 for gcc 47745Cleanup and simplify use of command line defines7746Cleanup multithread library support7747Improve usage messages77487749Linux-specific header: update handling of THREAD_ID and pthread. For the775032-7751bit case, improve casting to eliminate possible warnings, especially with7752the7753acpica tools.77547755Example Code and Data Size: These are the sizes for the OS-independent7756acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7757debug7758version of the code includes the debug output trace mechanism and has a7759much7760larger code and data size.77617762Previous Release (VC 9.0):7763Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total7764Debug Version: 165.6K Code, 68.4K Data, 234.0K Total7765Current Release (VC 9.0):7766Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total7767Debug Version: 165.6K Code, 68.4K Data, 234.0K Total776877692) iASL Compiler/Disassembler and Tools:77707771With this release, a new utility named "acpihelp" has been added to the7772ACPICA7773package. This utility summarizes the ACPI specification chapters for the7774ASL7775and AML languages. It generates under Linux/Unix as well as Windows, and7776provides the following functionality:7777Find/display ASL operator(s) -- with description and syntax.7778Find/display ASL keyword(s) -- with exact spelling and descriptions.7779Find/display ACPI predefined name(s) -- with description, number7780of arguments, and the return value data type.7781Find/display AML opcode name(s) -- with opcode, arguments, and7782grammar.7783Decode/display AML opcode -- with opcode name, arguments, and7784grammar.77857786Service Layers: Make multi-thread support configurable. Conditionally7787compile7788the multi-thread support so that threading libraries will not be linked7789if7790not7791necessary. The only tool that requires multi-thread support is AcpiExec.77927793iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions7794of7795Bison appear to want the interface to yyerror to be a const char * (or at7796least this is a problem when generating iASL on some systems.) ACPICA BZ77979237798Pierre Lejeune.77997800Tools: Fix for systems where O_BINARY is not defined. Only used for7801Windows7802versions of the tools.78037804----------------------------------------780527 May 2011. Summary of changes for version 20110527:780678071) ACPI CA Core Subsystem:78087809ASL Load() operator: Reinstate most restrictions on the incoming ACPI7810table7811signature. Now, only allow SSDT, OEMx, and a null signature. History:78121) Originally, we checked the table signature for "SSDT" or "PSDT".7813(PSDT is now obsolete.)78142) We added support for OEMx tables, signature "OEM" plus a fourth7815"don't care" character.78163) Valid tables were encountered with a null signature, so we just7817gave up on validating the signature, (05/2008).78184) We encountered non-AML tables such as the MADT, which caused7819interpreter errors and kernel faults. So now, we once again allow7820only SSDT, OEMx, and now, also a null signature. (05/2011).78217822Added the missing _TDL predefined name to the global name list in order7823to7824enable validation. Affects both the core ACPICA code and the iASL7825compiler.78267827Example Code and Data Size: These are the sizes for the OS-independent7828acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The7829debug7830version of the code includes the debug output trace mechanism and has a7831much7832larger code and data size.78337834Previous Release (VC 9.0):7835Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total7836Debug Version: 164.5K Code, 68.0K Data, 232.5K Total7837Current Release (VC 9.0):7838Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total7839Debug Version: 165.6K Code, 68.4K Data, 234.0K Total784078412) iASL Compiler/Disassembler and Tools:78427843Debugger/AcpiExec: Implemented support for "complex" method arguments on7844the7845debugger command line. This adds support beyond simple integers --7846including7847Strings, Buffers, and Packages. Includes support for nested packages.7848Increased the default command line buffer size to accommodate these7849arguments.7850See the ACPICA reference for details and syntax. ACPICA BZ 917.78517852Debugger/AcpiExec: Implemented support for "default" method arguments for7853the7854Execute/Debug command. Now, the debugger will always invoke a control7855method7856with the required number of arguments -- even if the command line7857specifies7858none or insufficient arguments. It uses default integer values for any7859missing7860arguments. Also fixes a bug where only six method arguments maximum were7861supported instead of the required seven.78627863Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine7864and7865also return status in order to prevent buffer overruns. See the ACPICA7866reference for details and syntax. ACPICA BZ 92178677868iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and7869makefiles to simplify support for the two different but similar parser7870generators, bison and yacc.78717872Updated the generic unix makefile for gcc 4. The default gcc version is7873now7874expected to be 4 or greater, since options specific to gcc 4 are used.78757876----------------------------------------787713 April 2011. Summary of changes for version 20110413:787878791) ACPI CA Core Subsystem:78807881Implemented support to execute a so-called "orphan" _REG method under the7882EC7883device. This change will force the execution of a _REG method underneath7884the7885EC7886device even if there is no corresponding operation region of type7887EmbeddedControl. Fixes a problem seen on some machines and apparently is7888compatible with Windows behavior. ACPICA BZ 875.78897890Added more predefined methods that are eligible for automatic NULL7891package7892element removal. This change adds another group of predefined names to7893the7894list7895of names that can be repaired by having NULL package elements dynamically7896removed. This group are those methods that return a single variable-7897length7898package containing simple data types such as integers, buffers, strings.7899This7900includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx,7901_PSL,7902_Sx,7903and _TZD. ACPICA BZ 914.79047905Split and segregated all internal global lock functions to a new file,7906evglock.c.79077908Updated internal address SpaceID for DataTable regions. Moved this7909internal7910space7911id in preparation for ACPI 5.0 changes that will include some new space7912IDs.7913This7914change should not affect user/host code.79157916Example Code and Data Size: These are the sizes for the OS-independent7917acpica.lib7918produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug7919version of7920the code includes the debug output trace mechanism and has a much larger7921code7922and7923data size.79247925Previous Release (VC 9.0):7926Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total7927Debug Version: 164.2K Code, 67.9K Data, 232.1K Total7928Current Release (VC 9.0):7929Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total7930Debug Version: 164.5K Code, 68.0K Data, 232.5K Total793179322) iASL Compiler/Disassembler and Tools:79337934iASL/DTC: Major update for new grammar features. Allow generic data types7935in7936custom ACPI tables. Field names are now optional. Any line can be split7937to7938multiple lines using the continuation char (\). Large buffers now use7939line-7940continuation character(s) and no colon on the continuation lines. See the7941grammar7942update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob7943Moore.79447945iASL: Mark ASL "Return()" and the simple "Return" as "Null" return7946statements.7947Since the parser stuffs a "zero" as the return value for these statements7948(due7949to7950the underlying AML grammar), they were seen as "return with value" by the7951iASL7952semantic checking. They are now seen correctly as "null" return7953statements.79547955iASL: Check if a_REG declaration has a corresponding Operation Region.7956Adds a7957check for each _REG to ensure that there is in fact a corresponding7958operation7959region declaration in the same scope. If not, the _REG method is not very7960useful7961since it probably won't be executed. ACPICA BZ 915.79627963iASL/DTC: Finish support for expression evaluation. Added a new7964expression7965parser7966that implements c-style operator precedence and parenthesization. ACPICA7967bugzilla7968908.79697970Disassembler/DTC: Remove support for () and <> style comments in data7971tables.7972Now7973that DTC has full expression support, we don't want to have comment7974strings7975that7976start with a parentheses or a less-than symbol. Now, only the standard /*7977and7978//7979comments are supported, as well as the bracket [] comments.79807981AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have7982"unusual"7983headers in the acpidump file. Update the header validation to support7984these7985tables. Problem introduced in previous AcpiXtract version in the change7986to7987support "wrong checksum" error messages emitted by acpidump utility.79887989iASL: Add a * option to generate all template files (as a synonym for7990ALL)7991as7992in7993"iasl -T *" or "iasl -T ALL".79947995iASL/DTC: Do not abort compiler on fatal errors. We do not want to7996completely7997abort the compiler on "fatal" errors, simply should abort the current7998compile.7999This allows multiple compiles with a single (possibly wildcard) compiler8000invocation.80018002----------------------------------------800316 March 2011. Summary of changes for version 20110316:800480051) ACPI CA Core Subsystem:80068007Fixed a problem caused by a _PRW method appearing at the namespace root8008scope8009during the setup of wake GPEs. A fault could occur if a _PRW directly8010under8011the8012root object was passed to the AcpiSetupGpeForWake interface. Lin Ming.80138014Implemented support for "spurious" Global Lock interrupts. On some8015systems, a8016global lock interrupt can occur without the pending flag being set. Upon8017a8018GL8019interrupt, we now ensure that a thread is actually waiting for the lock8020before8021signaling GL availability. Rafael Wysocki, Bob Moore.80228023Example Code and Data Size: These are the sizes for the OS-independent8024acpica.lib8025produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug8026version of8027the code includes the debug output trace mechanism and has a much larger8028code8029and8030data size.80318032Previous Release (VC 9.0):8033Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8034Debug Version: 163.9K Code, 67.5K Data, 231.4K Total8035Current Release (VC 9.0):8036Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total8037Debug Version: 164.2K Code, 67.9K Data, 232.1K Total803880392) iASL Compiler/Disassembler and Tools:80408041Implemented full support for the "SLIC" ACPI table. Includes support in8042the8043header files, disassembler, table compiler, and template generator. Bob8044Moore,8045Lin Ming.80468047AcpiXtract: Correctly handle embedded comments and messages from8048AcpiDump.8049Apparently some or all versions of acpidump will occasionally emit a8050comment8051like8052"Wrong checksum", etc., into the dump file. This was causing problems for8053AcpiXtract. ACPICA BZ 905.80548055iASL: Fix the Linux makefile by removing an inadvertent double file8056inclusion.8057ACPICA BZ 913.80588059AcpiExec: Update installation of operation region handlers. Install one8060handler8061for a user-defined address space. This is used by the ASL test suite8062(ASLTS).80638064----------------------------------------806511 February 2011. Summary of changes for version 20110211:806680671) ACPI CA Core Subsystem:80688069Added a mechanism to defer _REG methods for some early-installed8070handlers.8071Most user handlers should be installed before call to8072AcpiEnableSubsystem.8073However, Event handlers and region handlers should be installed after8074AcpiInitializeObjects. Override handlers for the "default" regions should8075be8076installed early, however. This change executes all _REG methods for the8077default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any8078chicken/egg issues between them. ACPICA BZ 848.80798080Implemented an optimization for GPE detection. This optimization will8081simply8082ignore GPE registers that contain no enabled GPEs -- there is no need to8083read the register since this information is available internally. This8084becomes more important on machines with a large GPE space. ACPICA8085bugzilla8086884. Lin Ming. Suggestion from Joe Liu.80878088Removed all use of the highly unreliable FADT revision field. The8089revision8090number in the FADT has been found to be completely unreliable and cannot8091be8092trusted. Only the actual table length can be used to infer the version.8093This8094change updates the ACPICA core and the disassembler so that both no8095longer8096even look at the FADT version and instead depend solely upon the FADT8097length.80988099Fix an unresolved name issue for the no-debug and no-error-message source8100generation cases. The _AcpiModuleName was left undefined in these cases,8101but8102it is actually needed as a parameter to some interfaces. Define8103_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888.81048105Split several large files (makefiles and project files updated)8106utglobal.c -> utdecode.c8107dbcomds.c -> dbmethod.c dbnames.c8108dsopcode.c -> dsargs.c dscontrol.c8109dsload.c -> dsload2.c8110aslanalyze.c -> aslbtypes.c aslwalks.c81118112Example Code and Data Size: These are the sizes for the OS-independent8113acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The8114debug version of the code includes the debug output trace mechanism and8115has8116a much larger code and data size.81178118Previous Release (VC 9.0):8119Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8120Debug Version: 163.9K Code, 67.5K Data, 231.4K Total8121Current Release (VC 9.0):8122Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8123Debug Version: 163.9K Code, 67.5K Data, 231.4K Total812481252) iASL Compiler/Disassembler and Tools:81268127iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__.8128These are useful C-style macros with the standard definitions. ACPICA8129bugzilla 898.81308131iASL/DTC: Added support for integer expressions and labels. Support for8132full8133expressions for all integer fields in all ACPI tables. Support for labels8134in8135"generic" portions of tables such as UEFI. See the iASL reference manual.81368137Debugger: Added a command to display the status of global handlers. The8138"handlers" command will display op region, fixed event, and miscellaneous8139global handlers. installation status -- and for op regions, whether8140default8141or user-installed handler will be used.81428143iASL: Warn if reserved method incorrectly returns a value. Many8144predefined8145names are defined such that they do not return a value. If implemented as8146a8147method, issue a warning if such a name explicitly returns a value. ACPICA8148Bugzilla 855.81498150iASL: Added detection of GPE method name conflicts. Detects a conflict8151where8152there are two GPE methods of the form _Lxy and _Exy in the same scope.8153(For8154example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848.81558156iASL/DTC: Fixed a couple input scanner issues with comments and line8157numbers. Comment remover could get confused and miss a comment ending.8158Fixed8159a problem with line counter maintenance.81608161iASL/DTC: Reduced the severity of some errors from fatal to error. There8162is8163no need to abort on simple errors within a field definition.81648165Debugger: Simplified the output of the help command. All help output now8166in8167a single screen, instead of help subcommands. ACPICA Bugzilla 897.81688169----------------------------------------817012 January 2011. Summary of changes for version 20110112:817181721) ACPI CA Core Subsystem:81738174Fixed a race condition between method execution and namespace walks that8175can8176possibly cause a fault. The problem was apparently introduced in version817720100528 as a result of a performance optimization that reduces the8178number8179of8180namespace walks upon method exit by using the delete_namespace_subtree8181function instead of the delete_namespace_by_owner function used8182previously.8183Bug is a missing namespace lock in the delete_namespace_subtree function.8184[email protected]81858186Fixed several issues and a possible fault with the automatic "serialized"8187method support. History: This support changes a method to "serialized" on8188the8189fly if the method generates an AE_ALREADY_EXISTS error, indicating the8190possibility that it cannot handle reentrancy. This fix repairs a couple8191of8192issues seen in the field, especially on machines with many cores:819381941) Delete method children only upon the exit of the last thread,8195so as to not delete objects out from under other running threads8196(and possibly causing a fault.)81972) Set the "serialized" bit for the method only upon the exit of the8198Last thread, so as to not cause deadlock when running threads8199attempt to exit.82003) Cleanup the use of the AML "MethodFlags" and internal method flags8201so that there is no longer any confusion between the two.82028203Lin Ming, Bob Moore. Reported by [email protected].82048205Debugger: Now lock the namespace for duration of a namespace dump.8206Prevents8207issues if the namespace is changing dynamically underneath the debugger.8208Especially affects temporary namespace nodes, since the debugger displays8209these also.82108211Updated the ordering of include files. The ACPICA headers should appear8212before any compiler-specific headers (stdio.h, etc.) so that acenv.h can8213set8214any necessary compiler-specific defines, etc. Affects the ACPI-related8215tools8216and utilities.82178218Updated all ACPICA copyrights and signons to 2011. Added the 20118219copyright8220to all module headers and signons, including the Linux header. This8221affects8222virtually every file in the ACPICA core subsystem, iASL compiler, and all8223utilities.82248225Added project files for MS Visual Studio 2008 (VC++ 9.0). The original8226project files for VC++ 6.0 are now obsolete. New project files can be8227found8228under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for8229details.82308231Example Code and Data Size: These are the sizes for the OS-independent8232acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The8233debug version of the code includes the debug output trace mechanism and8234has a8235much larger code and data size.82368237Previous Release (VC 6.0):8238Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total8239Debug Version: 166.6K Code, 52.1K Data, 218.7K Total8240Current Release (VC 9.0):8241Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total8242Debug Version: 163.9K Code, 67.5K Data, 231.4K Total824382442) iASL Compiler/Disassembler and Tools:82458246iASL: Added generic data types to the Data Table compiler. Add "generic"8247data8248types such as UINT32, String, Unicode, etc., to simplify the generation8249of8250platform-defined tables such as UEFI. Lin Ming.82518252iASL: Added listing support for the Data Table Compiler. Adds listing8253support8254(-l) to display actual binary output for each line of input code.82558256----------------------------------------825709 December 2010. Summary of changes for version 20101209:825882591) ACPI CA Core Subsystem:82608261Completed the major overhaul of the GPE support code that was begun in8262July82632010. Major features include: removal of _PRW execution in ACPICA (host8264executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing,8265changes to existing interfaces, simplification of GPE handler operation,8266and8267a handful of new interfaces:82688269AcpiUpdateAllGpes8270AcpiFinishGpe8271AcpiSetupGpeForWake8272AcpiSetGpeWakeMask8273One new file, evxfgpe.c to consolidate all external GPE interfaces.82748275See the ACPICA Programmer Reference for full details and programming8276information. See the new section 4.4 "General Purpose Event (GPE)8277Support"8278for a full overview, and section 8.7 "ACPI General Purpose Event8279Management"8280for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin8281Ming,8282Bob Moore, Rafael Wysocki.82838284Implemented a new GPE feature for Windows compatibility, the "Implicit8285Wake8286GPE Notify". This feature will automatically issue a Notify(2) on a8287device8288when a Wake GPE is received if there is no corresponding GPE method or8289handler. ACPICA BZ 870.82908291Fixed a problem with the Scope() operator during table parse and load8292phase.8293During load phase (table load or method execution), the scope operator8294should8295not enter the target into the namespace. Instead, it should open a new8296scope8297at the target location. Linux BZ 19462, ACPICA BZ 882.82988299Example Code and Data Size: These are the sizes for the OS-independent8300acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8301debug version of the code includes the debug output trace mechanism and8302has a8303much larger code and data size.83048305Previous Release:8306Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total8307Debug Version: 166.6K Code, 52.1K Data, 218.7K Total8308Current Release:8309Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8310Debug Version: 166.3K Code, 52.1K Data, 218.4K Total831183122) iASL Compiler/Disassembler and Tools:83138314iASL: Relax the alphanumeric restriction on _CID strings. These strings8315are8316"bus-specific" per the ACPI specification, and therefore any characters8317are8318acceptable. The only checks that can be performed are for a null string8319and8320perhaps for a leading asterisk. ACPICA BZ 886.83218322iASL: Fixed a problem where a syntax error that caused a premature EOF8323condition on the source file emitted a very confusing error message. The8324premature EOF is now detected correctly. ACPICA BZ 891.83258326Disassembler: Decode the AccessSize within a Generic Address Structure8327(byte8328access, word access, etc.) Note, this field does not allow arbitrary bit8329access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword.83308331New: AcpiNames utility - Example namespace dump utility. Shows an example8332of8333ACPICA configuration for a minimal namespace dump utility. Uses table and8334namespace managers, but no AML interpreter. Does not add any8335functionality8336over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to8337partition and configure ACPICA. ACPICA BZ 883.83388339AML Debugger: Increased the debugger buffer size for method return8340objects.8341Was 4K, increased to 16K. Also enhanced error messages for debugger8342method8343execution, including the buffer overflow case.83448345----------------------------------------834613 October 2010. Summary of changes for version 20101013:834783481) ACPI CA Core Subsystem:83498350Added support to clear the PCIEXP_WAKE event. When clearing ACPI events,8351now8352clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via8353HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880.83548355Changed the type of the predefined namespace object _TZ from ThermalZone8356to8357Device. This was found to be confusing to the host software that8358processes8359the various thermal zones, since _TZ is not really a ThermalZone.8360However,8361a8362Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui8363Zhang.83648365Added Windows Vista SP2 to the list of supported _OSI strings. The actual8366string is "Windows 2006 SP2".83678368Eliminated duplicate code in AcpiUtExecute* functions. Now that the8369nsrepair8370code automatically repairs _HID-related strings, this type of code is no8371longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ8372878.83738374Example Code and Data Size: These are the sizes for the OS-independent8375acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8376debug version of the code includes the debug output trace mechanism and8377has a8378much larger code and data size.83798380Previous Release:8381Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8382Debug Version: 166.3K Code, 52.1K Data, 218.4K Total8383Current Release:8384Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8385Debug Version: 166.3K Code, 52.1K Data, 218.4K Total838683872) iASL Compiler/Disassembler and Tools:83888389iASL: Implemented additional compile-time validation for _HID strings.8390The8391non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the8392length8393of8394the string must be exactly seven or eight characters. For both _HID and8395_CID8396strings, all characters must be alphanumeric. ACPICA BZ 874.83978398iASL: Allow certain "null" resource descriptors. Some BIOS code creates8399descriptors that are mostly or all zeros, with the expectation that they8400will8401be filled in at runtime. iASL now allows this as long as there is a8402"resource8403tag" (name) associated with the descriptor, which gives the ASL a handle8404needed to modify the descriptor. ACPICA BZ 873.84058406Added single-thread support to the generic Unix application OSL.8407Primarily8408for iASL support, this change removes the use of semaphores in the8409single-8410threaded ACPICA tools/applications - increasing performance. The8411_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED8412option. ACPICA BZ 879.84138414AcpiExec: several fixes for the 64-bit version. Adds XSDT support and8415support8416for 64-bit DSDT/FACS addresses in the FADT. Lin Ming.84178418iASL: Moved all compiler messages to a new file, aslmessages.h.84198420----------------------------------------842115 September 2010. Summary of changes for version 20100915:842284231) ACPI CA Core Subsystem:84248425Removed the AcpiOsDerivePciId OSL interface. The various host8426implementations8427of this function were not OS-dependent and are now obsolete and can be8428removed from all host OSLs. This function has been replaced by8429AcpiHwDerivePciId, which is now part of the ACPICA core code.8430AcpiHwDerivePciId has been implemented without recursion. Adds one new8431module, hwpci.c. ACPICA BZ 857.84328433Implemented a dynamic repair for _HID and _CID strings. The following8434problems are now repaired at runtime: 1) Remove a leading asterisk in the8435string, and 2) the entire string is uppercased. Both repairs are in8436accordance with the ACPI specification and will simplify host driver8437code.8438ACPICA BZ 871.84398440The ACPI_THREAD_ID type is no longer configurable, internally it is now8441always UINT64. This simplifies the ACPICA code, especially any printf8442output.8443UINT64 is the only common data type for all thread_id types across all8444operating systems. It is now up to the host OSL to cast the native8445thread_id8446type to UINT64 before returning the value to ACPICA (via8447AcpiOsGetThreadId).8448Lin Ming, Bob Moore.84498450Added the ACPI_INLINE type to enhance the ACPICA configuration. The8451"inline"8452keyword is not standard across compilers, and this type allows inline to8453be8454configured on a per-compiler basis. Lin Ming.84558456Made the system global AcpiGbl_SystemAwakeAndRunning publicly8457available.8458Added an extern for this boolean in acpixf.h. Some hosts utilize this8459value8460during suspend/restore operations. ACPICA BZ 869.84618462All code that implements error/warning messages with the "ACPI:" prefix8463has8464been moved to a new module, utxferror.c.84658466The UINT64_OVERLAY was moved to utmath.c, which is the only module where8467it8468is used. ACPICA BZ 829. Lin Ming, Bob Moore.84698470Example Code and Data Size: These are the sizes for the OS-independent8471acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8472debug version of the code includes the debug output trace mechanism and8473has a8474much larger code and data size.84758476Previous Release:8477Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total8478Debug Version: 165.1K Code, 51.9K Data, 217.0K Total8479Current Release:8480Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total8481Debug Version: 166.3K Code, 52.1K Data, 218.4K Total848284832) iASL Compiler/Disassembler and Tools:84848485iASL/Disassembler: Write ACPI errors to stderr instead of the output8486file.8487This keeps the output files free of random error messages that may8488originate8489from within the namespace/interpreter code. Used this opportunity to8490merge8491all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ8492866. Lin Ming, Bob Moore.84938494Tools: update some printfs for ansi warnings on size_t. Handle width8495change8496of size_t on 32-bit versus 64-bit generations. Lin Ming.84978498----------------------------------------849906 August 2010. Summary of changes for version 20100806:850085011) ACPI CA Core Subsystem:85028503Designed and implemented a new host interface to the _OSI support code.8504This8505will allow the host to dynamically add or remove multiple _OSI strings,8506as8507well as install an optional handler that is called for each _OSI8508invocation.8509Also added a new AML debugger command, 'osi' to display and modify the8510global8511_OSI string table, and test support in the AcpiExec utility. See the8512ACPICA8513reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836.8514New Functions:8515AcpiInstallInterface - Add an _OSI string.8516AcpiRemoveInterface - Delete an _OSI string.8517AcpiInstallInterfaceHandler - Install optional _OSI handler.8518Obsolete Functions:8519AcpiOsValidateInterface - no longer used.8520New Files:8521source/components/utilities/utosi.c85228523Re-introduced the support to enable multi-byte transfers for Embedded8524Controller (EC) operation regions. A reported problem was found to be a8525bug8526in the host OS, not in the multi-byte support. Previously, the maximum8527data8528size passed to the EC operation region handler was a single byte. There8529are8530often EC Fields larger than one byte that need to be transferred, and it8531is8532useful for the EC driver to lock these as a single transaction. This8533change8534enables single transfers larger than 8 bits. This effectively changes the8535access to the EC space from ByteAcc to AnyAcc, and will probably require8536changes to the host OS Embedded Controller driver to enable 16/32/64/256-8537bit8538transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming.85398540Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The8541prototype in acpiosxf.h had the output value pointer as a (void *).8542It should be a (UINT64 *). This may affect some host OSL code.85438544Fixed a couple problems with the recently modified Linux makefiles for8545iASL8546and AcpiExec. These new makefiles place the generated object files in the8547local directory so that there can be no collisions between the files that8548are8549shared between them that are compiled with different options.85508551Example Code and Data Size: These are the sizes for the OS-independent8552acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8553debug version of the code includes the debug output trace mechanism and8554has a8555much larger code and data size.85568557Previous Release:8558Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8559Debug Version: 164.0K Code, 51.5K Data, 215.5K Total8560Current Release:8561Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total8562Debug Version: 165.1K Code, 51.9K Data, 217.0K Total856385642) iASL Compiler/Disassembler and Tools:85658566iASL/Disassembler: Added a new option (-da, "disassemble all") to load8567the8568namespace from and disassemble an entire group of AML files. Useful for8569loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn)8570and8571disassembling with one simple command. ACPICA BZ 865. Lin Ming.85728573iASL: Allow multiple invocations of -e option. This change allows8574multiple8575uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ8576834.8577Lin Ming.85788579----------------------------------------858002 July 2010. Summary of changes for version 20100702:858185821) ACPI CA Core Subsystem:85838584Implemented several updates to the recently added GPE reference count8585support. The model for "wake" GPEs is changing to give the host OS8586complete8587control of these GPEs. Eventually, the ACPICA core will not execute any8588_PRW8589methods, since the host already must execute them. Also, additional8590changes8591were made to help ensure that the reference counts are kept in proper8592synchronization with reality. Rafael J. Wysocki.859385941) Ensure that GPEs are not enabled twice during initialization.85952) Ensure that GPE enable masks stay in sync with the reference count.85963) Do not inadvertently enable GPEs when writing GPE registers.85974) Remove the internal wake reference counter and add new AcpiGpeWakeup8598interface. This interface will set or clear individual GPEs for wakeup.85995) Remove GpeType argument from AcpiEnable and AcpiDisable. These8600interfaces8601are now used for "runtime" GPEs only.86028603Changed the behavior of the GPE install/remove handler interfaces. The8604GPE8605is8606no longer disabled during this process, as it was found to cause problems8607on8608some machines. Rafael J. Wysocki.86098610Reverted a change introduced in version 20100528 to enable Embedded8611Controller multi-byte transfers. This change was found to cause problems8612with8613Index Fields and possibly Bank Fields. It will be reintroduced when these8614problems have been resolved.86158616Fixed a problem with references to Alias objects within Package Objects.8617A8618reference to an Alias within the definition of a Package was not always8619resolved properly. Aliases to objects like Processors, Thermal zones,8620etc.8621were resolved to the actual object instead of a reference to the object8622as8623it8624should be. Package objects are only allowed to contain integer, string,8625buffer, package, and reference objects. Redhat bugzilla 608648.86268627Example Code and Data Size: These are the sizes for the OS-independent8628acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8629debug version of the code includes the debug output trace mechanism and8630has a8631much larger code and data size.86328633Previous Release:8634Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8635Debug Version: 164.1K Code, 51.5K Data, 215.6K Total8636Current Release:8637Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8638Debug Version: 164.0K Code, 51.5K Data, 215.5K Total863986402) iASL Compiler/Disassembler and Tools:86418642iASL: Implemented a new compiler subsystem to allow definition and8643compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc.8644These8645are called "ACPI Data Tables", and the new compiler is the "Data Table8646Compiler". This compiler is intended to simplify the existing error-prone8647process of creating these tables for the BIOS, as well as allowing the8648disassembly, modification, recompilation, and override of existing ACPI8649data8650tables. See the iASL User Guide for detailed information.86518652iASL: Implemented a new Template Generator option in support of the new8653Data8654Table Compiler. This option will create examples of all known ACPI tables8655that can be used as the basis for table development. See the iASL8656documentation and the -T option.86578658Disassembler and headers: Added support for the WDDT ACPI table (Watchdog8659Descriptor Table).86608661Updated the Linux makefiles for iASL and AcpiExec to place the generated8662object files in the local directory so that there can be no collisions8663between the shared files between them that are generated with different8664options.86658666Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec.8667Use8668the #define __APPLE__ to enable this support.86698670----------------------------------------867128 May 2010. Summary of changes for version 20100528:86728673Note: The ACPI 4.0a specification was released on April 5, 2010 and is8674available at www.acpi.info. This is primarily an errata release.867586761) ACPI CA Core Subsystem:86778678Undefined ACPI tables: We are looking for the definitions for the8679following8680ACPI tables that have been seen in the field: ATKG, IEIT, GSCI.86818682Implemented support to enable multi-byte transfers for Embedded8683Controller8684(EC) operation regions. Previously, the maximum data size passed to the8685EC8686operation region handler was a single byte. There are often EC Fields8687larger8688than one byte that need to be transferred, and it is useful for the EC8689driver8690to lock these as a single transaction. This change enables single8691transfers8692larger than 8 bits. This effectively changes the access to the EC space8693from8694ByteAcc to AnyAcc, and will probably require changes to the host OS8695Embedded8696Controller driver to enable 16/32/64/256-bit transfers in addition to 8-8697bit8698transfers. Alexey Starikovskiy, Lin Ming86998700Implemented a performance enhancement for namespace search and access.8701This8702change enhances the performance of namespace searches and walks by adding8703a8704backpointer to the parent in each namespace node. On large namespaces,8705this8706change can improve overall ACPI performance by up to 9X. Adding a pointer8707to8708each namespace node increases the overall size of the internal namespace8709by8710about 5%, since each namespace entry usually consists of both a namespace8711node and an ACPI operand object. However, this is the first growth of the8712namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy.87138714Implemented a performance optimization that reduces the number of8715namespace8716walks. On control method exit, only walk the namespace if the method is8717known8718to have created namespace objects outside of its local scope. Previously,8719the8720entire namespace was traversed on each control method exit. This change8721can8722improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob8723Moore.87248725Added support to truncate I/O addresses to 16 bits for Windows8726compatibility.8727Some ASL code has been seen in the field that inadvertently has bits set8728above bit 15. This feature is optional and is enabled if the BIOS8729requests8730any Windows OSI strings. It can also be enabled by the host OS. Matthew8731Garrett, Bob Moore.87328733Added support to limit the maximum time for the ASL Sleep() operator. To8734prevent accidental deep sleeps, limit the maximum time that Sleep() will8735actually sleep. Configurable, the default maximum is two seconds. ACPICA8736bugzilla 854.87378738Added run-time validation support for the _WDG and_WED Microsoft8739predefined8740methods. These objects are defined by "Windows Instrumentation", and are8741not8742part of the ACPI spec. ACPICA BZ 860.87438744Expanded all statistic counters used during namespace and device8745initialization from 16 to 32 bits in order to support very large8746namespaces.87478748Replaced all instances of %d in printf format specifiers with %u since8749nearly8750all integers in ACPICA are unsigned.87518752Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly8753returned8754as AE_NO_HANDLER.87558756Example Code and Data Size: These are the sizes for the OS-independent8757acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8758debug version of the code includes the debug output trace mechanism and8759has a8760much larger code and data size.87618762Previous Release:8763Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total8764Debug Version: 164.2K Code, 51.5K Data, 215.7K Total8765Current Release:8766Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total8767Debug Version: 164.1K Code, 51.5K Data, 215.6K Total876887692) iASL Compiler/Disassembler and Tools:87708771iASL: Added compiler support for the _WDG and_WED Microsoft predefined8772methods. These objects are defined by "Windows Instrumentation", and are8773not8774part of the ACPI spec. ACPICA BZ 860.87758776AcpiExec: added option to disable the memory tracking mechanism. The -dt8777option will disable the tracking mechanism, which improves performance8778considerably.87798780AcpiExec: Restructured the command line options into -d (disable) and -e8781(enable) options.87828783----------------------------------------878428 April 2010. Summary of changes for version 20100428:878587861) ACPI CA Core Subsystem:87878788Implemented GPE support for dynamically loaded ACPI tables. For all GPEs,8789including FADT-based and GPE Block Devices, execute any _PRW methods in8790the8791new table, and process any _Lxx/_Exx GPE methods in the new table. Any8792runtime GPE that is referenced by an _Lxx/_Exx method in the new table is8793immediately enabled. Handles the FADT-defined GPEs as well as GPE Block8794Devices. Provides compatibility with other ACPI implementations. Two new8795files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob8796Moore.87978798Fixed a regression introduced in version 20100331 within the table8799manager8800where initial table loading could fail. This was introduced in the fix8801for8802AcpiReallocateRootTable. Also, renamed some of fields in the table8803manager8804data structures to clarify their meaning and use.88058806Fixed a possible allocation overrun during internal object copy in8807AcpiUtCopySimpleObject. The original code did not correctly handle the8808case8809where the object to be copied was a namespace node. Lin Ming. ACPICA BZ8810847.88118812Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a8813possible access beyond end-of-allocation. Also, now fully validate8814descriptor8815(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 84788168817Example Code and Data Size: These are the sizes for the OS-independent8818acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The8819debug version of the code includes the debug output trace mechanism and8820has a8821much larger code and data size.88228823Previous Release:8824Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total8825Debug Version: 163.5K Code, 51.3K Data, 214.8K Total8826Current Release:8827Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total8828Debug Version: 164.2K Code, 51.5K Data, 215.7K Total882988302) iASL Compiler/Disassembler and Tools:88318832iASL: Implemented Min/Max/Len/Gran validation for address resource8833descriptors. This change implements validation for the address fields8834that8835are common to all address-type resource descriptors. These checks are8836implemented: Checks for valid Min/Max, length within the Min/Max window,8837valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as8838per8839table 6-40 in the ACPI 4.0a specification. Also split the large8840aslrestype1.c8841and aslrestype2.c files into five new files. ACPICA BZ 840.88428843iASL: Added support for the _Wxx predefined names. This support was8844missing8845and these names were not recognized by the compiler as valid predefined8846names. ACPICA BZ 851.88478848iASL: Added an error for all predefined names that are defined to return8849no8850value and thus must be implemented as Control Methods. These include all8851of8852the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous8853names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856.88548855iASL: Implemented the -ts option to emit hex AML data in ASL format, as8856an8857ASL Buffer. Allows ACPI tables to be easily included within ASL files, to8858be8859dynamically loaded via the Load() operator. Also cleaned up output for8860the8861-8862ta and -tc options. ACPICA BZ 853.88638864Tests: Added a new file with examples of extended iASL error checking.8865Demonstrates the advanced error checking ability of the iASL compiler.8866Available at tests/misc/badcode.asl.88678868----------------------------------------886931 March 2010. Summary of changes for version 20100331:887088711) ACPI CA Core Subsystem:88728873Completed a major update for the GPE support in order to improve support8874for8875shared GPEs and to simplify both host OS and ACPICA code. Added a8876reference8877count mechanism to support shared GPEs that require multiple device8878drivers.8879Several external interfaces have changed. One external interface has been8880removed. One new external interface was added. Most of the GPE external8881interfaces now use the GPE spinlock instead of the events mutex (and the8882Flags parameter for many GPE interfaces has been removed.) See the8883updated8884ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore,8885Rafael8886Wysocki. ACPICA BZ 831.88878888Changed:8889AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus8890Removed:8891AcpiSetGpeType8892New:8893AcpiSetGpe88948895Implemented write support for DataTable operation regions. These regions8896are8897defined via the DataTableRegion() operator. Previously, only read support8898was8899implemented. The ACPI specification allows DataTableRegions to be8900read/write,8901however.89028903Implemented a new subsystem option to force a copy of the DSDT to local8904memory. Optionally copy the entire DSDT to local memory (instead of8905simply8906mapping it.) There are some (albeit very rare) BIOSs that corrupt or8907replace8908the original DSDT, creating the need for this option. Default is FALSE,8909do8910not copy the DSDT.89118912Implemented detection of a corrupted or replaced DSDT. This change adds8913support to detect a DSDT that has been corrupted and/or replaced from8914outside8915the OS (by firmware). This is typically catastrophic for the system, but8916has8917been seen on some machines. Once this problem has been detected, the DSDT8918copy option can be enabled via system configuration. Lin Ming, Bob Moore.89198920Fixed two problems with AcpiReallocateRootTable during the root table8921copy.8922When copying the root table to the new allocation, the length used was8923incorrect. The new size was used instead of the current table size,8924meaning8925too much data was copied. Also, the count of available slots for ACPI8926tables8927was not set correctly. Alexey Starikovskiy, Bob Moore.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.5K Code, 18.4K Data, 105.9K Total8937Debug Version: 163.4K Code, 51.1K Data, 214.5K Total8938Current Release:8939Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total8940Debug Version: 163.5K Code, 51.3K Data, 214.8K Total894189422) iASL Compiler/Disassembler and Tools:89438944iASL: Implement limited typechecking for values returned from predefined8945control methods. The type of any returned static (unnamed) object is now8946validated. For example, Return(1). ACPICA BZ 786.89478948iASL: Fixed a predefined name object verification regression. Fixes a8949problem8950introduced in version 20100304. An error is incorrectly generated if a8951predefined name is declared as a static named object with a value defined8952using the keywords "Zero", "One", or "Ones". Lin Ming.89538954iASL: Added Windows 7 support for the -g option (get local ACPI tables)8955by8956reducing the requested registry access rights. ACPICA BZ 842.89578958Disassembler: fixed a possible fault when generating External()8959statements.8960Introduced in commit ae7d6fd: Properly handle externals with parent-8961prefix8962(carat). Fixes a string length allocation calculation. Lin Ming.89638964----------------------------------------896504 March 2010. Summary of changes for version 20100304:896689671) ACPI CA Core Subsystem:89688969Fixed a possible problem with the AML Mutex handling function8970AcpiExReleaseMutex where the function could fault under the very rare8971condition when the interpreter has blocked, the interpreter lock is8972released,8973the interpreter is then reentered via the same thread, and attempts to8974acquire an AML mutex that was previously acquired. FreeBSD report 140979.8975Lin8976Ming.89778978Implemented additional configuration support for the AML "Debug Object".8979Output from the debug object can now be enabled via a global variable,8980AcpiGbl_EnableAmlDebugObject. This will assist with remote machine8981debugging.8982This debug output is now available in the release version of ACPICA8983instead8984of just the debug version. Also, the entire debug output module can now8985be8986configured out of the ACPICA build if desired. One new file added,8987executer/exdebug.c. Lin Ming, Bob Moore.89888989Added header support for the ACPI MCHI table (Management Controller Host8990Interface Table). This table was added in ACPI 4.0, but the defining8991document8992has only recently become available.89938994Standardized output of integer values for ACPICA warnings/errors. Always8995use89960x prefix for hex output, always use %u for unsigned integer decimal8997output.8998Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about89994009000invocations.) These invocations were converted from the original9001ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835.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.1K Code, 18.0K Data, 105.1K Total9011Debug Version: 163.5K Code, 50.9K Data, 214.4K Total9012Current Release:9013Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total9014Debug Version: 163.4K Code, 51.1K Data, 214.5K Total901590162) iASL Compiler/Disassembler and Tools:90179018iASL: Implemented typechecking support for static (non-control method)9019predefined named objects that are declared with the Name() operator. For9020example, the type of this object is now validated to be of type Integer:9021Name(_BBN, 1). This change migrates the compiler to using the core9022predefined9023name table instead of maintaining a local version. Added a new file,9024aslpredef.c. ACPICA BZ 832.90259026Disassembler: Added support for the ACPI 4.0 MCHI table.90279028----------------------------------------902921 January 2010. Summary of changes for version 20100121:903090311) ACPI CA Core Subsystem:90329033Added the 2010 copyright to all module headers and signons. This affects9034virtually every file in the ACPICA core subsystem, the iASL compiler, the9035tools/utilities, and the test suites.90369037Implemented a change to the AcpiGetDevices interface to eliminate9038unnecessary9039invocations of the _STA method. In the case where a specific _HID is9040requested, do not run _STA until a _HID match is found. This eliminates9041potentially dozens of _STA calls during a search for a particular9042device/HID,9043which in turn can improve boot times. ACPICA BZ 828. Lin Ming.90449045Implemented an additional repair for predefined method return values.9046Attempt9047to repair unexpected NULL elements within returned Package objects.9048Create9049an9050Integer of value zero, a NULL String, or a zero-length Buffer as9051appropriate.9052ACPICA BZ 818. Lin Ming, Bob Moore.90539054Removed the obsolete ACPI_INTEGER data type. This type was introduced as9055the9056code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.09057(with905864-bit AML integers). It is now obsolete and this change removes it from9059the9060ACPICA code base, replaced by UINT64. The original typedef has been9061retained9062for now for compatibility with existing device driver code. ACPICA BZ9063824.90649065Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field9066in9067the parse tree object.90689069Added additional warning options for the gcc-4 generation. Updated the9070source9071accordingly. This includes some code restructuring to eliminate9072unreachable9073code, elimination of some gotos, elimination of unused return values,9074some9075additional casting, and removal of redundant declarations.90769077Example Code and Data Size: These are the sizes for the OS-independent9078acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9079debug version of the code includes the debug output trace mechanism and9080has a9081much larger code and data size.90829083Previous Release:9084Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total9085Debug Version: 163.4K Code, 50.8K Data, 214.2K Total9086Current Release:9087Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total9088Debug Version: 163.5K Code, 50.9K Data, 214.4K Total908990902) iASL Compiler/Disassembler and Tools:90919092No functional changes for this release.90939094----------------------------------------909514 December 2009. Summary of changes for version 20091214:909690971) ACPI CA Core Subsystem:90989099Enhanced automatic data type conversions for predefined name repairs.9100This9101change expands the automatic repairs/conversions for predefined name9102return9103values to make Integers, Strings, and Buffers fully interchangeable.9104Also,9105a9106Buffer can be converted to a Package of Integers if necessary. The9107nsrepair.c9108module was completely restructured. Lin Ming, Bob Moore.91099110Implemented automatic removal of null package elements during predefined9111name9112repairs. This change will automatically remove embedded and trailing NULL9113package elements from returned package objects that are defined to9114contain9115a9116variable number of sub-packages. The driver is then presented with a9117package9118with no null elements to deal with. ACPICA BZ 819.91199120Implemented a repair for the predefined _FDE and _GTM names. The expected9121return value for both names is a Buffer of 5 DWORDs. This repair fixes9122two9123possible problems (both seen in the field), where a package of integers9124is9125returned, or a buffer of BYTEs is returned. With assistance from Jung-uk9126Kim.91279128Implemented additional module-level code support. This change will9129properly9130execute module-level code that is not at the root of the namespace (under9131a9132Device object, etc.). Now executes the code within the current scope9133instead9134of the root. ACPICA BZ 762. Lin Ming.91359136Fixed possible mutex acquisition errors when running _REG methods. Fixes9137a9138problem where mutex errors can occur when running a _REG method that is9139in9140the same scope as a method-defined operation region or an operation9141region9142under a module-level IF block. This type of code is rare, so the problem9143has9144not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore.91459146Fixed a possible memory leak during module-level code execution. An9147object9148could be leaked for each block of executed module-level code if the9149interpreter slack mode is enabled This change deletes any implicitly9150returned9151object from the module-level code block. Lin Ming.91529153Removed messages for successful predefined repair(s). The repair9154mechanism9155was considered too wordy. Now, messages are only unconditionally emitted9156if9157the return object cannot be repaired. Existing messages for successful9158repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ9159827.91609161Example Code and Data Size: These are the sizes for the OS-independent9162acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9163debug version of the code includes the debug output trace mechanism and9164has a9165much larger code and data size.91669167Previous Release:9168Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total9169Debug Version: 162.7K Code, 50.8K Data, 213.5K Total9170Current Release:9171Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total9172Debug Version: 163.4K Code, 50.8K Data, 214.2K Total917391742) iASL Compiler/Disassembler and Tools:91759176iASL: Fixed a regression introduced in 20091112 where intermediate .SRC9177files9178were no longer automatically removed at the termination of the compile.91799180acpiexec: Implemented the -f option to specify default region fill value.9181This option specifies the value used to initialize buffers that simulate9182operation regions. Default value is zero. Useful for debugging problems9183that9184depend on a specific initial value for a region or field.91859186----------------------------------------918712 November 2009. Summary of changes for version 20091112:918891891) ACPI CA Core Subsystem:91909191Implemented a post-order callback to AcpiWalkNamespace. The existing9192interface only has a pre-order callback. This change adds an additional9193parameter for a post-order callback which will be more useful for bus9194scans.9195ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference.91969197Modified the behavior of the operation region memory mapping cache for9198SystemMemory. Ensure that the memory mappings created for operation9199regions9200do not cross 4K page boundaries. Crossing a page boundary while mapping9201regions can cause kernel warnings on some hosts if the pages have9202different9203attributes. Such regions are probably BIOS bugs, and this is the9204workaround.9205Linux BZ 14445. Lin Ming.92069207Implemented an automatic repair for predefined methods that must return9208sorted lists. This change will repair (by sorting) packages returned by9209_ALR,9210_PSS, and _TSS. Drivers can now assume that the packages are correctly9211sorted9212and do not contain NULL package elements. Adds one new file,9213namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore.92149215Fixed a possible fault during predefined name validation if a return9216Package9217object contains NULL elements. Also adds a warning if a NULL element is9218followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement9219may9220include repair or removal of all such NULL elements where possible.92219222Implemented additional module-level executable AML code support. This9223change9224will execute module-level code that is not at the root of the namespace9225(under a Device object, etc.) at table load time. Module-level executable9226AML9227code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming.92289229Implemented a new internal function to create Integer objects. This9230function9231simplifies miscellaneous object creation code. ACPICA BZ 823.92329233Reduced the severity of predefined repair messages, Warning to Info.9234Since9235the object was successfully repaired, a warning is too severe. Reduced to9236an9237info message for now. These messages may eventually be changed to debug-9238only.9239ACPICA BZ 812.92409241Example Code and Data Size: These are the sizes for the OS-independent9242acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9243debug version of the code includes the debug output trace mechanism and9244has a9245much larger code and data size.92469247Previous Release:9248Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total9249Debug Version: 161.8K Code, 50.6K Data, 212.4K Total9250Current Release:9251Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total9252Debug Version: 162.7K Code, 50.8K Data, 213.5K Total925392542) iASL Compiler/Disassembler and Tools:92559256iASL: Implemented Switch() with While(1) so that Break works correctly.9257This9258change correctly implements the Switch operator with a surrounding9259While(1)9260so that the Break operator works as expected. ACPICA BZ 461. Lin Ming.92619262iASL: Added a message if a package initializer list is shorter than9263package9264length. Adds a new remark for a Package() declaration if an initializer9265list9266exists, but is shorter than the declared length of the package. Although9267technically legal, this is probably a coding error and it is seen in the9268field. ACPICA BZ 815. Lin Ming, Bob Moore.92699270iASL: Fixed a problem where the compiler could fault after the maximum9271number9272of errors was reached (200).92739274acpixtract: Fixed a possible warning for pointer cast if the compiler9275warning9276level set very high.92779278----------------------------------------927913 October 2009. Summary of changes for version 20091013:928092811) ACPI CA Core Subsystem:92829283Fixed a problem where an Operation Region _REG method could be executed9284more9285than once. If a custom address space handler is installed by the host9286before9287the "initialize operation regions" phase of the ACPICA initialization,9288any9289_REG methods for that address space could be executed twice. This change9290fixes the problem. ACPICA BZ 427. Lin Ming.92919292Fixed a possible memory leak for the Scope() ASL operator. When the exact9293invocation of "Scope(\)" is executed (change scope to root), one internal9294operand object was leaked. Lin Ming.92959296Implemented a run-time repair for the _MAT predefined method. If the _MAT9297return value is defined as a Field object in the AML, and the field9298size is less than or equal to the default width of an integer (32 or929964),_MAT9300can incorrectly return an Integer instead of a Buffer. ACPICA now9301automatically repairs this problem. ACPICA BZ 810.93029303Implemented a run-time repair for the _BIF and _BIX predefined methods.9304The9305"OEM Information" field is often incorrectly returned as an Integer with9306value zero if the field is not supported by the platform. This is due to9307an9308ambiguity in the ACPI specification. The field should always be a string.9309ACPICA now automatically repairs this problem by returning a NULL string9310within the returned Package. ACPICA BZ 807.93119312Example Code and Data Size: These are the sizes for the OS-independent9313acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9314debug version of the code includes the debug output trace mechanism and9315has a9316much larger code and data size.93179318Previous Release:9319Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total9320Debug Version: 161.7K Code, 50.9K Data, 212.6K Total9321Current Release:9322Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total9323Debug Version: 161.8K Code, 50.6K Data, 212.4K Total932493252) iASL Compiler/Disassembler and Tools:93269327Disassembler: Fixed a problem where references to external symbols that9328contained one or more parent-prefixes (carats) were not handled9329correctly,9330possibly causing a fault. ACPICA BZ 806. Lin Ming.93319332Disassembler: Restructured the code so that all functions that handle9333external symbols are in a single module. One new file is added,9334common/dmextern.c.93359336AML Debugger: Added a max count argument for the Batch command (which9337executes multiple predefined methods within the namespace.)93389339iASL: Updated the compiler documentation (User Reference.) Available at9340http://www.acpica.org/documentation/. ACPICA BZ 750.93419342AcpiXtract: Updated for Lint and other formatting changes. Close all open9343files.93449345----------------------------------------934603 September 2009. Summary of changes for version 20090903:934793481) ACPI CA Core Subsystem:93499350For Windows Vista compatibility, added the automatic execution of an _INI9351method located at the namespace root (\_INI). This method is executed at9352table load time. This support is in addition to the automatic execution9353of9354\_SB._INI. Lin Ming.93559356Fixed a possible memory leak in the interpreter for AML package objects9357if9358the package initializer list is longer than the defined size of the9359package.9360This apparently can only happen if the BIOS changes the package size on9361the9362fly (seen in a _PSS object), as ASL compilers do not allow this. The9363interpreter will truncate the package to the defined size (and issue an9364error9365message), but previously could leave the extra objects undeleted if they9366were9367pre-created during the argument processing (such is the case if the9368package9369consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805.93709371Fixed a problem seen when a Buffer or String is stored to itself via ASL.9372This has been reported in the field. Previously, ACPICA would zero out9373the9374buffer/string. Now, the operation is treated as a noop. Provides Windows9375compatibility. ACPICA BZ 803. Lin Ming.93769377Removed an extraneous error message for ASL constructs of the form9378Store(LocalX,LocalX) when LocalX is uninitialized. These curious9379statements9380are seen in many BIOSs and are once again treated as NOOPs and no error9381is9382emitted when they are encountered. ACPICA BZ 785.93839384Fixed an extraneous warning message if a _DSM reserved method returns a9385Package object. _DSM can return any type of object, so validation on the9386return type cannot be performed. ACPICA BZ 802.93879388Example Code and Data Size: These are the sizes for the OS-independent9389acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9390debug version of the code includes the debug output trace mechanism and9391has a9392much larger code and data size.93939394Previous Release:9395Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total9396Debug Version: 161.6K Code, 50.9K Data, 212.5K Total9397Current Release:9398Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total9399Debug Version: 161.7K Code, 50.9K Data, 212.6K Total940094012) iASL Compiler/Disassembler and Tools:94029403iASL: Fixed a problem with the use of the Alias operator and Resource9404Templates. The correct alias is now constructed and no error is emitted.9405ACPICA BZ 738.94069407iASL: Implemented the -I option to specify additional search directories9408for9409include files. Allows multiple additional search paths for include files.9410Directories are searched in the order specified on the command line9411(after9412the local directory is searched.) ACPICA BZ 800.94139414iASL: Fixed a problem where the full pathname for include files was not9415emitted for warnings/errors. This caused the IDE support to not work9416properly. ACPICA BZ 765.94179418iASL: Implemented the -@ option to specify a Windows-style response file9419containing additional command line options. ACPICA BZ 801.94209421AcpiExec: Added support to load multiple AML files simultaneously (such9422as9423a9424DSDT and multiple SSDTs). Also added support for wildcards within the AML9425pathname. These features allow all machine tables to be easily loaded and9426debugged together. ACPICA BZ 804.94279428Disassembler: Added missing support for disassembly of HEST table Error9429Bank9430subtables.94319432----------------------------------------943330 July 2009. Summary of changes for version 20090730:94349435The ACPI 4.0 implementation for ACPICA is complete with this release.943694371) ACPI CA Core Subsystem:94389439ACPI 4.0: Added header file support for all new and changed ACPI tables.9440Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are9441new9442for ACPI 4.0, but have previously been supported in ACPICA are: CPEP,9443BERT,9444EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT.9445There9446have been some ACPI 4.0 changes to other existing tables. Split the large9447actbl1.h header into the existing actbl2.h header. ACPICA BZ 774.94489449ACPI 4.0: Implemented predefined name validation for all new names. There9450are945131 new names in ACPI 4.0. The predefined validation module was split into9452two9453files. The new file is namespace/nsrepair.c. ACPICA BZ 770.94549455Implemented support for so-called "module-level executable code". This is9456executable AML code that exists outside of any control method and is9457intended9458to be executed at table load time. Although illegal since ACPI 2.0, this9459type9460of code still exists and is apparently still being created. Blocks of9461this9462code are now detected and executed as intended. Currently, the code9463blocks9464must exist under either an If, Else, or While construct; these are the9465typical cases seen in the field. ACPICA BZ 762. Lin Ming.94669467Implemented an automatic dynamic repair for predefined names that return9468nested Package objects. This applies to predefined names that are defined9469to9470return a variable-length Package of sub-packages. If the number of sub-9471packages is one, BIOS code is occasionally seen that creates a simple9472single9473package with no sub-packages. This code attempts to fix the problem by9474wrapping a new package object around the existing package. These methods9475can9476be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA9477BZ9478790.94799480Fixed a regression introduced in 20090625 for the AcpiGetDevices9481interface.9482The _HID/_CID matching was broken and no longer matched IDs correctly.9483ACPICA9484BZ 793.94859486Fixed a problem with AcpiReset where the reset would silently fail if the9487register was one of the protected I/O ports. AcpiReset now bypasses the9488port9489validation mechanism. This may eventually be driven into the9490AcpiRead/Write9491interfaces.94929493Fixed a regression related to the recent update of the AcpiRead/Write9494interfaces. A sleep/suspend could fail if the optional PM2 Control9495register9496does not exist during an attempt to write the Bus Master Arbitration bit.9497(However, some hosts already delete the code that writes this bit, and9498the9499code may in fact be obsolete at this date.) ACPICA BZ 799.95009501Fixed a problem where AcpiTerminate could fault if inadvertently called9502twice9503in succession. ACPICA BZ 795.95049505Example Code and Data Size: These are the sizes for the OS-independent9506acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9507debug version of the code includes the debug output trace mechanism and9508has a9509much larger code and data size.95109511Previous Release:9512Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total9513Debug Version: 160.5K Code, 50.6K Data, 211.1K Total9514Current Release:9515Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total9516Debug Version: 161.6K Code, 50.9K Data, 212.5K Total951795182) iASL Compiler/Disassembler and Tools:95199520ACPI 4.0: Implemented disassembler support for all new ACPI tables and9521changes to existing tables. ACPICA BZ 775.95229523----------------------------------------952425 June 2009. Summary of changes for version 20090625:95259526The ACPI 4.0 Specification was released on June 16 and is available at9527www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will9528continue for the next few releases.952995301) ACPI CA Core Subsystem:95319532ACPI 4.0: Implemented interpreter support for the IPMI operation region9533address space. Includes support for bi-directional data buffers and an9534IPMI9535address space handler (to be installed by an IPMI device driver.) ACPICA9536BZ9537773. Lin Ming.95389539ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT.9540Includes9541support in both the header files and the disassembler.95429543Completed a major update for the AcpiGetObjectInfo external interface.9544Changes include:9545- Support for variable, unlimited length HID, UID, and CID strings.9546- Support Processor objects the same as Devices (HID,UID,CID,ADR,STA,9547etc.)9548- Call the _SxW power methods on behalf of a device object.9549- Determine if a device is a PCI root bridge.9550- Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO.9551These changes will require an update to all callers of this interface.9552See9553the updated ACPICA Programmer Reference for details. One new source file9554has9555been added - utilities/utids.c. ACPICA BZ 368, 780.95569557Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit9558transfers. The Value parameter has been extended from 32 bits to 64 bits9559in9560order to support new ACPI 4.0 tables. These changes will require an9561update9562to9563all callers of these interfaces. See the ACPICA Programmer Reference for9564details. ACPICA BZ 768.95659566Fixed several problems with AcpiAttachData. The handler was not invoked9567when9568the host node was deleted. The data sub-object was not automatically9569deleted9570when the host node was deleted. The interface to the handler had an9571unused9572parameter, this was removed. ACPICA BZ 778.95739574Enhanced the function that dumps ACPI table headers. All non-printable9575characters in the string fields are now replaced with '?' (Signature,9576OemId,9577OemTableId, and CompilerId.) ACPI tables with non-printable characters in9578these fields are occasionally seen in the field. ACPICA BZ 788.95799580Fixed a problem with predefined method repair code where the code that9581attempts to repair/convert an object of incorrect type is only executed9582on9583the first time the predefined method is called. The mechanism that9584disables9585warnings on subsequent calls was interfering with the repair mechanism.9586ACPICA BZ 781.95879588Fixed a possible memory leak in the predefined validation/repair code9589when9590a9591buffer is automatically converted to an expected string object.95929593Removed obsolete 16-bit files from the distribution and from the current9594git9595tree head. ACPICA BZ 776.95969597Example Code and Data Size: These are the sizes for the OS-independent9598acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9599debug version of the code includes the debug output trace mechanism and9600has a9601much larger code and data size.96029603Previous Release:9604Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total9605Debug Version: 158.9K Code, 50.0K Data, 208.9K Total9606Current Release:9607Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total9608Debug Version: 160.5K Code, 50.6K Data, 211.1K Total960996102) iASL Compiler/Disassembler and Tools:96119612ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI9613operation region keyword. ACPICA BZ 771, 772. Lin Ming.96149615ACPI 4.0: iASL - implemented compile-time validation support for all new9616predefined names and control methods (31 total). ACPICA BZ 769.96179618----------------------------------------961921 May 2009. Summary of changes for version 20090521:962096211) ACPI CA Core Subsystem:96229623Disabled the preservation of the SCI enable bit in the PM1 control9624register.9625The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification9626to9627be9628a "preserved" bit - "OSPM always preserves this bit position", section96294.7.3.2.1. However, some machines fail if this bit is in fact preserved9630because the bit needs to be explicitly set by the OS as a workaround. No9631machines fail if the bit is not preserved. Therefore, ACPICA no longer9632attempts to preserve this bit.96339634Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or9635incorrectly formed _PRT package could cause a fault. Added validation to9636ensure that each package element is actually a sub-package.96379638Implemented a new interface to install or override a single control9639method,9640AcpiInstallMethod. This interface is useful when debugging in order to9641repair9642an existing method or to install a missing method without having to9643override9644the entire ACPI table. See the ACPICA Programmer Reference for use and9645examples. Lin Ming, Bob Moore.96469647Fixed several reference count issues with the DdbHandle object that is9648created from a Load or LoadTable operator. Prevent premature deletion of9649the9650object. Also, mark the object as invalid once the table has been9651unloaded.9652This is needed because the handle itself may not be deleted after the9653table9654unload, depending on whether it has been stored in a named object by the9655caller. Lin Ming.96569657Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple9658mutexes of the same sync level are acquired but then not released in9659strict9660opposite order, the internally maintained Current Sync Level becomes9661confused9662and can cause subsequent execution errors. ACPICA BZ 471.96639664Changed the allowable release order for ASL mutex objects. The ACPI 4.09665specification has been changed to make the SyncLevel for mutex objects9666more9667useful. When releasing a mutex, the SyncLevel of the mutex must now be9668the9669same as the current sync level. This makes more sense than the previous9670rule9671(SyncLevel less than or equal). This change updates the code to match the9672specification.96739674Fixed a problem with the local version of the AcpiOsPurgeCache function.9675The9676(local) cache must be locked during all cache object deletions. Andrew9677Baumann.96789679Updated the Load operator to use operation region interfaces. This9680replaces9681direct memory mapping with region access calls. Now, all region accesses9682go9683through the installed region handler as they should.96849685Simplified and optimized the NsGetNextNode function. Reduced parameter9686count9687and reduced code for this frequently used function.96889689Example Code and Data Size: These are the sizes for the OS-independent9690acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9691debug version of the code includes the debug output trace mechanism and9692has a9693much larger code and data size.96949695Previous Release:9696Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total9697Debug Version: 158.0K Code, 49.9K Data, 207.9K Total9698Current Release:9699Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total9700Debug Version: 158.9K Code, 50.0K Data, 208.9K Total970197022) iASL Compiler/Disassembler and Tools:97039704Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some9705problems9706with sub-table disassembly and handling invalid sub-tables. Attempt9707recovery9708after an invalid sub-table ID.97099710----------------------------------------971122 April 2009. Summary of changes for version 20090422:971297131) ACPI CA Core Subsystem:97149715Fixed a compatibility issue with the recently released I/O port9716protection9717mechanism. For windows compatibility, 1) On a port protection violation,9718simply ignore the request and do not return an exception (allow the9719control9720method to continue execution.) 2) If only part of the request overlaps a9721protected port, read/write the individual ports that are not protected.9722Linux9723BZ 13036. Lin Ming97249725Enhanced the execution of the ASL/AML BreakPoint operator so that it9726actually9727breaks into the AML debugger if the debugger is present. This matches the9728ACPI-defined behavior.97299730Fixed several possible warnings related to the use of the configurable9731ACPI_THREAD_ID. This type can now be configured as either an integer or a9732pointer with no warnings. Also fixes several warnings in printf-like9733statements for the 64-bit build when the type is configured as a pointer.9734ACPICA BZ 766, 767.97359736Fixed a number of possible warnings when compiling with gcc 4+ (depending9737on9738warning options.) Examples include printf formats, aliasing, unused9739globals,9740missing prototypes, missing switch default statements, use of non-ANSI9741library functions, use of non-ANSI constructs. See generate/unix/Makefile9742for9743a list of warning options used with gcc 3 and 4. ACPICA BZ 735.97449745Example Code and Data Size: These are the sizes for the OS-independent9746acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9747debug version of the code includes the debug output trace mechanism and9748has a9749much larger code and data size.97509751Previous Release:9752Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total9753Debug Version: 157.7K Code, 49.9K Data, 207.6K Total9754Current Release:9755Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total9756Debug Version: 158.0K Code, 49.9K Data, 207.9K Total975797582) iASL Compiler/Disassembler and Tools:97599760iASL: Fixed a generation warning from Bison 2.3 and fixed several9761warnings9762on9763the 64-bit build.97649765iASL: Fixed a problem where the Unix/Linux versions of the compiler could9766not9767correctly digest Windows/DOS formatted files (with CR/LF).97689769iASL: Added a new option for "quiet mode" (-va) that produces only the9770compilation summary, not individual errors and warnings. Useful for large9771batch compilations.97729773AcpiExec: Implemented a new option (-z) to enable a forced9774semaphore/mutex9775timeout that can be used to detect hang conditions during execution of9776AML9777code (includes both internal semaphores and AML-defined mutexes and9778events.)97799780Added new makefiles for the generation of acpica in a generic unix-like9781environment. These makefiles are intended to generate the acpica tools9782and9783utilities from the original acpica git source tree structure.97849785Test Suites: Updated and cleaned up the documentation files. Updated the9786copyrights to 2009, affecting all source files. Use the new version of9787iASL9788with quiet mode. Increased the number of available semaphores in the9789Windows9790OSL, allowing the aslts to execute fully on Windows. For the Unix OSL,9791added9792an alternate implementation of the semaphore timeout to allow aslts to9793execute fully on Cygwin.97949795----------------------------------------979620 March 2009. Summary of changes for version 20090320:979797981) ACPI CA Core Subsystem:97999800Fixed a possible race condition between AcpiWalkNamespace and dynamic9801table9802unloads. Added a reader/writer locking mechanism to allow multiple9803concurrent9804namespace walks (readers), but block a dynamic table unload until it can9805gain9806exclusive write access to the namespace. This fixes a problem where a9807table9808unload could (possibly catastrophically) delete the portion of the9809namespace9810that is currently being examined by a walk. Adds a new file, utlock.c,9811that9812implements the reader/writer lock mechanism. ACPICA BZ 749.98139814Fixed a regression introduced in version 20090220 where a change to the9815FADT9816handling could cause the ACPICA subsystem to access non-existent I/O9817ports.98189819Modified the handling of FADT register and table (FACS/DSDT) addresses.9820The9821FADT can contain both 32-bit and 64-bit versions of these addresses.9822Previously, the 64-bit versions were favored, meaning that if both 32 and9823649824versions were valid, but not equal, the 64-bit version was used. This was9825found to cause some machines to fail. Now, in this case, the 32-bit9826version9827is used instead. This now matches the Windows behavior.98289829Implemented a new mechanism to protect certain I/O ports. Provides9830Microsoft9831compatibility and protects the standard PC I/O ports from access via AML9832code. Adds a new file, hwvalid.c98339834Fixed a possible extraneous warning message from the FADT support. The9835message warns of a 32/64 length mismatch between the legacy and GAS9836definitions for a register.98379838Removed the obsolete AcpiOsValidateAddress OSL interface. This interface9839is9840made obsolete by the port protection mechanism above. It was previously9841used9842to validate the entire address range of an operation region, which could9843be9844incorrect if the range included illegal ports, but fields within the9845operation region did not actually access those ports. Validation is now9846performed on a per-field basis instead of the entire region.98479848Modified the handling of the PM1 Status Register ignored bit (bit 11.)9849Ignored bits must be "preserved" according to the ACPI spec. Usually,9850this9851means a read/modify/write when writing to the register. However, for9852status9853registers, writing a one means clear the event. Writing a zero means9854preserve9855the event (do not clear.) This behavior is clarified in the ACPI 4.09856spec,9857and the ACPICA code now simply always writes a zero to the ignored bit.98589859Modified the handling of ignored bits for the PM1 A/B Control Registers.9860As9861per the ACPI specification, for the control registers, preserve9862(read/modify/write) all bits that are defined as either reserved or9863ignored.98649865Updated the handling of write-only bits in the PM1 A/B Control Registers.9866When reading the register, zero the write-only bits as per the ACPI spec.9867ACPICA BZ 443. Lin Ming.98689869Removed "Linux" from the list of supported _OSI strings. Linux no longer9870wants to reply true to this request. The Windows strings are the only9871paths9872through the AML that are tested and known to work properly.98739874Previous Release:9875Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total9876Debug Version: 156.9K Code, 49.8K Data, 206.7K Total9877Current Release:9878Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total9879Debug Version: 157.7K Code, 49.9K Data, 207.6K Total988098812) iASL Compiler/Disassembler and Tools:98829883Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c9884and9885aetables.c98869887----------------------------------------988820 February 2009. Summary of changes for version 20090220:988998901) ACPI CA Core Subsystem:98919892Optimized the ACPI register locking. Removed locking for reads from the9893ACPI9894bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock9895is9896not required when reading the single-bit registers. The9897AcpiGetRegisterUnlocked function is no longer needed and has been9898removed.9899This will improve performance for reads on these registers. ACPICA BZ9900760.99019902Fixed the parameter validation for AcpiRead/Write. Now return9903AE_BAD_PARAMETER if the input register pointer is null, and9904AE_BAD_ADDRESS9905if9906the register has an address of zero. Previously, these cases simply9907returned9908AE_OK. For optional registers such as PM1B status/enable/control, the9909caller9910should check for a valid register address before calling. ACPICA BZ 748.99119912Renamed the external ACPI bit register access functions. Renamed9913AcpiGetRegister and AcpiSetRegister to clarify the purpose of these9914functions. The new names are AcpiReadBitRegister and9915AcpiWriteBitRegister.9916Also, restructured the code for these functions by simplifying the code9917path9918and condensing duplicate code to reduce code size.99199920Added new functions to transparently handle the possibly split PM1 A/B9921registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two9922functions9923now handle the split registers for PM1 Status, Enable, and Control.9924ACPICA9925BZ9926746.99279928Added a function to handle the PM1 control registers,9929AcpiHwWritePm1Control.9930This function writes both of the PM1 control registers (A/B). These9931registers9932are different than the PM1 A/B status and enable registers in that9933different9934values can be written to the A/B registers. Most notably, the SLP_TYP9935bits9936can be different, as per the values returned from the _Sx predefined9937methods.99389939Removed an extra register write within AcpiHwClearAcpiStatus. This9940function9941was writing an optional PM1B status register twice. The existing call to9942the9943low-level AcpiHwRegisterWrite automatically handles a possibly split PM19944A/B9945register. ACPICA BZ 751.99469947Split out the PM1 Status registers from the FADT. Added new globals for9948these9949registers (A/B), similar to the way the PM1 Enable registers are handled.9950Instead of overloading the FADT Event Register blocks. This makes the9951code9952clearer and less prone to error.99539954Fixed the warning message for when the platform contains too many ACPI9955tables9956for the default size of the global root table data structure. The9957calculation9958for the truncation value was incorrect.99599960Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this9961obsolete macro, since it is now a simple reference to ->common.type.9962There9963were about 150 invocations of the macro across 41 files. ACPICA BZ 755.99649965Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as9966TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to9967simply SLEEP_TYPE. ACPICA BZ 754.99689969Conditionally compile the AcpiSetFirmwareWakingVector64 function. This9970function is only needed on 64-bit host operating systems and is thus not9971included for 32-bit hosts.99729973Debug output: print the input and result for invocations of the _OSI9974reserved9975control method via the ACPI_LV_INFO debug level. Also, reduced some of9976the9977verbosity of this debug level. Len Brown.99789979Example Code and Data Size: These are the sizes for the OS-independent9980acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The9981debug version of the code includes the debug output trace mechanism and9982has a9983much larger code and data size.99849985Previous Release:9986Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total9987Debug Version: 157.3K Code, 49.8K Data, 207.1K Total9988Current Release:9989Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total9990Debug Version: 156.9K Code, 49.8K Data, 206.7K Total999199922) iASL Compiler/Disassembler and Tools:99939994Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the9995various legal performance profiles.99969997----------------------------------------999823 January 2009. Summary of changes for version 20090123:9999100001) ACPI CA Core Subsystem:1000110002Added the 2009 copyright to all module headers and signons. This affects10003virtually every file in the ACPICA core subsystem, the iASL compiler, and10004the tools/utilities.1000510006Implemented a change to allow the host to override any ACPI table,10007including10008dynamically loaded tables. Previously, only the DSDT could be replaced by10009the10010host. With this change, the AcpiOsTableOverride interface is called for10011each10012table found in the RSDT/XSDT during ACPICA initialization, and also10013whenever10014a table is dynamically loaded via the AML Load operator.1001510016Updated FADT flag definitions, especially the Boot Architecture flags.1001710018Debugger: For the Find command, automatically pad the input ACPI name10019with10020underscores if the name is shorter than 4 characters. This enables a10021match10022with the actual namespace entry which is itself padded with underscores.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: 82.3K Code, 17.4K Data, 99.7K Total10032Debug Version: 157.1K Code, 49.7K Data, 206.8K Total10033Current Release:10034Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total10035Debug Version: 157.3K Code, 49.8K Data, 207.1K Total10036100372) iASL Compiler/Disassembler and Tools:1003810039Fix build error under Bison-2.4.1004010041Disassembler: Enhanced FADT support. Added decoding of the Boot10042Architecture10043flags. Now decode all flags, regardless of the FADT version. Flag output10044includes the FADT version which first defined each flag.1004510046The iASL -g option now dumps the RSDT to a file (in addition to the FADT10047and10048DSDT). Windows only.1004910050----------------------------------------1005104 December 2008. Summary of changes for version 20081204:10052100531) ACPI CA Core Subsystem:1005410055The ACPICA Programmer Reference has been completely updated and revamped10056for10057this release. This includes updates to the external interfaces, OSL10058interfaces, the overview sections, and the debugger reference.1005910060Several new ACPICA interfaces have been implemented and documented in the10061programmer reference:10062AcpiReset - Writes the reset value to the FADT-defined reset register.10063AcpiDisableAllGpes - Disable all available GPEs.10064AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs.10065AcpiGetGpeDevice - Get the GPE block device associated with a GPE.10066AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs.10067AcpiRead - Low-level read ACPI register (was HwLowLevelRead.)10068AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.)1006910070Most of the public ACPI hardware-related interfaces have been moved to a10071new10072file, components/hardware/hwxface.c1007310074Enhanced the FADT parsing and low-level ACPI register access: The ACPI10075register lengths within the FADT are now used, and the low level ACPI10076register access no longer hardcodes the ACPI register lengths. Given that10077there may be some risk in actually trusting the FADT register lengths, a10078run-10079time option was added to fall back to the default hardcoded lengths if10080the10081FADT proves to contain incorrect values - UseDefaultRegisterWidths. This10082option is set to true for now, and a warning is issued if a suspicious10083FADT10084register length is overridden with the default value.1008510086Fixed a reference count issue in NsRepairObject. This problem was10087introduced10088in version 20081031 as part of a fix to repair Buffer objects within10089Packages. Lin Ming.1009010091Added semaphore support to the Linux/Unix application OS-services layer10092(OSL). ACPICA BZ 448. Lin Ming.1009310094Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes10095will10096be implemented in the OSL, or will binary semaphores be used instead.1009710098Example Code and Data Size: These are the sizes for the OS-independent10099acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10100debug version of the code includes the debug output trace mechanism and10101has a10102much larger code and data size.1010310104Previous Release:10105Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total10106Debug Version: 156.4K Code, 49.4K Data, 205.8K Total10107Current Release:10108Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total10109Debug Version: 157.1K Code, 49.7K Data, 206.8K Total10110101112) iASL Compiler/Disassembler and Tools:1011210113iASL: Completed the '-e' option to include additional ACPI tables in10114order10115to10116aid with disassembly and External statement generation. ACPICA BZ 742.10117Lin10118Ming.1011910120iASL: Removed the "named object in while loop" error. The compiler cannot10121determine how many times a loop will execute. ACPICA BZ 730.1012210123Disassembler: Implemented support for FADT revision 2 (MS extension).10124ACPICA10125BZ 743.1012610127Disassembler: Updates for several ACPI data tables (HEST, EINJ, and10128MCFG).1012910130----------------------------------------1013131 October 2008. Summary of changes for version 20081031:10132101331) ACPI CA Core Subsystem:1013410135Restructured the ACPICA header files into public/private. acpi.h now10136includes10137only the "public" acpica headers. All other acpica headers are "private"10138and10139should not be included by acpica users. One new file, accommon.h is used10140to10141include the commonly used private headers for acpica code generation.10142Future10143plans include moving all private headers to a new subdirectory.1014410145Implemented an automatic Buffer->String return value conversion for10146predefined ACPI methods. For these methods (such as _BIF), added10147automatic10148conversion for return objects that are required to be a String, but a10149Buffer10150was found instead. This can happen when reading string battery data from10151an10152operation region, because it used to be difficult to convert the data10153from10154buffer to string from within the ASL. Ensures that the host OS is10155provided10156with a valid null-terminated string. Linux BZ 11822.1015710158Updated the FACS waking vector interfaces. Split10159AcpiSetFirmwareWakingVector10160into two: one for the 32-bit vector, another for the 64-bit vector. This10161is10162required because the host OS must setup the wake much differently for10163each10164vector (real vs. protected mode, etc.) and the interface itself should10165not10166be10167deciding which vector to use. Also, eliminated the10168GetFirmwareWakingVector10169interface, as it served no purpose (only the firmware reads the vector,10170OS10171only writes the vector.) ACPICA BZ 731.1017210173Implemented a mechanism to escape infinite AML While() loops. Added a10174loop10175counter to force exit from AML While loops if the count becomes too10176large.10177This can occur in poorly written AML when the hardware does not respond10178within a while loop and the loop does not implement a timeout. The10179maximum10180loop count is configurable. A new exception code is returned when a loop10181is10182broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore.1018310184Optimized the execution of AML While loops. Previously, a control state10185object was allocated and freed for each execution of the loop. The10186optimization is to simply reuse the control state for each iteration.10187This10188speeds up the raw loop execution time by about 5%.1018910190Enhanced the implicit return mechanism. For Windows compatibility, return10191an10192implicit integer of value zero for methods that contain no executable10193code.10194Such methods are seen in the field as stubs (presumably), and can cause10195drivers to fail if they expect a return value. Lin Ming.1019610197Allow multiple backslashes as root prefixes in namepaths. In a fully10198qualified namepath, allow multiple backslash prefixes. This can happen10199(and10200is seen in the field) because of the use of a double-backslash in strings10201(since backslash is the escape character) causing confusion. ACPICA BZ1020273910203Lin Ming.1020410205Emit a warning if two different FACS or DSDT tables are discovered in the10206FADT. Checks if there are two valid but different addresses for the FACS10207and10208DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.)1020910210Consolidated the method argument count validation code. Merged the code10211that10212validates control method argument counts into the predefined validation10213module. Eliminates possible multiple warnings for incorrect argument10214counts.1021510216Implemented ACPICA example code. Includes code for ACPICA initialization,10217handler installation, and calling a control method. Available at10218source/tools/examples.1021910220Added a global pointer for FACS table to simplify internal FACS access.10221Use10222the global pointer instead of using AcpiGetTableByIndex for each FACS10223access.10224This simplifies the code for the Global Lock and the Firmware Waking10225Vector(s).1022610227Example Code and Data Size: These are the sizes for the OS-independent10228acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10229debug version of the code includes the debug output trace mechanism and10230has a10231much larger code and data size.1023210233Previous Release:10234Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total10235Debug Version: 155.8K Code, 49.1K Data, 204.9K Total10236Current Release:10237Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total10238Debug Version: 156.4K Code, 49.4K Data, 205.8K Total10239102402) iASL Compiler/Disassembler and Tools:1024110242iASL: Improved disassembly of external method calls. Added the -e option10243to10244allow the inclusion of additional ACPI tables to help with the10245disassembly10246of10247method invocations and the generation of external declarations during the10248disassembly. Certain external method invocations cannot be disassembled10249properly without the actual declaration of the method. Use the -e option10250to10251include the table where the external method(s) are actually declared.10252Most10253useful for disassembling SSDTs that make method calls back to the master10254DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl10255-d10256-e dsdt.aml ssdt1.aml1025710258iASL: Fix to allow references to aliases within ASL namepaths. Fixes a10259problem where the use of an alias within a namepath would result in a not10260found error or cause the compiler to fault. Also now allows forward10261references from the Alias operator itself. ACPICA BZ 738.1026210263----------------------------------------1026426 September 2008. Summary of changes for version 20080926:10265102661) ACPI CA Core Subsystem:1026710268Designed and implemented a mechanism to validate predefined ACPI methods10269and10270objects. This code validates the predefined ACPI objects (objects whose10271names10272start with underscore) that appear in the namespace, at the time they are10273evaluated. The argument count and the type of the returned object are10274validated against the ACPI specification. The purpose of this validation10275is10276to detect problems with the BIOS-implemented predefined ACPI objects10277before10278the results are returned to the ACPI-related drivers. Future enhancements10279may10280include actual repair of incorrect return objects where possible. Two new10281files are nspredef.c and acpredef.h.1028210283Fixed a fault in the AML parser if a memory allocation fails during the10284Op10285completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492.1028610287Fixed an issue with implicit return compatibility. This change improves10288the10289implicit return mechanism to be more compatible with the MS interpreter.10290Lin10291Ming, ACPICA BZ 349.1029210293Implemented support for zero-length buffer-to-string conversions. Allow10294zero10295length strings during interpreter buffer-to-string conversions. For10296example,10297during the ToDecimalString and ToHexString operators, as well as implicit10298conversions. Fiodor Suietov, ACPICA BZ 585.1029910300Fixed two possible memory leaks in the error exit paths of10301AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions10302are10303similar in that they use a stack of state objects in order to eliminate10304recursion. The stack must be fully unwound and deallocated if an error10305occurs. Lin Ming. ACPICA BZ 383.1030610307Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the10308global10309ACPI register table. This bit does not exist and is unused. Lin Ming, Bob10310Moore ACPICA BZ 442.1031110312Removed the obsolete version number in module headers. Removed the10313"$Revision" number that appeared in each module header. This version10314number10315was useful under SourceSafe and CVS, but has no meaning under git. It is10316not10317only incorrect, it could also be misleading.1031810319Example Code and Data Size: These are the sizes for the OS-independent10320acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10321debug version of the code includes the debug output trace mechanism and10322has a10323much larger code and data size.1032410325Previous Release:10326Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10327Debug Version: 153.7K Code, 48.2K Data, 201.9K Total10328Current Release:10329Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total10330Debug Version: 155.8K Code, 49.1K Data, 204.9K Total1033110332----------------------------------------1033329 August 2008. Summary of changes for version 20080829:10334103351) ACPI CA Core Subsystem:1033610337Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type10338Reference. Changes include the elimination of cheating on the Object10339field10340for the DdbHandle subtype, addition of a reference class field to10341differentiate the various reference types (instead of an AML opcode), and10342the10343cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 7231034410345Reduce an error to a warning for an incorrect method argument count.10346Previously aborted with an error if too few arguments were passed to a10347control method via the external ACPICA interface. Now issue a warning10348instead10349and continue. Handles the case where the method inadvertently declares10350too10351many arguments, but does not actually use the extra ones. Applies mainly10352to10353the predefined methods. Lin Ming. Linux BZ 11032.1035410355Disallow the evaluation of named object types with no intrinsic value.10356Return10357AE_TYPE for objects that have no value and therefore evaluation is10358undefined:10359Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation10360of10361these types were allowed, but an exception would be generated at some10362point10363during the evaluation. Now, the error is generated up front.1036410365Fixed a possible memory leak in the AcpiNsGetExternalPathname function10366(nsnames.c). Fixes a leak in the error exit path.1036710368Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These10369debug10370levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and10371ACPI_EXCEPTION10372interfaces. Also added ACPI_DB_EVENTS to correspond with the existing10373ACPI_LV_EVENTS.1037410375Removed obsolete and/or unused exception codes from the acexcep.h header.10376There is the possibility that certain device drivers may be affected if10377they10378use any of these exceptions.1037910380The ACPICA documentation has been added to the public git source tree,10381under10382acpica/documents. Included are the ACPICA programmer reference, the iASL10383compiler reference, and the changes.txt release logfile.1038410385Example Code and Data Size: These are the sizes for the OS-independent10386acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10387debug version of the code includes the debug output trace mechanism and10388has a10389much larger code and data size.1039010391Previous Release:10392Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10393Debug Version: 153.9K Code, 48.4K Data, 202.3K Total10394Current Release:10395Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10396Debug Version: 153.7K Code, 48.2K Data, 201.9K Total10397103982) iASL Compiler/Disassembler and Tools:1039910400Allow multiple argument counts for the predefined _SCP method. ACPI 3.010401defines _SCP with 3 arguments. Previous versions defined it with only 110402argument. iASL now allows both definitions.1040310404iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for10405zero-10406length subtables when disassembling ACPI tables. Also fixed a couple of10407errors where a full 16-bit table type field was not extracted from the10408input10409properly.1041010411acpisrc: Improve comment counting mechanism for generating source code10412statistics. Count first and last lines of multi-line comments as10413whitespace,10414not comment lines. Handle Linux legal header in addition to standard10415acpica10416header.1041710418----------------------------------------104191042029 July 2008. Summary of changes for version 20080729:10421104221) ACPI CA Core Subsystem:1042310424Fix a possible deadlock in the GPE dispatch. Remove call to10425AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will10426attempt10427to acquire the GPE lock but can deadlock since the GPE lock is already10428held10429at dispatch time. This code was introduced in version 20060831 as a10430response10431to Linux BZ 6881 and has since been removed from Linux.1043210433Add a function to dereference returned reference objects. Examines the10434return10435object from a call to AcpiEvaluateObject. Any Index or RefOf references10436are10437automatically dereferenced in an attempt to return something useful10438(these10439reference types cannot be converted into an external ACPI_OBJECT.)10440Provides10441MS compatibility. Lin Ming, Bob Moore. Linux BZ 111051044210443x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new10444subtables for the MADT and one new subtable for the SRAT. Includes10445disassembler and AcpiSrc support. Data from the Intel 64 Architecture10446x2APIC10447Specification, June 2008.1044810449Additional error checking for pathname utilities. Add error check after10450all10451calls to AcpiNsGetPathnameLength. Add status return from10452AcpiNsBuildExternalPath and check after all calls. Add parameter10453validation10454to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar.1045510456Return status from the global init function AcpiUtGlobalInitialize. This10457is10458used by both the kernel subsystem and the utilities such as iASL10459compiler.10460The function could possibly fail when the caches are initialized. Yang10461Yi.1046210463Add a function to decode reference object types to strings. Created for10464improved error messages.1046510466Improve object conversion error messages. Better error messages during10467object10468conversion from internal to the external ACPI_OBJECT. Used for external10469calls10470to AcpiEvaluateObject.1047110472Example Code and Data Size: These are the sizes for the OS-independent10473acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10474debug version of the code includes the debug output trace mechanism and10475has a10476much larger code and data size.1047710478Previous Release:10479Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total10480Debug Version: 153.5K Code, 48.2K Data, 201.7K Total10481Current Release:10482Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total10483Debug Version: 153.9K Code, 48.4K Data, 202.3K Total10484104852) iASL Compiler/Disassembler and Tools:1048610487Debugger: fix a possible hang when evaluating non-methods. Fixes a10488problem10489introduced in version 20080701. If the object being evaluated (via10490execute10491command) is not a method, the debugger can hang while trying to obtain10492non-10493existent parameters.1049410495iASL: relax error for using reserved "_T_x" identifiers. These names can10496appear in a disassembled ASL file if they were emitted by the original10497compiler. Instead of issuing an error or warning and forcing the user to10498manually change these names, issue a remark instead.1049910500iASL: error if named object created in while loop. Emit an error if any10501named10502object is created within a While loop. If allowed, this code will10503generate10504a10505run-time error on the second iteration of the loop when an attempt is10506made10507to10508create the same named object twice. ACPICA bugzilla 730.1050910510iASL: Support absolute pathnames for include files. Add support for10511absolute10512pathnames within the Include operator. previously, only relative10513pathnames10514were supported.1051510516iASL: Enforce minimum 1 interrupt in interrupt macro and Resource10517Descriptor.10518The ACPI spec requires one interrupt minimum. BZ 4231051910520iASL: Handle a missing ResourceSource arg, with a present SourceIndex.10521Handles the case for the Interrupt Resource Descriptor where10522the ResourceSource argument is omitted but ResourceSourceIndex10523is present. Now leave room for the Index. BZ 4261052410525iASL: Prevent error message if CondRefOf target does not exist. Fixes10526cases10527where an error message is emitted if the target does not exist. BZ 5161052810529iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option10530(get ACPI tables on Windows). This was apparently broken in version1053120070919.1053210533AcpiXtract: Handle EOF while extracting data. Correctly handle the case10534where10535the EOF happens immediately after the last table in the input file. Print10536completion message. Previously, no message was displayed in this case.1053710538----------------------------------------1053901 July 2008. Summary of changes for version 20080701:10540105410) Git source tree / acpica.org1054210543Fixed a problem where a git-clone from http would not transfer the entire10544source tree.10545105461) ACPI CA Core Subsystem:1054710548Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one10549enable bit. Now performs a read-change-write of the enable register10550instead10551of simply writing out the cached enable mask. This will prevent10552inadvertent10553enabling of GPEs if a rogue GPE is received during initialization (before10554GPE10555handlers are installed.)1055610557Implemented a copy for dynamically loaded tables. Previously, dynamically10558loaded tables were simply mapped - but on some machines this memory is10559corrupted after suspend. Now copy the table to a local buffer. For the10560OpRegion case, added checksum verify. Use the table length from the table10561header, not the region length. For the Buffer case, use the table length10562also. Dennis Noordsij, Bob Moore. BZ 107341056310564Fixed a problem where the same ACPI table could not be dynamically loaded10565and10566unloaded more than once. Without this change, a table cannot be loaded10567again10568once it has been loaded/unloaded one time. The current mechanism does not10569unregister a table upon an unload. During a load, if the same table is10570found,10571this no longer returns an exception. BZ 7221057210573Fixed a problem where the wrong descriptor length was calculated for the10574EndTag descriptor in 64-bit mode. The "minimal" descriptors such as10575EndTag10576are calculated as 12 bytes long, but the actual length in the internal10577descriptor is 16 because of the round-up to 8 on the 64-bit build.10578Reported10579by Linn Crosetto. BZ 7281058010581Fixed a possible memory leak in the Unload operator. The DdbHandle10582returned10583by Load() did not have its reference count decremented during unload,10584leading10585to a memory leak. Lin Ming. BZ 7271058610587Fixed a possible memory leak when deleting thermal/processor objects. Any10588associated notify handlers (and objects) were not being deleted. Fiodor10589Suietov. BZ 5061059010591Fixed the ordering of the ASCII names in the global mutex table to match10592the10593actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug10594only.10595Vegard Nossum. BZ 7261059610597Enhanced the AcpiGetObjectInfo interface to return the number of required10598arguments if the object is a control method. Added this call to the10599debugger10600so the proper number of default arguments are passed to a method. This10601prevents a warning when executing methods from AcpiExec.1060210603Added a check for an invalid handle in AcpiGetObjectInfo. Return10604AE_BAD_PARAMETER if input handle is invalid. BZ 4741060510606Fixed an extraneous warning from exconfig.c on the 64-bit build.1060710608Example Code and Data Size: These are the sizes for the OS-independent10609acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10610debug version of the code includes the debug output trace mechanism and10611has a10612much larger code and data size.1061310614Previous Release:10615Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total10616Debug Version: 153.0K Code, 48.2K Data, 201.2K Total10617Current Release:10618Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total10619Debug Version: 153.5K Code, 48.2K Data, 201.7K Total10620106212) iASL Compiler/Disassembler and Tools:1062210623iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both10624resource descriptor names.1062510626iASL: Detect invalid ASCII characters in input (windows version). Removed10627the10628"-CF" flag from the flex compile, enables correct detection of non-ASCII10629characters in the input. BZ 4411063010631iASL: Eliminate warning when result of LoadTable is not used. Eliminate10632the10633"result of operation not used" warning when the DDB handle returned from10634LoadTable is not used. The warning is not needed. BZ 5901063510636AcpiExec: Add support for dynamic table load/unload. Now calls _CFG10637method10638to10639pass address of table to the AML. Added option to disable OpRegion10640simulation10641to allow creation of an OpRegion with a real address that was passed to10642_CFG.10643All of this allows testing of the Load and Unload operators from10644AcpiExec.1064510646Debugger: update tables command for unloaded tables. Handle unloaded10647tables10648and use the standard table header output routine.1064910650----------------------------------------1065109 June 2008. Summary of changes for version 20080609:10652106531) ACPI CA Core Subsystem:1065410655Implemented a workaround for reversed _PRT entries. A significant number10656of10657BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This10658change dynamically detects and repairs this problem. Provides10659compatibility10660with MS ACPI. BZ 68591066110662Simplified the internal ACPI hardware interfaces to eliminate the locking10663flag parameter from Register Read/Write. Added a new external interface,10664AcpiGetRegisterUnlocked.1066510666Fixed a problem where the invocation of a GPE control method could hang.10667This10668was a regression introduced in 20080514. The new method argument count10669validation mechanism can enter an infinite loop when a GPE method is10670dispatched. Problem fixed by removing the obsolete code that passed GPE10671block10672information to the notify handler via the control method parameter10673pointer.1067410675Fixed a problem where the _SST execution status was incorrectly returned10676to10677the caller of AcpiEnterSleepStatePrep. This was a regression introduced10678in1067920080514. _SST is optional and a NOT_FOUND exception should never be10680returned. BZ 7161068110682Fixed a problem where a deleted object could be accessed from within the10683AML10684parser. This was a regression introduced in version 20080123 as a fix for10685the10686Unload operator. Lin Ming. BZ 106691068710688Cleaned up the debug operand dump mechanism. Eliminated unnecessary10689operands10690and eliminated the use of a negative index in a loop. Operands are now10691displayed in the correct order, not backwards. This also fixes a10692regression10693introduced in 20080514 on 64-bit systems where the elimination of10694ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ106957151069610697Fixed a possible memory leak in EvPciConfigRegionSetup where the error10698exit10699path did not delete a locally allocated structure.1070010701Updated definitions for the DMAR and SRAT tables to synchronize with the10702current specifications. Includes disassembler support.1070310704Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect10705loop termination value was used. Loop terminated on iteration early,10706missing10707one mutex. Linn Crosetto1070810709Example Code and Data Size: These are the sizes for the OS-independent10710acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10711debug version of the code includes the debug output trace mechanism and10712has a10713much larger code and data size.1071410715Previous Release:10716Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total10717Debug Version: 153.3K Code, 48.3K Data, 201.6K Total10718Current Release:10719Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total10720Debug Version: 153.0K Code, 48.2K Data, 201.2K Total10721107222) iASL Compiler/Disassembler and Tools:1072310724Disassembler: Implemented support for EisaId() within _CID objects. Now10725disassemble integer _CID objects back to EisaId invocations, including10726multiple integers within _CID packages. Includes single-step support for10727debugger also.1072810729Disassembler: Added support for DMAR and SRAT table definition changes.1073010731----------------------------------------1073214 May 2008. Summary of changes for version 20080514:10733107341) ACPI CA Core Subsystem:1073510736Fixed a problem where GPEs were enabled too early during the ACPICA10737initialization. This could lead to "handler not installed" errors on some10738machines. Moved GPE enable until after _REG/_STA/_INI methods are run.10739This10740ensures that all operation regions and devices throughout the namespace10741have10742been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916.1074310744Implemented a change to the enter sleep code. Moved execution of the _GTS10745method to just before setting sleep enable bit. The execution was moved10746from10747AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed10748immediately before the SLP_EN bit is set, as per the ACPI specification.10749Luming Yu, BZ 1653.1075010751Implemented a fix to disable unknown GPEs (2nd version). Now always10752disable10753the GPE, even if ACPICA thinks that that it is already disabled. It is10754possible that the AML or some other code has enabled the GPE unbeknownst10755to10756the ACPICA code.1075710758Fixed a problem with the Field operator where zero-length fields would10759return10760an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length10761ASL10762field declarations in Field(), BankField(), and IndexField(). BZ 10606.1076310764Implemented a fix for the Load operator, now load the table at the10765namespace10766root. This reverts a change introduced in version 20071019. The table is10767now10768loaded at the namespace root even though this goes against the ACPI10769specification. This provides compatibility with other ACPI10770implementations.10771The ACPI specification will be updated to reflect this in ACPI 4.0. Lin10772Ming.1077310774Fixed a problem where ACPICA would not Load() tables with unusual10775signatures.10776Now ignore ACPI table signature for Load() operator. Only "SSDT" is10777acceptable to the ACPI spec, but tables are seen with OEMx and null sigs.10778Therefore, signature validation is worthless. Apparently MS ACPI accepts10779such10780signatures, ACPICA must be compatible. BZ 10454.1078110782Fixed a possible negative array index in AcpiUtValidateException. Added10783NULL10784fields to the exception string arrays to eliminate a -1 subtraction on10785the10786SubStatus field.1078710788Updated the debug tracking macros to reduce overall code and data size.10789Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings10790instead of pointers to static strings. Jan Beulich and Bob Moore.1079110792Implemented argument count checking in control method invocation via10793AcpiEvaluateObject. Now emit an error if too few arguments, warning if10794too10795many. This applies only to extern programmatic control method execution,10796not10797method-to-method calls within the AML. Lin Ming.1079810799Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is10800no10801longer needed, especially with the removal of 16-bit support. It was10802replaced10803mostly with UINT32, but also ACPI_SIZE where a type that changes 32/6410804bit10805on1080632/64-bit platforms is required.1080710808Added the C const qualifier for appropriate string constants -- mostly10809MODULE_NAME and printf format strings. Jan Beulich.1081010811Example Code and Data Size: These are the sizes for the OS-independent10812acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10813debug version of the code includes the debug output trace mechanism and10814has a10815much larger code and data size.1081610817Previous Release:10818Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total10819Debug Version: 159.4K Code, 64.4K Data, 223.8K Total10820Current Release:10821Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total10822Debug Version: 153.3K Code, 48.3K Data, 201.6K Total10823108242) iASL Compiler/Disassembler and Tools:1082510826Implemented ACPI table revision ID validation in the disassembler. Zero10827is10828always invalid. For DSDTs, the ID controls the interpreter integer width.10829110830means 32-bit and this is unusual. 2 or greater is 64-bit.1083110832----------------------------------------1083321 March 2008. Summary of changes for version 20080321:10834108351) ACPI CA Core Subsystem:1083610837Implemented an additional change to the GPE support in order to suppress10838spurious or stray GPEs. The AcpiEvDisableGpe function will now10839permanently10840disable incoming GPEs that are neither enabled nor disabled -- meaning10841that10842the GPE is unknown to the system. This should prevent future interrupt10843floods10844from that GPE. BZ 6217 (Zhang Rui)1084510846Fixed a problem where NULL package elements were not returned to the10847AcpiEvaluateObject interface correctly. The element was simply ignored10848instead of returning a NULL ACPI_OBJECT package element, potentially10849causing10850a buffer overflow and/or confusing the caller who expected a fixed number10851of10852elements. BZ 10132 (Lin Ming, Bob Moore)1085310854Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word,10855Dword,10856Qword), Field, BankField, and IndexField operators when invoked from10857inside10858an executing control method. In this case, these operators created10859namespace10860nodes that were incorrectly left marked as permanent nodes instead of10861temporary nodes. This could cause a problem if there is race condition10862between an exiting control method and a running namespace walk. (Reported10863by10864Linn Crosetto)1086510866Fixed a problem where the CreateField and CreateXXXField operators would10867incorrectly allow duplicate names (the name of the field) with no10868exception10869generated.1087010871Implemented several changes for Notify handling. Added support for new10872Notify10873values (ACPI 2.0+) and improved the Notify debug output. Notify on10874PowerResource objects is no longer allowed, as per the ACPI10875specification.10876(Bob Moore, Zhang Rui)1087710878All Reference Objects returned via the AcpiEvaluateObject interface are10879now10880marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved10881for10882NULL objects - either NULL package elements or unresolved named10883references.1088410885Fixed a problem where an extraneous debug message was produced for10886package10887objects (when debugging enabled). The message "Package List length larger10888than NumElements count" is now produced in the correct case, and is now10889an10890error message rather than a debug message. Added a debug message for the10891opposite case, where NumElements is larger than the Package List (the10892package10893will be padded out with NULL elements as per the ACPI spec.)1089410895Implemented several improvements for the output of the ASL "Debug" object10896to10897clarify and keep all data for a given object on one output line.1089810899Fixed two size calculation issues with the variable-length Start10900Dependent10901resource descriptor.1090210903Example Code and Data Size: These are the sizes for the OS-independent10904acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10905debug version of the code includes the debug output trace mechanism and10906has10907a much larger code and data size.1090810909Previous Release:10910Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total10911Debug Version: 158.9K Code, 64.0K Data, 222.9K Total10912Current Release:10913Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total10914Debug Version: 159.4K Code, 64.4K Data, 223.8K Total10915109162) iASL Compiler/Disassembler and Tools:1091710918Fixed a problem with the use of the Switch operator where execution of10919the10920containing method by multiple concurrent threads could cause an10921AE_ALREADY_EXISTS exception. This is caused by the fact that there is no10922actual Switch opcode, it must be simulated with local named temporary10923variables and if/else pairs. The solution chosen was to mark any method10924that10925uses Switch as Serialized, thus preventing multiple thread entries. BZ10926469.1092710928----------------------------------------1092913 February 2008. Summary of changes for version 20080213:10930109311) ACPI CA Core Subsystem:1093210933Implemented another MS compatibility design change for GPE/Notify10934handling.10935GPEs are now cleared/enabled asynchronously to allow all pending notifies10936to10937complete first. It is expected that the OSL will queue the enable request10938behind all pending notify requests (may require changes to the local host10939OSL10940in AcpiOsExecute). Alexey Starikovskiy.1094110942Fixed a problem where buffer and package objects passed as arguments to a10943control method via the external AcpiEvaluateObject interface could cause10944an10945AE_AML_INTERNAL exception depending on the order and type of operators10946executed by the target control method.1094710948Fixed a problem where resource descriptor size optimization could cause a10949problem when a _CRS resource template is passed to a _SRS method. The10950_SRS10951resource template must use the same descriptors (with the same size) as10952returned from _CRS. This change affects the following resource10953descriptors:10954IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ109559487)1095610957Fixed a problem where a CopyObject to RegionField, BankField, and10958IndexField10959objects did not perform an implicit conversion as it should. These types10960must10961retain their initial type permanently as per the ACPI specification.10962However,10963a CopyObject to all other object types should not perform an implicit10964conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 3881096510966Fixed a problem with the AcpiGetDevices interface where the mechanism to10967match device CIDs did not examine the entire list of available CIDs, but10968instead aborted on the first non-matching CID. Andrew Patterson.1096910970Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro10971was10972inadvertently changed to return a 16-bit value instead of a 32-bit value,10973truncating the upper dword of a 64-bit value. This macro is only used to10974display debug output, so no incorrect calculations were made. Also,10975reimplemented the macro so that a 64-bit shift is not performed by10976inefficient compilers.1097710978Added missing va_end statements that should correspond with each va_start10979statement.1098010981Example Code and Data Size: These are the sizes for the OS-independent10982acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The10983debug version of the code includes the debug output trace mechanism and10984has10985a much larger code and data size.1098610987Previous Release:10988Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total10989Debug Version: 159.0K Code, 63.8K Data, 222.8K Total10990Current Release:10991Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total10992Debug Version: 158.9K Code, 64.0K Data, 222.9K Total10993109942) iASL Compiler/Disassembler and Tools:1099510996Implemented full disassembler support for the following new ACPI tables:10997BERT, EINJ, and ERST. Implemented partial disassembler support for the10998complicated HEST table. These tables support the Windows Hardware Error10999Architecture (WHEA).1100011001----------------------------------------1100223 January 2008. Summary of changes for version 20080123:11003110041) ACPI CA Core Subsystem:1100511006Added the 2008 copyright to all module headers and signons. This affects11007virtually every file in the ACPICA core subsystem, the iASL compiler, and11008the tools/utilities.1100911010Fixed a problem with the SizeOf operator when used with Package and11011Buffer11012objects. These objects have deferred execution for some arguments, and11013the11014execution is now completed before the SizeOf is executed. This problem11015caused11016unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore)11017BZ1101895581101911020Implemented an enhancement to the interpreter "slack mode". In the11021absence11022of11023an explicit return or an implicitly returned object from the last11024executed11025opcode, a control method will now implicitly return an integer of value 011026for11027Microsoft compatibility. (Lin Ming) BZ 3921102811029Fixed a problem with the Load operator where an exception was not11030returned11031in11032the case where the table is already loaded. (Lin Ming) BZ 4631103311034Implemented support for the use of DDBHandles as an Indexed Reference, as11035per11036the ACPI spec. (Lin Ming) BZ 4861103711038Implemented support for UserTerm (Method invocation) for the Unload11039operator11040as per the ACPI spec. (Lin Ming) BZ 5801104111042Fixed a problem with the LoadTable operator where the OemId and11043OemTableId11044input strings could cause unexpected failures if they were shorter than11045the11046maximum lengths allowed. (Lin Ming, Bob Moore) BZ 5761104711048Implemented support for UserTerm (Method invocation) for the Unload11049operator11050as per the ACPI spec. (Lin Ming) BZ 5801105111052Implemented header file support for new ACPI tables - BERT, ERST, EINJ,11053HEST,11054IBFT, UEFI, WDAT. Disassembler support is forthcoming.1105511056Example Code and Data Size: These are the sizes for the OS-independent11057acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11058debug version of the code includes the debug output trace mechanism and11059has11060a much larger code and data size.1106111062Previous Release:11063Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total11064Debug Version: 158.6K Code, 63.8K Data, 222.4K Total11065Current Release:11066Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total11067Debug Version: 159.0K Code, 63.8K Data, 222.8K Total11068110692) iASL Compiler/Disassembler and Tools:1107011071Implemented support in the disassembler for checksum validation on11072incoming11073binary DSDTs and SSDTs. If incorrect, a message is displayed within the11074table11075header dump at the start of the disassembly.1107611077Implemented additional debugging information in the namespace listing11078file11079created during compilation. In addition to the namespace hierarchy, the11080full11081pathname to each namespace object is displayed.1108211083Fixed a problem with the disassembler where invalid ACPI tables could11084cause11085faults or infinite loops.1108611087Fixed an unexpected parse error when using the optional "parameter types"11088list in a control method declaration. (Lin Ming) BZ 3971108911090Fixed a problem where two External declarations with the same name did11091not11092cause an error (Lin Ming) BZ 5091109311094Implemented support for full TermArgs (adding Argx, Localx and method11095invocation) for the ParameterData parameter to the LoadTable operator.11096(Lin11097Ming) BZ 583,5871109811099----------------------------------------1110019 December 2007. Summary of changes for version 20071219:11101111021) ACPI CA Core Subsystem:1110311104Implemented full support for deferred execution for the TermArg string11105arguments for DataTableRegion. This enables forward references and full11106operand resolution for the three string arguments. Similar to11107OperationRegion11108deferred argument execution.) Lin Ming. BZ 4301110911110Implemented full argument resolution support for the BankValue argument11111to11112BankField. Previously, only constants were supported, now any TermArg may11113be11114used. Lin Ming BZ 387, 3931111511116Fixed a problem with AcpiGetDevices where the search of a branch of the11117device tree could be terminated prematurely. In accordance with the ACPI11118specification, the search down the current branch is terminated if a11119device11120is both not present and not functional (instead of just not present.)11121Yakui11122Zhao.1112311124Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly11125if11126the underlying AML code changed the GPE enable registers. Now, any11127unknown11128incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately11129disabled11130instead of simply ignored. Rui Zhang.1113111132Fixed a problem with Index Fields where the Index register was11133incorrectly11134limited to a maximum of 32 bits. Now any size may be used.1113511136Fixed a couple memory leaks associated with "implicit return" objects11137when11138the AML Interpreter slack mode is enabled. Lin Ming BZ 3491113911140Example Code and Data Size: These are the sizes for the OS-independent11141acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11142debug version of the code includes the debug output trace mechanism and11143has11144a much larger code and data size.1114511146Previous Release:11147Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total11148Debug Version: 157.9K Code, 63.6K Data, 221.5K Total11149Current Release:11150Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total11151Debug Version: 158.6K Code, 63.8K Data, 222.4K Total1115211153----------------------------------------1115414 November 2007. Summary of changes for version 20071114:11155111561) ACPI CA Core Subsystem:1115711158Implemented event counters for each of the Fixed Events, the ACPI SCI11159(interrupt) itself, and control methods executed. Named11160AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively.11161These11162should be useful for debugging and statistics.1116311164Implemented a new external interface, AcpiGetStatistics, to retrieve the11165contents of the various event counters. Returns the current values for11166AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and11167AcpiMethodCount. The interface can be expanded in the future if new11168counters11169are added. Device drivers should use this interface rather than access11170the11171counters directly.1117211173Fixed a problem with the FromBCD and ToBCD operators. With some11174compilers,11175the ShortDivide function worked incorrectly, causing problems with the11176BCD11177functions with large input values. A truncation from 64-bit to 32-bit11178inadvertently occurred. Internal BZ 435. Lin Ming1117911180Fixed a problem with Index references passed as method arguments.11181References11182passed as arguments to control methods were dereferenced immediately11183(before11184control was passed to the called method). The references are now11185correctly11186passed directly to the called method. BZ 5389. Lin Ming1118711188Fixed a problem with CopyObject used in conjunction with the Index11189operator.11190The reference was incorrectly dereferenced before the copy. The reference11191is11192now correctly copied. BZ 5391. Lin Ming1119311194Fixed a problem with Control Method references within Package objects.11195These11196references are now correctly generated. This completes the package11197construction overhaul that began in version 20071019.1119811199Example Code and Data Size: These are the sizes for the OS-independent11200acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11201debug version of the code includes the debug output trace mechanism and11202has11203a much larger code and data size.1120411205Previous Release:11206Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total11207Debug Version: 157.2K Code, 63.4K Data, 220.6K Total11208Current Release:11209Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total11210Debug Version: 157.9K Code, 63.6K Data, 221.5K Total1121111212112132) iASL Compiler/Disassembler and Tools:1121411215The AcpiExec utility now installs handlers for all of the predefined11216Operation Region types. New types supported are: PCI_Config, CMOS, and11217PCIBARTarget.1121811219Fixed a problem with the 64-bit version of AcpiExec where the extended11220(64-11221bit) address fields for the DSDT and FACS within the FADT were not being11222used, causing truncation of the upper 32-bits of these addresses. Lin11223Ming11224and Bob Moore1122511226----------------------------------------1122719 October 2007. Summary of changes for version 20071019:11228112291) ACPI CA Core Subsystem:1123011231Fixed a problem with the Alias operator when the target of the alias is a11232named ASL operator that opens a new scope -- Scope, Device,11233PowerResource,11234Processor, and ThermalZone. In these cases, any children of the original11235operator could not be accessed via the alias, potentially causing11236unexpected11237AE_NOT_FOUND exceptions. (BZ 9067)1123811239Fixed a problem with the Package operator where all named references were11240created as object references and left otherwise unresolved. According to11241the11242ACPI specification, a Package can only contain Data Objects or references11243to11244control methods. The implication is that named references to Data Objects11245(Integer, Buffer, String, Package, BufferField, Field) should be resolved11246immediately upon package creation. This is the approach taken with this11247change. References to all other named objects (Methods, Devices, Scopes,11248etc.) are all now properly created as reference objects. (BZ 5328)1124911250Reverted a change to Notify handling that was introduced in version1125120070508. This version changed the Notify handling from asynchronous to11252fully synchronous (Device driver Notify handling with respect to the11253Notify11254ASL operator). It was found that this change caused more problems than it11255solved and was removed by most users.1125611257Fixed a problem with the Increment and Decrement operators where the type11258of11259the target object could be unexpectedly and incorrectly changed. (BZ 353)11260Lin Ming.1126111262Fixed a problem with the Load and LoadTable operators where the table11263location within the namespace was ignored. Instead, the table was always11264loaded into the root or current scope. Lin Ming.1126511266Fixed a problem with the Load operator when loading a table from a buffer11267object. The input buffer was prematurely zeroed and/or deleted. (BZ 577)1126811269Fixed a problem with the Debug object where a store of a DdbHandle11270reference11271object to the Debug object could cause a fault.1127211273Added a table checksum verification for the Load operator, in the case11274where11275the load is from a buffer. (BZ 578).1127611277Implemented additional parameter validation for the LoadTable operator.11278The11279length of the input strings SignatureString, OemIdString, and OemTableId11280are11281now checked for maximum lengths. (BZ 582) Lin Ming.1128211283Example Code and Data Size: These are the sizes for the OS-independent11284acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11285debug version of the code includes the debug output trace mechanism and11286has11287a much larger code and data size.1128811289Previous Release:11290Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total11291Debug Version: 156.7K Code, 63.2K Data, 219.9K Total11292Current Release:11293Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total11294Debug Version: 157.2K Code, 63.4K Data, 220.6K Total1129511296112972) iASL Compiler/Disassembler:1129811299Fixed a problem where if a single file was specified and the file did not11300exist, no error message was emitted. (Introduced with wildcard support in11301version 20070917.)1130211303----------------------------------------1130419 September 2007. Summary of changes for version 20070919:11305113061) ACPI CA Core Subsystem:1130711308Designed and implemented new external interfaces to install and remove11309handlers for ACPI table-related events. Current events that are defined11310are11311LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as11312they are dynamically loaded and unloaded. See AcpiInstallTableHandler and11313AcpiRemoveTableHandler. (Lin Ming and Bob Moore)1131411315Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag11316(acpi_serialized option on Linux) could cause some systems to hang during11317initialization. (Bob Moore) BZ 81711131811319Fixed a problem where objects of certain types (Device, ThermalZone,11320Processor, PowerResource) can be not found if they are declared and11321referenced from within the same control method (Lin Ming) BZ 3411132211323Example Code and Data Size: These are the sizes for the OS-independent11324acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11325debug version of the code includes the debug output trace mechanism and11326has11327a much larger code and data size.1132811329Previous Release:11330Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total11331Debug Version: 156.3K Code, 63.1K Data, 219.4K Total11332Current Release:11333Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total11334Debug Version: 156.7K Code, 63.2K Data, 219.9K Total1133511336113372) iASL Compiler/Disassembler:1133811339Implemented support to allow multiple files to be compiled/disassembled11340in11341a11342single invocation. This includes command line wildcard support for both11343the11344Windows and Unix versions of the compiler. This feature simplifies the11345disassembly and compilation of multiple ACPI tables in a single11346directory.1134711348----------------------------------------1134908 May 2007. Summary of changes for version 20070508:11350113511) ACPI CA Core Subsystem:1135211353Implemented a Microsoft compatibility design change for the handling of11354the11355Notify AML operator. Previously, notify handlers were dispatched and11356executed completely asynchronously in a deferred thread. The new design11357still executes the notify handlers in a different thread, but the11358original11359thread that executed the Notify() now waits at a synchronization point11360for11361the notify handler to complete. Some machines depend on a synchronous11362Notify11363operator in order to operate correctly.1136411365Implemented support to allow Package objects to be passed as method11366arguments to the external AcpiEvaluateObject interface. Previously, this11367would return the AE_NOT_IMPLEMENTED exception. This feature had not been11368implemented since there were no reserved control methods that required it11369until recently.1137011371Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs11372that11373contained invalid non-zero values in reserved fields could cause later11374failures because these fields have meaning in later revisions of the11375FADT.11376For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The11377fields11378are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.)1137911380Fixed a problem where the Global Lock handle was not properly updated if11381a11382thread that acquired the Global Lock via executing AML code then11383attempted11384to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by11385Joe11386Liu.1138711388Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list11389could be corrupted if the interrupt being removed was at the head of the11390list. Reported by Linn Crosetto.1139111392Example Code and Data Size: These are the sizes for the OS-independent11393acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11394debug version of the code includes the debug output trace mechanism and11395has11396a much larger code and data size.1139711398Previous Release:11399Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11400Debug Version: 155.9K Code, 63.1K Data, 219.0K Total11401Current Release:11402Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total11403Debug Version: 156.3K Code, 63.1K Data, 219.4K Total1140411405----------------------------------------1140620 March 2007. Summary of changes for version 20070320:11407114081) ACPI CA Core Subsystem:1140911410Implemented a change to the order of interpretation and evaluation of AML11411operand objects within the AML interpreter. The interpreter now evaluates11412operands in the order that they appear in the AML stream (and the11413corresponding ASL code), instead of in the reverse order (after the11414entire11415operand list has been parsed). The previous behavior caused several11416subtle11417incompatibilities with the Microsoft AML interpreter as well as being11418somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov.1141911420Implemented a change to the ACPI Global Lock support. All interfaces to11421the11422global lock now allow the same thread to acquire the lock multiple times.11423This affects the AcpiAcquireGlobalLock external interface to the global11424lock11425as well as the internal use of the global lock to support AML fields -- a11426control method that is holding the global lock can now simultaneously11427access11428AML fields that require global lock protection. Previously, in both11429cases,11430this would have resulted in an AE_ALREADY_ACQUIRED exception. The change11431to11432AcpiAcquireGlobalLock is of special interest to drivers for the Embedded11433Controller. There is no change to the behavior of the AML Acquire11434operator,11435as this can already be used to acquire a mutex multiple times by the same11436thread. BZ 8066. With assistance from Alexey Starikovskiy.1143711438Fixed a problem where invalid objects could be referenced in the AML11439Interpreter after error conditions. During operand evaluation, ensure11440that11441the internal "Return Object" field is cleared on error and only valid11442pointers are stored there. Caused occasional access to deleted objects11443that11444resulted in "large reference count" warning messages. Valery Podrezov.1144511446Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur11447on11448deeply nested control method invocations. BZ 7873, local BZ 487. Valery11449Podrezov.1145011451Fixed an internal problem with the handling of result objects on the11452interpreter result stack. BZ 7872. Valery Podrezov.1145311454Removed obsolete code that handled the case where AML_NAME_OP is the11455target11456of a reference (Reference.Opcode). This code was no longer necessary. BZ114577874. Valery Podrezov.1145811459Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This11460was11461a11462remnant from the previously discontinued 16-bit support.1146311464Example Code and Data Size: These are the sizes for the OS-independent11465acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11466debug version of the code includes the debug output trace mechanism and11467has11468a much larger code and data size.1146911470Previous Release:11471Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11472Debug Version: 155.8K Code, 63.3K Data, 219.1K Total11473Current Release:11474Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11475Debug Version: 155.9K Code, 63.1K Data, 219.0K Total1147611477----------------------------------------1147826 January 2007. Summary of changes for version 20070126:11479114801) ACPI CA Core Subsystem:1148111482Added the 2007 copyright to all module headers and signons. This affects11483virtually every file in the ACPICA core subsystem, the iASL compiler, and11484the utilities.1148511486Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable11487during a table load. A bad pointer was passed in the case where the DSDT11488is11489overridden, causing a fault in this case.1149011491Example Code and Data Size: These are the sizes for the OS-independent11492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11493debug version of the code includes the debug output trace mechanism and11494has11495a much larger code and data size.1149611497Previous Release:11498Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11499Debug Version: 155.8K Code, 63.3K Data, 219.1K Total11500Current Release:11501Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11502Debug Version: 155.8K Code, 63.3K Data, 219.1K Total1150311504----------------------------------------1150515 December 2006. Summary of changes for version 20061215:11506115071) ACPI CA Core Subsystem:1150811509Support for 16-bit ACPICA has been completely removed since it is no11510longer11511necessary and it clutters the code. All 16-bit macros, types, and11512conditional compiles have been removed, cleaning up and simplifying the11513code11514across the entire subsystem. DOS support is no longer needed since the11515bootable Linux firmware kit is now available.1151611517The handler for the Global Lock is now removed during AcpiTerminate to11518enable a clean subsystem restart, via the implementation of the11519AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz,11520HP)1152111522Implemented enhancements to the multithreading support within the11523debugger11524to enable improved multithreading debugging and evaluation of the11525subsystem.11526(Valery Podrezov)1152711528Debugger: Enhanced the Statistics/Memory command to emit the total11529(maximum)11530memory used during the execution, as well as the maximum memory consumed11531by11532each of the various object types. (Valery Podrezov)1153311534Example Code and Data Size: These are the sizes for the OS-independent11535acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11536debug version of the code includes the debug output trace mechanism and11537has11538a much larger code and data size.1153911540Previous Release:11541Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total11542Debug Version: 155.2K Code, 63.1K Data, 218.3K Total11543Current Release:11544Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total11545Debug Version: 155.8K Code, 63.3K Data, 219.1K Total1154611547115482) iASL Compiler/Disassembler and Tools:1154911550AcpiExec: Implemented a new option (-m) to display full memory use11551statistics upon subsystem/program termination. (Valery Podrezov)1155211553----------------------------------------1155409 November 2006. Summary of changes for version 20061109:11555115561) ACPI CA Core Subsystem:1155711558Optimized the Load ASL operator in the case where the source operand is11559an11560operation region. Simply map the operation region memory, instead of11561performing a bytewise read. (Region must be of type SystemMemory, see11562below.)1156311564Fixed the Load ASL operator for the case where the source operand is a11565region field. A buffer object is also allowed as the source operand. BZ115664801156711568Fixed a problem where the Load ASL operator allowed the source operand to11569be11570an operation region of any type. It is now restricted to regions of type11571SystemMemory, as per the ACPI specification. BZ 4811157211573Additional cleanup and optimizations for the new Table Manager code.1157411575AcpiEnable will now fail if all of the required ACPI tables are not11576loaded11577(FADT, FACS, DSDT). BZ 4771157811579Added #pragma pack(8/4) to acobject.h to ensure that the structures in11580this11581header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been11582manually optimized to be aligned and will not work if it is byte-packed.1158311584Example Code and Data Size: These are the sizes for the OS-independent11585acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11586debug version of the code includes the debug output trace mechanism and11587has11588a much larger code and data size.1158911590Previous Release:11591Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total11592Debug Version: 155.4K Code, 63.1K Data, 218.5K Total11593Current Release:11594Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total11595Debug Version: 155.2K Code, 63.1K Data, 218.3K Total1159611597115982) iASL Compiler/Disassembler and Tools:1159911600Fixed a problem where the presence of the _OSI predefined control method11601within complex expressions could cause an internal compiler error.1160211603AcpiExec: Implemented full region support for multiple address spaces.11604SpaceId is now part of the REGION object. BZ 4291160511606----------------------------------------1160711 October 2006. Summary of changes for version 20061011:11608116091) ACPI CA Core Subsystem:1161011611Completed an AML interpreter performance enhancement for control method11612execution. Previously a 2-pass parse/execution, control methods are now11613completely parsed and executed in a single pass. This improves overall11614interpreter performance by ~25%, reduces code size, and reduces CPU stack11615use. (Valery Podrezov + interpreter changes in version 20051202 that11616eliminated namespace loading during the pass one parse.)1161711618Implemented _CID support for PCI Root Bridge detection. If the _HID does11619not11620match the predefined PCI Root Bridge IDs, the _CID list (if present) is11621now11622obtained and also checked for an ID match.1162311624Implemented additional support for the PCI _ADR execution: upsearch until11625a11626device scope is found before executing _ADR. This allows PCI_Config11627operation regions to be declared locally within control methods11628underneath11629PCI device objects.1163011631Fixed a problem with a possible race condition between threads executing11632AcpiWalkNamespace and the AML interpreter. This condition was removed by11633modifying AcpiWalkNamespace to (by default) ignore all temporary11634namespace11635entries created during any concurrent control method execution. An11636additional namespace race condition is known to exist between11637AcpiWalkNamespace and the Load/Unload ASL operators and is still under11638investigation.1163911640Restructured the AML ParseLoop function, breaking it into several11641subfunctions in order to reduce CPU stack use and improve11642maintainability.11643(Mikhail Kouzmich)1164411645AcpiGetHandle: Fix for parameter validation to detect invalid11646combinations11647of prefix handle and pathname. BZ 4781164811649Example Code and Data Size: These are the sizes for the OS-independent11650acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11651debug version of the code includes the debug output trace mechanism and11652has11653a much larger code and data size.1165411655Previous Release:11656Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11657Debug Version: 154.6K Code, 63.0K Data, 217.6K Total11658Current Release:11659Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total11660Debug Version: 155.4K Code, 63.1K Data, 218.5K Total11661116622) iASL Compiler/Disassembler and Tools:1166311664Ported the -g option (get local ACPI tables) to the new ACPICA Table11665Manager11666to restore original behavior.1166711668----------------------------------------1166927 September 2006. Summary of changes for version 20060927:11670116711) ACPI CA Core Subsystem:1167211673Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister.11674These functions now use a spinlock for mutual exclusion and the interrupt11675level indication flag is not needed.1167611677Fixed a problem with the Global Lock where the lock could appear to be11678obtained before it is actually obtained. The global lock semaphore was11679inadvertently created with one unit instead of zero units. (BZ 464)11680Fiodor11681Suietov.1168211683Fixed a possible memory leak and fault in AcpiExResolveObjectToValue11684during11685a read from a buffer or region field. (BZ 458) Fiodor Suietov.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, 17.1K Data, 95.0K Total11695Debug Version: 154.7K Code, 63.0K Data, 217.7K Total11696Current Release:11697Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11698Debug Version: 154.6K Code, 63.0K Data, 217.6K Total1169911700117012) iASL Compiler/Disassembler and Tools:1170211703Fixed a compilation problem with the pre-defined Resource Descriptor11704field11705names where an "object does not exist" error could be incorrectly11706generated11707if the parent ResourceTemplate pathname places the template within a11708different namespace scope than the current scope. (BZ 7212)1170911710Fixed a problem where the compiler could hang after syntax errors11711detected11712in an ElseIf construct. (BZ 453)1171311714Fixed a problem with the AmlFilename parameter to the DefinitionBlock()11715operator. An incorrect output filename was produced when this parameter11716was11717a null string (""). Now, the original input filename is used as the AML11718output filename, with an ".aml" extension.1171911720Implemented a generic batch command mode for the AcpiExec utility11721(execute11722any AML debugger command) (Valery Podrezov).1172311724----------------------------------------1172512 September 2006. Summary of changes for version 20060912:11726117271) ACPI CA Core Subsystem:1172811729Enhanced the implementation of the "serialized mode" of the interpreter11730(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is11731specified, instead of creating a serialization semaphore per control11732method,11733the interpreter lock is simply no longer released before a blocking11734operation during control method execution. This effectively makes the AML11735Interpreter single-threaded. The overhead of a semaphore per-method is11736eliminated.1173711738Fixed a regression where an error was no longer emitted if a control11739method11740attempts to create 2 objects of the same name. This once again returns11741AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism11742that11743will dynamically serialize the control method to possible prevent future11744errors. (BZ 440)1174511746Integrated a fix for a problem with PCI Express HID detection in the PCI11747Config Space setup procedure. (BZ 7145)1174811749Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the11750AcpiHwInitialize function - the FADT registers are now validated when the11751table is loaded.1175211753Added two new warnings during FADT verification - 1) if the FADT is11754larger11755than the largest known FADT version, and 2) if there is a mismatch11756between11757a1175832-bit block address and the 64-bit X counterpart (when both are non-11759zero.)1176011761Example Code and Data Size: These are the sizes for the OS-independent11762acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11763debug version of the code includes the debug output trace mechanism and11764has11765a much larger code and data size.1176611767Previous Release:11768Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total11769Debug Version: 154.9K Code, 62.6K Data, 217.5K Total11770Current Release:11771Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total11772Debug Version: 154.7K Code, 63.0K Data, 217.7K Total1177311774117752) iASL Compiler/Disassembler and Tools:1177611777Fixed a problem with the implementation of the Switch() operator where11778the11779temporary variable was declared too close to the actual Switch, instead11780of11781at method level. This could cause a problem if the Switch() operator is11782within a while loop, causing an error on the second iteration. (BZ 460)1178311784Disassembler - fix for error emitted for unknown type for target of scope11785operator. Now, ignore it and continue.1178611787Disassembly of an FADT now verifies the input FADT and reports any errors11788found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs.1178911790Disassembly of raw data buffers with byte initialization data now11791prefixes11792each output line with the current buffer offset.1179311794Disassembly of ASF! table now includes all variable-length data fields at11795the end of some of the subtables.1179611797The disassembler now emits a comment if a buffer appears to be a11798ResourceTemplate, but cannot be disassembled as such because the EndTag11799does11800not appear at the very end of the buffer.1180111802AcpiExec - Added the "-t" command line option to enable the serialized11803mode11804of the AML interpreter.1180511806----------------------------------------1180731 August 2006. Summary of changes for version 20060831:11808118091) ACPI CA Core Subsystem:1181011811Miscellaneous fixes for the Table Manager:11812- Correctly initialize internal common FADT for all 64-bit "X" fields11813- Fixed a couple table mapping issues during table load11814- Fixed a couple alignment issues for IA6411815- Initialize input array to zero in AcpiInitializeTables11816- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader,11817AcpiGetTableByIndex1181811819Change for GPE support: when a "wake" GPE is received, all wake GPEs are11820now11821immediately disabled to prevent the waking GPE from firing again and to11822prevent other wake GPEs from interrupting the wake process.1182311824Added the AcpiGpeCount global that tracks the number of processed GPEs,11825to11826be used for debugging systems with a large number of ACPI interrupts.1182711828Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in11829both the ACPICA headers and the disassembler.1183011831Example Code and Data Size: These are the sizes for the OS-independent11832acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11833debug version of the code includes the debug output trace mechanism and11834has11835a much larger code and data size.1183611837Previous Release:11838Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total11839Debug Version: 154.6K Code, 62.3K Data, 216.9K Total11840Current Release:11841Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total11842Debug Version: 154.9K Code, 62.6K Data, 217.5K Total1184311844118452) iASL Compiler/Disassembler and Tools:1184611847Disassembler support for the DMAR ACPI table.1184811849----------------------------------------1185023 August 2006. Summary of changes for version 20060823:11851118521) ACPI CA Core Subsystem:1185311854The Table Manager component has been completely redesigned and11855reimplemented. The new design is much simpler, and reduces the overall11856code11857and data size of the kernel-resident ACPICA by approximately 5%. Also, it11858is11859now possible to obtain the ACPI tables very early during kernel11860initialization, even before dynamic memory management is initialized.11861(Alexey Starikovskiy, Fiodor Suietov, Bob Moore)1186211863Obsolete ACPICA interfaces:1186411865- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel11866init11867time).11868- AcpiLoadTable: Not needed.11869- AcpiUnloadTable: Not needed.1187011871New ACPICA interfaces:1187211873- AcpiInitializeTables: Must be called before the table manager can be11874used.11875- AcpiReallocateRootTable: Used to transfer the root table to dynamically11876allocated memory after it becomes available.11877- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI11878tables11879in the RSDT/XSDT.1188011881Other ACPICA changes:1188211883- AcpiGetTableHeader returns the actual mapped table header, not a copy.11884Use11885AcpiOsUnmapMemory to free this mapping.11886- AcpiGetTable returns the actual mapped table. The mapping is managed11887internally and must not be deleted by the caller. Use of this interface11888causes no additional dynamic memory allocation.11889- AcpiFindRootPointer: Support for physical addressing has been11890eliminated,11891it appeared to be unused.11892- The interface to AcpiOsMapMemory has changed to be consistent with the11893other allocation interfaces.11894- The interface to AcpiOsGetRootPointer has changed to eliminate11895unnecessary11896parameters.11897- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on1189864-11899bit platforms. Was previously 64 bits on all platforms.11900- The interface to the ACPI Global Lock acquire/release macros have11901changed11902slightly since ACPICA no longer keeps a local copy of the FACS with a11903constructed pointer to the actual global lock.1190411905Porting to the new table manager:1190611907- AcpiInitializeTables: Must be called once, and can be called anytime11908during the OS initialization process. It allows the host to specify an11909area11910of memory to be used to store the internal version of the RSDT/XSDT (root11911table). This allows the host to access ACPI tables before memory11912management11913is initialized and running.11914- AcpiReallocateRootTable: Can be called after memory management is11915running11916to copy the root table to a dynamically allocated array, freeing up the11917scratch memory specified in the call to AcpiInitializeTables.11918- AcpiSubsystemInitialize: This existing interface is independent of the11919Table Manager, and does not have to be called before the Table Manager11920can11921be used, it only must be called before the rest of ACPICA can be used.11922- ACPI Tables: Some changes have been made to the names and structure of11923the11924actbl.h and actbl1.h header files and may require changes to existing11925code.11926For example, bitfields have been completely removed because of their lack11927of11928portability across C compilers.11929- Update interfaces to the Global Lock acquire/release macros if local11930versions are used. (see acwin.h)1193111932Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c1193311934New files: tbfind.c1193511936Example Code and Data Size: These are the sizes for the OS-independent11937acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The11938debug version of the code includes the debug output trace mechanism and11939has11940a much larger code and data size.1194111942Previous Release:11943Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total11944Debug Version: 161.0K Code, 65.1K Data, 226.1K Total11945Current Release:11946Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total11947Debug Version: 154.6K Code, 62.3K Data, 216.9K Total1194811949119502) iASL Compiler/Disassembler and Tools:1195111952No changes for this release.1195311954----------------------------------------1195521 July 2006. Summary of changes for version 20060721:11956119571) ACPI CA Core Subsystem:1195811959The full source code for the ASL test suite used to validate the iASL11960compiler and the ACPICA core subsystem is being released with the ACPICA11961source for the first time. The source is contained in a separate package11962and11963consists of over 1100 files that exercise all ASL/AML operators. The11964package11965should appear on the Intel/ACPI web site shortly. (Valery Podrezov,11966Fiodor11967Suietov)1196811969Completed a new design and implementation for support of the ACPI Global11970Lock. On the OS side, the global lock is now treated as a standard AML11971mutex. Previously, multiple OS threads could "acquire" the global lock11972simultaneously. However, this could cause the BIOS to be starved out of11973the11974lock - especially in cases such as the Embedded Controller driver where11975there is a tight coupling between the OS and the BIOS.1197611977Implemented an optimization for the ACPI Global Lock interrupt mechanism.11978The Global Lock interrupt handler no longer queues the execution of a11979separate thread to signal the global lock semaphore. Instead, the11980semaphore11981is signaled directly from the interrupt handler.1198211983Implemented support within the AML interpreter for package objects that11984contain a larger AML length (package list length) than the package11985element11986count. In this case, the length of the package is truncated to match the11987package element count. Some BIOS code apparently modifies the package11988length11989on the fly, and this change supports this behavior. Provides11990compatibility11991with the MS AML interpreter. (With assistance from Fiodor Suietov)1199211993Implemented a temporary fix for the BankValue parameter of a Bank Field11994to11995support all constant values, now including the Zero and One opcodes.11996Evaluation of this parameter must eventually be converted to a full11997TermArg11998evaluation. A not-implemented error is now returned (temporarily) for11999non-12000constant values for this parameter.1200112002Fixed problem reports (Fiodor Suietov) integrated:12003- Fix for premature object deletion after CopyObject on Operation Region12004(BZ12005350)1200612007Example Code and Data Size: These are the sizes for the OS-independent12008acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12009debug version of the code includes the debug output trace mechanism and12010has12011a much larger code and data size.1201212013Previous Release:12014Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total12015Debug Version: 160.9K Code, 65.1K Data, 226.0K Total12016Current Release:12017Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total12018Debug Version: 161.0K Code, 65.1K Data, 226.1K Total1201912020120212) iASL Compiler/Disassembler and Tools:1202212023No changes for this release.1202412025----------------------------------------1202607 July 2006. Summary of changes for version 20060707:12027120281) ACPI CA Core Subsystem:1202912030Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers12031that do not allow the initialization of address pointers within packed12032structures - even though the hardware itself may support misaligned12033transfers. Some of the debug data structures are packed by default to12034minimize size.1203512036Added an error message for the case where AcpiOsGetThreadId() returns12037zero.12038A non-zero value is required by the core ACPICA code to ensure the proper12039operation of AML mutexes and recursive control methods.1204012041The DSDT is now the only ACPI table that determines whether the AML12042interpreter is in 32-bit or 64-bit mode. Not really a functional change,12043but12044the hooks for per-table 32/64 switching have been removed from the code.12045A12046clarification to the ACPI specification is forthcoming in ACPI 3.0B.1204712048Fixed a possible leak of an OwnerID in the error path of12049AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID12050deletion to a single place in AcpiTbUninstallTable to correct possible12051leaks12052when using the AcpiTbDeleteTablesByType interface (with assistance from12053Lance Ortiz.)1205412055Fixed a problem with Serialized control methods where the semaphore12056associated with the method could be over-signaled after multiple method12057invocations.1205812059Fixed two issues with the locking of the internal namespace data12060structure.12061Both the Unload() operator and AcpiUnloadTable interface now lock the12062namespace during the namespace deletion associated with the table unload12063(with assistance from Linn Crosetto.)1206412065Fixed problem reports (Valery Podrezov) integrated:12066- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426)1206712068Fixed problem reports (Fiodor Suietov) integrated:12069- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369)12070- On Address Space handler deletion, needless deactivation call (BZ 374)12071- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ12072375)12073- Possible memory leak, Notify sub-objects of Processor, Power,12074ThermalZone12075(BZ 376)12076- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378)12077- Minimum Length of RSDT should be validated (BZ 379)12078- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no12079Handler (BZ (380)12080- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type12081loaded12082(BZ 381)1208312084Example Code and Data Size: These are the sizes for the OS-independent12085acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12086debug version of the code includes the debug output trace mechanism and12087has12088a much larger code and data size.1208912090Previous Release:12091Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total12092Debug Version: 160.8K Code, 64.8K Data, 225.6K Total12093Current Release:12094Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total12095Debug Version: 161.0K Code, 65.1K Data, 226.1K Total1209612097120982) iASL Compiler/Disassembler and Tools:1209912100Fixed problem reports:12101Compiler segfault when ASL contains a long (>1024) String declaration (BZ12102436)1210312104----------------------------------------1210523 June 2006. Summary of changes for version 20060623:12106121071) ACPI CA Core Subsystem:1210812109Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This12110allows the type to be customized to the host OS for improved efficiency12111(since a spinlock is usually a very small object.)1211212113Implemented support for "ignored" bits in the ACPI registers. According12114to12115the ACPI specification, these bits should be preserved when writing the12116registers via a read/modify/write cycle. There are 3 bits preserved in12117this12118manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11].1211912120Implemented the initial deployment of new OSL mutex interfaces. Since12121some12122host operating systems have separate mutex and semaphore objects, this12123feature was requested. The base code now uses mutexes (and the new mutex12124interfaces) wherever a binary semaphore was used previously. However, for12125the current release, the mutex interfaces are defined as macros to map12126them12127to the existing semaphore interfaces. Therefore, no OSL changes are12128required12129at this time. (See acpiosxf.h)1213012131Fixed several problems with the support for the control method SyncLevel12132parameter. The SyncLevel now works according to the ACPI specification12133and12134in concert with the Mutex SyncLevel parameter, since the current12135SyncLevel12136is a property of the executing thread. Mutual exclusion for control12137methods12138is now implemented with a mutex instead of a semaphore.1213912140Fixed three instances of the use of the C shift operator in the bitfield12141support code (exfldio.c) to avoid the use of a shift value larger than12142the12143target data width. The behavior of C compilers is undefined in this case12144and12145can cause unpredictable results, and therefore the case must be detected12146and12147avoided. (Fiodor Suietov)1214812149Added an info message whenever an SSDT or OEM table is loaded dynamically12150via the Load() or LoadTable() ASL operators. This should improve12151debugging12152capability since it will show exactly what tables have been loaded12153(beyond12154the tables present in the RSDT/XSDT.)1215512156Example Code and Data Size: These are the sizes for the OS-independent12157acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12158debug version of the code includes the debug output trace mechanism and12159has12160a much larger code and data size.1216112162Previous Release:12163Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total12164Debug Version: 160.2K Code, 64.7K Data, 224.9K Total12165Current Release:12166Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total12167Debug Version: 160.8K Code, 64.8K Data, 225.6K Total1216812169121702) iASL Compiler/Disassembler and Tools:1217112172No changes for this release.1217312174----------------------------------------1217508 June 2006. Summary of changes for version 20060608:12176121771) ACPI CA Core Subsystem:1217812179Converted the locking mutex used for the ACPI hardware to a spinlock.12180This12181change should eliminate all problems caused by attempting to acquire a12182semaphore at interrupt level, and it means that all ACPICA external12183interfaces that directly access the ACPI hardware can be safely called12184from12185interrupt level. OSL code that implements the semaphore interfaces should12186be12187able to eliminate any workarounds for being called at interrupt level.1218812189Fixed a regression introduced in 20060526 where the ACPI device12190initialization could be prematurely aborted with an AE_NOT_FOUND if a12191device12192did not have an optional _INI method.1219312194Fixed an IndexField issue where a write to the Data Register should be12195limited in size to the AccessSize (width) of the IndexField itself. (BZ12196433,12197Fiodor Suietov)1219812199Fixed problem reports (Valery Podrezov) integrated:12200- Allow store of ThermalZone objects to Debug object (BZ 5369/5370)1220112202Fixed problem reports (Fiodor Suietov) integrated:12203- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364)1220412205Removed four global mutexes that were obsolete and were no longer being12206used.1220712208Example Code and Data Size: These are the sizes for the OS-independent12209acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12210debug version of the code includes the debug output trace mechanism and12211has12212a much larger code and data size.1221312214Previous Release:12215Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total12216Debug Version: 160.3K Code, 64.9K Data, 225.2K Total12217Current Release:12218Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total12219Debug Version: 160.2K Code, 64.7K Data, 224.9K Total1222012221122222) iASL Compiler/Disassembler and Tools:1222312224Fixed a fault when using -g option (get tables from registry) on Windows12225machines.1222612227Fixed problem reports integrated:12228- Generate error if CreateField NumBits parameter is zero. (BZ 405)12229- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor12230Suietov)12231- Global table revision override (-r) is ignored (BZ 413)1223212233----------------------------------------1223426 May 2006. Summary of changes for version 20060526:12235122361) ACPI CA Core Subsystem:1223712238Restructured, flattened, and simplified the internal interfaces for12239namespace object evaluation - resulting in smaller code, less CPU stack12240use,12241and fewer interfaces. (With assistance from Mikhail Kouzmich)1224212243Fixed a problem with the CopyObject operator where the first parameter12244was12245not typed correctly for the parser, interpreter, compiler, and12246disassembler.12247Caused various errors and unexpected behavior.1224812249Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits12250produced incorrect results with some C compilers. Since the behavior of C12251compilers when the shift value is larger than the datatype width is12252apparently not well defined, the interpreter now detects this condition12253and12254simply returns zero as expected in all such cases. (BZ 395)1225512256Fixed problem reports (Valery Podrezov) integrated:12257- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329)12258- Allow interpreter to handle nested method declarations (BZ 5361)1225912260Fixed problem reports (Fiodor Suietov) integrated:12261- AcpiTerminate doesn't free debug memory allocation list objects (BZ12262355)12263- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ12264356)12265- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357)12266- Resource Manager should return AE_TYPE for non-device objects (BZ 358)12267- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359)12268- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360)12269- Incomplete cleanup branch in AcpiPsParseAml (BZ 361)12270- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362)12271- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ12272365)12273- Status of the Global Initialization Handler call not used (BZ 366)12274- Incorrect object parameter to Global Initialization Handler (BZ 367)1227512276Example Code and Data Size: These are the sizes for the OS-independent12277acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12278debug version of the code includes the debug output trace mechanism and12279has12280a much larger code and data size.1228112282Previous Release:12283Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total12284Debug Version: 160.5K Code, 65.1K Data, 225.6K Total12285Current Release:12286Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total12287Debug Version: 160.3K Code, 64.9K Data, 225.2K Total1228812289122902) iASL Compiler/Disassembler and Tools:1229112292Modified the parser to allow the names IO, DMA, and IRQ to be used as12293namespace identifiers with no collision with existing resource descriptor12294macro names. This provides compatibility with other ASL compilers and is12295most useful for disassembly/recompilation of existing tables without12296parse12297errors. (With assistance from Thomas Renninger)1229812299Disassembler: fixed an incorrect disassembly problem with the12300DataTableRegion and CopyObject operators. Fixed a possible fault during12301disassembly of some Alias operators.1230212303----------------------------------------1230412 May 2006. Summary of changes for version 20060512:12305123061) ACPI CA Core Subsystem:1230712308Replaced the AcpiOsQueueForExecution interface with a new interface named12309AcpiOsExecute. The major difference is that the new interface does not12310have12311a Priority parameter, this appeared to be useless and has been replaced12312by12313a12314Type parameter. The Type tells the host what type of execution is being12315requested, such as global lock handler, notify handler, GPE handler, etc.12316This allows the host to queue and execute the request as appropriate for12317the12318request type, possibly using different work queues and different12319priorities12320for the various request types. This enables fixes for multithreading12321deadlock problems such as BZ #5534, and will require changes to all12322existing12323OS interface layers. (Alexey Starikovskiy and Bob Moore)1232412325Fixed a possible memory leak associated with the support for the so-12326called12327"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor12328Suietov)1232912330Fixed a problem with the Load() operator where a table load from an12331operation region could overwrite an internal table buffer by up to 712332bytes12333and cause alignment faults on IPF systems. (With assistance from Luming12334Yu)1233512336Example Code and Data Size: These are the sizes for the OS-independent12337acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12338debug version of the code includes the debug output trace mechanism and12339has12340a much larger code and data size.1234112342Previous Release:12343Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total12344Debug Version: 160.1K Code, 65.2K Data, 225.3K Total12345Current Release:12346Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total12347Debug Version: 160.5K Code, 65.1K Data, 225.6K Total123481234912350123512) iASL Compiler/Disassembler and Tools:1235212353Disassembler: Implemented support to cross reference the internal12354namespace12355and automatically generate ASL External() statements for symbols not12356defined12357within the current table being disassembled. This will simplify the12358disassembly and recompilation of interdependent tables such as SSDTs12359since12360these statements will no longer have to be added manually.1236112362Disassembler: Implemented experimental support to automatically detect12363invocations of external control methods and generate appropriate12364External()12365statements. This is problematic because the AML cannot be correctly12366parsed12367until the number of arguments for each control method is known.12368Currently,12369standalone method invocations and invocations as the source operand of a12370Store() statement are supported.1237112372Disassembler: Implemented support for the ASL pseudo-operators LNotEqual,12373LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()),12374LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code12375more readable and likely closer to the original ASL source.1237612377----------------------------------------1237821 April 2006. Summary of changes for version 20060421:12379123801) ACPI CA Core Subsystem:1238112382Removed a device initialization optimization introduced in 20051216 where12383the _STA method was not run unless an _INI was also present for the same12384device. This optimization could cause problems because it could allow12385_INI12386methods to be run within a not-present device subtree. (If a not-present12387device had no _INI, _STA would not be run, the not-present status would12388not12389be discovered, and the children of the device would be incorrectly12390traversed.)1239112392Implemented a new _STA optimization where namespace subtrees that do not12393contain _INI are identified and ignored during device initialization.12394Selectively running _STA can significantly improve boot time on large12395machines (with assistance from Len Brown.)1239612397Implemented support for the device initialization case where the returned12398_STA flags indicate a device not-present but functioning. In this case,12399_INI12400is not run, but the device children are examined for presence, as per the12401ACPI specification.1240212403Implemented an additional change to the IndexField support in order to12404conform to MS behavior. The value written to the Index Register is not12405simply a byte offset, it is a byte offset in units of the access width of12406the parent Index Field. (Fiodor Suietov)1240712408Defined and deployed a new OSL interface, AcpiOsValidateAddress. This12409interface is called during the creation of all AML operation regions, and12410allows the host OS to exert control over what addresses it will allow the12411AML code to access. Operation Regions whose addresses are disallowed will12412cause a runtime exception when they are actually accessed (will not12413affect12414or abort table loading.) See oswinxf or osunixxf for an example12415implementation.1241612417Defined and deployed a new OSL interface, AcpiOsValidateInterface. This12418interface allows the host OS to match the various "optional"12419interface/behavior strings for the _OSI predefined control method as12420appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf12421for an example implementation.1242212423Restructured and corrected various problems in the exception handling12424code12425paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod12426(with assistance from Takayoshi Kochi.)1242712428Modified the Linux source converter to ignore quoted string literals12429while12430converting identifiers from mixed to lower case. This will correct12431problems12432with the disassembler and other areas where such strings must not be12433modified.1243412435The ACPI_FUNCTION_* macros no longer require quotes around the function12436name. This allows the Linux source converter to convert the names, now12437that12438the converter ignores quoted strings.1243912440Example Code and Data Size: These are the sizes for the OS-independent12441acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12442debug version of the code includes the debug output trace mechanism and12443has12444a much larger code and data size.1244512446Previous Release:1244712448Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total12449Debug Version: 158.9K Code, 64.9K Data, 223.8K Total12450Current Release:12451Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total12452Debug Version: 160.1K Code, 65.2K Data, 225.3K Total1245312454124552) iASL Compiler/Disassembler and Tools:1245612457Implemented 3 new warnings for iASL, and implemented multiple warning12458levels12459(w2 flag).12460124611) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is12462not12463WAIT_FOREVER (0xFFFF) and the code does not examine the return value to12464check for the possible timeout, a warning is issued.12465124662) Useless operators: If an ASL operator does not specify an optional12467target12468operand and it also does not use the function return value from the12469operator, a warning is issued since the operator effectively does12470nothing.12471124723) Unreferenced objects: If a namespace object is created, but never12473referenced, a warning is issued. This is a warning level 2 since there12474are12475cases where this is ok, such as when a secondary table is loaded that12476uses12477the unreferenced objects. Even so, care is taken to only flag objects12478that12479don't look like they will ever be used. For example, the reserved methods12480(starting with an underscore) are usually not referenced because it is12481expected that the OS will invoke them.1248212483----------------------------------------1248431 March 2006. Summary of changes for version 20060331:12485124861) ACPI CA Core Subsystem:1248712488Implemented header file support for the following additional ACPI tables:12489ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this12490support,12491all current and known ACPI tables are now defined in the ACPICA headers12492and12493are available for use by device drivers and other software.1249412495Implemented support to allow tables that contain ACPI names with invalid12496characters to be loaded. Previously, this would cause the table load to12497fail, but since there are several known cases of such tables on existing12498machines, this change was made to enable ACPI support for them. Also,12499this12500matches the behavior of the Microsoft ACPI implementation.1250112502Fixed a couple regressions introduced during the memory optimization in12503the1250420060317 release. The namespace node definition required additional12505reorganization and an internal datatype that had been changed to 8-bit12506was12507restored to 32-bit. (Valery Podrezov)1250812509Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState12510could be passed through to AcpiOsReleaseObject which is unexpected. Such12511null pointers are now trapped and ignored, matching the behavior of the12512previous implementation before the deployment of AcpiOsReleaseObject.12513(Valery Podrezov, Fiodor Suietov)1251412515Fixed a memory mapping leak during the deletion of a SystemMemory12516operation12517region where a cached memory mapping was not deleted. This became a12518noticeable problem for operation regions that are defined within12519frequently12520used control methods. (Dana Meyers)1252112522Reorganized the ACPI table header files into two main files: one for the12523ACPI tables consumed by the ACPICA core, and another for the12524miscellaneous12525ACPI tables that are consumed by the drivers and other software. The12526various12527FADT definitions were merged into one common section and three different12528tables (ACPI 1.0, 1.0+, and 2.0)1252912530Example Code and Data Size: These are the sizes for the OS-independent12531acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The12532debug version of the code includes the debug output trace mechanism and12533has12534a much larger code and data size.1253512536Previous Release:12537Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total12538Debug Version: 158.7K Code, 64.8K Data, 223.5K Total12539Current Release:12540Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total12541Debug Version: 158.9K Code, 64.9K Data, 223.8K Total1254212543125442) iASL Compiler/Disassembler and Tools:1254512546Disassembler: Implemented support to decode and format all non-AML ACPI12547tables (tables other than DSDTs and SSDTs.) This includes the new tables12548added to the ACPICA headers, therefore all current and known ACPI tables12549are12550supported.1255112552Disassembler: The change to allow ACPI names with invalid characters also12553enables the disassembly of such tables. Invalid characters within names12554are12555changed to '*' to make the name printable; the iASL compiler will still12556generate an error for such names, however, since this is an invalid ACPI12557character.1255812559Implemented an option for AcpiXtract (-a) to extract all tables found in12560the12561input file. The default invocation extracts only the DSDTs and SSDTs.1256212563Fixed a couple of gcc generation issues for iASL and AcpiExec and added a12564makefile for the AcpiXtract utility.1256512566----------------------------------------1256717 March 2006. Summary of changes for version 20060317:12568125691) ACPI CA Core Subsystem:1257012571Implemented the use of a cache object for all internal namespace nodes.12572Since there are about 1000 static nodes in a typical system, this will12573decrease memory use for cache implementations that minimize per-12574allocation12575overhead (such as a slab allocator.)1257612577Removed the reference count mechanism for internal namespace nodes, since12578it12579was deemed unnecessary. This reduces the size of each namespace node by12580about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit12581case,12582and 32 bytes for the 64-bit case.1258312584Optimized several internal data structures to reduce object size on 64-12585bit12586platforms by packing data within the 64-bit alignment. This includes the12587frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static12588instances corresponding to the namespace objects.1258912590Added two new strings for the predefined _OSI method: "Windows 2001.112591SP1"12592and "Windows 2006".1259312594Split the allocation tracking mechanism out to a separate file, from12595utalloc.c to uttrack.c. This mechanism appears to be only useful for12596application-level code. Kernels may wish to not include uttrack.c in12597distributions.1259812599Removed all remnants of the obsolete ACPI_REPORT_* macros and the12600associated12601code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING12602macros.)1260312604Code and Data Size: These are the sizes for the acpica.lib produced by12605the12606Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12607ACPI12608driver or OSPM code. The debug version of the code includes the debug12609output12610trace mechanism and has a much larger code and data size. Note that these12611values will vary depending on the efficiency of the compiler and the12612compiler options used during generation.1261312614Previous Release:12615Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12616Debug Version: 161.6K Code, 65.7K Data, 227.3K Total12617Current Release:12618Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total12619Debug Version: 158.7K Code, 64.8K Data, 223.5K Total1262012621126222) iASL Compiler/Disassembler and Tools:1262312624Implemented an ANSI C version of the acpixtract utility. This version12625will12626automatically extract the DSDT and all SSDTs from the input acpidump text12627file and dump the binary output to separate files. It can also display a12628summary of the input file including the headers for each table found and12629will extract any single ACPI table, with any signature. (See12630source/tools/acpixtract)1263112632----------------------------------------1263310 March 2006. Summary of changes for version 20060310:12634126351) ACPI CA Core Subsystem:1263612637Tagged all external interfaces to the subsystem with the new12638ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to12639assist12640kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL12641macro. The default definition is NULL.1264212643Added the ACPI_THREAD_ID type for the return value from12644AcpiOsGetThreadId.12645This allows the host to define this as necessary to simplify kernel12646integration. The default definition is ACPI_NATIVE_UINT.1264712648Fixed two interpreter problems related to error processing, the deletion12649of12650objects, and placing invalid pointers onto the internal operator result12651stack. BZ 6028, 6151 (Valery Podrezov)1265212653Increased the reference count threshold where a warning is emitted for12654large12655reference counts in order to eliminate unnecessary warnings on systems12656with12657large namespaces (especially 64-bit.) Increased the value from 0x400 to126580x800.1265912660Due to universal disagreement as to the meaning of the 'c' in the12661calloc()12662function, the ACPI_MEM_CALLOCATE macro has been renamed to12663ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'.12664ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and12665ACPI_FREE.1266612667Code and Data Size: These are the sizes for the acpica.lib produced by12668the12669Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12670ACPI12671driver or OSPM code. The debug version of the code includes the debug12672output12673trace mechanism and has a much larger code and data size. Note that these12674values will vary depending on the efficiency of the compiler and the12675compiler options used during generation.1267612677Previous Release:12678Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total12679Debug Version: 161.4K Code, 65.7K Data, 227.1K Total12680Current Release:12681Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12682Debug Version: 161.6K Code, 65.7K Data, 227.3K Total1268312684126852) iASL Compiler/Disassembler:1268612687Disassembler: implemented support for symbolic resource descriptor12688references. If a CreateXxxxField operator references a fixed offset12689within12690a12691resource descriptor, a name is assigned to the descriptor and the offset12692is12693translated to the appropriate resource tag and pathname. The addition of12694this support brings the disassembled code very close to the original ASL12695source code and helps eliminate run-time errors when the disassembled12696code12697is modified (and recompiled) in such a way as to invalidate the original12698fixed offsets.1269912700Implemented support for a Descriptor Name as the last parameter to the12701ASL12702Register() macro. This parameter was inadvertently left out of the ACPI12703specification, and will be added for ACPI 3.0b.1270412705Fixed a problem where the use of the "_OSI" string (versus the full path12706"\_OSI") caused an internal compiler error. ("No back ptr to op")1270712708Fixed a problem with the error message that occurs when an invalid string12709is12710used for a _HID object (such as one with an embedded asterisk:12711"*PNP010A".)12712The correct message is now displayed.1271312714----------------------------------------1271517 February 2006. Summary of changes for version 20060217:12716127171) ACPI CA Core Subsystem:1271812719Implemented a change to the IndexField support to match the behavior of12720the12721Microsoft AML interpreter. The value written to the Index register is now12722a12723byte offset, no longer an index based upon the width of the Data12724register.12725This should fix IndexField problems seen on some machines where the Data12726register is not exactly one byte wide. The ACPI specification will be12727clarified on this point.1272812729Fixed a problem where several resource descriptor types could overrun the12730internal descriptor buffer due to size miscalculation: VendorShort,12731VendorLong, and Interrupt. This was noticed on IA64 machines, but could12732affect all platforms.1273312734Fixed a problem where individual resource descriptors were misaligned12735within12736the internal buffer, causing alignment faults on IA64 platforms.1273712738Code and Data Size: These are the sizes for the acpica.lib produced by12739the12740Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any12741ACPI12742driver or OSPM code. The debug version of the code includes the debug12743output12744trace mechanism and has a much larger code and data size. Note that these12745values will vary depending on the efficiency of the compiler and the12746compiler options used during generation.1274712748Previous Release:12749Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12750Debug Version: 161.3K Code, 65.6K Data, 226.9K Total12751Current Release:12752Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total12753Debug Version: 161.4K Code, 65.7K Data, 227.1K Total1275412755127562) iASL Compiler/Disassembler:1275712758Implemented support for new reserved names: _WDG and _WED are Microsoft12759extensions for Windows Instrumentation Management, _TDL is a new ACPI-12760defined method (Throttling Depth Limit.)1276112762Fixed a problem where a zero-length VendorShort or VendorLong resource12763descriptor was incorrectly emitted as a descriptor of length one.1276412765----------------------------------------1276610 February 2006. Summary of changes for version 20060210:12767127681) ACPI CA Core Subsystem:1276912770Removed a couple of extraneous ACPI_ERROR messages that appeared during12771normal execution. These became apparent after the conversion from12772ACPI_DEBUG_PRINT.1277312774Fixed a problem where the CreateField operator could hang if the BitIndex12775or12776NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359)1277712778Fixed a problem where a DeRefOf operation on a buffer object incorrectly12779failed with an exception. This also fixes a couple of related RefOf and12780DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387)1278112782Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead12783of12784AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov,12785BZ127865480)1278712788Implemented a memory cleanup at the end of the execution of each12789iteration12790of an AML While() loop, preventing the accumulation of outstanding12791objects.12792(Valery Podrezov, BZ 5427)1279312794Eliminated a chunk of duplicate code in the object resolution code.12795(Valery12796Podrezov, BZ 5336)1279712798Fixed several warnings during the 64-bit code generation.1279912800The AcpiSrc source code conversion tool now inserts one line of12801whitespace12802after an if() statement that is followed immediately by a comment,12803improving12804readability of the Linux code.1280512806Code and Data Size: The current and previous library sizes for the core12807subsystem are shown below. These are the code and data sizes for the12808acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12809These12810values do not include any ACPI driver or OSPM code. The debug version of12811the12812code includes the debug output trace mechanism and has a much larger code12813and data size. Note that these values will vary depending on the12814efficiency12815of the compiler and the compiler options used during generation.1281612817Previous Release:12818Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total12819Debug Version: 161.3K Code, 65.7K Data, 227.0K Total12820Current Release:12821Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total12822Debug Version: 161.3K Code, 65.6K Data, 226.9K Total1282312824128252) iASL Compiler/Disassembler:1282612827Fixed a problem with the disassembly of a BankField operator with a12828complex12829expression for the BankValue parameter.1283012831----------------------------------------1283227 January 2006. Summary of changes for version 20060127:12833128341) ACPI CA Core Subsystem:1283512836Implemented support in the Resource Manager to allow unresolved12837namestring12838references within resource package objects for the _PRT method. This12839support12840is in addition to the previously implemented unresolved reference support12841within the AML parser. If the interpreter slack mode is enabled, these12842unresolved references will be passed through to the caller as a NULL12843package12844entry.1284512846Implemented and deployed new macros and functions for error and warning12847messages across the subsystem. These macros are simpler and generate less12848code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,12849ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older12850macros remain defined to allow ACPI drivers time to migrate to the new12851macros.1285212853Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of12854the12855Acquire/Release Lock OSL interfaces.1285612857Fixed a problem where Alias ASL operators are sometimes not correctly12858resolved, in both the interpreter and the iASL compiler.1285912860Fixed several problems with the implementation of the12861ConcatenateResTemplate12862ASL operator. As per the ACPI specification, zero length buffers are now12863treated as a single EndTag. One-length buffers always cause a fatal12864exception. Non-zero length buffers that do not end with a full 2-byte12865EndTag12866cause a fatal exception.1286712868Fixed a possible structure overwrite in the AcpiGetObjectInfo external12869interface. (With assistance from Thomas Renninger)1287012871Code and Data Size: The current and previous library sizes for the core12872subsystem are shown below. These are the code and data sizes for the12873acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12874These12875values do not include any ACPI driver or OSPM code. The debug version of12876the12877code includes the debug output trace mechanism and has a much larger code12878and data size. Note that these values will vary depending on the12879efficiency12880of the compiler and the compiler options used during generation.1288112882Previous Release:12883Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total12884Debug Version: 163.2K Code, 66.2K Data, 229.4K Total12885Current Release:12886Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total12887Debug Version: 161.3K Code, 65.7K Data, 227.0K Total1288812889128902) iASL Compiler/Disassembler:1289112892Fixed an internal error that was generated for any forward references to12893ASL12894Alias objects.1289512896----------------------------------------1289713 January 2006. Summary of changes for version 20060113:12898128991) ACPI CA Core Subsystem:1290012901Added 2006 copyright to all module headers and signons. This affects12902virtually every file in the ACPICA core subsystem, iASL compiler, and the12903utilities.1290412905Enhanced the ACPICA error reporting in order to simplify user migration12906to12907the non-debug version of ACPICA. Replaced all instances of the12908ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN12909debug12910levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros,12911respectively. This preserves all error and warning messages in the non-12912debug12913version of the ACPICA code (this has been referred to as the "debug lite"12914option.) Over 200 cases were converted to create a total of over 38012915error/warning messages across the ACPICA code. This increases the code12916and12917data size of the default non-debug version of the code somewhat (about1291813K),12919but all error/warning reporting may be disabled if desired (and code12920eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time12921configuration option. The size of the debug version of ACPICA remains12922about12923the same.1292412925Fixed a memory leak within the AML Debugger "Set" command. One object was12926not properly deleted for every successful invocation of the command.1292712928Code and Data Size: The current and previous library sizes for the core12929subsystem are shown below. These are the code and data sizes for the12930acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.12931These12932values do not include any ACPI driver or OSPM code. The debug version of12933the12934code includes the debug output trace mechanism and has a much larger code12935and data size. Note that these values will vary depending on the12936efficiency12937of the compiler and the compiler options used during generation.1293812939Previous Release:12940Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total12941Debug Version: 163.7K Code, 67.5K Data, 231.2K Total12942Current Release:12943Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total12944Debug Version: 163.2K Code, 66.2K Data, 229.4K Total1294512946129472) iASL Compiler/Disassembler:1294812949The compiler now officially supports the ACPI 3.0a specification that was12950released on December 30, 2005. (Specification is available at12951www.acpi.info)1295212953----------------------------------------1295416 December 2005. Summary of changes for version 20051216:12955129561) ACPI CA Core Subsystem:1295712958Implemented optional support to allow unresolved names within ASL Package12959objects. A null object is inserted in the package when a named reference12960cannot be located in the current namespace. Enabled via the interpreter12961slack flag, this should eliminate AE_NOT_FOUND exceptions seen on12962machines12963that contain such code.1296412965Implemented an optimization to the initialization sequence that can12966improve12967boot time. During ACPI device initialization, the _STA method is now run12968if12969and only if the _INI method exists. The _STA method is used to determine12970if12971the device is present; An _INI can only be run if _STA returns present,12972but12973it is a waste of time to run the _STA method if the _INI does not exist.12974(Prototype and assistance from Dong Wei)1297512976Implemented use of the C99 uintptr_t for the pointer casting macros if it12977is12978available in the current compiler. Otherwise, the default (void *) cast12979is12980used as before.1298112982Fixed some possible memory leaks found within the execution path of the12983Break, Continue, If, and CreateField operators. (Valery Podrezov)1298412985Fixed a problem introduced in the 20051202 release where an exception is12986generated during method execution if a control method attempts to declare12987another method.1298812989Moved resource descriptor string constants that are used by both the AML12990disassembler and AML debugger to the common utilities directory so that12991these components are independent.1299212993Implemented support in the AcpiExec utility (-e switch) to globally12994ignore12995exceptions during control method execution (method is not aborted.)1299612997Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix12998generation.1299913000Code and Data Size: The current and previous library sizes for the core13001subsystem are shown below. These are the code and data sizes for the13002acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13003These13004values do not include any ACPI driver or OSPM code. The debug version of13005the13006code includes the debug output trace mechanism and has a much larger code13007and data size. Note that these values will vary depending on the13008efficiency13009of the compiler and the compiler options used during generation.1301013011Previous Release:13012Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total13013Debug Version: 163.2K Code, 67.4K Data, 230.6K Total13014Current Release:13015Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total13016Debug Version: 163.7K Code, 67.5K Data, 231.2K Total1301713018130192) iASL Compiler/Disassembler:1302013021Fixed a problem where a CPU stack overflow fault could occur if a13022recursive13023method call was made from within a Return statement.1302413025----------------------------------------1302602 December 2005. Summary of changes for version 20051202:13027130281) ACPI CA Core Subsystem:1302913030Modified the parsing of control methods to no longer create namespace13031objects during the first pass of the parse. Objects are now created only13032during the execute phase, at the moment the namespace creation operator13033is13034encountered in the AML (Name, OperationRegion, CreateByteField, etc.)13035This13036should eliminate ALREADY_EXISTS exceptions seen on some machines where13037reentrant control methods are protected by an AML mutex. The mutex will13038now13039correctly block multiple threads from attempting to create the same13040object13041more than once.1304213043Increased the number of available Owner Ids for namespace object tracking13044from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen13045on13046some machines with a large number of ACPI tables (either static or13047dynamic).1304813049Fixed a problem with the AcpiExec utility where a fault could occur when13050the13051-b switch (batch mode) is used.1305213053Enhanced the namespace dump routine to output the owner ID for each13054namespace object.1305513056Code and Data Size: The current and previous library sizes for the core13057subsystem are shown below. These are the code and data sizes for the13058acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13059These13060values do not include any ACPI driver or OSPM code. The debug version of13061the13062code includes the debug output trace mechanism and has a much larger code13063and data size. Note that these values will vary depending on the13064efficiency13065of the compiler and the compiler options used during generation.1306613067Previous Release:13068Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total13069Debug Version: 163.0K Code, 67.4K Data, 230.4K Total13070Current Release:13071Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total13072Debug Version: 163.2K Code, 67.4K Data, 230.6K Total1307313074130752) iASL Compiler/Disassembler:1307613077Fixed a parse error during compilation of certain Switch/Case constructs.13078To13079simplify the parse, the grammar now allows for multiple Default13080statements13081and this error is now detected and flagged during the analysis phase.1308213083Disassembler: The disassembly now includes the contents of the original13084table header within a comment at the start of the file. This includes the13085name and version of the original ASL compiler.1308613087----------------------------------------1308817 November 2005. Summary of changes for version 20051117:13089130901) ACPI CA Core Subsystem:1309113092Fixed a problem in the AML parser where the method thread count could be13093decremented below zero if any errors occurred during the method parse13094phase.13095This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some13096machines.13097This also fixed a related regression with the mechanism that detects and13098corrects methods that cannot properly handle reentrancy (related to the13099deployment of the new OwnerId mechanism.)1310013101Eliminated the pre-parsing of control methods (to detect errors) during13102table load. Related to the problem above, this was causing unwind issues13103if13104any errors occurred during the parse, and it seemed to be overkill. A13105table13106load should not be aborted if there are problems with any single control13107method, thus rendering this feature rather pointless.1310813109Fixed a problem with the new table-driven resource manager where an13110internal13111buffer overflow could occur for small resource templates.1311213113Implemented a new external interface, AcpiGetVendorResource. This13114interface13115will find and return a vendor-defined resource descriptor within a _CRS13116or13117_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn13118Helgaas.1311913120Removed the length limit (200) on string objects as per the upcoming ACPI131213.0A specification. This affects the following areas of the interpreter:131221)13123any implicit conversion of a Buffer to a String, 2) a String object13124result13125of the ASL Concatenate operator, 3) the String object result of the ASL13126ToString operator.1312713128Fixed a problem in the Windows OS interface layer (OSL) where a13129WAIT_FOREVER13130on a semaphore object would incorrectly timeout. This allows the13131multithreading features of the AcpiExec utility to work properly under13132Windows.1313313134Updated the Linux makefiles for the iASL compiler and AcpiExec to include13135the recently added file named "utresrc.c".1313613137Code and Data Size: The current and previous library sizes for the core13138subsystem are shown below. These are the code and data sizes for the13139acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13140These13141values do not include any ACPI driver or OSPM code. The debug version of13142the13143code includes the debug output trace mechanism and has a much larger code13144and data size. Note that these values will vary depending on the13145efficiency13146of the compiler and the compiler options used during generation.1314713148Previous Release:13149Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total13150Debug Version: 163.0K Code, 67.4K Data, 230.4K Total13151Current Release:13152Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total13153Debug Version: 163.0K Code, 67.4K Data, 230.4K Total1315413155131562) iASL Compiler/Disassembler:1315713158Removed the limit (200) on string objects as per the upcoming ACPI 3.0A13159specification. For the iASL compiler, this means that string literals13160within13161the source ASL can be of any length.1316213163Enhanced the listing output to dump the AML code for resource descriptors13164immediately after the ASL code for each descriptor, instead of in a block13165at13166the end of the entire resource template.1316713168Enhanced the compiler debug output to dump the entire original parse tree13169constructed during the parse phase, before any transforms are applied to13170the13171tree. The transformed tree is dumped also.1317213173----------------------------------------1317402 November 2005. Summary of changes for version 20051102:13175131761) ACPI CA Core Subsystem:1317713178Modified the subsystem initialization sequence to improve GPE support.13179The13180GPE initialization has been split into two parts in order to defer13181execution13182of the _PRW methods (Power Resources for Wake) until after the hardware13183is13184fully initialized and the SCI handler is installed. This allows the _PRW13185methods to access fields protected by the Global Lock. This will fix13186systems13187where a NO_GLOBAL_LOCK exception has been seen during initialization.1318813189Converted the ACPI internal object disassemble and display code within13190the13191AML debugger to fully table-driven operation, reducing code size and13192increasing maintainability.1319313194Fixed a regression with the ConcatenateResTemplate() ASL operator13195introduced13196in the 20051021 release.1319713198Implemented support for "local" internal ACPI object types within the13199debugger "Object" command and the AcpiWalkNamespace external interfaces.13200These local types include RegionFields, BankFields, IndexFields, Alias,13201and13202reference objects.1320313204Moved common AML resource handling code into a new file, "utresrc.c".13205This13206code is shared by both the Resource Manager and the AML Debugger.1320713208Code and Data Size: The current and previous library sizes for the core13209subsystem are shown below. These are the code and data sizes for the13210acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13211These13212values do not include any ACPI driver or OSPM code. The debug version of13213the13214code includes the debug output trace mechanism and has a much larger code13215and data size. Note that these values will vary depending on the13216efficiency13217of the compiler and the compiler options used during generation.1321813219Previous Release:13220Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total13221Debug Version: 163.5K Code, 67.0K Data, 230.5K Total13222Current Release:13223Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total13224Debug Version: 163.0K Code, 67.4K Data, 230.4K Total1322513226132272) iASL Compiler/Disassembler:1322813229Fixed a problem with very large initializer lists (more than 400013230elements)13231for both Buffer and Package objects where the parse stack could overflow.1323213233Enhanced the pre-compile source code scan for non-ASCII characters to13234ignore13235characters within comment fields. The scan is now always performed and is13236no13237longer optional, detecting invalid characters within a source file13238immediately rather than during the parse phase or later.1323913240Enhanced the ASL grammar definition to force early reductions on all13241list-13242style grammar elements so that the overall parse stack usage is greatly13243reduced. This should improve performance and reduce the possibility of13244parse13245stack overflow.1324613247Eliminated all reduce/reduce conflicts in the iASL parser generation.13248Also,13249with the addition of a %expected statement, the compiler generates from13250source with no warnings.1325113252Fixed a possible segment fault in the disassembler if the input filename13253does not contain a "dot" extension (Thomas Renninger).1325413255----------------------------------------1325621 October 2005. Summary of changes for version 20051021:13257132581) ACPI CA Core Subsystem:1325913260Implemented support for the EM64T and other x86-64 processors. This13261essentially entails recognizing that these processors support non-aligned13262memory transfers. Previously, all 64-bit processors were assumed to lack13263hardware support for non-aligned transfers.1326413265Completed conversion of the Resource Manager to nearly full table-driven13266operation. Specifically, the resource conversion code (convert AML to13267internal format and the reverse) and the debug code to dump internal13268resource descriptors are fully table-driven, reducing code and data size13269and13270improving maintainability.1327113272The OSL interfaces for Acquire and Release Lock now use a 64-bit flag13273word13274on 64-bit processors instead of a fixed 32-bit word. (With assistance13275from13276Alexey Starikovskiy)1327713278Implemented support within the resource conversion code for the Type-13279Specific byte within the various ACPI 3.0 *WordSpace macros.1328013281Fixed some issues within the resource conversion code for the type-13282specific13283flags for both Memory and I/O address resource descriptors. For Memory,13284implemented support for the MTP and TTP flags. For I/O, split the TRS and13285TTP flags into two separate fields.1328613287Code and Data Size: The current and previous library sizes for the core13288subsystem are shown below. These are the code and data sizes for the13289acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13290These13291values do not include any ACPI driver or OSPM code. The debug version of13292the13293code includes the debug output trace mechanism and has a much larger code13294and data size. Note that these values will vary depending on the13295efficiency13296of the compiler and the compiler options used during generation.1329713298Previous Release:13299Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total13300Debug Version: 168.0K Code, 68.3K Data, 236.3K Total13301Current Release:13302Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total13303Debug Version: 163.5K Code, 67.0K Data, 230.5K Total133041330513306133072) iASL Compiler/Disassembler:1330813309Relaxed a compiler restriction that disallowed a ResourceIndex byte if13310the13311corresponding ResourceSource string was not also present in a resource13312descriptor declaration. This restriction caused problems with existing13313AML/ASL code that includes the Index byte without the string. When such13314AML13315was disassembled, it could not be compiled without modification. Further,13316the modified code created a resource template with a different size than13317the13318original, breaking code that used fixed offsets into the resource13319template13320buffer.1332113322Removed a recent feature of the disassembler to ignore a lone13323ResourceIndex13324byte. This byte is now emitted if present so that the exact AML can be13325reproduced when the disassembled code is recompiled.1332613327Improved comments and text alignment for the resource descriptor code13328emitted by the disassembler.1332913330Implemented disassembler support for the ACPI 3.0 AccessSize field within13331a13332Register() resource descriptor.1333313334----------------------------------------1333530 September 2005. Summary of changes for version 20050930:13336133371) ACPI CA Core Subsystem:1333813339Completed a major overhaul of the Resource Manager code - specifically,13340optimizations in the area of the AML/internal resource conversion code.13341The13342code has been optimized to simplify and eliminate duplicated code, CPU13343stack13344use has been decreased by optimizing function parameters and local13345variables, and naming conventions across the manager have been13346standardized13347for clarity and ease of maintenance (this includes function, parameter,13348variable, and struct/typedef names.) The update may force changes in some13349driver code, depending on how resources are handled by the host OS.1335013351All Resource Manager dispatch and information tables have been moved to a13352single location for clarity and ease of maintenance. One new file was13353created, named "rsinfo.c".1335413355The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to13356guarantee that the argument is not evaluated twice, making them less13357prone13358to macro side-effects. However, since there exists the possibility of13359additional stack use if a particular compiler cannot optimize them (such13360as13361in the debug generation case), the original macros are optionally13362available.13363Note that some invocations of the return_VALUE macro may now cause size13364mismatch warnings; the return_UINT8 and return_UINT32 macros are provided13365to13366eliminate these. (From Randy Dunlap)1336713368Implemented a new mechanism to enable debug tracing for individual13369control13370methods. A new external interface, AcpiDebugTrace, is provided to enable13371this mechanism. The intent is to allow the host OS to easily enable and13372disable tracing for problematic control methods. This interface can be13373easily exposed to a user or debugger interface if desired. See the file13374psxface.c for details.1337513376AcpiUtCallocate will now return a valid pointer if a length of zero is13377specified - a length of one is used and a warning is issued. This matches13378the behavior of AcpiUtAllocate.1337913380Code and Data Size: The current and previous library sizes for the core13381subsystem are shown below. These are the code and data sizes for the13382acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13383These13384values do not include any ACPI driver or OSPM code. The debug version of13385the13386code includes the debug output trace mechanism and has a much larger code13387and data size. Note that these values will vary depending on the13388efficiency13389of the compiler and the compiler options used during generation.1339013391Previous Release:13392Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total13393Debug Version: 168.1K Code, 68.4K Data, 236.5K Total13394Current Release:13395Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total13396Debug Version: 168.0K Code, 68.3K Data, 236.3K Total1339713398133992) iASL Compiler/Disassembler:1340013401A remark is issued if the effective compile-time length of a package or13402buffer is zero. Previously, this was a warning.1340313404----------------------------------------1340516 September 2005. Summary of changes for version 20050916:13406134071) ACPI CA Core Subsystem:1340813409Fixed a problem within the Resource Manager where support for the Generic13410Register descriptor was not fully implemented. This descriptor is now13411fully13412recognized, parsed, disassembled, and displayed.1341313414Completely restructured the Resource Manager code to utilize table-driven13415dispatch and lookup, eliminating many of the large switch() statements.13416This13417reduces overall subsystem code size and code complexity. Affects the13418resource parsing and construction, disassembly, and debug dump output.1341913420Cleaned up and restructured the debug dump output for all resource13421descriptors. Improved readability of the output and reduced code size.1342213423Fixed a problem where changes to internal data structures caused the13424optional ACPI_MUTEX_DEBUG code to fail compilation if specified.1342513426Code and Data Size: The current and previous library sizes for the core13427subsystem are shown below. These are the code and data sizes for the13428acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler.13429These13430values do not include any ACPI driver or OSPM code. The debug version of13431the13432code includes the debug output trace mechanism and has a much larger code13433and data size. Note that these values will vary depending on the13434efficiency13435of the compiler and the compiler options used during generation.1343613437Previous Release:13438Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total13439Debug Version: 169.6K Code, 69.9K Data, 239.5K Total13440Current Release:13441Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total13442Debug Version: 168.1K Code, 68.4K Data, 236.5K Total1344313444134452) iASL Compiler/Disassembler:1344613447Updated the disassembler to automatically insert an EndDependentFn()13448macro13449into the ASL stream if this macro is missing in the original AML code,13450simplifying compilation of the resulting ASL module.1345113452Fixed a problem in the disassembler where a disassembled ResourceSource13453string (within a large resource descriptor) was not surrounded by quotes13454and13455not followed by a comma, causing errors when the resulting ASL module was13456compiled. Also, escape sequences within a ResourceSource string are now13457handled correctly (especially "\\")1345813459----------------------------------------1346002 September 2005. Summary of changes for version 20050902:13461134621) ACPI CA Core Subsystem:1346313464Fixed a problem with the internal Owner ID allocation and deallocation13465mechanisms for control method execution and recursive method invocation.13466This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId"13467messages seen on some systems. Recursive method invocation depth is13468currently limited to 255. (Alexey Starikovskiy)1346913470Completely eliminated all vestiges of support for the "module-level13471executable code" until this support is fully implemented and debugged.13472This13473should eliminate the NO_RETURN_VALUE exceptions seen during table load on13474some systems that invoke this support.1347513476Fixed a problem within the resource manager code where the transaction13477flags13478for a 64-bit address descriptor were handled incorrectly in the type-13479specific flag byte.1348013481Consolidated duplicate code within the address descriptor resource13482manager13483code, reducing overall subsystem code size.1348413485Fixed a fault when using the AML debugger "disassemble" command to13486disassemble individual control methods.1348713488Removed references to the "release_current" directory within the Unix13489release package.1349013491Code and Data Size: The current and previous core subsystem library sizes13492are shown below. These are the code and data sizes for the acpica.lib13493produced by the Microsoft Visual C++ 6.0 compiler. These values do not13494include any ACPI driver or OSPM code. The debug version of the code13495includes13496the debug output trace mechanism and has a much larger code and data13497size.13498Note that these values will vary depending on the efficiency of the13499compiler13500and the compiler options used during generation.1350113502Previous Release:13503Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13504Debug Version: 170.0K Code, 69.9K Data, 239.9K Total13505Current Release:13506Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total13507Debug Version: 169.6K Code, 69.9K Data, 239.5K Total1350813509135102) iASL Compiler/Disassembler:1351113512Implemented an error check for illegal duplicate values in the interrupt13513and13514dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and13515Interrupt().1351613517Implemented error checking for the Irq() and IrqNoFlags() macros to13518detect13519too many values in the interrupt list (16 max) and invalid values in the13520list (range 0 - 15)1352113522The maximum length string literal within an ASL file is now restricted to13523200 characters as per the ACPI specification.1352413525Fixed a fault when using the -ln option (generate namespace listing).1352613527Implemented an error check to determine if a DescriptorName within a13528resource descriptor has already been used within the current scope.1352913530----------------------------------------1353115 August 2005. Summary of changes for version 20050815:13532135331) ACPI CA Core Subsystem:1353413535Implemented a full bytewise compare to determine if a table load request13536is13537attempting to load a duplicate table. The compare is performed if the13538table13539signatures and table lengths match. This will allow different tables with13540the same OEM Table ID and revision to be loaded - probably against the13541ACPI13542specification, but discovered in the field nonetheless.1354313544Added the changes.txt logfile to each of the zipped release packages.1354513546Code and Data Size: Current and previous core subsystem library sizes are13547shown below. These are the code and data sizes for the acpica.lib13548produced13549by the Microsoft Visual C++ 6.0 compiler, and these values do not include13550any ACPI driver or OSPM code. The debug version of the code includes the13551debug output trace mechanism and has a much larger code and data size.13552Note13553that these values will vary depending on the efficiency of the compiler13554and13555the compiler options used during generation.1355613557Previous Release:13558Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13559Debug Version: 167.0K Code, 69.9K Data, 236.9K Total13560Current Release:13561Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13562Debug Version: 170.0K Code, 69.9K Data, 239.9K Total1356313564135652) iASL Compiler/Disassembler:1356613567Fixed a problem where incorrect AML code could be generated for Package13568objects if optimization is disabled (via the -oa switch).1356913570Fixed a problem with where incorrect AML code is generated for variable-13571length packages when the package length is not specified and the number13572of13573initializer values is greater than 255.135741357513576----------------------------------------1357729 July 2005. Summary of changes for version 20050729:13578135791) ACPI CA Core Subsystem:1358013581Implemented support to ignore an attempt to install/load a particular13582ACPI13583table more than once. Apparently there exists BIOS code that repeatedly13584attempts to load the same SSDT upon certain events. With assistance from13585Venkatesh Pallipadi.1358613587Restructured the main interface to the AML parser in order to correctly13588handle all exceptional conditions. This will prevent leakage of the13589OwnerId13590resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on13591some13592machines. With assistance from Alexey Starikovskiy.1359313594Support for "module level code" has been disabled in this version due to13595a13596number of issues that have appeared on various machines. The support can13597be13598enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem13599compilation. When the issues are fully resolved, the code will be enabled13600by13601default again.1360213603Modified the internal functions for debug print support to define the13604FunctionName parameter as a (const char *) for compatibility with13605compiler13606built-in macros such as __FUNCTION__, etc.1360713608Linted the entire ACPICA source tree for both 32-bit and 64-bit.1360913610Implemented support to display an object count summary for the AML13611Debugger13612commands Object and Methods.1361313614Code and Data Size: Current and previous core subsystem library sizes are13615shown below. These are the code and data sizes for the acpica.lib13616produced13617by the Microsoft Visual C++ 6.0 compiler, and these values do not include13618any ACPI driver or OSPM code. The debug version of the code includes the13619debug output trace mechanism and has a much larger code and data size.13620Note13621that these values will vary depending on the efficiency of the compiler13622and13623the compiler options used during generation.1362413625Previous Release:13626Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total13627Debug Version: 170.0K Code, 69.7K Data, 239.7K Total13628Current Release:13629Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total13630Debug Version: 167.0K Code, 69.9K Data, 236.9K Total1363113632136332) iASL Compiler/Disassembler:1363413635Fixed a regression that appeared in the 20050708 version of the compiler13636where an error message was inadvertently emitted for invocations of the13637_OSI13638reserved control method.1363913640----------------------------------------1364108 July 2005. Summary of changes for version 20050708:13642136431) ACPI CA Core Subsystem:1364413645The use of the CPU stack in the debug version of the subsystem has been13646considerably reduced. Previously, a debug structure was declared in every13647function that used the debug macros. This structure has been removed in13648favor of declaring the individual elements as parameters to the debug13649functions. This reduces the cumulative stack use during nested execution13650of13651ACPI function calls at the cost of a small increase in the code size of13652the13653debug version of the subsystem. With assistance from Alexey Starikovskiy13654and13655Len Brown.1365613657Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent13658headers to define a macro that will return the current function name at13659runtime (such as __FUNCTION__ or _func_, etc.) The function name is used13660by13661the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the13662compiler-dependent header, the function name is saved on the CPU stack13663(one13664pointer per function.) This mechanism is used because apparently there13665exists no standard ANSI-C defined macro that that returns the function13666name.1366713668Redesigned and reimplemented the "Owner ID" mechanism used to track13669namespace objects created/deleted by ACPI tables and control method13670execution. A bitmap is now used to allocate and free the IDs, thus13671solving13672the wraparound problem present in the previous implementation. The size13673of13674the namespace node descriptor was reduced by 2 bytes as a result (Alexey13675Starikovskiy).1367613677Removed the UINT32_BIT and UINT16_BIT types that were used for the13678bitfield13679flag definitions within the headers for the predefined ACPI tables. These13680have been replaced by UINT8_BIT in order to increase the code portability13681of13682the subsystem. If the use of UINT8 remains a problem, we may be forced to13683eliminate bitfields entirely because of a lack of portability.1368413685Enhanced the performance of the AcpiUtUpdateObjectReference procedure.13686This13687is a frequently used function and this improvement increases the13688performance13689of the entire subsystem (Alexey Starikovskiy).1369013691Fixed several possible memory leaks and the inverse - premature object13692deletion (Alexey Starikovskiy).1369313694Code and Data Size: Current and previous core subsystem library sizes are13695shown below. These are the code and data sizes for the acpica.lib13696produced13697by the Microsoft Visual C++ 6.0 compiler, and these values do not include13698any ACPI driver or OSPM code. The debug version of the code includes the13699debug output trace mechanism and has a much larger code and data size.13700Note13701that these values will vary depending on the efficiency of the compiler13702and13703the compiler options used during generation.1370413705Previous Release:13706Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total13707Debug Version: 165.2K Code, 69.6K Data, 234.8K Total13708Current Release:13709Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total13710Debug Version: 170.0K Code, 69.7K Data, 239.7K Total1371113712----------------------------------------1371324 June 2005. Summary of changes for version 20050624:13714137151) ACPI CA Core Subsystem:1371613717Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for13718the host-defined cache object. This allows the OSL implementation to13719define13720and type this object in any manner desired, simplifying the OSL13721implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for13722Linux, and should be defined in the OS-specific header file for other13723operating systems as required.1372413725Changed the interface to AcpiOsAcquireObject to directly return the13726requested object as the function return (instead of ACPI_STATUS.) This13727change was made for performance reasons, since this is the purpose of the13728interface in the first place. AcpiOsAcquireObject is now similar to the13729AcpiOsAllocate interface.1373013731Implemented a new AML debugger command named Businfo. This command13732displays13733information about all devices that have an associate _PRT object. The13734_ADR,13735_HID, _UID, and _CID are displayed for these devices.1373613737Modified the initialization sequence in AcpiInitializeSubsystem to call13738the13739OSL interface AcpiOslInitialize first, before any local initialization.13740This13741change was required because the global initialization now calls OSL13742interfaces.1374313744Enhanced the Dump command to display the entire contents of Package13745objects13746(including all sub-objects and their values.)1374713748Restructured the code base to split some files because of size and/or13749because the code logically belonged in a separate file. New files are13750listed13751below. All makefiles and project files included in the ACPI CA release13752have13753been updated.13754utilities/utcache.c /* Local cache interfaces */13755utilities/utmutex.c /* Local mutex support */13756utilities/utstate.c /* State object support */13757interpreter/parser/psloop.c /* Main AML parse loop */1375813759Code and Data Size: Current and previous core subsystem library sizes are13760shown below. These are the code and data sizes for the acpica.lib13761produced13762by the Microsoft Visual C++ 6.0 compiler, and these values do not include13763any ACPI driver or OSPM code. The debug version of the code includes the13764debug output trace mechanism and has a much larger code and data size.13765Note13766that these values will vary depending on the efficiency of the compiler13767and13768the compiler options used during generation.1376913770Previous Release:13771Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total13772Debug Version: 164.0K Code, 69.1K Data, 233.1K Total13773Current Release:13774Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total13775Debug Version: 165.2K Code, 69.6K Data, 234.8K Total1377613777137782) iASL Compiler/Disassembler:1377913780Fixed a regression introduced in version 20050513 where the use of a13781Package13782object within a Case() statement caused a compile time exception. The13783original behavior has been restored (a Match() operator is emitted.)1378413785----------------------------------------1378617 June 2005. Summary of changes for version 20050617:13787137881) ACPI CA Core Subsystem:1378913790Moved the object cache operations into the OS interface layer (OSL) to13791allow13792the host OS to handle these operations if desired (for example, the Linux13793OSL will invoke the slab allocator). This support is optional; the13794compile13795time define ACPI_USE_LOCAL_CACHE may be used to utilize the original13796cache13797code in the ACPI CA core. The new OSL interfaces are shown below. See13798utalloc.c for an example implementation, and acpiosxf.h for the exact13799interface definitions. With assistance from Alexey Starikovskiy.13800AcpiOsCreateCache13801AcpiOsDeleteCache13802AcpiOsPurgeCache13803AcpiOsAcquireObject13804AcpiOsReleaseObject1380513806Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to13807return13808and restore a flags parameter. This fits better with many OS lock models.13809Note: the current execution state (interrupt handler or not) is no longer13810passed to these interfaces. If necessary, the OSL must determine this13811state13812by itself, a simple and fast operation. With assistance from Alexey13813Starikovskiy.1381413815Fixed a problem in the ACPI table handling where a valid XSDT was assumed13816present if the revision of the RSDP was 2 or greater. According to the13817ACPI13818specification, the XSDT is optional in all cases, and the table manager13819therefore now checks for both an RSDP >=2 and a valid XSDT pointer.13820Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs13821contain13822only the RSDT.1382313824Fixed an interpreter problem with the Mid() operator in the case of an13825input13826string where the resulting output string is of zero length. It now13827correctly13828returns a valid, null terminated string object instead of a string object13829with a null pointer.1383013831Fixed a problem with the control method argument handling to allow a13832store13833to an Arg object that already contains an object of type Device. The13834Device13835object is now correctly overwritten. Previously, an error was returned.138361383713838Enhanced the debugger Find command to emit object values in addition to13839the13840found object pathnames. The output format is the same as the dump13841namespace13842command.1384313844Enhanced the debugger Set command. It now has the ability to set the13845value13846of any Named integer object in the namespace (Previously, only method13847locals13848and args could be set.)1384913850Code and Data Size: Current and previous core subsystem library sizes are13851shown below. These are the code and data sizes for the acpica.lib13852produced13853by the Microsoft Visual C++ 6.0 compiler, and these values do not include13854any ACPI driver or OSPM code. The debug version of the code includes the13855debug output trace mechanism and has a much larger code and data size.13856Note13857that these values will vary depending on the efficiency of the compiler13858and13859the compiler options used during generation.1386013861Previous Release:13862Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total13863Debug Version: 164.0K Code, 69.3K Data, 233.3K Total13864Current Release:13865Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total13866Debug Version: 164.0K Code, 69.1K Data, 233.1K Total1386713868138692) iASL Compiler/Disassembler:1387013871Fixed a regression in the disassembler where if/else/while constructs13872were13873output incorrectly. This problem was introduced in the previous release13874(20050526). This problem also affected the single-step disassembly in the13875debugger.1387613877Fixed a problem where compiling the reserved _OSI method would randomly13878(but13879rarely) produce compile errors.1388013881Enhanced the disassembler to emit compilable code in the face of13882incorrect13883AML resource descriptors. If the optional ResourceSourceIndex is present,13884but the ResourceSource is not, do not emit the ResourceSourceIndex in the13885disassembly. Otherwise, the resulting code cannot be compiled without13886errors.1388713888----------------------------------------1388926 May 2005. Summary of changes for version 20050526:13890138911) ACPI CA Core Subsystem:1389213893Implemented support to execute Type 1 and Type 2 AML opcodes appearing at13894the module level (not within a control method.) These opcodes are13895executed13896exactly once at the time the table is loaded. This type of code was legal13897up13898until the release of ACPI 2.0B (2002) and is now supported within ACPI CA13899in13900order to provide backwards compatibility with earlier BIOS13901implementations.13902This eliminates the "Encountered executable code at module level" warning13903that was previously generated upon detection of such code.1390413905Fixed a problem in the interpreter where an AE_NOT_FOUND exception could13906inadvertently be generated during the lookup of namespace objects in the13907second pass parse of ACPI tables and control methods. It appears that13908this13909problem could occur during the resolution of forward references to13910namespace13911objects.1391213913Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function,13914corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This13915allows the deadlock detection debug code to be compiled out in the normal13916case, improving mutex performance (and overall subsystem performance)13917considerably.1391813919Implemented a handful of miscellaneous fixes for possible memory leaks on13920error conditions and error handling control paths. These fixes were13921suggested by FreeBSD and the Coverity Prevent source code analysis tool.1392213923Added a check for a null RSDT pointer in AcpiGetFirmwareTable13924(tbxfroot.c)13925to prevent a fault in this error case.1392613927Code and Data Size: Current and previous core subsystem library sizes are13928shown below. These are the code and data sizes for the acpica.lib13929produced13930by the Microsoft Visual C++ 6.0 compiler, and these values do not include13931any ACPI driver or OSPM code. The debug version of the code includes the13932debug output trace mechanism and has a much larger code and data size.13933Note13934that these values will vary depending on the efficiency of the compiler13935and13936the compiler options used during generation.1393713938Previous Release:13939Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total13940Debug Version: 163.7K Code, 69.3K Data, 233.0K Total13941Current Release:13942Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total13943Debug Version: 164.0K Code, 69.3K Data, 233.3K Total1394413945139462) iASL Compiler/Disassembler:1394713948Implemented support to allow Type 1 and Type 2 ASL operators to appear at13949the module level (not within a control method.) These operators will be13950executed once at the time the table is loaded. This type of code was13951legal13952up until the release of ACPI 2.0B (2002) and is now supported by the iASL13953compiler in order to provide backwards compatibility with earlier BIOS13954ASL13955code.1395613957The ACPI integer width (specified via the table revision ID or the -r13958override, 32 or 64 bits) is now used internally during compile-time13959constant13960folding to ensure that constants are truncated to 32 bits if necessary.13961Previously, the revision ID value was only emitted in the AML table13962header.1396313964An error message is now generated for the Mutex and Method operators if13965the13966SyncLevel parameter is outside the legal range of 0 through 15.1396713968Fixed a problem with the Method operator ParameterTypes list handling13969(ACPI139703.0). Previously, more than 2 types or 2 arguments generated a syntax13971error.13972The actual underlying implementation of method argument typechecking is13973still under development, however.1397413975----------------------------------------1397613 May 2005. Summary of changes for version 20050513:13977139781) ACPI CA Core Subsystem:1397913980Implemented support for PCI Express root bridges -- added support for13981device13982PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup.1398313984The interpreter now automatically truncates incoming 64-bit constants to139853213986bits if currently executing out of a 32-bit ACPI table (Revision < 2).13987This13988also affects the iASL compiler constant folding. (Note: as per below, the13989iASL compiler no longer allows 64-bit constants within 32-bit tables.)1399013991Fixed a problem where string and buffer objects with "static" pointers13992(pointers to initialization data within an ACPI table) were not handled13993consistently. The internal object copy operation now always copies the13994data13995to a newly allocated buffer, regardless of whether the source object is13996static or not.1399713998Fixed a problem with the FromBCD operator where an implicit result13999conversion was improperly performed while storing the result to the14000target14001operand. Since this is an "explicit conversion" operator, the implicit14002conversion should never be performed on the output.1400314004Fixed a problem with the CopyObject operator where a copy to an existing14005named object did not always completely overwrite the existing object14006stored14007at name. Specifically, a buffer-to-buffer copy did not delete the14008existing14009buffer.1401014011Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces14012and14013structs for consistency.1401414015Code and Data Size: Current and previous core subsystem library sizes are14016shown below. These are the code and data sizes for the acpica.lib14017produced14018by the Microsoft Visual C++ 6.0 compiler, and these values do not include14019any ACPI driver or OSPM code. The debug version of the code includes the14020debug output trace mechanism and has a much larger code and data size.14021Note14022that these values will vary depending on the efficiency of the compiler14023and14024the compiler options used during generation.1402514026Previous Release:14027Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total14028Debug Version: 163.7K Code, 69.3K Data, 233.0K Total14029Current Release: (Same sizes)14030Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total14031Debug Version: 163.7K Code, 69.3K Data, 233.0K Total1403214033140342) iASL Compiler/Disassembler:1403514036The compiler now emits a warning if an attempt is made to generate a 64-14037bit14038integer constant from within a 32-bit ACPI table (Revision < 2). The14039integer14040is truncated to 32 bits.1404114042Fixed a problem with large package objects: if the static length of the14043package is greater than 255, the "variable length package" opcode is14044emitted. Previously, this caused an error. This requires an update to the14045ACPI spec, since it currently (incorrectly) states that packages larger14046than14047255 elements are not allowed.1404814049The disassembler now correctly handles variable length packages and14050packages14051larger than 255 elements.1405214053----------------------------------------1405408 April 2005. Summary of changes for version 20050408:14055140561) ACPI CA Core Subsystem:1405714058Fixed three cases in the interpreter where an "index" argument to an ASL14059function was still (internally) 32 bits instead of the required 64 bits.14060This was the Index argument to the Index, Mid, and Match operators.1406114062The "strupr" function is now permanently local (AcpiUtStrupr), since this14063is14064not a POSIX-defined function and not present in most kernel-level C14065libraries. All references to the C library strupr function have been14066removed14067from the headers.1406814069Completed the deployment of static functions/prototypes. All prototypes14070with14071the static attribute have been moved from the headers to the owning C14072file.1407314074Implemented an extract option (-e) for the AcpiBin utility (AML binary14075utility). This option allows the utility to extract individual ACPI14076tables14077from the output of AcpiDmp. It provides the same functionality of the14078acpixtract.pl perl script without the worry of setting the correct perl14079options. AcpiBin runs on Windows and has not yet been generated/validated14080in14081the Linux/Unix environment (but should be soon).1408214083Updated and fixed the table dump option for AcpiBin (-d). This option14084converts a single ACPI table to a hex/ascii file, similar to the output14085of14086AcpiDmp.1408714088Code and Data Size: Current and previous core subsystem library sizes are14089shown below. These are the code and data sizes for the acpica.lib14090produced14091by the Microsoft Visual C++ 6.0 compiler, and these values do not include14092any ACPI driver or OSPM code. The debug version of the code includes the14093debug output trace mechanism and has a much larger code and data size.14094Note14095that these values will vary depending on the efficiency of the compiler14096and14097the compiler options used during generation.1409814099Previous Release:14100Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total14101Debug Version: 163.5K Code, 69.3K Data, 232.8K Total14102Current Release:14103Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total14104Debug Version: 163.7K Code, 69.3K Data, 233.0K Total1410514106141072) iASL Compiler/Disassembler:1410814109Disassembler fix: Added a check to ensure that the table length found in14110the14111ACPI table header within the input file is not longer than the actual14112input14113file size. This indicates some kind of file or table corruption.1411414115----------------------------------------1411629 March 2005. Summary of changes for version 20050329:14117141181) ACPI CA Core Subsystem:1411914120An error is now generated if an attempt is made to create a Buffer Field14121of14122length zero (A CreateField with a length operand of zero.)1412314124The interpreter now issues a warning whenever executable code at the14125module14126level is detected during ACPI table load. This will give some idea of the14127prevalence of this type of code.1412814129Implemented support for references to named objects (other than control14130methods) within package objects.1413114132Enhanced package object output for the debug object. Package objects are14133now14134completely dumped, showing all elements.1413514136Enhanced miscellaneous object output for the debug object. Any object can14137now be written to the debug object (for example, a device object can be14138written, and the type of the object will be displayed.)1413914140The "static" qualifier has been added to all local functions across both14141the14142core subsystem and the iASL compiler.1414314144The number of "long" lines (> 80 chars) within the source has been14145significantly reduced, by about 1/3.1414614147Cleaned up all header files to ensure that all CA/iASL functions are14148prototyped (even static functions) and the formatting is consistent.1414914150Two new header files have been added, acopcode.h and acnames.h.1415114152Removed several obsolete functions that were no longer used.1415314154Code and Data Size: Current and previous core subsystem library sizes are14155shown below. These are the code and data sizes for the acpica.lib14156produced14157by the Microsoft Visual C++ 6.0 compiler, and these values do not include14158any ACPI driver or OSPM code. The debug version of the code includes the14159debug output trace mechanism and has a much larger code and data size.14160Note14161that these values will vary depending on the efficiency of the compiler14162and14163the compiler options used during generation.1416414165Previous Release:14166Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14167Debug Version: 165.4K Code, 69.7K Data, 236.1K Total14168Current Release:14169Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total14170Debug Version: 163.5K Code, 69.3K Data, 232.8K Total141711417214173141742) iASL Compiler/Disassembler:1417514176Fixed a problem with the resource descriptor generation/support. For the14177ResourceSourceIndex and the ResourceSource fields, both must be present,14178or14179both must be not present - can't have one without the other.1418014181The compiler now returns non-zero from the main procedure if any errors14182have14183occurred during the compilation.141841418514186----------------------------------------1418709 March 2005. Summary of changes for version 20050309:14188141891) ACPI CA Core Subsystem:1419014191The string-to-buffer implicit conversion code has been modified again14192after14193a change to the ACPI specification. In order to match the behavior of14194the14195other major ACPI implementation, the target buffer is no longer truncated14196if14197the source string is smaller than an existing target buffer. This change14198requires an update to the ACPI spec, and should eliminate the recent14199AE_AML_BUFFER_LIMIT issues.1420014201The "implicit return" support was rewritten to a new algorithm that14202solves14203the general case. Rather than attempt to determine when a method is about14204to14205exit, the result of every ASL operator is saved momentarily until the14206very14207next ASL operator is executed. Therefore, no matter how the method exits,14208there will always be a saved implicit return value. This feature is only14209enabled with the AcpiGbl_EnableInterpreterSlack flag, and should14210eliminate14211AE_AML_NO_RETURN_VALUE errors when enabled.1421214213Implemented implicit conversion support for the predicate (operand) of14214the14215If, Else, and While operators. String and Buffer arguments are14216automatically14217converted to Integers.1421814219Changed the string-to-integer conversion behavior to match the new ACPI14220errata: "If no integer object exists, a new integer is created. The ASCII14221string is interpreted as a hexadecimal constant. Each string character is14222interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting14223with the first character as the most significant digit, and ending with14224the14225first non-hexadecimal character or end-of-string." This means that the14226first14227non-hex character terminates the conversion and this is the code that was14228changed.1422914230Fixed a problem where the ObjectType operator would fail (fault) when14231used14232on an Index of a Package which pointed to a null package element. The14233operator now properly returns zero (Uninitialized) in this case.1423414235Fixed a problem where the While operator used excessive memory by not14236properly popping the result stack during execution. There was no memory14237leak14238after execution, however. (Code provided by Valery Podrezov.)1423914240Fixed a problem where references to control methods within Package14241objects14242caused the method to be invoked, instead of producing a reference object14243pointing to the method.1424414245Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree)14246to14247improve performance and reduce code size. (Code provided by Alexey14248Starikovskiy.)1424914250Code and Data Size: Current and previous core subsystem library sizes are14251shown below. These are the code and data sizes for the acpica.lib14252produced14253by the Microsoft Visual C++ 6.0 compiler, and these values do not include14254any ACPI driver or OSPM code. The debug version of the code includes the14255debug output trace mechanism and has a much larger code and data size.14256Note14257that these values will vary depending on the efficiency of the compiler14258and14259the compiler options used during generation.1426014261Previous Release:14262Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14263Debug Version: 165.4K Code, 69.6K Data, 236.0K Total14264Current Release:14265Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14266Debug Version: 165.4K Code, 69.7K Data, 236.1K Total1426714268142692) iASL Compiler/Disassembler:1427014271Fixed a problem with the Return operator with no arguments. Since the AML14272grammar for the byte encoding requires an operand for the Return opcode,14273the14274compiler now emits a Return(Zero) for this case. An ACPI specification14275update has been written for this case.1427614277For tables other than the DSDT, namepath optimization is automatically14278disabled. This is because SSDTs can be loaded anywhere in the namespace,14279the14280compiler has no knowledge of where, and thus cannot optimize namepaths.1428114282Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was14283inadvertently omitted from the ACPI specification, and will require an14284update to the spec.1428514286The source file scan for ASCII characters is now optional (-a). This14287change14288was made because some vendors place non-ascii characters within comments.14289However, the scan is simply a brute-force byte compare to ensure all14290characters in the file are in the range 0x00 to 0x7F.1429114292Fixed a problem with the CondRefOf operator where the compiler was14293inappropriately checking for the existence of the target. Since the point14294of14295the operator is to check for the existence of the target at run-time, the14296compiler no longer checks for the target existence.1429714298Fixed a problem where errors generated from the internal AML interpreter14299during constant folding were not handled properly, causing a fault.1430014301Fixed a problem with overly aggressive range checking for the Stall14302operator. The valid range (max 255) is now only checked if the operand is14303of14304type Integer. All other operand types cannot be statically checked.1430514306Fixed a problem where control method references within the RefOf,14307DeRefOf,14308and ObjectType operators were not treated properly. They are now treated14309as14310actual references, not method invocations.1431114312Fixed and enhanced the "list namespace" option (-ln). This option was14313broken14314a number of releases ago.1431514316Improved error handling for the Field, IndexField, and BankField14317operators.14318The compiler now cleanly reports and recovers from errors in the field14319component (FieldUnit) list.1432014321Fixed a disassembler problem where the optional ResourceDescriptor fields14322TRS and TTP were not always handled correctly.1432314324Disassembler - Comments in output now use "//" instead of "/*"1432514326----------------------------------------1432728 February 2005. Summary of changes for version 20050228:14328143291) ACPI CA Core Subsystem:1433014331Fixed a problem where the result of an Index() operator (an object14332reference) must increment the reference count on the target object for14333the14334life of the object reference.1433514336Implemented AML Interpreter and Debugger support for the new ACPI 3.014337Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and14338WordSpace14339resource descriptors.1434014341Implemented support in the _OSI method for the ACPI 3.0 "Extended Address14342Space Descriptor" string, indicating interpreter support for the14343descriptors14344above.1434514346Implemented header support for the new ACPI 3.0 FADT flag bits.1434714348Implemented header support for the new ACPI 3.0 PCI Express bits for the14349PM114350status/enable registers.1435114352Updated header support for the MADT processor local Apic struct and MADT14353platform interrupt source struct for new ACPI 3.0 fields.1435414355Implemented header support for the SRAT and SLIT ACPI tables.1435614357Implemented the -s switch in AcpiExec to enable the "InterpreterSlack"14358flag14359at runtime.1436014361Code and Data Size: Current and previous core subsystem library sizes are14362shown below. These are the code and data sizes for the acpica.lib14363produced14364by the Microsoft Visual C++ 6.0 compiler, and these values do not include14365any ACPI driver or OSPM code. The debug version of the code includes the14366debug output trace mechanism and has a much larger code and data size.14367Note14368that these values will vary depending on the efficiency of the compiler14369and14370the compiler options used during generation.1437114372Previous Release:14373Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total14374Debug Version: 164.9K Code, 69.2K Data, 234.1K Total14375Current Release:14376Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14377Debug Version: 165.4K Code, 69.6K Data, 236.0K Total1437814379143802) iASL Compiler/Disassembler:1438114382Fixed a problem with the internal 64-bit String-to-integer conversion14383with14384strings less than two characters long.1438514386Fixed a problem with constant folding where the result of the Index()14387operator can not be considered a constant. This means that Index() cannot14388be14389a type3 opcode and this will require an update to the ACPI specification.1439014391Disassembler: Implemented support for the TTP, MTP, and TRS resource14392descriptor fields. These fields were inadvertently ignored and not output14393in14394the disassembly of the resource descriptor.143951439614397----------------------------------------1439811 February 2005. Summary of changes for version 20050211:14399144001) ACPI CA Core Subsystem:1440114402Implemented ACPI 3.0 support for implicit conversion within the Match()14403operator. MatchObjects can now be of type integer, buffer, or string14404instead14405of just type integer. Package elements are implicitly converted to the14406type14407of the MatchObject. This change aligns the behavior of Match() with the14408behavior of the other logical operators (LLess(), etc.) It also requires14409an14410errata change to the ACPI specification as this support was intended for14411ACPI 3.0, but was inadvertently omitted.1441214413Fixed a problem with the internal implicit "to buffer" conversion.14414Strings14415that are converted to buffers will cause buffer truncation if the string14416is14417smaller than the target buffer. Integers that are converted to buffers14418will14419not cause buffer truncation, only zero extension (both as per the ACPI14420spec.) The problem was introduced when code was added to truncate the14421buffer, but this should not be performed in all cases, only the string14422case.1442314424Fixed a problem with the Buffer and Package operators where the14425interpreter14426would get confused if two such operators were used as operands to an ASL14427operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result14428stack was not being popped after the execution of these operators,14429resulting14430in an AE_NO_RETURN_VALUE exception.1443114432Fixed a problem with constructs of the form Store(Index(...),...). The14433reference object returned from Index was inadvertently resolved to an14434actual14435value. This problem was introduced in version 20050114 when the behavior14436of14437Store() was modified to restrict the object types that can be used as the14438source operand (to match the ACPI specification.)1443914440Reduced excessive stack use within the AcpiGetObjectInfo procedure.1444114442Added a fix to aclinux.h to allow generation of AcpiExec on Linux.1444314444Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct.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.1K Code, 11.5K Data, 89.6K Total14459Debug Version: 164.8K Code, 69.2K Data, 234.0K Total14460Current Release:14461Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total14462Debug Version: 164.9K Code, 69.2K Data, 234.1K Total1446314464144652) iASL Compiler/Disassembler:1446614467Fixed a code generation problem in the constant folding optimization code14468where incorrect code was generated if a constant was reduced to a buffer14469object (i.e., a reduced type 5 opcode.)1447014471Fixed a typechecking problem for the ToBuffer operator. Caused by an14472incorrect return type in the internal opcode information table.1447314474----------------------------------------1447525 January 2005. Summary of changes for version 20050125:14476144771) ACPI CA Core Subsystem:1447814479Fixed a recently introduced problem with the Global Lock where the14480underlying semaphore was not created. This problem was introduced in14481version 20050114, and caused an AE_AML_NO_OPERAND exception during an14482Acquire() operation on _GL.1448314484The local object cache is now optional, and is disabled by default. Both14485AcpiExec and the iASL compiler enable the cache because they run in user14486mode and this enhances their performance. #define14487ACPI_ENABLE_OBJECT_CACHE14488to enable the local cache.1448914490Fixed an issue in the internal function AcpiUtEvaluateObject concerning14491the14492optional "implicit return" support where an error was returned if no14493return14494object was expected, but one was implicitly returned. AE_OK is now14495returned14496in this case and the implicitly returned object is deleted.14497AcpiUtEvaluateObject is only occasionally used, and only to execute14498reserved14499methods such as _STA and _INI where the return type is known up front.1450014501Fixed a few issues with the internal convert-to-integer code. It now14502returns14503an error if an attempt is made to convert a null string, a string of only14504blanks/tabs, or a zero-length buffer. This affects both implicit14505conversion14506and explicit conversion via the ToInteger() operator.1450714508The internal debug code in AcpiUtAcquireMutex has been commented out. It14509is14510not needed for normal operation and should increase the performance of14511the14512entire subsystem. The code remains in case it is needed for debug14513purposes14514again.1451514516The AcpiExec source and makefile are included in the Unix/Linux package14517for14518the first time.1451914520Code and Data Size: Current and previous core subsystem library sizes are14521shown below. These are the code and data sizes for the acpica.lib14522produced14523by the Microsoft Visual C++ 6.0 compiler, and these values do not include14524any ACPI driver or OSPM code. The debug version of the code includes the14525debug output trace mechanism and has a much larger code and data size.14526Note14527that these values will vary depending on the efficiency of the compiler14528and14529the compiler options used during generation.1453014531Previous Release:14532Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total14533Debug Version: 165.4K Code, 69.4K Data, 234.8K Total14534Current Release:14535Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total14536Debug Version: 164.8K Code, 69.2K Data, 234.0K Total14537145382) iASL Compiler/Disassembler:1453914540Switch/Case support: A warning is now issued if the type of the Switch14541value14542cannot be determined at compile time. For example, Switch(Arg0) will14543generate the warning, and the type is assumed to be an integer. As per14544the14545ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate14546the14547warning.1454814549Switch/Case support: Implemented support for buffer and string objects as14550the switch value. This is an ACPI 3.0 feature, now that LEqual supports14551buffers and strings.1455214553Switch/Case support: The emitted code for the LEqual() comparisons now14554uses14555the switch value as the first operand, not the second. The case value is14556now14557the second operand, and this allows the case value to be implicitly14558converted to the type of the switch value, not the other way around.1455914560Switch/Case support: Temporary variables are now emitted immediately14561within14562the control method, not at the global level. This means that there are14563now1456436 temps available per-method, not 36 temps per-module as was the case14565with14566the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.)1456714568----------------------------------------1456914 January 2005. Summary of changes for version 20050114:1457014571Added 2005 copyright to all module headers. This affects every module in14572the core subsystem, iASL compiler, and the utilities.14573145741) ACPI CA Core Subsystem:1457514576Fixed an issue with the String-to-Buffer conversion code where the string14577null terminator was not included in the buffer after conversion, but14578there14579is existing ASL that assumes the string null terminator is included. This14580is14581the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was14582introduced in the previous version when the code was updated to correctly14583set the converted buffer size as per the ACPI specification. The ACPI14584spec14585is ambiguous and will be updated to specify that the null terminator must14586be14587included in the converted buffer. This also affects the ToBuffer() ASL14588operator.1458914590Fixed a problem with the Mid() ASL/AML operator where it did not work14591correctly on Buffer objects. Newly created sub-buffers were not being14592marked14593as initialized.145941459514596Fixed a problem in AcpiTbFindTable where incorrect string compares were14597performed on the OemId and OemTableId table header fields. These fields14598are14599not null terminated, so strncmp is now used instead of strcmp.1460014601Implemented a restriction on the Store() ASL/AML operator to align the14602behavior with the ACPI specification. Previously, any object could be14603used14604as the source operand. Now, the only objects that may be used are14605Integers,14606Buffers, Strings, Packages, Object References, and DDB Handles. If14607necessary, the original behavior can be restored by enabling the14608EnableInterpreterSlack flag.1460914610Enhanced the optional "implicit return" support to allow an implicit14611return14612value from methods that are invoked externally via the AcpiEvaluateObject14613interface. This enables implicit returns from the _STA and _INI methods,14614for example.1461514616Changed the Revision() ASL/AML operator to return the current version of14617the14618AML interpreter, in the YYYYMMDD format. Previously, it incorrectly14619returned14620the supported ACPI version (This is the function of the _REV method).1462114622Updated the _REV predefined method to return the currently supported14623version14624of ACPI, now 3.1462514626Implemented batch mode option for the AcpiExec utility (-b).1462714628Code and Data Size: Current and previous core subsystem library sizes are14629shown below. These are the code and data sizes for the acpica.lib14630produced14631by the Microsoft Visual C++ 6.0 compiler, and these values do not include14632any ACPI driver or OSPM code. The debug version of the code includes the14633debug output trace mechanism and has a much larger code and data size.14634Note14635that these values will vary depending on the efficiency of the compiler14636and14637the compiler options used during generation.1463814639Previous Release:14640Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14641Debug Version: 165.3K Code, 69.4K Data, 234.7K Total14642Current Release:14643Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total14644Debug Version: 165.4K Code, 69.4K Data, 234.8K Total1464514646----------------------------------------1464710 December 2004. Summary of changes for version 20041210:1464814649ACPI 3.0 support is nearing completion in both the iASL compiler and the14650ACPI CA core subsystem.14651146521) ACPI CA Core Subsystem:1465314654Fixed a problem in the ToDecimalString operator where the resulting14655string14656length was incorrectly calculated. The length is now calculated exactly,14657eliminating incorrect AE_STRING_LIMIT exceptions.1465814659Fixed a problem in the ToHexString operator to allow a maximum 20014660character14661string to be produced.1466214663Fixed a problem in the internal string-to-buffer and buffer-to-buffer14664copy14665routine where the length of the resulting buffer was not truncated to the14666new size (if the target buffer already existed).1466714668Code and Data Size: Current and previous core subsystem library sizes are14669shown below. These are the code and data sizes for the acpica.lib14670produced14671by the Microsoft Visual C++ 6.0 compiler, and these values do not include14672any ACPI driver or OSPM code. The debug version of the code includes the14673debug output trace mechanism and has a much larger code and data size.14674Note14675that these values will vary depending on the efficiency of the compiler14676and14677the compiler options used during generation.1467814679Previous Release:14680Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14681Debug Version: 164.7K Code, 68.5K Data, 233.2K Total14682Current Release:14683Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14684Debug Version: 165.3K Code, 69.4K Data, 234.7K Total1468514686146872) iASL Compiler/Disassembler:1468814689Implemented the new ACPI 3.0 resource template macros - DWordSpace,14690ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace.14691Includes support in the disassembler.1469214693Implemented support for the new (ACPI 3.0) parameter to the Register14694macro,14695AccessSize.1469614697Fixed a problem where the _HE resource name for the Interrupt macro was14698referencing bit 0 instead of bit 1.1469914700Implemented check for maximum 255 interrupts in the Interrupt macro.1470114702Fixed a problem with the predefined resource descriptor names where14703incorrect AML code was generated if the offset within the resource buffer14704was 0 or 1. The optimizer shortened the AML code to a single byte opcode14705but did not update the surrounding package lengths.1470614707Changes to the Dma macro: All channels within the channel list must be14708in14709the range 0-7. Maximum 8 channels can be specified. BusMaster operand is14710optional (default is BusMaster).1471114712Implemented check for maximum 7 data bytes for the VendorShort macro.1471314714The ReadWrite parameter is now optional for the Memory32 and similar14715macros.1471614717----------------------------------------1471803 December 2004. Summary of changes for version 20041203:14719147201) ACPI CA Core Subsystem:1472114722The low-level field insertion/extraction code (exfldio) has been14723completely14724rewritten to eliminate unnecessary complexity, bugs, and boundary14725conditions.1472614727Fixed a problem in the ToInteger, ToBuffer, ToHexString, and14728ToDecimalString14729operators where the input operand could be inadvertently deleted if no14730conversion was necessary (e.g., if the input to ToInteger was an Integer14731object.)1473214733Fixed a problem with the ToDecimalString and ToHexString where an14734incorrect14735exception code was returned if the resulting string would be > 200 chars.14736AE_STRING_LIMIT is now returned.1473714738Fixed a problem with the Concatenate operator where AE_OK was always14739returned, even if the operation failed.1474014741Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 12814742semaphores to be allocated.1474314744Code and Data Size: Current and previous core subsystem library sizes are14745shown below. These are the code and data sizes for the acpica.lib14746produced14747by the Microsoft Visual C++ 6.0 compiler, and these values do not include14748any ACPI driver or OSPM code. The debug version of the code includes the14749debug output trace mechanism and has a much larger code and data size.14750Note14751that these values will vary depending on the efficiency of the compiler14752and14753the compiler options used during generation.1475414755Previous Release:14756Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14757Debug Version: 165.2K Code, 68.6K Data, 233.8K Total14758Current Release:14759Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total14760Debug Version: 164.7K Code, 68.5K Data, 233.2K Total1476114762147632) iASL Compiler/Disassembler:1476414765Fixed typechecking for the ObjectType and SizeOf operators. Problem was14766recently introduced in 20041119.1476714768Fixed a problem with the ToUUID macro where the upper nybble of each14769buffer14770byte was inadvertently set to zero.1477114772----------------------------------------1477319 November 2004. Summary of changes for version 20041119:14774147751) ACPI CA Core Subsystem:1477614777Fixed a problem in the internal ConvertToInteger routine where new14778integers14779were not truncated to 32 bits for 32-bit ACPI tables. This routine14780converts14781buffers and strings to integers.1478214783Implemented support to store a value to an Index() on a String object.14784This14785is an ACPI 2.0 feature that had not yet been implemented.1478614787Implemented new behavior for storing objects to individual package14788elements14789(via the Index() operator). The previous behavior was to invoke the14790implicit14791conversion rules if an object was already present at the index. The new14792behavior is to simply delete any existing object and directly store the14793new14794object. Although the ACPI specification seems unclear on this subject,14795other14796ACPI implementations behave in this manner. (This is the root of the14797AE_BAD_HEX_CONSTANT issue.)1479814799Modified the RSDP memory scan mechanism to support the extended checksum14800for14801ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid14802RSDP signature is found with a valid checksum.1480314804Code and Data Size: Current and previous core subsystem library sizes are14805shown below. These are the code and data sizes for the acpica.lib14806produced14807by the Microsoft Visual C++ 6.0 compiler, and these values do not include14808any ACPI driver or OSPM code. The debug version of the code includes the14809debug output trace mechanism and has a much larger code and data size.14810Note14811that these values will vary depending on the efficiency of the compiler14812and14813the compiler options used during generation.1481414815Previous Release:14816Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14817Debug Version: 165.2K Code, 68.6K Data, 233.8K Total14818Current Release:14819Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14820Debug Version: 165.2K Code, 68.6K Data, 233.8K Total1482114822148232) iASL Compiler/Disassembler:1482414825Fixed a missing semicolon in the aslcompiler.y file.1482614827----------------------------------------1482805 November 2004. Summary of changes for version 20041105:14829148301) ACPI CA Core Subsystem:1483114832Implemented support for FADT revision 2. This was an interim table14833(between14834ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register.1483514836Implemented optional support to allow uninitialized LocalX and ArgX14837variables in a control method. The variables are initialized to an14838Integer14839object with a value of zero. This support is enabled by setting the14840AcpiGbl_EnableInterpreterSlack flag to TRUE.1484114842Implemented support for Integer objects for the SizeOf operator. Either14843414844or 8 is returned, depending on the current integer size (32-bit or 64-14845bit,14846depending on the parent table revision).1484714848Fixed a problem in the implementation of the SizeOf and ObjectType14849operators14850where the operand was resolved to a value too early, causing incorrect14851return values for some objects.1485214853Fixed some possible memory leaks during exceptional conditions.1485414855Code and Data Size: Current and previous core subsystem library sizes are14856shown below. These are the code and data sizes for the acpica.lib14857produced14858by the Microsoft Visual C++ 6.0 compiler, and these values do not include14859any ACPI driver or OSPM code. The debug version of the code includes the14860debug output trace mechanism and has a much larger code and data size.14861Note14862that these values will vary depending on the efficiency of the compiler14863and14864the compiler options used during generation.1486514866Previous Release:14867Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total14868Debug Version: 164.8K Code, 68.6K Data, 233.4K Total14869Current Release:14870Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total14871Debug Version: 165.2K Code, 68.6K Data, 233.8K Total1487214873148742) iASL Compiler/Disassembler:1487514876Implemented support for all ACPI 3.0 reserved names and methods.1487714878Implemented all ACPI 3.0 grammar elements in the front-end, including14879support for semicolons.1488014881Implemented the ACPI 3.0 Function() and ToUUID() macros1488214883Fixed a problem in the disassembler where a Scope() operator would not be14884emitted properly if the target of the scope was in another table.1488514886----------------------------------------1488715 October 2004. Summary of changes for version 20041015:1488814889Note: ACPI CA is currently undergoing an in-depth and complete formal14890evaluation to test/verify the following areas. Other suggestions are14891welcome. This will result in an increase in the frequency of releases and14892the number of bug fixes in the next few months.14893- Functional tests for all ASL/AML operators14894- All implicit/explicit type conversions14895- Bit fields and operation regions14896- 64-bit math support and 32-bit-only "truncated" math support14897- Exceptional conditions, both compiler and interpreter14898- Dynamic object deletion and memory leaks14899- ACPI 3.0 support when implemented14900- External interfaces to the ACPI subsystem1490114902149031) ACPI CA Core Subsystem:1490414905Fixed two alignment issues on 64-bit platforms - within debug statements14906in14907AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the14908Address14909field within the non-aligned ACPI generic address structure.1491014911Fixed a problem in the Increment and Decrement operators where incorrect14912operand resolution could result in the inadvertent modification of the14913original integer when the integer is passed into another method as an14914argument and the arg is then incremented/decremented.1491514916Fixed a problem in the FromBCD operator where the upper 32-bits of a 64-14917bit14918BCD number were truncated during conversion.1491914920Fixed a problem in the ToDecimal operator where the length of the14921resulting14922string could be set incorrectly too long if the input operand was a14923Buffer14924object.1492514926Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte14927(0)14928within a buffer would prematurely terminate a compare between buffer14929objects.1493014931Added a check for string overflow (>200 characters as per the ACPI14932specification) during the Concatenate operator with two string operands.1493314934Code and Data Size: Current and previous core subsystem library sizes are14935shown below. These are the code and data sizes for the acpica.lib14936produced14937by the Microsoft Visual C++ 6.0 compiler, and these values do not include14938any ACPI driver or OSPM code. The debug version of the code includes the14939debug output trace mechanism and has a much larger code and data size.14940Note14941that these values will vary depending on the efficiency of the compiler14942and14943the compiler options used during generation.1494414945Previous Release:14946Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total14947Debug Version: 164.6K Code, 68.5K Data, 233.1K Total14948Current Release:14949Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total14950Debug Version: 164.8K Code, 68.6K Data, 233.4K Total149511495214953149542) iASL Compiler/Disassembler:1495514956Allow the use of the ObjectType operator on uninitialized Locals and Args14957(returns 0 as per the ACPI specification).1495814959Fixed a problem where the compiler would fault if there was a syntax14960error14961in the FieldName of all of the various CreateXXXField operators.1496214963Disallow the use of lower case letters within the EISAID macro, as per14964the14965ACPI specification. All EISAID strings must be of the form "UUUNNNN"14966Where14967U is an uppercase letter and N is a hex digit.149681496914970----------------------------------------1497106 October 2004. Summary of changes for version 20041006:14972149731) ACPI CA Core Subsystem:1497414975Implemented support for the ACPI 3.0 Timer operator. This ASL function14976implements a 64-bit timer with 100 nanosecond granularity.1497714978Defined a new OSL interface, AcpiOsGetTimer. This interface is used to14979implement the ACPI 3.0 Timer operator. This allows the host OS to14980implement14981the timer with the best clock available. Also, it keeps the core14982subsystem14983out of the clock handling business, since the host OS (usually) performs14984this function.1498514986Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write)14987functions use a 64-bit address which is part of the packed ACPI Generic14988Address Structure. Since the structure is non-aligned, the alignment14989macros14990are now used to extract the address to a local variable before use.1499114992Fixed a problem where the ToInteger operator assumed all input strings14993were14994hexadecimal. The operator now handles both decimal strings and hex14995strings14996(prefixed with "0x").1499714998Fixed a problem where the string length in the string object created as a14999result of the internal ConvertToString procedure could be incorrect. This15000potentially affected all implicit conversions and also the15001ToDecimalString15002and ToHexString operators.1500315004Fixed two problems in the ToString operator. If the length parameter was15005zero, an incorrect string object was created and the value of the input15006length parameter was inadvertently changed from zero to Ones.1500715008Fixed a problem where the optional ResourceSource string in the15009ExtendedIRQ15010resource macro was ignored.1501115012Simplified the interfaces to the internal division functions, reducing15013code15014size and complexity.1501515016Code and Data Size: Current and previous core subsystem library sizes are15017shown below. These are the code and data sizes for the acpica.lib15018produced15019by the Microsoft Visual C++ 6.0 compiler, and these values do not include15020any ACPI driver or OSPM code. The debug version of the code includes the15021debug output trace mechanism and has a much larger code and data size.15022Note15023that these values will vary depending on the efficiency of the compiler15024and15025the compiler options used during generation.1502615027Previous Release:15028Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total15029Debug Version: 164.5K Code, 68.3K Data, 232.8K Total15030Current Release:15031Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total15032Debug Version: 164.6K Code, 68.5K Data, 233.1K Total1503315034150352) iASL Compiler/Disassembler:1503615037Implemented support for the ACPI 3.0 Timer operator.1503815039Fixed a problem where the Default() operator was inadvertently ignored in15040a15041Switch/Case block. This was a problem in the translation of the Switch15042statement to If...Else pairs.1504315044Added support to allow a standalone Return operator, with no parentheses15045(or15046operands).1504715048Fixed a problem with code generation for the ElseIf operator where the15049translated Else...If parse tree was improperly constructed leading to the15050loss of some code.1505115052----------------------------------------1505322 September 2004. Summary of changes for version 20040922:15054150551) ACPI CA Core Subsystem:1505615057Fixed a problem with the implementation of the LNot() operator where15058"Ones"15059was not returned for the TRUE case. Changed the code to return Ones15060instead15061of (!Arg) which was usually 1. This change affects iASL constant folding15062for15063this operator also.1506415065Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was15066not15067initialized properly -- Now zero the entire buffer in this case where the15068buffer already exists.1506915070Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT3215071Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all15072related code considerably. This will require changes/updates to all OS15073interface layers (OSLs.)1507415075Implemented a new external interface, AcpiInstallExceptionHandler, to15076allow15077a system exception handler to be installed. This handler is invoked upon15078any15079run-time exception that occurs during control method execution.1508015081Added support for the DSDT in AcpiTbFindTable. This allows the15082DataTableRegion() operator to access the local copy of the DSDT.1508315084Code and Data Size: Current and previous core subsystem library sizes are15085shown below. These are the code and data sizes for the acpica.lib15086produced15087by the Microsoft Visual C++ 6.0 compiler, and these values do not include15088any ACPI driver or OSPM code. The debug version of the code includes the15089debug output trace mechanism and has a much larger code and data size.15090Note15091that these values will vary depending on the efficiency of the compiler15092and15093the compiler options used during generation.1509415095Previous Release:15096Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total15097Debug Version: 164.2K Code, 68.2K Data, 232.4K Total15098Current Release:15099Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total15100Debug Version: 164.5K Code, 68.3K Data, 232.8K Total1510115102151032) iASL Compiler/Disassembler:1510415105Fixed a problem with constant folding and the LNot operator. LNot was15106returning 1 in the TRUE case, not Ones as per the ACPI specification.15107This15108could result in the generation of an incorrect folded/reduced constant.1510915110End-Of-File is now allowed within a "//"-style comment. A parse error no15111longer occurs if such a comment is at the very end of the input ASL15112source15113file.1511415115Implemented the "-r" option to override the Revision in the table header.15116The initial use of this option will be to simplify the evaluation of the15117AML15118interpreter by allowing a single ASL source module to be compiled for15119either1512032-bit or 64-bit integers.151211512215123----------------------------------------1512427 August 2004. Summary of changes for version 20040827:15125151261) ACPI CA Core Subsystem:1512715128- Implemented support for implicit object conversion in the non-numeric15129logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual,15130and15131LNotEqual.) Any combination of Integers/Strings/Buffers may now be used;15132the second operand is implicitly converted on the fly to match the type15133of15134the first operand. For example:1513515136LEqual (Source1, Source2)1513715138Source1 and Source2 must each evaluate to an integer, a string, or a15139buffer.15140The data type of Source1 dictates the required type of Source2. Source215141is15142implicitly converted if necessary to match the type of Source1.1514315144- Updated and corrected the behavior of the string conversion support.15145The15146rules concerning conversion of buffers to strings (according to the ACPI15147specification) are as follows:1514815149ToDecimalString - explicit byte-wise conversion of buffer to string of15150decimal values (0-255) separated by commas. ToHexString - explicit byte-15151wise15152conversion of buffer to string of hex values (0-FF) separated by commas.15153ToString - explicit byte-wise conversion of buffer to string. Byte-by-15154byte15155copy with no transform except NULL terminated. Any other implicit buffer-15156to-15157string conversion - byte-wise conversion of buffer to string of hex15158values15159(0-FF) separated by spaces.1516015161- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack.1516215163- Fixed a problem in AcpiNsGetPathnameLength where the returned length15164was15165one byte too short in the case of a node in the root scope. This could15166cause a fault during debug output.1516715168- Code and Data Size: Current and previous core subsystem library sizes15169are15170shown below. These are the code and data sizes for the acpica.lib15171produced15172by the Microsoft Visual C++ 6.0 compiler, and these values do not include15173any ACPI driver or OSPM code. The debug version of the code includes the15174debug output trace mechanism and has a much larger code and data size.15175Note15176that these values will vary depending on the efficiency of the compiler15177and15178the compiler options used during generation.1517915180Previous Release:15181Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total15182Debug Version: 164.1K Code, 68.3K Data, 232.4K Total15183Current Release:15184Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total15185Debug Version: 164.2K Code, 68.2K Data, 232.4K Total1518615187151882) iASL Compiler/Disassembler:1518915190- Fixed a Linux generation error.151911519215193----------------------------------------1519416 August 2004. Summary of changes for version 20040816:15195151961) ACPI CA Core Subsystem:1519715198Designed and implemented support within the AML interpreter for the so-15199called "implicit return". This support returns the result of the last15200ASL15201operation within a control method, in the absence of an explicit Return()15202operator. A few machines depend on this behavior, even though it is not15203explicitly supported by the ASL language. It is optional support that15204can15205be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag.1520615207Removed support for the PCI_Config address space from the internal low15208level15209hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This15210support was not used internally, and would not work correctly anyway15211because15212the PCI bus number and segment number were not supported. There are15213separate interfaces for PCI configuration space access because of the15214unique15215interface.1521615217Code and Data Size: Current and previous core subsystem library sizes are15218shown below. These are the code and data sizes for the acpica.lib15219produced15220by the Microsoft Visual C++ 6.0 compiler, and these values do not include15221any ACPI driver or OSPM code. The debug version of the code includes the15222debug output trace mechanism and has a much larger code and data size.15223Note15224that these values will vary depending on the efficiency of the compiler15225and15226the compiler options used during generation.1522715228Previous Release:15229Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total15230Debug Version: 164.1K Code, 68.2K Data, 232.3K Total15231Current Release:15232Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total15233Debug Version: 164.1K Code, 68.3K Data, 232.4K Total1523415235152362) iASL Compiler/Disassembler:1523715238Fixed a problem where constants in ASL expressions at the root level (not15239within a control method) could be inadvertently truncated during code15240generation. This problem was introduced in the 20040715 release.152411524215243----------------------------------------1524415 July 2004. Summary of changes for version 20040715:15245152461) ACPI CA Core Subsystem:1524715248Restructured the internal HW GPE interfaces to pass/track the current15249state15250of interrupts (enabled/disabled) in order to avoid possible deadlock and15251increase flexibility of the interfaces.1525215253Implemented a "lexicographical compare" for String and Buffer objects15254within15255the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -15256-15257as per further clarification to the ACPI specification. Behavior is15258similar15259to C library "strcmp".1526015261Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable15262external function. In the 32-bit non-debug case, the stack use has been15263reduced from 168 bytes to 32 bytes.1526415265Deployed a new run-time configuration flag,15266AcpiGbl_EnableInterpreterSlack,15267whose purpose is to allow the AML interpreter to forgive certain bad AML15268constructs. Default setting is FALSE.1526915270Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field15271IO15272support code. If enabled, it allows field access to go beyond the end of15273a15274region definition if the field is within the region length rounded up to15275the15276next access width boundary (a common coding error.)1527715278Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to15279ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also,15280these15281symbols are lowercase by the latest version of the AcpiSrc tool.1528215283The prototypes for the PCI interfaces in acpiosxf.h have been updated to15284rename "Register" to simply "Reg" to prevent certain compilers from15285complaining.1528615287Code and Data Size: Current and previous core subsystem library sizes are15288shown below. These are the code and data sizes for the acpica.lib15289produced15290by the Microsoft Visual C++ 6.0 compiler, and these values do not include15291any ACPI driver or OSPM code. The debug version of the code includes the15292debug output trace mechanism and has a much larger code and data size.15293Note15294that these values will vary depending on the efficiency of the compiler15295and15296the compiler options used during generation.1529715298Previous Release:15299Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total15300Debug Version: 163.8K Code, 68.2K Data, 232.0K Total15301Current Release:15302Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total15303Debug Version: 164.1K Code, 68.2K Data, 232.3K Total1530415305153062) iASL Compiler/Disassembler:1530715308Implemented full support for Package objects within the Case() operator.15309Note: The Break() operator is currently not supported within Case blocks15310(TermLists) as there is some question about backward compatibility with15311ACPI153121.0 interpreters.153131531415315Fixed a problem where complex terms were not supported properly within15316the15317Switch() operator.1531815319Eliminated extraneous warning for compiler-emitted reserved names of the15320form "_T_x". (Used in Switch/Case operators.)1532115322Eliminated optimization messages for "_T_x" objects and small constants15323within the DefinitionBlock operator.153241532515326----------------------------------------1532715 June 2004. Summary of changes for version 20040615:15328153291) ACPI CA Core Subsystem:1533015331Implemented support for Buffer and String objects (as per ACPI 2.0) for15332the15333following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and15334LLessEqual.1533515336All directory names in the entire source package are lower case, as they15337were in earlier releases.1533815339Implemented "Disassemble" command in the AML debugger that will15340disassemble15341a single control method.1534215343Code and Data Size: Current and previous core subsystem library sizes are15344shown below. These are the code and data sizes for the acpica.lib15345produced15346by the Microsoft Visual C++ 6.0 compiler, and these values do not include15347any ACPI driver or OSPM code. The debug version of the code includes the15348debug output trace mechanism and has a much larger code and data size.15349Note15350that these values will vary depending on the efficiency of the compiler15351and15352the compiler options used during generation.1535315354Previous Release:15355Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total15356Debug Version: 163.3K Code, 67.2K Data, 230.5K Total1535715358Current Release:15359Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total15360Debug Version: 163.8K Code, 68.2K Data, 232.0K Total1536115362153632) iASL Compiler/Disassembler:1536415365Implemented support for Buffer and String objects (as per ACPI 2.0) for15366the15367following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and15368LLessEqual.1536915370All directory names in the entire source package are lower case, as they15371were in earlier releases.1537215373Fixed a fault when using the -g or -d<nofilename> options if the FADT was15374not found.1537515376Fixed an issue with the Windows version of the compiler where later15377versions15378of Windows place the FADT in the registry under the name "FADT" and not15379"FACP" as earlier versions did. This applies when using the -g or -15380d<nofilename> options. The compiler now looks for both strings as15381necessary.1538215383Fixed a problem with compiler namepath optimization where a namepath15384within15385the Scope() operator could not be optimized if the namepath was a subpath15386of15387the current scope path.1538815389----------------------------------------1539027 May 2004. Summary of changes for version 20040527:15391153921) ACPI CA Core Subsystem:1539315394Completed a new design and implementation for EBDA (Extended BIOS Data15395Area)15396support in the RSDP scan code. The original code improperly scanned for15397the15398EBDA by simply scanning from memory location 0 to 0x400. The correct15399method15400is to first obtain the EBDA pointer from within the BIOS data area, then15401scan 1K of memory starting at the EBDA pointer. There appear to be few15402if15403any machines that place the RSDP in the EBDA, however.1540415405Integrated a fix for a possible fault during evaluation of BufferField15406arguments. Obsolete code that was causing the problem was removed.1540715408Found and fixed a problem in the Field Support Code where data could be15409corrupted on a bit field read that starts on an aligned boundary but does15410not end on an aligned boundary. Merged the read/write "datum length"15411calculation code into a common procedure.1541215413Rolled in a couple of changes to the FreeBSD-specific header.154141541515416Code and Data Size: Current and previous core subsystem library sizes are15417shown below. These are the code and data sizes for the acpica.lib15418produced15419by the Microsoft Visual C++ 6.0 compiler, and these values do not include15420any ACPI driver or OSPM code. The debug version of the code includes the15421debug output trace mechanism and has a much larger code and data size.15422Note15423that these values will vary depending on the efficiency of the compiler15424and15425the compiler options used during generation.1542615427Previous Release:15428Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15429Debug Version: 163.2K Code, 67.2K Data, 230.4K Total15430Current Release:15431Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total15432Debug Version: 163.3K Code, 67.2K Data, 230.5K Total1543315434154352) iASL Compiler/Disassembler:1543615437Fixed a generation warning produced by some overly-verbose compilers for15438a1543964-bit constant.1544015441----------------------------------------1544214 May 2004. Summary of changes for version 20040514:15443154441) ACPI CA Core Subsystem:1544515446Fixed a problem where hardware GPE enable bits sometimes not set properly15447during and after GPE method execution. Result of 04/27 changes.1544815449Removed extra "clear all GPEs" when sleeping/waking.1545015451Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single15452AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above15453to15454the new AcpiEv* calls as appropriate.1545515456ACPI_OS_NAME was removed from the OS-specific headers. The default name15457is15458now "Microsoft Windows NT" for maximum compatibility. However this can15459be15460changed by modifying the acconfig.h file.1546115462Allow a single invocation of AcpiInstallNotifyHandler for a handler that15463traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag.1546415465Run _INI methods on ThermalZone objects. This is against the ACPI15466specification, but there is apparently ASL code in the field that has15467these15468_INI methods, and apparently "other" AML interpreters execute them.1546915470Performed a full 16/32/64 bit lint that resulted in some small changes.1547115472Added a sleep simulation command to the AML debugger to test sleep code.1547315474Code and Data Size: Current and previous core subsystem library sizes are15475shown below. These are the code and data sizes for the acpica.lib15476produced15477by the Microsoft Visual C++ 6.0 compiler, and these values do not include15478any ACPI driver or OSPM code. The debug version of the code includes the15479debug output trace mechanism and has a much larger code and data size.15480Note15481that these values will vary depending on the efficiency of the compiler15482and15483the compiler options used during generation.1548415485Previous Release:15486Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15487Debug Version: 162.9K Code, 67.0K Data, 229.9K Total15488Current Release:15489Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15490Debug Version: 163.2K Code, 67.2K Data, 230.4K Total1549115492----------------------------------------1549327 April 2004. Summary of changes for version 20040427:15494154951) ACPI CA Core Subsystem:1549615497Completed a major overhaul of the GPE handling within ACPI CA. There are15498now three types of GPEs: wake-only, runtime-only, and combination15499wake/run.15500The only GPEs allowed to be combination wake/run are for button-style15501devices such as a control-method power button, control-method sleep15502button,15503or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are15504not15505referenced by any _PRW methods are marked for "runtime" and hardware15506enabled. Any GPE that is referenced by a _PRW method is marked for15507"wake"15508(and disabled at runtime). However, at sleep time, only those GPEs that15509have been specifically enabled for wake via the AcpiEnableGpe interface15510will15511actually be hardware enabled.1551215513A new external interface has been added, AcpiSetGpeType(), that is meant15514to15515be used by device drivers to force a GPE to a particular type. It will15516be15517especially useful for the drivers for the button devices mentioned above.1551815519Completed restructuring of the ACPI CA initialization sequence so that15520default operation region handlers are installed before GPEs are15521initialized15522and the _PRW methods are executed. This will prevent errors when the15523_PRW15524methods attempt to access system memory or I/O space.1552515526GPE enable/disable no longer reads the GPE enable register. We now keep15527the15528enable info for runtime and wake separate and in the GPE_EVENT_INFO. We15529thus no longer depend on the hardware to maintain these bits.1553015531Always clear the wake status and fixed/GPE status bits before sleep, even15532for state S5.1553315534Improved the AML debugger output for displaying the GPE blocks and their15535current status.1553615537Added new strings for the _OSI method, of the form "Windows 2001 SPx"15538where15539x = 0,1,2,3,4.1554015541Fixed a problem where the physical address was incorrectly calculated15542when15543the Load() operator was used to directly load from an Operation Region15544(vs.15545loading from a Field object.) Also added check for minimum table length15546for15547this case.1554815549Fix for multiple mutex acquisition. Restore original thread SyncLevel on15550mutex release.1555115552Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for15553consistency with the other fields returned.1555415555Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such15556structure for each GPE in the system, so the size of this structure is15557important.1555815559CPU stack requirement reduction: Cleaned up the method execution and15560object15561evaluation paths so that now a parameter structure is passed, instead of15562copying the various method parameters over and over again.1556315564In evregion.c: Correctly exit and reenter the interpreter region if and15565only if dispatching an operation region request to a user-installed15566handler.15567Do not exit/reenter when dispatching to a default handler (e.g., default15568system memory or I/O handlers)155691557015571Notes for updating drivers for the new GPE support. The following15572changes15573must be made to ACPI-related device drivers that are attached to one or15574more15575GPEs: (This information will be added to the ACPI CA Programmer15576Reference.)15577155781) AcpiInstallGpeHandler no longer automatically enables the GPE, you15579must15580explicitly call AcpiEnableGpe.155812) There is a new interface called AcpiSetGpeType. This should be called15582before enabling the GPE. Also, this interface will automatically disable15583the GPE if it is currently enabled.155843) AcpiEnableGpe no longer supports a GPE type flag.1558515586Specific drivers that must be changed:155871) EC driver:15588AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED,15589AeGpeHandler, NULL);15590AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME);15591AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR);15592155932) Button Drivers (Power, Lid, Sleep):15594Run _PRW method under parent device15595If _PRW exists: /* This is a control-method button */15596Extract GPE number and possibly GpeDevice15597AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN);15598AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR);1559915600For all other devices that have _PRWs, we automatically set the GPE type15601to15602ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled.15603This15604must be done on a selective basis, usually requiring some kind of user15605app15606to allow the user to pick the wake devices.156071560815609Code and Data Size: Current and previous core subsystem library sizes are15610shown below. These are the code and data sizes for the acpica.lib15611produced15612by the Microsoft Visual C++ 6.0 compiler, and these values do not include15613any ACPI driver or OSPM code. The debug version of the code includes the15614debug output trace mechanism and has a much larger code and data size.15615Note15616that these values will vary depending on the efficiency of the compiler15617and15618the compiler options used during generation.1561915620Previous Release:15621Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total15622Debug Version: 161.0K Code, 66.3K Data, 227.3K Total15623Current Release:1562415625Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total15626Debug Version: 162.9K Code, 67.0K Data, 229.9K Total15627156281562915630----------------------------------------1563102 April 2004. Summary of changes for version 20040402:15632156331) ACPI CA Core Subsystem:1563415635Fixed an interpreter problem where an indirect store through an ArgX15636parameter was incorrectly applying the "implicit conversion rules" during15637the store. From the ACPI specification: "If the target is a method local15638or15639argument (LocalX or ArgX), no conversion is performed and the result is15640stored directly to the target". The new behavior is to disable implicit15641conversion during ALL stores to an ArgX.1564215643Changed the behavior of the _PRW method scan to ignore any and all errors15644returned by a given _PRW. This prevents the scan from aborting from the15645failure of any single _PRW.1564615647Moved the runtime configuration parameters from the global init procedure15648to15649static variables in acglobal.h. This will allow the host to override the15650default values easily.1565115652Code and Data Size: Current and previous core subsystem library sizes are15653shown below. These are the code and data sizes for the acpica.lib15654produced15655by the Microsoft Visual C++ 6.0 compiler, and these values do not include15656any ACPI driver or OSPM code. The debug version of the code includes the15657debug output trace mechanism and has a much larger code and data size.15658Note15659that these values will vary depending on the efficiency of the compiler15660and15661the compiler options used during generation.1566215663Previous Release:15664Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total15665Debug Version: 160.8K Code, 66.1K Data, 226.9K Total15666Current Release:15667Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total15668Debug Version: 161.0K Code, 66.3K Data, 227.3K Total1566915670156712) iASL Compiler/Disassembler:1567215673iASL now fully disassembles SSDTs. However, External() statements are15674not15675generated automatically for unresolved symbols at this time. This is a15676planned feature for future implementation.1567715678Fixed a scoping problem in the disassembler that occurs when the type of15679the15680target of a Scope() operator is overridden. This problem caused an15681incorrectly nested internal namespace to be constructed.1568215683Any warnings or errors that are emitted during disassembly are now15684commented15685out automatically so that the resulting file can be recompiled without15686any15687hand editing.1568815689----------------------------------------1569026 March 2004. Summary of changes for version 20040326:15691156921) ACPI CA Core Subsystem:1569315694Implemented support for "wake" GPEs via interaction between GPEs and the15695_PRW methods. Every GPE that is pointed to by one or more _PRWs is15696identified as a WAKE GPE and by default will no longer be enabled at15697runtime. Previously, we were blindly enabling all GPEs with a15698corresponding15699_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway.15700We15701believe this has been the cause of thousands of "spurious" GPEs on some15702systems.1570315704This new GPE behavior is can be reverted to the original behavior (enable15705ALL GPEs at runtime) via a runtime flag.1570615707Fixed a problem where aliased control methods could not access objects15708properly. The proper scope within the namespace was not initialized15709(transferred to the target of the aliased method) before executing the15710target method.1571115712Fixed a potential race condition on internal object deletion on the15713return15714object in AcpiEvaluateObject.1571515716Integrated a fix for resource descriptors where both _MEM and _MTP were15717being extracted instead of just _MEM. (i.e. bitmask was incorrectly too15718wide, 0x0F instead of 0x03.)1571915720Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName,15721preventing15722a15723fault in some cases.1572415725Updated Notify() values for debug statements in evmisc.c1572615727Return proper status from AcpiUtMutexInitialize, not just simply AE_OK.1572815729Code and Data Size: Current and previous core subsystem library sizes are15730shown below. These are the code and data sizes for the acpica.lib15731produced15732by the Microsoft Visual C++ 6.0 compiler, and these values do not include15733any ACPI driver or OSPM code. The debug version of the code includes the15734debug output trace mechanism and has a much larger code and data size.15735Note15736that these values will vary depending on the efficiency of the compiler15737and15738the compiler options used during generation.1573915740Previous Release:1574115742Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total15743Debug Version: 160.3K Code, 66.0K Data, 226.3K Total15744Current Release:15745Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total15746Debug Version: 160.8K Code, 66.1K Data, 226.9K Total1574715748----------------------------------------1574911 March 2004. Summary of changes for version 20040311:15750157511) ACPI CA Core Subsystem:1575215753Fixed a problem where errors occurring during the parse phase of control15754method execution did not abort cleanly. For example, objects created and15755installed in the namespace were not deleted. This caused all subsequent15756invocations of the method to return the AE_ALREADY_EXISTS exception.1575715758Implemented a mechanism to force a control method to "Serialized"15759execution15760if the method attempts to create namespace objects. (The root of the15761AE_ALREADY_EXISTS problem.)1576215763Implemented support for the predefined _OSI "internal" control method.15764Initial supported strings are "Linux", "Windows 2000", "Windows 2001",15765and15766"Windows 2001.1", and can be easily upgraded for new strings as15767necessary.15768This feature will allow "other" operating systems to execute the fully15769tested, "Windows" code path through the ASL code1577015771Global Lock Support: Now allows multiple acquires and releases with any15772internal thread. Removed concept of "owning thread" for this special15773mutex.1577415775Fixed two functions that were inappropriately declaring large objects on15776the15777CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage15778during15779method execution considerably.1578015781Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the15782S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT.1578315784Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs15785defined on the machine.1578615787Implemented two runtime options: One to force all control method15788execution15789to "Serialized" to mimic Windows behavior, another to disable _OSI15790support15791if it causes problems on a given machine.1579215793Code and Data Size: Current and previous core subsystem library sizes are15794shown below. These are the code and data sizes for the acpica.lib15795produced15796by the Microsoft Visual C++ 6.0 compiler, and these values do not include15797any ACPI driver or OSPM code. The debug version of the code includes the15798debug output trace mechanism and has a much larger code and data size.15799Note15800that these values will vary depending on the efficiency of the compiler15801and15802the compiler options used during generation.1580315804Previous Release:15805Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total15806Debug Version: 158.7K Code, 65.1K Data, 223.8K Total15807Current Release:15808Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total15809Debug Version: 160.3K Code, 66.0K Data, 226.3K Total15810158112) iASL Compiler/Disassembler:1581215813Fixed an array size problem for FreeBSD that would cause the compiler to15814fault.1581515816----------------------------------------1581720 February 2004. Summary of changes for version 20040220:1581815819158201) ACPI CA Core Subsystem:1582115822Implemented execution of _SxD methods for Device objects in the15823GetObjectInfo interface.1582415825Fixed calls to _SST method to pass the correct arguments.1582615827Added a call to _SST on wake to restore to "working" state.1582815829Check for End-Of-Buffer failure case in the WalkResources interface.1583015831Integrated fix for 64-bit alignment issue in acglobal.h by moving two15832structures to the beginning of the file.1583315834After wake, clear GPE status register(s) before enabling GPEs.1583515836After wake, clear/enable power button. (Perhaps we should clear/enable15837all15838fixed events upon wake.)1583915840Fixed a couple of possible memory leaks in the Namespace manager.1584115842Integrated latest acnetbsd.h file.1584315844----------------------------------------1584511 February 2004. Summary of changes for version 20040211:1584615847158481) ACPI CA Core Subsystem:1584915850Completed investigation and implementation of the call-by-reference15851mechanism for control method arguments.1585215853Fixed a problem where a store of an object into an indexed package could15854fail if the store occurs within a different method than the method that15855created the package.1585615857Fixed a problem where the ToDecimal operator could return incorrect15858results.1585915860Fixed a problem where the CopyObject operator could fail on some of the15861more15862obscure objects (e.g., Reference objects.)1586315864Improved the output of the Debug object to display buffer, package, and15865index objects.1586615867Fixed a problem where constructs of the form "RefOf (ArgX)" did not15868return15869the expected result.1587015871Added permanent ACPI_REPORT_ERROR macros for all instances of the15872ACPI_AML_INTERNAL exception.1587315874Integrated latest version of acfreebsd.h1587515876----------------------------------------1587716 January 2004. Summary of changes for version 20040116:1587815879The purpose of this release is primarily to update the copyright years in15880each module, thus causing a huge number of diffs. There are a few small15881functional changes, however.15882158831) ACPI CA Core Subsystem:1588415885Improved error messages when there is a problem finding one or more of15886the15887required base ACPI tables1588815889Reintroduced the definition of APIC_HEADER in actbl.h1589015891Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h)1589215893Removed extraneous reference to NewObj in dsmthdat.c15894158952) iASL compiler1589615897Fixed a problem introduced in December that disabled the correct15898disassembly15899of Resource Templates159001590115902----------------------------------------1590303 December 2003. Summary of changes for version 20031203:15904159051) ACPI CA Core Subsystem:1590615907Changed the initialization of Operation Regions during subsystem15908init to perform two entire walks of the ACPI namespace; The first15909to initialize the regions themselves, the second to execute the15910_REG methods. This fixed some interdependencies across _REG15911methods found on some machines.1591215913Fixed a problem where a Store(Local0, Local1) could simply update15914the object reference count, and not create a new copy of the15915object if the Local1 is uninitialized.1591615917Implemented support for the _SST reserved method during sleep15918transitions.1591915920Implemented support to clear the SLP_TYP and SLP_EN bits when15921waking up, this is apparently required by some machines.1592215923When sleeping, clear the wake status only if SleepState is not S5.1592415925Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect15926pointer arithmetic advanced a string pointer too far.1592715928Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer15929could be returned if the requested table has not been loaded.1593015931Within the support for IRQ resources, restructured the handling of15932the active and edge/level bits.1593315934Fixed a few problems in AcpiPsxExecute() where memory could be15935leaked under certain error conditions.1593615937Improved error messages for the cases where the ACPI mode could15938not be entered.1593915940Code and Data Size: Current and previous core subsystem library15941sizes are shown below. These are the code and data sizes for the15942acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and15943these values do not include any ACPI driver or OSPM code. The15944debug version of the code includes the debug output trace15945mechanism and has a much larger code and data size. Note that15946these values will vary depending on the efficiency of the compiler15947and the compiler options used during generation.1594815949Previous Release (20031029):15950Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total15951Debug Version: 158.3K Code, 65.0K Data, 223.3K Total15952Current Release:15953Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total15954Debug Version: 158.7K Code, 65.1K Data, 223.8K Total15955159562) iASL Compiler/Disassembler:1595715958Implemented a fix for the iASL disassembler where a bad index was15959generated. This was most noticeable on 64-bit platforms159601596115962----------------------------------------1596329 October 2003. Summary of changes for version 20031029:15964159651) ACPI CA Core Subsystem:159661596715968Fixed a problem where a level-triggered GPE with an associated15969_Lxx control method was incorrectly cleared twice.1597015971Fixed a problem with the Field support code where an access can15972occur beyond the end-of-region if the field is non-aligned but15973extends to the very end of the parent region (resulted in an15974AE_AML_REGION_LIMIT exception.)1597515976Fixed a problem with ACPI Fixed Events where an RT Clock handler15977would not get invoked on an RTC event. The RTC event bitmasks for15978the PM1 registers were not being initialized properly.1597915980Implemented support for executing _STA and _INI methods for15981Processor objects. Although this is currently not part of the15982ACPI specification, there is existing ASL code that depends on the15983init-time execution of these methods.1598415985Implemented and deployed a GetDescriptorName function to decode15986the various types of internal descriptors. Guards against null15987descriptors during debug output also.1598815989Implemented and deployed a GetNodeName function to extract the 4-15990character namespace node name. This function simplifies the debug15991and error output, as well as guarding against null pointers during15992output.1599315994Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to15995simplify the debug and error output of 64-bit integers. This15996macro replaces the HIDWORD and LODWORD macros for dumping these15997integers.1599815999Updated the implementation of the Stall() operator to only call16000AcpiOsStall(), and also return an error if the operand is larger16001than 255. This preserves the required behavior of not16002relinquishing the processor, as would happen if AcpiOsSleep() was16003called for "long stalls".1600416005Constructs of the form "Store(LocalX,LocalX)" where LocalX is not16006initialized are now treated as NOOPs.1600716008Cleaned up a handful of warnings during 64-bit generation.1600916010Fixed a reported error where and incorrect GPE number was passed16011to the GPE dispatch handler. This value is only used for error16012output, however. Used this opportunity to clean up and streamline16013the GPE dispatch code.1601416015Code and Data Size: Current and previous core subsystem library16016sizes are shown below. These are the code and data sizes for the16017acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16018these values do not include any ACPI driver or OSPM code. The1601916020debug version of the code includes the debug output trace16021mechanism and has a much larger code and data size. Note that16022these values will vary depending on the efficiency of the compiler16023and the compiler options used during generation.1602416025Previous Release (20031002):16026Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total16027Debug Version: 157.9K Code, 64.8K Data, 222.7K Total16028Current Release:16029Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total16030Debug Version: 158.3K Code, 65.0K Data, 223.3K Total1603116032160332) iASL Compiler/Disassembler:1603416035Updated the iASL compiler to return an error if the operand to the16036Stall() operator is larger than 255.160371603816039----------------------------------------1604002 October 2003. Summary of changes for version 20031002:1604116042160431) ACPI CA Core Subsystem:1604416045Fixed a problem with Index Fields where the index was not16046incremented for fields that require multiple writes to the16047index/data registers (Fields that are wider than the data16048register.)1604916050Fixed a problem with all Field objects where a write could go16051beyond the end-of-field if the field was larger than the access16052granularity and therefore required multiple writes to complete the16053request. An extra write beyond the end of the field could happen16054inadvertently.1605516056Fixed a problem with Index Fields where a BUFFER_OVERFLOW error16057would incorrectly be returned if the width of the Data Register16058was larger than the specified field access width.1605916060Completed fixes for LoadTable() and Unload() and verified their16061operation. Implemented full support for the "DdbHandle" object16062throughout the ACPI CA subsystem.1606316064Implemented full support for the MADT and ECDT tables in the ACPI16065CA header files. Even though these tables are not directly16066consumed by ACPI CA, the header definitions are useful for ACPI16067device drivers.1606816069Integrated resource descriptor fixes posted to the Linux ACPI16070list. This included checks for minimum descriptor length, and16071support for trailing NULL strings within descriptors that have16072optional string elements.1607316074Code and Data Size: Current and previous core subsystem library16075sizes are shown below. These are the code and data sizes for the16076acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16077these values do not include any ACPI driver or OSPM code. The16078debug version of the code includes the debug output trace16079mechanism and has a much larger code and data size. Note that16080these values will vary depending on the efficiency of the compiler16081and the compiler options used during generation.1608216083Previous Release (20030918):16084Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total16085Debug Version: 157.3K Code, 64.5K Data, 221.8K Total16086Current Release:16087Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total16088Debug Version: 157.9K Code, 64.8K Data, 222.7K Total1608916090160912) iASL Compiler:1609216093Implemented detection of non-ASCII characters within the input16094source ASL file. This catches attempts to compile binary (AML)16095files early in the compile, with an informative error message.1609616097Fixed a problem where the disassembler would fault if the output16098filename could not be generated or if the output file could not be16099opened.1610016101----------------------------------------1610218 September 2003. Summary of changes for version 20030918:1610316104161051) ACPI CA Core Subsystem:1610616107Found and fixed a longstanding problem with the late execution of16108the various deferred AML opcodes (such as Operation Regions,16109Buffer Fields, Buffers, and Packages). If the name string16110specified for the name of the new object placed the object in a16111scope other than the current scope, the initialization/execution16112of the opcode failed. The solution to this problem was to16113implement a mechanism where the late execution of such opcodes16114does not attempt to lookup/create the name a second time in an16115incorrect scope. This fixes the "region size computed16116incorrectly" problem.1611716118Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a16119Global Lock AE_BAD_PARAMETER error.1612016121Fixed several 64-bit issues with prototypes, casting and data16122types.1612316124Removed duplicate prototype from acdisasm.h1612516126Fixed an issue involving EC Operation Region Detach (Shaohua Li)1612716128Code and Data Size: Current and previous core subsystem library16129sizes are shown below. These are the code and data sizes for the16130acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16131these values do not include any ACPI driver or OSPM code. The16132debug version of the code includes the debug output trace16133mechanism and has a much larger code and data size. Note that16134these values will vary depending on the efficiency of the compiler16135and the compiler options used during generation.1613616137Previous Release:1613816139Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total16140Debug Version: 156.9K Code, 64.2K Data, 221.1K Total16141Current Release:16142Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total16143Debug Version: 157.3K Code, 64.5K Data, 221.8K Total1614416145161462) Linux:1614716148Fixed the AcpiOsSleep implementation in osunixxf.c to pass the16149correct sleep time in seconds.1615016151----------------------------------------1615214 July 2003. Summary of changes for version 20030619:16153161541) ACPI CA Core Subsystem:1615516156Parse SSDTs in order discovered, as opposed to reverse order16157(Hrvoje Habjanic)1615816159Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas16160Klausner,16161Nate Lawson)1616216163161642) Linux:1616516166Dynamically allocate SDT list (suggested by Andi Kleen)1616716168proc function return value cleanups (Andi Kleen)1616916170Correctly handle NMI watchdog during long stalls (Andrew Morton)1617116172Make it so acpismp=force works (reported by Andrew Morton)161731617416175----------------------------------------1617619 June 2003. Summary of changes for version 20030619:16177161781) ACPI CA Core Subsystem:1617916180Fix To/FromBCD, eliminating the need for an arch-specific #define.1618116182Do not acquire a semaphore in the S5 shutdown path.1618316184Fix ex_digits_needed for 0. (Takayoshi Kochi)1618516186Fix sleep/stall code reversal. (Andi Kleen)1618716188Revert a change having to do with control method calling16189semantics.16190161912) Linux:1619216193acpiphp update (Takayoshi Kochi)1619416195Export acpi_disabled for sonypi (Stelian Pop)1619616197Mention acpismp=force in config help1619816199Re-add acpitable.c and acpismp=force. This improves backwards1620016201compatibility and also cleans up the code to a significant degree.1620216203Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge)1620416205----------------------------------------1620622 May 2003. Summary of changes for version 20030522:16207162081) ACPI CA Core Subsystem:1620916210Found and fixed a reported problem where an AE_NOT_FOUND error16211occurred occasionally during _BST evaluation. This turned out to16212be an Owner ID allocation issue where a called method did not get16213a new ID assigned to it. Eventually, (after 64k calls), the Owner16214ID UINT16 would wraparound so that the ID would be the same as the16215caller's and the called method would delete the caller's16216namespace.1621716218Implemented extended error reporting for control methods that are16219aborted due to a run-time exception. Output includes the exact16220AML instruction that caused the method abort, a dump of the method16221locals and arguments at the time of the abort, and a trace of all16222nested control method calls.1622316224Modified the interpreter to allow the creation of buffers of zero16225length from the AML code. Implemented new code to ensure that no16226attempt is made to actually allocate a memory buffer (of length16227zero) - instead, a simple buffer object with a NULL buffer pointer16228and length zero is created. A warning is no longer issued when16229the AML attempts to create a zero-length buffer.1623016231Implemented a workaround for the "leading asterisk issue" in16232_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading16233asterisk is automatically removed if present in any HID, UID, or16234CID strings. The iASL compiler will still flag this asterisk as16235an error, however.1623616237Implemented full support for _CID methods that return a package of16238multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface16239now additionally returns a device _CID list if present. This16240required a change to the external interface in order to pass an16241ACPI_BUFFER object as a parameter since the _CID list is of16242variable length.1624316244Fixed a problem with the new AE_SAME_HANDLER exception where16245handler initialization code did not know about this exception.1624616247Code and Data Size: Current and previous core subsystem library16248sizes are shown below. These are the code and data sizes for the16249acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and16250these values do not include any ACPI driver or OSPM code. The16251debug version of the code includes the debug output trace16252mechanism and has a much larger code and data size. Note that16253these values will vary depending on the efficiency of the compiler16254and the compiler options used during generation.1625516256Previous Release (20030509):16257Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total16258Debug Version: 156.1K Code, 63.9K Data, 220.0K Total16259Current Release:16260Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total16261Debug Version: 156.9K Code, 64.2K Data, 221.1K Total1626216263162642) Linux:1626516266Fixed a bug in which we would reinitialize the ACPI interrupt16267after it was already working, thus disabling all ACPI and the IRQs16268for any other device sharing the interrupt. (Thanks to Stian16269Jordet)1627016271Toshiba driver update (John Belmonte)1627216273Return only 0 or 1 for our interrupt handler status (Andrew16274Morton)1627516276162773) iASL Compiler:1627816279Fixed a reported problem where multiple (nested) ElseIf()16280statements were not handled correctly by the compiler, resulting16281in incorrect warnings and incorrect AML code. This was a problem16282in both the ASL parser and the code generator.1628316284162854) Documentation:1628616287Added changes to existing interfaces, new exception codes, and new16288text concerning reference count object management versus garbage16289collection.1629016291----------------------------------------1629209 May 2003. Summary of changes for version 20030509.1629316294162951) ACPI CA Core Subsystem:1629616297Changed the subsystem initialization sequence to hold off16298installation of address space handlers until the hardware has been16299initialized and the system has entered ACPI mode. This is because16300the installation of space handlers can cause _REG methods to be16301run. Previously, the _REG methods could potentially be run before16302ACPI mode was enabled.1630316304Fixed some memory leak issues related to address space handler and16305notify handler installation. There were some problems with the16306reference count mechanism caused by the fact that the handler16307objects are shared across several namespace objects.1630816309Fixed a reported problem where reference counts within the16310namespace were not properly updated when named objects created by16311method execution were deleted.1631216313Fixed a reported problem where multiple SSDTs caused a deletion16314issue during subsystem termination. Restructured the table data16315structures to simplify the linked lists and the related code.1631616317Fixed a problem where the table ID associated with secondary16318tables (SSDTs) was not being propagated into the namespace objects16319created by those tables. This would only present a problem for16320tables that are unloaded at run-time, however.1632116322Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE16323type as the length parameter (instead of UINT32).1632416325Solved a long-standing problem where an ALREADY_EXISTS error16326appears on various systems. This problem could happen when there16327are multiple PCI_Config operation regions under a single PCI root16328bus. This doesn't happen very frequently, but there are some16329systems that do this in the ASL.1633016331Fixed a reported problem where the internal DeleteNode function16332was incorrectly handling the case where a namespace node was the16333first in the parent's child list, and had additional peers (not16334the only child, but first in the list of children.)1633516336Code and Data Size: Current core subsystem library sizes are shown16337below. These are the code and data sizes for the acpica.lib16338produced by the Microsoft Visual C++ 6.0 compiler, and these16339values do not include any ACPI driver or OSPM code. The debug16340version of the code includes the debug output trace mechanism and16341has a much larger code and data size. Note that these values will16342vary depending on the efficiency of the compiler and the compiler16343options used during generation.1634416345Previous Release16346Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total16347Debug Version: 156.1K Code, 63.6K Data, 219.7K Total16348Current Release:16349Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total16350Debug Version: 156.1K Code, 63.9K Data, 220.0K Total1635116352163532) Linux:1635416355Allow ":" in OS override string (Ducrot Bruno)1635616357Kobject fix (Greg KH)1635816359163603 iASL Compiler/Disassembler:1636116362Fixed a problem in the generation of the C source code files (AML16363is emitted in C source statements for BIOS inclusion) where the16364Ascii dump that appears within a C comment at the end of each line16365could cause a compile time error if the AML sequence happens to16366have an open comment or close comment sequence embedded.163671636816369----------------------------------------1637024 April 2003. Summary of changes for version 20030424.1637116372163731) ACPI CA Core Subsystem:1637416375Support for big-endian systems has been implemented. Most of the16376support has been invisibly added behind big-endian versions of the16377ACPI_MOVE_* macros.1637816379Fixed a problem in AcpiHwDisableGpeBlock() and16380AcpiHwClearGpeBlock() where an incorrect offset was passed to the16381low level hardware write routine. The offset parameter was16382actually eliminated from the low level read/write routines because16383they had become obsolete.1638416385Fixed a problem where a handler object was deleted twice during16386the removal of a fixed event handler.1638716388163892) Linux:1639016391A fix for SMP systems with link devices was contributed by1639216393Compaq's Dan Zink.1639416395(2.5) Return whether we handled the interrupt in our IRQ handler.16396(Linux ISRs no longer return void, so we can propagate the handler16397return value from the ACPI CA core back to the OS.)163981639916400164013) Documentation:1640216403The ACPI CA Programmer Reference has been updated to reflect new16404interfaces and changes to existing interfaces.1640516406----------------------------------------1640728 March 2003. Summary of changes for version 20030328.16408164091) ACPI CA Core Subsystem:1641016411The GPE Block Device support has been completed. New interfaces16412are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event16413interfaces (enable, disable, clear, getstatus) have been split16414into separate interfaces for Fixed Events and General Purpose16415Events (GPEs) in order to support GPE Block Devices properly.1641616417Fixed a problem where the error message "Failed to acquire16418semaphore" would appear during operations on the embedded16419controller (EC).1642016421Code and Data Size: Current core subsystem library sizes are shown16422below. These are the code and data sizes for the acpica.lib16423produced by the Microsoft Visual C++ 6.0 compiler, and these16424values do not include any ACPI driver or OSPM code. The debug16425version of the code includes the debug output trace mechanism and16426has a much larger code and data size. Note that these values will16427vary depending on the efficiency of the compiler and the compiler16428options used during generation.1642916430Previous Release16431Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total16432Debug Version: 154.0K Code, 63.4K Data, 217.4K Total16433Current Release:16434Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total16435Debug Version: 156.1K Code, 63.6K Data, 219.7K Total164361643716438----------------------------------------1643928 February 2003. Summary of changes for version 20030228.1644016441164421) ACPI CA Core Subsystem:1644316444The GPE handling and dispatch code has been completely overhauled16445in preparation for support of GPE Block Devices (ID ACPI0006).16446This affects internal data structures and code only; there should16447be no differences visible externally. One new file has been16448added, evgpeblk.c1644916450The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only16451fields that are used to determine the GPE block lengths. The16452REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address16453structures are ignored. This is per the ACPI specification but it16454isn't very clear. The full 256 Block 0/1 GPEs are now supported16455(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128).1645616457In the SCI interrupt handler, removed the read of the PM1_CONTROL16458register to look at the SCI_EN bit. On some machines, this read16459causes an SMI event and greatly slows down SCI events. (This may16460in fact be the cause of slow battery status response on some16461systems.)1646216463Fixed a problem where a store of a NULL string to a package object16464could cause the premature deletion of the object. This was seen16465during execution of the battery _BIF method on some systems,16466resulting in no battery data being returned.1646716468Added AcpiWalkResources interface to simplify parsing of resource16469lists.1647016471Code and Data Size: Current core subsystem library sizes are shown16472below. These are the code and data sizes for the acpica.lib16473produced by the Microsoft Visual C++ 6.0 compiler, and these16474values do not include any ACPI driver or OSPM code. The debug16475version of the code includes the debug output trace mechanism and16476has a much larger code and data size. Note that these values will16477vary depending on the efficiency of the compiler and the compiler16478options used during generation.1647916480Previous Release16481Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16482Debug Version: 153.0K Code, 62.9K Data, 215.9K Total16483Current Release:16484Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total16485Debug Version: 154.0K Code, 63.4K Data, 217.4K Total1648616487164882) Linux1648916490S3 fixes (Ole Rohne)1649116492Update ACPI PHP driver with to use new acpi_walk_resource API16493(Bjorn Helgaas)1649416495Add S4BIOS support (Pavel Machek)1649616497Map in entire table before performing checksum (John Stultz)1649816499Expand the mem= cmdline to allow the specification of reserved and16500ACPI DATA blocks (Pavel Machek)1650116502Never use ACPI on VISWS1650316504Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez)1650516506Revert a change that allowed P_BLK lengths to be 4 or 5. This is16507causing us to think that some systems support C2 when they really16508don't.1650916510Do not count processor objects for non-present CPUs (Thanks to16511Dominik Brodowski)1651216513165143) iASL Compiler:1651516516Fixed a problem where ASL include files could not be found and16517opened.1651816519Added support for the _PDC reserved name.165201652116522----------------------------------------1652322 January 2003. Summary of changes for version 20030122.1652416525165261) ACPI CA Core Subsystem:1652716528Added a check for constructs of the form: Store (Local0, Local0)16529where Local0 is not initialized. Apparently, some BIOS16530programmers believe that this is a NOOP. Since this store doesn't16531do anything anyway, the new prototype behavior will ignore this16532error. This is a case where we can relax the strict checking in16533the interpreter in the name of compatibility.1653416535165362) Linux1653716538The AcpiSrc Source Conversion Utility has been released with the16539Linux package for the first time. This is the utility that is16540used to convert the ACPI CA base source code to the Linux version.1654116542(Both) Handle P_BLK lengths shorter than 6 more gracefully1654316544(Both) Move more headers to include/acpi, and delete an unused16545header.1654616547(Both) Move drivers/acpi/include directory to include/acpi1654816549(Both) Boot functions don't use cmdline, so don't pass it around1655016551(Both) Remove include of unused header (Adrian Bunk)1655216553(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since16554the16555former now also includes the latter, acpiphp.h only needs the one,16556now.1655716558(2.5) Make it possible to select method of bios restoring after S316559resume. [=> no more ugly ifdefs] (Pavel Machek)1656016561(2.5) Make proc write interfaces work (Pavel Machek)1656216563(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski)1656416565(2.5) Break out ACPI Perf code into its own module, under cpufreq16566(Dominik Brodowski)1656716568(2.4) S4BIOS support (Ducrot Bruno)1656916570(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio16571Visinoni)1657216573165743) iASL Compiler:1657516576Added support to disassemble SSDT and PSDTs.1657716578Implemented support to obtain SSDTs from the Windows registry if16579available.165801658116582----------------------------------------1658309 January 2003. Summary of changes for version 20030109.16584165851) ACPI CA Core Subsystem:1658616587Changed the behavior of the internal Buffer-to-String conversion16588function. The current ACPI specification states that the contents16589of the buffer are "converted to a string of two-character16590hexadecimal numbers, each separated by a space". Unfortunately,16591this definition is not backwards compatible with existing ACPI 1.016592implementations (although the behavior was not defined in the ACPI165931.0 specification). The new behavior simply copies data from the16594buffer to the string until a null character is found or the end of16595the buffer is reached. The new String object is always null16596terminated. This problem was seen during the generation of _BIF16597battery data where incorrect strings were returned for battery16598type, etc. This will also require an errata to the ACPI16599specification.1660016601Renamed all instances of NATIVE_UINT and NATIVE_INT to16602ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively.1660316604Copyright in all module headers (both Linux and non-Linux) has be16605updated to 2003.1660616607Code and Data Size: Current core subsystem library sizes are shown16608below. These are the code and data sizes for the acpica.lib16609produced by the Microsoft Visual C++ 6.0 compiler, and these16610values do not include any ACPI driver or OSPM code. The debug16611version of the code includes the debug output trace mechanism and16612has a much larger code and data size. Note that these values will16613vary depending on the efficiency of the compiler and the compiler16614options used during generation.1661516616Previous Release16617Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16618Debug Version: 153.0K Code, 62.9K Data, 215.9K Total16619Current Release:16620Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16621Debug Version: 153.0K Code, 62.9K Data, 215.9K Total1662216623166242) Linux1662516626Fixed an oops on module insertion/removal (Matthew Tippett)1662716628(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante)1662916630(2.5) Replace pr_debug (Randy Dunlap)1663116632(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski)1663316634(Both) Eliminate spawning of thread from timer callback, in favor16635of schedule_work()1663616637(Both) Show Lid status in /proc (Zdenek OGAR Skalak)1663816639(Both) Added define for Fixed Function HW region (Matthew Wilcox)1664016641(Both) Add missing statics to button.c (Pavel Machek)1664216643Several changes have been made to the source code translation16644utility that generates the Linux Code in order to make the code16645more "Linux-like":1664616647All typedefs on structs and unions have been removed in keeping16648with the Linux coding style.1664916650Removed the non-Linux SourceSafe module revision number from each16651module header.1665216653Completed major overhaul of symbols to be lowercase for linux.16654Doubled the number of symbols that are lowercase.1665516656Fixed a problem where identifiers within procedure headers and16657within quotes were not fully lower cased (they were left with a16658starting capital.)1665916660Some C macros whose only purpose is to allow the generation of 16-16661bit code are now completely removed in the Linux code, increasing16662readability and maintainability.1666316664----------------------------------------166651666612 December 2002. Summary of changes for version 20021212.1666716668166691) ACPI CA Core Subsystem:1667016671Fixed a problem where the creation of a zero-length AML Buffer16672would cause a fault.1667316674Fixed a problem where a Buffer object that pointed to a static AML16675buffer (in an ACPI table) could inadvertently be deleted, causing16676memory corruption.1667716678Fixed a problem where a user buffer (passed in to the external16679ACPI CA interfaces) could be overwritten if the buffer was too16680small to complete the operation, causing memory corruption.1668116682Fixed a problem in the Buffer-to-String conversion code where a16683string of length one was always returned, regardless of the size16684of the input Buffer object.1668516686Removed the NATIVE_CHAR data type across the entire source due to16687lack of need and lack of consistent use.1668816689Code and Data Size: Current core subsystem library sizes are shown16690below. These are the code and data sizes for the acpica.lib16691produced by the Microsoft Visual C++ 6.0 compiler, and these16692values do not include any ACPI driver or OSPM code. The debug16693version of the code includes the debug output trace mechanism and16694has a much larger code and data size. Note that these values will16695vary depending on the efficiency of the compiler and the compiler16696options used during generation.1669716698Previous Release16699Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total16700Debug Version: 152.7K Code, 62.7K Data, 215.4K Total16701Current Release:16702Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total16703Debug Version: 153.0K Code, 62.9K Data, 215.9K Total167041670516706----------------------------------------1670705 December 2002. Summary of changes for version 20021205.16708167091) ACPI CA Core Subsystem:1671016711Fixed a problem where a store to a String or Buffer object could16712cause corruption of the DSDT if the object type being stored was16713the same as the target object type and the length of the object16714being stored was equal to or smaller than the original (existing)16715target object. This was seen to cause corruption of battery _BIF16716buffers if the _BIF method modified the buffer on the fly.1671716718Fixed a problem where an internal error was generated if a control16719method invocation was used in an OperationRegion, Buffer, or16720Package declaration. This was caused by the deferred parsing of16721the control method and thus the deferred creation of the internal16722method object. The solution to this problem was to create the16723internal method object at the moment the method is encountered in16724the first pass - so that subsequent references to the method will16725able to obtain the required parameter count and thus properly16726parse the method invocation. This problem presented itself as an16727AE_AML_INTERNAL during the pass 1 parse phase during table load.1672816729Fixed a problem where the internal String object copy routine did16730not always allocate sufficient memory for the target String object16731and caused memory corruption. This problem was seen to cause16732"Allocation already present in list!" errors as memory allocation16733became corrupted.1673416735Implemented a new function for the evaluation of namespace objects16736that allows the specification of the allowable return object16737types. This simplifies a lot of code that checks for a return16738object of one or more specific objects returned from the16739evaluation (such as _STA, etc.) This may become and external16740function if it would be useful to ACPI-related drivers.1674116742Completed another round of prefixing #defines with "ACPI_" for16743clarity.1674416745Completed additional code restructuring to allow more modular16746linking for iASL compiler and AcpiExec. Several files were split16747creating new files. New files: nsparse.c dsinit.c evgpe.c1674816749Implemented an abort mechanism to terminate an executing control16750method via the AML debugger. This feature is useful for debugging16751control methods that depend (wait) for specific hardware16752responses.1675316754Code and Data Size: Current core subsystem library sizes are shown16755below. These are the code and data sizes for the acpica.lib16756produced by the Microsoft Visual C++ 6.0 compiler, and these16757values do not include any ACPI driver or OSPM code. The debug16758version of the code includes the debug output trace mechanism and16759has a much larger code and data size. Note that these values will16760vary depending on the efficiency of the compiler and the compiler16761options used during generation.1676216763Previous Release16764Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16765Debug Version: 152.9K Code, 63.3K Data, 216.2K Total16766Current Release:16767Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total16768Debug Version: 152.7K Code, 62.7K Data, 215.4K Total1676916770167712) iASL Compiler/Disassembler1677216773Fixed a compiler code generation problem for "Interrupt" Resource16774Descriptors. If specified in the ASL, the optional "Resource16775Source Index" and "Resource Source" fields were not inserted into16776the correct location within the AML resource descriptor, creating16777an invalid descriptor.1677816779Fixed a disassembler problem for "Interrupt" resource descriptors.16780The optional "Resource Source Index" and "Resource Source" fields16781were ignored.167821678316784----------------------------------------1678522 November 2002. Summary of changes for version 20021122.1678616787167881) ACPI CA Core Subsystem:1678916790Fixed a reported problem where an object stored to a Method Local16791or Arg was not copied to a new object during the store - the16792object pointer was simply copied to the Local/Arg. This caused16793all subsequent operations on the Local/Arg to also affect the16794original source of the store operation.1679516796Fixed a problem where a store operation to a Method Local or Arg16797was not completed properly if the Local/Arg contained a reference16798(from RefOf) to a named field. The general-purpose store-to-16799namespace-node code is now used so that this case is handled16800automatically.1680116802Fixed a problem where the internal object copy routine would cause16803a protection fault if the object being copied was a Package and16804contained either 1) a NULL package element or 2) a nested sub-16805package.1680616807Fixed a problem with the GPE initialization that resulted from an16808ambiguity in the ACPI specification. One section of the16809specification states that both the address and length of the GPE16810block must be zero if the block is not supported. Another section16811implies that only the address need be zero if the block is not16812supported. The code has been changed so that both the address and16813the length must be non-zero to indicate a valid GPE block (i.e.,16814if either the address or the length is zero, the GPE block is16815invalid.)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.3K Code, 9.0K Data, 80.3K Total16828Debug Version: 152.7K Code, 63.2K Data, 215.5K Total16829Current Release:16830Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16831Debug Version: 152.9K Code, 63.3K Data, 216.2K Total1683216833168342) Linux1683516836Cleaned up EC driver. Exported an external EC read/write16837interface. By going through this, other drivers (most notably16838sonypi) will be able to serialize access to the EC.1683916840168413) iASL Compiler/Disassembler1684216843Implemented support to optionally generate include files for both16844ASM and C (the -i switch). This simplifies BIOS development by16845automatically creating include files that contain external16846declarations for the symbols that are created within the1684716848(optionally generated) ASM and C AML source files.168491685016851----------------------------------------1685215 November 2002. Summary of changes for version 20021115.16853168541) ACPI CA Core Subsystem:1685516856Fixed a memory leak problem where an error during resolution of1685716858method arguments during a method invocation from another method16859failed to cleanup properly by deleting all successfully resolved16860argument objects.1686116862Fixed a problem where the target of the Index() operator was not16863correctly constructed if the source object was a package. This16864problem has not been detected because the use of a target operand16865with Index() is very rare.1686616867Fixed a problem with the Index() operator where an attempt was16868made to delete the operand objects twice.1686916870Fixed a problem where an attempt was made to delete an operand16871twice during execution of the CondRefOf() operator if the target16872did not exist.1687316874Implemented the first of perhaps several internal create object16875functions that create and initialize a specific object type. This16876consolidates duplicated code wherever the object is created, thus16877shrinking the size of the subsystem.1687816879Implemented improved debug/error messages for errors that occur16880during nested method invocations. All executing method pathnames16881are displayed (with the error) as the call stack is unwound - thus16882simplifying debug.1688316884Fixed a problem introduced in the 10/02 release that caused16885premature deletion of a buffer object if a buffer was used as an16886ASL operand where an integer operand is required (Thus causing an16887implicit object conversion from Buffer to Integer.) The change in16888the 10/02 release was attempting to fix a memory leak (albeit16889incorrectly.)1689016891Code and Data Size: Current core subsystem library sizes are shown16892below. These are the code and data sizes for the acpica.lib16893produced by the Microsoft Visual C++ 6.0 compiler, and these16894values do not include any ACPI driver or OSPM code. The debug16895version of the code includes the debug output trace mechanism and16896has a much larger code and data size. Note that these values will16897vary depending on the efficiency of the compiler and the compiler16898options used during generation.1689916900Previous Release16901Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total16902Debug Version: 153.1K Code, 63.3K Data, 216.4K Total16903Current Release:16904Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total16905Debug Version: 152.7K Code, 63.2K Data, 215.5K Total1690616907169082) Linux1690916910Changed the implementation of the ACPI semaphores to use down()16911instead of down_interruptable(). It is important that the16912execution of ACPI control methods not be interrupted by signals.16913Methods must run to completion, or the system may be left in an16914unknown/unstable state.1691516916Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set.16917(Shawn Starr)1691816919169203) iASL Compiler/Disassembler169211692216923Changed the default location of output files. All output files16924are now placed in the current directory by default instead of in16925the directory of the source file. This change may affect some16926existing makefiles, but it brings the behavior of the compiler in16927line with other similar tools. The location of the output files16928can be overridden with the -p command line switch.169291693016931----------------------------------------1693211 November 2002. Summary of changes for version 20021111.1693316934169350) ACPI Specification 2.0B is released and is now available at:16936http://www.acpi.info/index.html1693716938169391) ACPI CA Core Subsystem:1694016941Implemented support for the ACPI 2.0 SMBus Operation Regions.16942This includes the early detection and handoff of the request to16943the SMBus region handler (avoiding all of the complex field16944support code), and support for the bidirectional return packet16945from an SMBus write operation. This paves the way for the16946development of SMBus drivers in each host operating system.1694716948Fixed a problem where the semaphore WAIT_FOREVER constant was16949defined as 32 bits, but must be 16 bits according to the ACPI16950specification. This had the side effect of causing ASL16951Mutex/Event timeouts even though the ASL code requested a wait16952forever. Changed all internal references to the ACPI timeout16953parameter to 16 bits to prevent future problems. Changed the name16954of WAIT_FOREVER to ACPI_WAIT_FOREVER.1695516956Code and Data Size: Current core subsystem library sizes are shown16957below. These are the code and data sizes for the acpica.lib16958produced by the Microsoft Visual C++ 6.0 compiler, and these16959values do not include any ACPI driver or OSPM code. The debug16960version of the code includes the debug output trace mechanism and16961has a much larger code and data size. Note that these values will16962vary depending on the efficiency of the compiler and the compiler16963options used during generation.1696416965Previous Release16966Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total16967Debug Version: 152.3K Code, 63.0K Data, 215.3K Total16968Current Release:16969Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total16970Debug Version: 153.1K Code, 63.3K Data, 216.4K Total1697116972169732) Linux1697416975Module loading/unloading fixes (John Cagle)1697616977169783) iASL Compiler/Disassembler1697916980Added support for the SMBBlockProcessCall keyword (ACPI 2.0)1698116982Implemented support for the disassembly of all SMBus protocol16983keywords (SMBQuick, SMBWord, etc.)1698416985----------------------------------------1698601 November 2002. Summary of changes for version 20021101.1698716988169891) ACPI CA Core Subsystem:1699016991Fixed a problem where platforms that have a GPE1 block but no GPE016992block were not handled correctly. This resulted in a "GPE16993overlap" error message. GPE0 is no longer required.1699416995Removed code added in the previous release that inserted nodes16996into the namespace in alphabetical order. This caused some side-16997effects on various machines. The root cause of the problem is16998still under investigation since in theory, the internal ordering16999of the namespace nodes should not matter.170001700117002Enhanced error reporting for the case where a named object is not17003found during control method execution. The full ACPI namepath17004(name reference) of the object that was not found is displayed in17005this case.1700617007Note: as a result of the overhaul of the namespace object types in17008the previous release, the namespace nodes for the predefined17009scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE17010instead of ACPI_TYPE_ANY. This simplifies the namespace17011management code but may affect code that walks the namespace tree17012looking for specific object types.1701317014Code and Data Size: Current core subsystem library sizes are shown17015below. These are the code and data sizes for the acpica.lib17016produced by the Microsoft Visual C++ 6.0 compiler, and these17017values do not include any ACPI driver or OSPM code. The debug17018version of the code includes the debug output trace mechanism and17019has a much larger code and data size. Note that these values will17020vary depending on the efficiency of the compiler and the compiler17021options used during generation.1702217023Previous Release17024Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total17025Debug Version: 151.7K Code, 62.4K Data, 214.1K Total17026Current Release:17027Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total17028Debug Version: 152.3K Code, 63.0K Data, 215.3K Total1702917030170312) Linux1703217033Fixed a problem introduced in the previous release where the17034Processor and Thermal objects were not recognized and installed in17035/proc. This was related to the scope type change described above.1703617037170383) iASL Compiler/Disassembler1703917040Implemented the -g option to get all of the required ACPI tables17041from the registry and save them to files (Windows version of the17042compiler only.) The required tables are the FADT, FACS, and DSDT.1704317044Added ACPI table checksum validation during table disassembly in17045order to catch corrupted tables.170461704717048----------------------------------------1704922 October 2002. Summary of changes for version 20021022.17050170511) ACPI CA Core Subsystem:1705217053Implemented a restriction on the Scope operator that the target17054must already exist in the namespace at the time the operator is17055encountered (during table load or method execution). In other17056words, forward references are not allowed and Scope() cannot17057create a new object. This changes the previous behavior where the17058interpreter would create the name if not found. This new behavior17059correctly enables the search-to-root algorithm during namespace17060lookup of the target name. Because of this upsearch, this fixes17061the known Compaq _SB_.OKEC problem and makes both the AML17062interpreter and iASL compiler compatible with other ACPI17063implementations.1706417065Completed a major overhaul of the internal ACPI object types for17066the ACPI Namespace and the associated operand objects. Many of17067these types had become obsolete with the introduction of the two-17068pass namespace load. This cleanup simplifies the code and makes17069the entire namespace load mechanism much clearer and easier to17070understand.1707117072Improved debug output for tracking scope opening/closing to help17073diagnose scoping issues. The old scope name as well as the new17074scope name are displayed. Also improved error messages for17075problems with ASL Mutex objects and error messages for GPE17076problems.1707717078Cleaned up the namespace dump code, removed obsolete code.1707917080All string output (for all namespace/object dumps) now uses the17081common ACPI string output procedure which handles escapes properly17082and does not emit non-printable characters.1708317084Fixed some issues with constants in the 64-bit version of the17085local C library (utclib.c)1708617087170882) Linux1708917090EC Driver: No longer attempts to acquire the Global Lock at17091interrupt level.1709217093170943) iASL Compiler/Disassembler1709517096Implemented ACPI 2.0B grammar change that disallows all Type 1 and170972 opcodes outside of a control method. This means that the17098"executable" operators (versus the "namespace" operators) cannot17099be used at the table level; they can only be used within a control17100method.1710117102Implemented the restriction on the Scope() operator where the17103target must already exist in the namespace at the time the17104operator is encountered (during ASL compilation). In other words,17105forward references are not allowed and Scope() cannot create a new17106object. This makes the iASL compiler compatible with other ACPI17107implementations and makes the Scope() implementation adhere to the17108ACPI specification.1710917110Fixed a problem where namepath optimization for the Alias operator17111was optimizing the wrong path (of the two namepaths.) This caused17112a "Missing alias link" error message.1711317114Fixed a problem where an "unknown reserved name" warning could be17115incorrectly generated for names like "_SB" when the trailing17116underscore is not used in the original ASL.1711717118Fixed a problem where the reserved name check did not handle17119NamePaths with multiple NameSegs correctly. The first nameseg of17120the NamePath was examined instead of the last NameSeg.171211712217123----------------------------------------171241712502 October 2002. Summary of changes for this release.1712617127171281) ACPI CA Core Subsystem version 20021002:1712917130Fixed a problem where a store/copy of a string to an existing17131string did not always set the string length properly in the String17132object.1713317134Fixed a reported problem with the ToString operator where the17135behavior was identical to the ToHexString operator instead of just17136simply converting a raw buffer to a string data type.1713717138Fixed a problem where CopyObject and the other "explicit"17139conversion operators were not updating the internal namespace node17140type as part of the store operation.1714117142Fixed a memory leak during implicit source operand conversion17143where the original object was not deleted if it was converted to a17144new object of a different type.1714517146Enhanced error messages for all problems associated with namespace17147lookups. Common procedure generates and prints the lookup name as17148well as the formatted status.1714917150Completed implementation of a new design for the Alias support17151within the namespace. The existing design did not handle the case17152where a new object was assigned to one of the two names due to the17153use of an explicit conversion operator, resulting in the two names17154pointing to two different objects. The new design simply points17155the Alias name to the original name node - not to the object.17156This results in a level of indirection that must be handled in the17157name resolution mechanism.1715817159Code and Data Size: Current core subsystem library sizes are shown17160below. These are the code and data sizes for the acpica.lib17161produced by the Microsoft Visual C++ 6.0 compiler, and these17162values do not include any ACPI driver or OSPM code. The debug17163version of the code includes the debug output trace mechanism and17164has a larger code and data size. Note that these values will vary17165depending on the efficiency of the compiler and the compiler17166options used during generation.1716717168Previous Release17169Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total17170Debug Version: 150.0K Code, 61.7K Data, 211.7K Total17171Current Release:17172Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total17173Debug Version: 151.7K Code, 62.4K Data, 214.1K Total1717417175171762) Linux1717717178Initialize thermal driver's timer before it is used. (Knut17179Neumann)1718017181Allow handling negative celsius values. (Kochi Takayoshi)1718217183Fix thermal management and make trip points. R/W (Pavel Machek)1718417185Fix /proc/acpi/sleep. (P. Christeas)1718617187IA64 fixes. (David Mosberger)1718817189Fix reversed logic in blacklist code. (Sergio Monteiro Basto)1719017191Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik17192Brodowski)1719317194171953) iASL Compiler/Disassembler1719617197Clarified some warning/error messages.171981719917200----------------------------------------1720118 September 2002. Summary of changes for this release.1720217203172041) ACPI CA Core Subsystem version 20020918:1720517206Fixed a reported problem with reference chaining (via the Index()17207and RefOf() operators) in the ObjectType() and SizeOf() operators.17208The definition of these operators includes the dereferencing of17209all chained references to return information on the base object.1721017211Fixed a problem with stores to indexed package elements - the17212existing code would not complete the store if an "implicit17213conversion" was not performed. In other words, if the existing17214object (package element) was to be replaced completely, the code17215didn't handle this case.1721617217Relaxed typechecking on the ASL "Scope" operator to allow the17218target name to refer to an object of type Integer, String, or17219Buffer, in addition to the scoping object types (Device,17220predefined Scopes, Processor, PowerResource, and ThermalZone.)17221This allows existing AML code that has workarounds for a bug in17222Windows to function properly. A warning is issued, however. This17223affects both the AML interpreter and the iASL compiler. Below is17224an example of this type of ASL code:1722517226Name(DEB,0x00)17227Scope(DEB)17228{1722917230Fixed some reported problems with 64-bit integer support in the17231local implementation of C library functions (clib.c)1723217233172342) Linux1723517236Use ACPI fix map region instead of IOAPIC region, since it is17237undefined in non-SMP.1723817239Ensure that the SCI has the proper polarity and trigger, even on17240systems that do not have an interrupt override entry in the MADT.17241172422.5 big driver reorganization (Pat Mochel)1724317244Use early table mapping code from acpitable.c (Andi Kleen)1724517246New blacklist entries (Andi Kleen)1724717248Blacklist improvements. Split blacklist code out into a separate17249file. Move checking the blacklist to very early. Previously, we17250would use ACPI tables, and then halfway through init, check the17251blacklist -- too late. Now, it's early enough to completely fall-17252back to non-ACPI.1725317254172553) iASL Compiler/Disassembler version 20020918:1725617257Fixed a problem where the typechecking code didn't know that an17258alias could point to a method. In other words, aliases were not17259being dereferenced during typechecking.172601726117262----------------------------------------1726329 August 2002. Summary of changes for this release.17264172651) ACPI CA Core Subsystem Version 20020829:1726617267If the target of a Scope() operator already exists, it must be an17268object type that actually opens a scope -- such as a Device,17269Method, Scope, etc. This is a fatal runtime error. Similar error17270check has been added to the iASL compiler also.1727117272Tightened up the namespace load to disallow multiple names in the17273same scope. This previously was allowed if both objects were of17274the same type. (i.e., a lookup was the same as entering a new17275name).1727617277172782) Linux1727917280Ensure that the ACPI interrupt has the proper trigger and17281polarity.1728217283local_irq_disable is extraneous. (Matthew Wilcox)1728417285Make "acpi=off" actually do what it says, and not use the ACPI17286interpreter *or* the tables.1728717288Added arch-neutral support for parsing SLIT and SRAT tables (Kochi17289Takayoshi)1729017291172923) iASL Compiler/Disassembler Version 20020829:1729317294Implemented namepath optimization for name declarations. For17295example, a declaration like "Method (\_SB_.ABCD)" would get17296optimized to "Method (ABCD)" if the declaration is within the17297\_SB_ scope. This optimization is in addition to the named17298reference path optimization first released in the previous17299version. This would seem to complete all possible optimizations17300for namepaths within the ASL/AML.1730117302If the target of a Scope() operator already exists, it must be an17303object type that actually opens a scope -- such as a Device,17304Method, Scope, etc.1730517306Implemented a check and warning for unreachable code in the same17307block below a Return() statement.1730817309Fixed a problem where the listing file was not generated if the17310compiler aborted if the maximum error count was exceeded (200).1731117312Fixed a problem where the typechecking of method return values was17313broken. This includes the check for a return value when the17314method is invoked as a TermArg (a return value is expected.)1731517316Fixed a reported problem where EOF conditions during a quoted17317string or comment caused a fault.173181731917320----------------------------------------1732115 August 2002. Summary of changes for this release.17322173231) ACPI CA Core Subsystem Version 20020815:1732417325Fixed a reported problem where a Store to a method argument that17326contains a reference did not perform the indirect store correctly.17327This problem was created during the conversion to the new17328reference object model - the indirect store to a method argument17329code was not updated to reflect the new model.1733017331Reworked the ACPI mode change code to better conform to ACPI 2.0,17332handle corner cases, and improve code legibility (Kochi Takayoshi)1733317334Fixed a problem with the pathname parsing for the carat (^)17335prefix. The heavy use of the carat operator by the new namepath17336optimization in the iASL compiler uncovered a problem with the AML17337interpreter handling of this prefix. In the case where one or17338more carats precede a single nameseg, the nameseg was treated as17339standalone and the search rule (to root) was inadvertently17340applied. This could cause both the iASL compiler and the17341interpreter to find the wrong object or to miss the error that17342should occur if the object does not exist at that exact pathname.1734317344Found and fixed the problem where the HP Pavilion DSDT would not17345load. This was a relatively minor tweak to the table loading code17346(a problem caused by the unexpected encounter with a method17347invocation not within a control method), but it does not solve the17348overall issue of the execution of AML code at the table level.17349This investigation is still ongoing.1735017351Code and Data Size: Current core subsystem library sizes are shown17352below. These are the code and data sizes for the acpica.lib17353produced by the Microsoft Visual C++ 6.0 compiler, and these17354values do not include any ACPI driver or OSPM code. The debug17355version of the code includes the debug output trace mechanism and17356has a larger code and data size. Note that these values will vary17357depending on the efficiency of the compiler and the compiler17358options used during generation.1735917360Previous Release17361Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total17362Debug Version: 149.4K Code, 61.6K Data, 211.0K Total17363Current Release:17364Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total17365Debug Version: 150.0K Code, 61.7K Data, 211.7K Total1736617367173682) Linux1736917370Remove redundant slab.h include (Brad Hards)1737117372Fix several bugs in thermal.c (Herbert Nachtnebel)1737317374Make CONFIG_ACPI_BOOT work properly (Pavel Machek)1737517376Change acpi_system_suspend to use updated irq functions (Pavel17377Machek)1737817379Export acpi_get_firmware_table (Matthew Wilcox)1738017381Use proper root proc entry for ACPI (Kochi Takayoshi)1738217383Fix early-boot table parsing (Bjorn Helgaas)1738417385173863) iASL Compiler/Disassembler1738717388Reworked the compiler options to make them more consistent and to17389use two-letter options where appropriate. We were running out of17390sensible letters. This may break some makefiles, so check the17391current options list by invoking the compiler with no parameters.1739217393Completed the design and implementation of the ASL namepath17394optimization option for the compiler. This option optimizes all17395references to named objects to the shortest possible path. The17396first attempt tries to utilize a single nameseg (4 characters) and17397the "search-to-root" algorithm used by the interpreter. If that17398cannot be used (because either the name is not in the search path17399or there is a conflict with another object with the same name),17400the pathname is optimized using the carat prefix (usually a17401shorter string than specifying the entire path from the root.)1740217403Implemented support to obtain the DSDT from the Windows registry17404(when the disassembly option is specified with no input file).17405Added this code as the implementation for AcpiOsTableOverride in17406the Windows OSL. Migrated the 16-bit code (used in the AcpiDump17407utility) to scan memory for the DSDT to the AcpiOsTableOverride17408function in the DOS OSL to make the disassembler truly OS17409independent.1741017411Implemented a new option to disassemble and compile in one step.17412When used without an input filename, this option will grab the17413DSDT from the local machine, disassemble it, and compile it in one17414step.1741517416Added a warning message for invalid escapes (a backslash followed17417by any character other than the allowable escapes). This catches17418the quoted string error "\_SB_" (which should be "\\_SB_" ).1741917420Also, there are numerous instances in the ACPI specification where17421this error occurs.1742217423Added a compiler option to disable all optimizations. This is17424basically the "compatibility mode" because by using this option,17425the AML code will come out exactly the same as other ASL17426compilers.1742717428Added error messages for incorrectly ordered dependent resource17429functions. This includes: missing EndDependentFn macro at end of17430dependent resource list, nested dependent function macros (both17431start and end), and missing StartDependentFn macro. These are17432common errors that should be caught at compile time.1743317434Implemented _OSI support for the disassembler and compiler. _OSI17435must be included in the namespace for proper disassembly (because17436the disassembler must know the number of arguments.)1743717438Added an "optimization" message type that is optional (off by17439default). This message is used for all optimizations - including17440constant folding, integer optimization, and namepath optimization.1744117442----------------------------------------1744325 July 2002. Summary of changes for this release.1744417445174461) ACPI CA Core Subsystem Version 20020725:1744717448The AML Disassembler has been enhanced to produce compilable ASL17449code and has been integrated into the iASL compiler (see below) as17450well as the single-step disassembly for the AML debugger and the17451disassembler for the AcpiDump utility. All ACPI 2.0A opcodes,17452resource templates and macros are fully supported. The17453disassembler has been tested on over 30 different AML files,17454producing identical AML when the resulting disassembled ASL file17455is recompiled with the same ASL compiler.1745617457Modified the Resource Manager to allow zero interrupts and zero17458dma channels during the GetCurrentResources call. This was17459causing problems on some platforms.1746017461Added the AcpiOsRedirectOutput interface to the OSL to simplify17462output redirection for the AcpiOsPrintf and AcpiOsVprintf17463interfaces.1746417465Code and Data Size: Current core subsystem library sizes are shown17466below. These are the code and data sizes for the acpica.lib17467produced by the Microsoft Visual C++ 6.0 compiler, and these17468values do not include any ACPI driver or OSPM code. The debug17469version of the code includes the debug output trace mechanism and17470has a larger code and data size. Note that these values will vary17471depending on the efficiency of the compiler and the compiler17472options used during generation.1747317474Previous Release17475Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total17476Debug Version: 142.9K Code, 58.7K Data, 201.6K Total17477Current Release:17478Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total17479Debug Version: 149.4K Code, 61.6K Data, 211.0K Total1748017481174822) Linux1748317484Fixed a panic in the EC driver (Dominik Brodowski)1748517486Implemented checksum of the R/XSDT itself during Linux table scan17487(Richard Schaal)1748817489174903) iASL compiler1749117492The AML disassembler is integrated into the compiler. The "-d"17493option invokes the disassembler to completely disassemble an17494input AML file, producing as output a text ASL file with the17495extension ".dsl" (to avoid name collisions with existing .asl17496source files.) A future enhancement will allow the disassembler17497to obtain the BIOS DSDT from the registry under Windows.1749817499Fixed a problem with the VendorShort and VendorLong resource17500descriptors where an invalid AML sequence was created.1750117502Implemented a fix for BufferData term in the ASL parser. It was17503inadvertently defined twice, allowing invalid syntax to pass and17504causing reduction conflicts.1750517506Fixed a problem where the Ones opcode could get converted to a17507value of zero if "Ones" was used where a byte, word or dword value17508was expected. The 64-bit value is now truncated to the correct17509size with the correct value.17510175111751217513----------------------------------------1751402 July 2002. Summary of changes for this release.1751517516175171) ACPI CA Core Subsystem Version 20020702:1751817519The Table Manager code has been restructured to add several new17520features. Tables that are not required by the core subsystem17521(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer17522validated in any way and are returned from AcpiGetFirmwareTable if17523requested. The AcpiOsTableOverride interface is now called for17524each table that is loaded by the subsystem in order to allow the17525host to override any table it chooses. Previously, only the DSDT17526could be overridden. Added one new files, tbrsdt.c and17527tbgetall.c.1752817529Fixed a problem with the conversion of internal package objects to17530external objects (when a package is returned from a control17531method.) The return buffer length was set to zero instead of the17532proper length of the package object.1753317534Fixed a reported problem with the use of the RefOf and DeRefOf17535operators when passing reference arguments to control methods. A17536new type of Reference object is used internally for references17537produced by the RefOf operator.1753817539Added additional error messages in the Resource Manager to explain17540AE_BAD_DATA errors when they occur during resource parsing.1754117542Split the AcpiEnableSubsystem into two primitives to enable a17543finer granularity initialization sequence. These two calls should17544be called in this order: AcpiEnableSubsystem (flags),17545AcpiInitializeObjects (flags). The flags parameter remains the17546same.1754717548175492) Linux1755017551Updated the ACPI utilities module to understand the new style of17552fully resolved package objects that are now returned from the core17553subsystem. This eliminates errors of the form:1755417555ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT]17556acpi_utils-0430 [145] acpi_evaluate_reference:17557Invalid element in package (not a device reference)1755817559The method evaluation utility uses the new buffer allocation17560scheme instead of calling AcpiEvaluate Object twice.1756117562Added support for ECDT. This allows the use of the Embedded1756317564Controller before the namespace has been fully initialized, which17565is necessary for ACPI 2.0 support, and for some laptops to17566initialize properly. (Laptops using ECDT are still rare, so only17567limited testing was performed of the added functionality.)1756817569Fixed memory leaks in the EC driver.1757017571Eliminated a brittle code structure in acpi_bus_init().1757217573Eliminated the acpi_evaluate() helper function in utils.c. It is17574no longer needed since acpi_evaluate_object can optionally17575allocate memory for the return object.1757617577Implemented fix for keyboard hang when getting battery readings on17578some systems (Stephen White)1757917580PCI IRQ routing update (Dominik Brodowski)1758117582Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC17583support1758417585----------------------------------------1758611 June 2002. Summary of changes for this release.1758717588175891) ACPI CA Core Subsystem Version 20020611:1759017591Fixed a reported problem where constants such as Zero and One17592appearing within _PRT packages were not handled correctly within17593the resource manager code. Originally reported against the ASL17594compiler because the code generator now optimizes integers to17595their minimal AML representation (i.e. AML constants if possible.)17596The _PRT code now handles all AML constant opcodes correctly17597(Zero, One, Ones, Revision).1759817599Fixed a problem with the Concatenate operator in the AML17600interpreter where a buffer result object was incorrectly marked as17601not fully evaluated, causing a run-time error of AE_AML_INTERNAL.1760217603All package sub-objects are now fully resolved before they are17604returned from the external ACPI interfaces. This means that name17605strings are resolved to object handles, and constant operators17606(Zero, One, Ones, Revision) are resolved to Integers.1760717608Implemented immediate resolution of the AML Constant opcodes17609(Zero, One, Ones, Revision) to Integer objects upon detection17610within the AML stream. This has simplified and reduced the17611generated code size of the subsystem by eliminating about 1017612switch statements for these constants (which previously were17613contained in Reference objects.) The complicating issues are that17614the Zero opcode is used as a "placeholder" for unspecified17615optional target operands and stores to constants are defined to be17616no-ops.1761717618Code and Data Size: Current core subsystem library sizes are shown17619below. These are the code and data sizes for the acpica.lib17620produced by the Microsoft Visual C++ 6.0 compiler, and these17621values do not include any ACPI driver or OSPM code. The debug17622version of the code includes the debug output trace mechanism and17623has a larger code and data size. Note that these values will vary17624depending on the efficiency of the compiler and the compiler17625options used during generation.1762617627Previous Release17628Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total17629Debug Version: 143.8K Code, 58.8K Data, 202.6K Total17630Current Release:17631Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total17632Debug Version: 142.9K Code, 58.7K Data, 201.6K Total1763317634176352) Linux176361763717638Added preliminary support for obtaining _TRA data for PCI root17639bridges (Bjorn Helgaas).1764017641176423) iASL Compiler Version X2046:1764317644Fixed a problem where the "_DDN" reserved name was defined to be a17645control method with one argument. There are no arguments, and17646_DDN does not have to be a control method.1764717648Fixed a problem with the Linux version of the compiler where the17649source lines printed with error messages were the wrong lines.17650This turned out to be the "LF versus CR/LF" difference between17651Windows and Unix. This appears to be the longstanding issue17652concerning listing output and error messages.1765317654Fixed a problem with the Linux version of compiler where opcode17655names within error messages were wrong. This was caused by a17656slight difference in the output of the Flex tool on Linux versus17657Windows.1765817659Fixed a problem with the Linux compiler where the hex output files17660contained some garbage data caused by an internal buffer overrun.176611766217663----------------------------------------1766417 May 2002. Summary of changes for this release.1766517666176671) ACPI CA Core Subsystem Version 20020517:1766817669Implemented a workaround to an BIOS bug discovered on the HP17670OmniBook where the FADT revision number and the table size are17671inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new17672behavior is to fallback to using only the ACPI 1.0 fields of the17673FADT if the table is too small to be a ACPI 2.0 table as claimed17674by the revision number. Although this is a BIOS bug, this is a17675case where the workaround is simple enough and with no side17676effects, so it seemed prudent to add it. A warning message is17677issued, however.1767817679Implemented minimum size checks for the fixed-length ACPI tables -17680- the FADT and FACS, as well as consistency checks between the17681revision number and the table size.1768217683Fixed a reported problem in the table override support where the17684new table pointer was incorrectly treated as a physical address17685instead of a logical address.1768617687Eliminated the use of the AE_AML_ERROR exception and replaced it17688with more descriptive codes.1768917690Fixed a problem where an exception would occur if an ASL Field was17691defined with no named Field Units underneath it (used by some17692index fields).1769317694Code and Data Size: Current core subsystem library sizes are shown17695below. These are the code and data sizes for the acpica.lib17696produced by the Microsoft Visual C++ 6.0 compiler, and these17697values do not include any ACPI driver or OSPM code. The debug17698version of the code includes the debug output trace mechanism and17699has a larger code and data size. Note that these values will vary17700depending on the efficiency of the compiler and the compiler17701options used during generation.1770217703Previous Release17704Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total17705Debug Version: 142.9K Code, 58.4K Data, 201.3K Total17706Current Release:17707Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total17708Debug Version: 143.8K Code, 58.8K Data, 202.6K Total177091771017711177122) Linux1771317714Much work done on ACPI init (MADT and PCI IRQ routing support).17715(Paul D. and Dominik Brodowski)1771617717Fix PCI IRQ-related panic on boot (Sam Revitch)1771817719Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno)1772017721Fix "MHz" typo (Dominik Brodowski)1772217723Fix RTC year 2000 issue (Dominik Brodowski)1772417725Preclude multiple button proc entries (Eric Brunet)1772617727Moved arch-specific code out of include/platform/aclinux.h17728177293) iASL Compiler Version X2044:1773017731Implemented error checking for the string used in the EISAID macro17732(Usually used in the definition of the _HID object.) The code now17733strictly enforces the PnP format - exactly 7 characters, 317734uppercase letters and 4 hex digits.1773517736If a raw string is used in the definition of the _HID object17737(instead of the EISAID macro), the string must contain all17738alphanumeric characters (e.g., "*PNP0011" is not allowed because17739of the asterisk.)1774017741Implemented checking for invalid use of ACPI reserved names for17742most of the name creation operators (Name, Device, Event, Mutex,17743OperationRegion, PowerResource, Processor, and ThermalZone.)17744Previously, this check was only performed for control methods.1774517746Implemented an additional check on the Name operator to emit an17747error if a reserved name that must be implemented in ASL as a17748control method is used. We know that a reserved name must be a17749method if it is defined with input arguments.1775017751The warning emitted when a namespace object reference is not found17752during the cross reference phase has been changed into an error.17753The "External" directive should be used for names defined in other17754modules.1775517756177574) Tools and Utilities1775817759The 16-bit tools (adump16 and aexec16) have been regenerated and17760tested.1776117762Fixed a problem with the output of both acpidump and adump16 where17763the indentation of closing parentheses and brackets was not1776417765aligned properly with the parent block.177661776717768----------------------------------------1776903 May 2002. Summary of changes for this release.1777017771177721) ACPI CA Core Subsystem Version 20020503:1777317774Added support a new OSL interface that allows the host operating1777517776system software to override the DSDT found in the firmware -17777AcpiOsTableOverride. With this interface, the OSL can examine the17778version of the firmware DSDT and replace it with a different one17779if desired.1778017781Added new external interfaces for accessing ACPI registers from17782device drivers and other system software - AcpiGetRegister and17783AcpiSetRegister. This was simply an externalization of the17784existing AcpiHwBitRegister interfaces.1778517786Fixed a regression introduced in the previous build where the17787ASL/AML CreateField operator always returned an error,17788"destination must be a NS Node".1778917790Extended the maximum time (before failure) to successfully enable17791ACPI mode to 3 seconds.1779217793Code and Data Size: Current core subsystem library sizes are shown17794below. These are the code and data sizes for the acpica.lib17795produced by the Microsoft Visual C++ 6.0 compiler, and these17796values do not include any ACPI driver or OSPM code. The debug17797version of the code includes the debug output trace mechanism and17798has a larger code and data size. Note that these values will vary17799depending on the efficiency of the compiler and the compiler17800options used during generation.1780117802Previous Release17803Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total17804Debug Version: 142.4K Code, 58.3K Data, 200.7K Total17805Current Release:17806Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total17807Debug Version: 142.9K Code, 58.4K Data, 201.3K Total1780817809178102) Linux1781117812Enhanced ACPI init code for SMP. We are now fully MPS and $PIR-17813free. While 3 out of 4 of our in-house systems work fine, the last17814one still hangs when testing the LAPIC timer.1781517816Renamed many files in 2.5 kernel release to omit "acpi_" from the17817name.1781817819Added warning on boot for Presario 711FR.1782017821Sleep improvements (Pavel Machek)1782217823ACPI can now be built without CONFIG_PCI enabled.1782417825IA64: Fixed memory map functions (JI Lee)1782617827178283) iASL Compiler Version X2043:1782917830Added support to allow the compiler to be integrated into the MS17831VC++ development environment for one-button compilation of single17832files or entire projects -- with error-to-source-line mapping.1783317834Implemented support for compile-time constant folding for the17835Type3, Type4, and Type5 opcodes first defined in the ACPI 2.017836specification. This allows the ASL writer to use expressions17837instead of Integer/Buffer/String constants in terms that must17838evaluate to constants at compile time and will also simplify the17839emitted AML in any such sub-expressions that can be folded17840(evaluated at compile-time.) This increases the size of the17841compiler significantly because a portion of the ACPI CA AML17842interpreter is included within the compiler in order to pre-17843evaluate constant expressions.178441784517846Fixed a problem with the "Unicode" ASL macro that caused the17847compiler to fault. (This macro is used in conjunction with the17848_STR reserved name.)1784917850Implemented an AML opcode optimization to use the Zero, One, and17851Ones opcodes where possible to further reduce the size of integer17852constants and thus reduce the overall size of the generated AML17853code.1785417855Implemented error checking for new reserved terms for ACPI version178562.0A.1785717858Implemented the -qr option to display the current list of ACPI17859reserved names known to the compiler.1786017861Implemented the -qc option to display the current list of ASL17862operators that are allowed within constant expressions and can17863therefore be folded at compile time if the operands are constants.1786417865178664) Documentation1786717868Updated the Programmer's Reference for new interfaces, data types,17869and memory allocation model options.1787017871Updated the iASL Compiler User Reference to apply new format and17872add information about new features and options.1787317874----------------------------------------1787519 April 2002. Summary of changes for this release.17876178771) ACPI CA Core Subsystem Version 20020419:1787817879The source code base for the Core Subsystem has been completely17880cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit17881versions. The Lint option files used are included in the17882/acpi/generate/lint directory.1788317884Implemented enhanced status/error checking across the entire17885Hardware manager subsystem. Any hardware errors (reported from17886the OSL) are now bubbled up and will abort a running control17887method.178881788917890Fixed a problem where the per-ACPI-table integer width (32 or 64)17891was stored only with control method nodes, causing a fault when17892non-control method code was executed during table loading. The17893solution implemented uses a global variable to indicate table17894width across the entire ACPI subsystem. Therefore, ACPI CA does17895not support mixed integer widths across different ACPI tables17896(DSDT, SSDT).1789717898Fixed a problem where NULL extended fields (X fields) in an ACPI178992.0 ACPI FADT caused the table load to fail. Although the17900existing ACPI specification is a bit fuzzy on this topic, the new17901behavior is to fall back on a ACPI 1.0 field if the corresponding17902ACPI 2.0 X field is zero (even though the table revision indicates17903a full ACPI 2.0 table.) The ACPI specification will be updated to17904clarify this issue.1790517906Fixed a problem with the SystemMemory operation region handler17907where memory was always accessed byte-wise even if the AML-17908specified access width was larger than a byte. This caused17909problems on systems with memory-mapped I/O. Memory is now17910accessed with the width specified. On systems that do not support17911non-aligned transfers, a check is made to guarantee proper address17912alignment before proceeding in order to avoid an AML-caused17913alignment fault within the kernel.179141791517916Fixed a problem with the ExtendedIrq resource where only one byte17917of the 4-byte Irq field was extracted.1791817919Fixed the AcpiExDigitsNeeded() procedure to support _UID. This17920function was out of date and required a rewrite.1792117922Code and Data Size: Current core subsystem library sizes are shown17923below. These are the code and data sizes for the acpica.lib17924produced by the Microsoft Visual C++ 6.0 compiler, and these17925values do not include any ACPI driver or OSPM code. The debug17926version of the code includes the debug output trace mechanism and17927has a larger code and data size. Note that these values will vary17928depending on the efficiency of the compiler and the compiler17929options used during generation.1793017931Previous Release17932Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total17933Debug Version: 139.8K Code, 57.4K Data, 197.2K Total17934Current Release:17935Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total17936Debug Version: 142.4K Code, 58.3K Data, 200.7K Total1793717938179392) Linux1794017941PCI IRQ routing fixes (Dominik Brodowski)1794217943179443) iASL Compiler Version X2042:1794517946Implemented an additional compile-time error check for a field17947unit whose size + minimum access width would cause a run-time17948access beyond the end-of-region. Previously, only the field size17949itself was checked.1795017951The Core subsystem and iASL compiler now share a common parse17952object in preparation for compile-time evaluation of the type179533/4/5 ASL operators.179541795517956----------------------------------------17957Summary of changes for this release: 03_29_0217958179591) ACPI CA Core Subsystem Version 20020329:1796017961Implemented support for late evaluation of TermArg operands to17962Buffer and Package objects. This allows complex expressions to be17963used in the declarations of these object types.1796417965Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI179661.0, if the field was larger than 32 bits, it was returned as a17967buffer - otherwise it was returned as an integer. In ACPI 2.0,17968the field is returned as a buffer only if the field is larger than1796964 bits. The TableRevision is now considered when making this17970conversion to avoid incompatibility with existing ASL code.1797117972Implemented logical addressing for AcpiOsGetRootPointer. This17973allows an RSDP with either a logical or physical address. With17974this support, the host OS can now override all ACPI tables with17975one logical RSDP. Includes implementation of "typed" pointer17976support to allow a common data type for both physical and logical17977pointers internally. This required a change to the17978AcpiOsGetRootPointer interface.1797917980Implemented the use of ACPI 2.0 Generic Address Structures for all17981GPE, Fixed Event, and PM Timer I/O. This allows the use of memory17982mapped I/O for these ACPI features.1798317984Initialization now ignores not only non-required tables (All17985tables other than the FADT, FACS, DSDT, and SSDTs), but also does17986not validate the table headers of unrecognized tables.1798717988Fixed a problem where a notify handler could only be17989installed/removed on an object of type Device. All "notify"1799017991objects are now supported -- Devices, Processor, Power, and17992Thermal.1799317994Removed most verbosity from the ACPI_DB_INFO debug level. Only17995critical information is returned when this debug level is enabled.1799617997Code and Data Size: Current core subsystem library sizes are shown17998below. These are the code and data sizes for the acpica.lib17999produced by the Microsoft Visual C++ 6.0 compiler, and these18000values do not include any ACPI driver or OSPM code. The debug18001version of the code includes the debug output trace mechanism and18002has a larger code and data size. Note that these values will vary18003depending on the efficiency of the compiler and the compiler18004options used during generation.1800518006Previous Release18007Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total18008Debug Version: 138.0K Code, 56.6K Data, 194.6K Total18009Current Release:18010Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total18011Debug Version: 139.8K Code, 57.4K Data, 197.2K Total1801218013180142) Linux:1801518016The processor driver (acpi_processor.c) now fully supports ACPI180172.0-based processor performance control (e.g. Intel(R)18018SpeedStep(TM) technology) Note that older laptops that only have18019the Intel "applet" interface are not supported through this. The18020'limit' and 'performance' interface (/proc) are fully functional.18021[Note that basic policy for controlling performance state18022transitions will be included in the next version of ospmd.] The18023idle handler was modified to more aggressively use C2, and PIIX418024errata handling underwent a complete overhaul (big thanks to18025Dominik Brodowski).1802618027Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR-18028based devices in the ACPI namespace are now dynamically bound18029(associated) with their PCI counterparts (e.g. PCI1->01:00.0).18030This allows, among other things, ACPI to resolve bus numbers for18031subordinate PCI bridges.1803218033Enhanced PCI IRQ routing to get the proper bus number for _PRT18034entries defined underneath PCI bridges.1803518036Added IBM 600E to bad bios list due to invalid _ADR value for18037PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing.1803818039In the process of adding full MADT support (e.g. IOAPIC) for IA3218040(acpi.c, mpparse.c) -- stay tuned.1804118042Added back visual differentiation between fixed-feature and18043control-method buttons in dmesg. Buttons are also subtyped (e.g.18044button/power/PWRF) to simplify button identification.1804518046We no longer use -Wno-unused when compiling debug. Please ignore18047any "_THIS_MODULE defined but not used" messages.1804818049Can now shut down the system using "magic sysrq" key.1805018051180523) iASL Compiler version 2041:1805318054Fixed a problem where conversion errors for hex/octal/decimal18055constants were not reported.1805618057Implemented a fix for the General Register template Address field.18058This field was 8 bits when it should be 64.1805918060Fixed a problem where errors/warnings were no longer being emitted18061within the listing output file.1806218063Implemented the ACPI 2.0A restriction on ACPI Table Signatures to18064exactly 4 characters, alphanumeric only.1806518066180671806818069----------------------------------------18070Summary of changes for this release: 03_08_021807118072180731) ACPI CA Core Subsystem Version 20020308:1807418075Fixed a problem with AML Fields where the use of the "AccessAny"18076keyword could cause an interpreter error due to attempting to read18077or write beyond the end of the parent Operation Region.1807818079Fixed a problem in the SystemMemory Operation Region handler where18080an attempt was made to map memory beyond the end of the region.18081This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY"18082errors on some Linux systems.1808318084Fixed a problem where the interpreter/namespace "search to root"18085algorithm was not functioning for some object types. Relaxed the18086internal restriction on the search to allow upsearches for all18087external object types as well as most internal types.1808818089180902) Linux:1809118092We now use safe_halt() macro versus individual calls to sti | hlt.1809318094Writing to the processor limit interface should now work. "echo 1"18095will increase the limit, 2 will decrease, and 0 will reset to the1809618097default.1809818099181003) ASL compiler:1810118102Fixed segfault on Linux version.181031810418105----------------------------------------18106Summary of changes for this release: 02_25_0218107181081) ACPI CA Core Subsystem:181091811018111Fixed a problem where the GPE bit masks were not initialized18112properly, causing erratic GPE behavior.1811318114Implemented limited support for multiple calling conventions. The18115code can be generated with either the VPL (variable parameter18116list, or "C") convention, or the FPL (fixed parameter list, or18117"Pascal") convention. The core subsystem is about 3.4% smaller18118when generated with FPL.1811918120181212) Linux1812218123Re-add some /proc/acpi/event functionality that was lost during18124the rewrite1812518126Resolved issue with /proc events for fixed-feature buttons showing18127up as the system device.1812818129Fixed checks on C2/C3 latencies to be inclusive of maximum values.1813018131Replaced AE_ERRORs in acpi_osl.c with more specific error codes.1813218133Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi"1813418135Fixed limit interface & usage to fix bugs with passive cooling18136hysterisis.1813718138Restructured PRT support.181391814018141----------------------------------------18142Summary of changes for this label: 02_14_021814318144181451) ACPI CA Core Subsystem:1814618147Implemented support in AcpiLoadTable to allow loading of FACS and18148FADT tables.1814918150Support for the now-obsolete interim 0.71 64-bit ACPI tables has18151been removed. All 64-bit platforms should be migrated to the ACPI181522.0 tables. The actbl71.h header has been removed from the source18153tree.1815418155All C macros defined within the subsystem have been prefixed with18156"ACPI_" to avoid collision with other system include files.1815718158Removed the return value for the two AcpiOsPrint interfaces, since18159it is never used and causes lint warnings for ignoring the return18160value.1816118162Added error checking to all internal mutex acquire and release18163calls. Although a failure from one of these interfaces is18164probably a fatal system error, these checks will cause the18165immediate abort of the currently executing method or interface.1816618167Fixed a problem where the AcpiSetCurrentResources interface could18168fault. This was a side effect of the deployment of the new memory18169allocation model.1817018171Fixed a couple of problems with the Global Lock support introduced18172in the last major build. The "common" (1.0/2.0) internal FACS was18173being overwritten with the FACS signature and clobbering the18174Global Lock pointer. Also, the actual firmware FACS was being18175unmapped after construction of the "common" FACS, preventing18176access to the actual Global Lock field within it. The "common"18177internal FACS is no longer installed as an actual ACPI table; it18178is used simply as a global.1817918180Code and Data Size: Current core subsystem library sizes are shown18181below. These are the code and data sizes for the acpica.lib18182produced by the Microsoft Visual C++ 6.0 compiler, and these18183values do not include any ACPI driver or OSPM code. The debug18184version of the code includes the debug output trace mechanism and18185has a larger code and data size. Note that these values will vary18186depending on the efficiency of the compiler and the compiler18187options used during generation.1818818189Previous Release (02_07_01)18190Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total18191Debug Version: 136.9K Code, 56.4K Data, 193.3K Total18192Current Release:18193Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total18194Debug Version: 138.0K Code, 56.6K Data, 194.6K Total1819518196181972) Linux1819818199Updated Linux-specific code for core macro and OSL interface18200changes described above.1820118202Improved /proc/acpi/event. It now can be opened only once and has18203proper poll functionality.1820418205Fixed and restructured power management (acpi_bus).1820618207Only create /proc "view by type" when devices of that class exist.1820818209Fixed "charging/discharging" bug (and others) in acpi_battery.1821018211Improved thermal zone code.1821218213182143) ASL Compiler, version X2039:182151821618217Implemented the new compiler restriction on ASL String hex/octal18218escapes to non-null, ASCII values. An error results if an invalid18219value is used. (This will require an ACPI 2.0 specification18220change.)1822118222AML object labels that are output to the optional C and ASM source18223are now prefixed with both the ACPI table signature and table ID18224to help guarantee uniqueness within a large BIOS project.182251822618227----------------------------------------18228Summary of changes for this label: 02_01_0218229182301) ACPI CA Core Subsystem:1823118232ACPI 2.0 support is complete in the entire Core Subsystem and the18233ASL compiler. All new ACPI 2.0 operators are implemented and all18234other changes for ACPI 2.0 support are complete. With18235simultaneous code and data optimizations throughout the subsystem,18236ACPI 2.0 support has been implemented with almost no additional18237cost in terms of code and data size.1823818239Implemented a new mechanism for allocation of return buffers. If18240the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will18241be allocated on behalf of the caller. Consolidated all return18242buffer validation and allocation to a common procedure. Return18243buffers will be allocated via the primary OSL allocation interface18244since it appears that a separate pool is not needed by most users.18245If a separate pool is required for these buffers, the caller can18246still use the original mechanism and pre-allocate the buffer(s).1824718248Implemented support for string operands within the DerefOf18249operator.1825018251Restructured the Hardware and Event managers to be table driven,18252simplifying the source code and reducing the amount of generated18253code.1825418255Split the common read/write low-level ACPI register bitfield18256procedure into a separate read and write, simplifying the code18257considerably.1825818259Obsoleted the AcpiOsCallocate OSL interface. This interface was18260used only a handful of times and didn't have enough critical mass18261for a separate interface. Replaced with a common calloc procedure18262in the core.1826318264Fixed a reported problem with the GPE number mapping mechanism18265that allows GPE1 numbers to be non-contiguous with GPE0.18266Reorganized the GPE information and shrunk a large array that was18267originally large enough to hold info for all possible GPEs (256)18268to simply large enough to hold all GPEs up to the largest GPE18269number on the machine.1827018271Fixed a reported problem with resource structure alignment on 64-18272bit platforms.1827318274Changed the AcpiEnableEvent and AcpiDisableEvent external18275interfaces to not require any flags for the common case of18276enabling/disabling a GPE.1827718278Implemented support to allow a "Notify" on a Processor object.1827918280Most TBDs in comments within the source code have been resolved18281and eliminated.182821828318284Fixed a problem in the interpreter where a standalone parent18285prefix (^) was not handled correctly in the interpreter and18286debugger.1828718288Removed obsolete and unnecessary GPE save/restore code.1828918290Implemented Field support in the ASL Load operator. This allows a18291table to be loaded from a named field, in addition to loading a18292table directly from an Operation Region.1829318294Implemented timeout and handle support in the external Global Lock18295interfaces.1829618297Fixed a problem in the AcpiDump utility where pathnames were no18298longer being generated correctly during the dump of named objects.1829918300Modified the AML debugger to give a full display of if/while18301predicates instead of just one AML opcode at a time. (The18302predicate can have several nested ASL statements.) The old method18303was confusing during single stepping.1830418305Code and Data Size: Current core subsystem library sizes are shown18306below. These are the code and data sizes for the acpica.lib18307produced by the Microsoft Visual C++ 6.0 compiler, and these18308values do not include any ACPI driver or OSPM code. The debug18309version of the code includes the debug output trace mechanism and18310has a larger code and data size. Note that these values will vary18311depending on the efficiency of the compiler and the compiler18312options used during generation.1831318314Previous Release (12_18_01)18315Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total18316Debug Version: 138.3K Code, 55.9K Data, 194.2K Total18317Current Release:18318Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total18319Debug Version: 136.9K Code, 56.4K Data, 193.3K Total18320183212) Linux1832218323Implemented fix for PIIX reverse throttling errata (Processor18324driver)1832518326Added new Limit interface (Processor and Thermal drivers)1832718328New thermal policy (Thermal driver)1832918330Many updates to /proc1833118332Battery "low" event support (Battery driver)1833318334Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers)1833518336IA32 - IA64 initialization unification, no longer experimental1833718338Menuconfig options redesigned18339183403) ASL Compiler, version X2037:1834118342Implemented several new output features to simplify integration of18343AML code into firmware: 1) Output the AML in C source code with18344labels for each named ASL object. The original ASL source code18345is interleaved as C comments. 2) Output the AML in ASM source code18346with labels and interleaved ASL source. 3) Output the AML in18347raw hex table form, in either C or ASM.1834818349Implemented support for optional string parameters to the18350LoadTable operator.1835118352Completed support for embedded escape sequences within string18353literals. The compiler now supports all single character escapes18354as well as the Octal and Hex escapes. Note: the insertion of a18355null byte into a string literal (via the hex/octal escape) causes18356the string to be immediately terminated. A warning is issued.1835718358Fixed a problem where incorrect AML was generated for the case18359where an ASL namepath consists of a single parent prefix (1836018361) with no trailing name segments.1836218363The compiler has been successfully generated with a 64-bit C18364compiler.1836518366183671836818369----------------------------------------18370Summary of changes for this label: 12_18_0118371183721) Linux1837318374Enhanced blacklist with reason and severity fields. Any table's18375signature may now be used to identify a blacklisted system.1837618377Call _PIC control method to inform the firmware which interrupt18378model the OS is using. Turn on any disabled link devices.1837918380Cleaned up busmgr /proc error handling (Andreas Dilger)18381183822) ACPI CA Core Subsystem:1838318384Implemented ACPI 2.0 semantics for the "Break" operator (Exit from18385while loop)1838618387Completed implementation of the ACPI 2.0 "Continue",18388"ConcatenateResTemplate", "DataTableRegion", and "LoadTable"18389operators. All new ACPI 2.0 operators are now implemented in both18390the ASL compiler and the AML interpreter. The only remaining ACPI183912.0 task is support for the String data type in the DerefOf18392operator. Fixed a problem with AcquireMutex where the status code18393was lost if the caller had to actually wait for the mutex.1839418395Increased the maximum ASL Field size from 64K bits to 4G bits.1839618397Completed implementation of the external Global Lock interfaces --18398AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and18399Handler parameters were added.1840018401Completed another pass at removing warnings and issues when18402compiling with 64-bit compilers. The code now compiles cleanly18403with the Intel 64-bit C/C++ compiler. Most notably, the pointer18404add and subtract (diff) macros have changed considerably.184051840618407Created and deployed a new ACPI_SIZE type that is 64-bits wide on1840864-bit platforms, 32-bits on all others. This type is used18409wherever memory allocation and/or the C sizeof() operator is used,18410and affects the OSL memory allocation interfaces AcpiOsAllocate18411and AcpiOsCallocate.1841218413Implemented sticky user breakpoints in the AML debugger.1841418415Code and Data Size: Current core subsystem library sizes are shown18416below. These are the code and data sizes for the acpica.lib18417produced by the Microsoft Visual C++ 6.0 compiler, and these18418values do not include any ACPI driver or OSPM code. The debug18419version of the code includes the debug output trace mechanism and18420has a larger code and data size. Note that these values will vary18421depending on the efficiency of the compiler and the compiler18422options used during generation.1842318424Previous Release (12_05_01)18425Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total18426Debug Version: 136.2K Code, 55.6K Data, 191.8K Total18427Current Release:18428Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total18429Debug Version: 138.3K Code, 55.9K Data, 194.2K Total18430184313) ASL Compiler, version X2034:1843218433Now checks for (and generates an error if detected) the use of a18434Break or Continue statement without an enclosing While statement.184351843618437Successfully generated the compiler with the Intel 64-bit C18438compiler.1843918440----------------------------------------18441Summary of changes for this label: 12_05_0118442184431) ACPI CA Core Subsystem:1844418445The ACPI 2.0 CopyObject operator is fully implemented. This18446operator creates a new copy of an object (and is also used to18447bypass the "implicit conversion" mechanism of the Store operator.)1844818449The ACPI 2.0 semantics for the SizeOf operator are fully18450implemented. The change is that performing a SizeOf on a18451reference object causes an automatic dereference of the object to18452the actual value before the size is evaluated. This behavior was18453undefined in ACPI 1.0.1845418455The ACPI 2.0 semantics for the Extended IRQ resource descriptor18456have been implemented. The interrupt polarity and mode are now18457independently set.1845818459Fixed a problem where ASL Constants (Zero, One, Ones, Revision)18460appearing in Package objects were not properly converted to18461integers when the internal Package was converted to an external18462object (via the AcpiEvaluateObject interface.)1846318464Fixed a problem with the namespace object deletion mechanism for18465objects created by control methods. There were two parts to this18466problem: 1) Objects created during the initialization phase method18467parse were not being deleted, and 2) The object owner ID mechanism18468to track objects was broken.1846918470Fixed a problem where the use of the ASL Scope operator within a18471control method would result in an invalid opcode exception.1847218473Fixed a problem introduced in the previous label where the buffer18474length required for the _PRT structure was not being returned18475correctly.1847618477Code and Data Size: Current core subsystem library sizes are shown18478below. These are the code and data sizes for the acpica.lib18479produced by the Microsoft Visual C++ 6.0 compiler, and these18480values do not include any ACPI driver or OSPM code. The debug18481version of the code includes the debug output trace mechanism and18482has a larger code and data size. Note that these values will vary18483depending on the efficiency of the compiler and the compiler18484options used during generation.1848518486Previous Release (11_20_01)18487Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total18488Debug Version: 135.1K Code, 55.4K Data, 190.5K Total1848918490Current Release:18491Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total18492Debug Version: 136.2K Code, 55.6K Data, 191.8K Total18493184942) Linux:1849518496Updated all files to apply cleanly against 2.4.16.1849718498Added basic PCI Interrupt Routing Table (PRT) support for IA3218499(acpi_pci.c), and unified the PRT code for IA32 and IA64. This18500version supports both static and dynamic PRT entries, but dynamic18501entries are treated as if they were static (not yet18502reconfigurable). Architecture- specific code to use this data is18503absent on IA32 but should be available shortly.1850418505Changed the initialization sequence to start the ACPI interpreter18506(acpi_init) prior to initialization of the PCI driver (pci_init)18507in init/main.c. This ordering is required to support PRT and18508facilitate other (future) enhancement. A side effect is that the18509ACPI bus driver and certain device drivers can no longer be loaded18510as modules.1851118512Modified the 'make menuconfig' options to allow PCI Interrupt18513Routing support to be included without the ACPI Bus and other18514device drivers.18515185163) ASL Compiler, version X2033:1851718518Fixed some issues with the use of the new CopyObject and18519DataTableRegion operators. Both are fully functional.1852018521----------------------------------------18522Summary of changes for this label: 11_20_01185231852420 November 2001. Summary of changes for this release.18525185261) ACPI CA Core Subsystem:1852718528Updated Index support to match ACPI 2.0 semantics. Storing a18529Integer, String, or Buffer to an Index of a Buffer will store only18530the least-significant byte of the source to the Indexed buffer18531byte. Multiple writes are not performed.1853218533Fixed a problem where the access type used in an AccessAs ASL18534operator was not recorded correctly into the field object.1853518536Fixed a problem where ASL Event objects were created in a18537signalled state. Events are now created in an unsignalled state.1853818539The internal object cache is now purged after table loading and18540initialization to reduce the use of dynamic kernel memory -- on18541the assumption that object use is greatest during the parse phase18542of the entire table (versus the run-time use of individual control18543methods.)1854418545ACPI 2.0 variable-length packages are now fully operational.1854618547Code and Data Size: Code and Data optimizations have permitted new18548feature development with an actual reduction in the library size.18549Current core subsystem library sizes are shown below. These are18550the code and data sizes for the acpica.lib produced by the18551Microsoft Visual C++ 6.0 compiler, and these values do not include18552any ACPI driver or OSPM code. The debug version of the code18553includes the debug output trace mechanism and has a larger code18554and data size. Note that these values will vary depending on the18555efficiency of the compiler and the compiler options used during18556generation.1855718558Previous Release (11_09_01):18559Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total18560Debug Version: 134.5K Code, 55.4K Data, 189.9K Total1856118562Current Release:18563Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total18564Debug Version: 135.1K Code, 55.4K Data, 190.5K Total18565185662) Linux:1856718568Enhanced the ACPI boot-time initialization code to allow the use18569of Local APIC tables for processor enumeration on IA-32, and to18570pave the way for a fully MPS-free boot (on SMP systems) in the18571near future. This functionality replaces18572arch/i386/kernel/acpitables.c, which was introduced in an earlier185732.4.15-preX release. To enable this feature you must add18574"acpi_boot=on" to the kernel command line -- see the help entry18575for CONFIG_ACPI_BOOT for more information. An IA-64 release is in18576the works...1857718578Restructured the configuration options to allow boot-time table18579parsing support without inclusion of the ACPI Interpreter (and18580other) code.1858118582NOTE: This release does not include fixes for the reported events,18583power-down, and thermal passive cooling issues (coming soon).18584185853) ASL Compiler:1858618587Added additional typechecking for Fields within restricted access18588Operation Regions. All fields within EC and CMOS regions must be18589declared with ByteAcc. All fields within SMBus regions must be18590declared with the BufferAcc access type.1859118592Fixed a problem where the listing file output of control methods18593no longer interleaved the actual AML code with the ASL source18594code.1859518596185971859818599----------------------------------------18600Summary of changes for this label: 11_09_0118601186021) ACPI CA Core Subsystem:1860318604Implemented ACPI 2.0-defined support for writes to fields with a18605Buffer, String, or Integer source operand that is smaller than the18606target field. In these cases, the source operand is zero-extended18607to fill the target field.1860818609Fixed a problem where a Field starting bit offset (within the18610parent operation region) was calculated incorrectly if the1861118612alignment of the field differed from the access width. This18613affected CreateWordField, CreateDwordField, CreateQwordField, and18614possibly other fields that use the "AccessAny" keyword.1861518616Fixed a problem introduced in the 11_02_01 release where indirect18617stores through method arguments did not operate correctly.18618186192) Linux:1862018621Implemented boot-time ACPI table parsing support18622(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code18623facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than18624legacy BIOS interfaces (e.g. MPS) for the configuration of system18625processors, memory, and interrupts during setup_arch(). Note that18626this patch does not include the required architecture-specific18627changes required to apply this information -- subsequent patches18628will be posted for both IA32 and IA64 to achieve this.1862918630Added low-level sleep support for IA32 platforms, courtesy of Pat18631Mochel. This allows IA32 systems to transition to/from various18632sleeping states (e.g. S1, S3), although the lack of a centralized18633driver model and power-manageable drivers will prevent its18634(successful) use on most systems.1863518636Revamped the ACPI 'menuconfig' layout: created new "ACPI Support"18637submenu, unified IA32 and IA64 options, added new "Boot using ACPI18638tables" option, etc.1863918640Increased the default timeout for the EC driver from 1ms to 10ms18641(1000 cycles of 10us) to try to address AE_TIME errors during EC18642transactions.1864318644----------------------------------------18645Summary of changes for this label: 11_02_0118646186471) ACPI CA Core Subsystem:1864818649ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access18650(QWordAcc keyword). All ACPI 2.0 64-bit support is now18651implemented.1865218653OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required18654changes to support ACPI 2.0 Qword field access. Read/Write18655PciConfiguration(), Read/Write Memory(), and Read/Write Port() now18656accept an ACPI_INTEGER (64 bits) as the value parameter. Also,18657the value parameter for the address space handler interface is now18658an ACPI_INTEGER. OSL implementations of these interfaces must now18659handle the case where the Width parameter is 64.1866018661Index Fields: Fixed a problem where unaligned bit assembly and18662disassembly for IndexFields was not supported correctly.1866318664Index and Bank Fields: Nested Index and Bank Fields are now18665supported. During field access, a check is performed to ensure18666that the value written to an Index or Bank register is not out of18667the range of the register. The Index (or Bank) register is18668written before each access to the field data. Future support will18669include allowing individual IndexFields to be wider than the18670DataRegister width.1867118672Fields: Fixed a problem where the AML interpreter was incorrectly18673attempting to write beyond the end of a Field/OpRegion. This was18674a boundary case that occurred when a DWORD field was written to a18675BYTE access OpRegion, forcing multiple writes and causing the18676interpreter to write one datum too many.1867718678Fields: Fixed a problem with Field/OpRegion access where the18679starting bit address of a field was incorrectly calculated if the18680current access type was wider than a byte (WordAcc, DwordAcc, or18681QwordAcc).1868218683Fields: Fixed a problem where forward references to individual18684FieldUnits (individual Field names within a Field definition) were18685not resolved during the AML table load.1868618687Fields: Fixed a problem where forward references from a Field18688definition to the parent Operation Region definition were not18689resolved during the AML table load.1869018691Fields: Duplicate FieldUnit names within a scope are now detected18692during AML table load.1869318694Acpi Interfaces: Fixed a problem where the AcpiGetName() interface18695returned an incorrect name for the root node.1869618697Code and Data Size: Code and Data optimizations have permitted new18698feature development with an actual reduction in the library size.18699Current core subsystem library sizes are shown below. These are18700the code and data sizes for the acpica.lib produced by the18701Microsoft Visual C++ 6.0 compiler, and these values do not include18702any ACPI driver or OSPM code. The debug version of the code18703includes the debug output trace mechanism and has a larger code18704and data size. Note that these values will vary depending on the18705efficiency of the compiler and the compiler options used during18706generation.1870718708Previous Release (10_18_01):18709Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total18710Debug Version: 136.7K Code, 57.4K Data, 194.2K Total1871118712Current Release:18713Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total18714Debug Version: 134.5K Code, 55.4K Data, 189.9K Total18715187162) Linux:1871718718Improved /proc processor output (Pavel Machek) Re-added18719MODULE_LICENSE("GPL") to all modules.18720187213) ASL Compiler version X2030:1872218723Duplicate FieldUnit names within a scope are now detected and18724flagged as errors.18725187264) Documentation:1872718728Programmer Reference updated to reflect OSL and address space18729handler interface changes described above.1873018731----------------------------------------18732Summary of changes for this label: 10_18_011873318734ACPI CA Core Subsystem:1873518736Fixed a problem with the internal object reference count mechanism18737that occasionally caused premature object deletion. This resolves18738all of the outstanding problem reports where an object is deleted18739in the middle of an interpreter evaluation. Although this problem18740only showed up in rather obscure cases, the solution to the18741problem involved an adjustment of all reference counts involving18742objects attached to namespace nodes.1874318744Fixed a problem with Field support in the interpreter where18745writing to an aligned field whose length is an exact multiple (218746or greater) of the field access granularity would cause an attempt18747to write beyond the end of the field.1874818749The top level AML opcode execution functions within the18750interpreter have been renamed with a more meaningful and18751consistent naming convention. The modules exmonad.c and18752exdyadic.c were eliminated. New modules are exoparg1.c,18753exoparg2.c, exoparg3.c, and exoparg6.c.1875418755Support for the ACPI 2.0 "Mid" ASL operator has been implemented.1875618757Fixed a problem where the AML debugger was causing some internal18758objects to not be deleted during subsystem termination.1875918760Fixed a problem with the external AcpiEvaluateObject interface18761where the subsystem would fault if the named object to be18762evaluated referred to a constant such as Zero, Ones, etc.1876318764Fixed a problem with IndexFields and BankFields where the18765subsystem would fault if the index, data, or bank registers were18766not defined in the same scope as the field itself.1876718768Added printf format string checking for compilers that support18769this feature. Corrected more than 50 instances of issues with18770format specifiers within invocations of ACPI_DEBUG_PRINT18771throughout the core subsystem code.1877218773The ASL "Revision" operator now returns the ACPI support level18774implemented in the core - the value "2" since the ACPI 2.0 support18775is more than 50% implemented.1877618777Enhanced the output of the AML debugger "dump namespace" command18778to output in a more human-readable form.1877918780Current core subsystem library code sizes are shown below. These1878118782are the code and data sizes for the acpica.lib produced by the18783Microsoft Visual C++ 6.0 compiler, and these values do not include18784any ACPI driver or OSPM code. The debug version of the code18785includes the full debug trace mechanism -- leading to a much1878618787larger code and data size. Note that these values will vary18788depending on the efficiency of the compiler and the compiler18789options used during generation.1879018791Previous Label (09_20_01):18792Non-Debug Version: 65K Code, 5K Data, 70K Total18793Debug Version: 138K Code, 58K Data, 196K Total1879418795This Label:1879618797Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total18798Debug Version: 136.7K Code, 57.4K Data, 194.2K Total1879918800Linux:1880118802Implemented a "Bad BIOS Blacklist" to track machines that have18803known ASL/AML problems.1880418805Enhanced the /proc interface for the thermal zone driver and added18806support for _HOT (the critical suspend trip point). The 'info'18807file now includes threshold/policy information, and allows setting18808of _SCP (cooling preference) and _TZP (polling frequency) values18809to the 'info' file. Examples: "echo tzp=5 > info" sets the polling18810frequency to 5 seconds, and "echo scp=1 > info" sets the cooling18811preference to the passive/quiet mode (if supported by the ASL).1881218813Implemented a workaround for a gcc bug that resuted in an OOPs18814when loading the control method battery driver.1881518816----------------------------------------18817Summary of changes for this label: 09_20_011881818819ACPI CA Core Subsystem:1882018821The AcpiEnableEvent and AcpiDisableEvent interfaces have been18822modified to allow individual GPE levels to be flagged as wake-18823enabled (i.e., these GPEs are to remain enabled when the platform18824sleeps.)1882518826The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now18827support wake-enabled GPEs. This means that upon entering the18828sleep state, all GPEs that are not wake-enabled are disabled.18829When leaving the sleep state, these GPEs are re-enabled.1883018831A local double-precision divide/modulo module has been added to18832enhance portability to OS kernels where a 64-bit math library is18833not available. The new module is "utmath.c".1883418835Several optimizations have been made to reduce the use of CPU18836stack. Originally over 2K, the maximum stack usage is now below188372K at 1860 bytes (1.82k)1883818839Fixed a problem with the AcpiGetFirmwareTable interface where the18840root table pointer was not mapped into a logical address properly.1884118842Fixed a problem where a NULL pointer was being dereferenced in the18843interpreter code for the ASL Notify operator.1884418845Fixed a problem where the use of the ASL Revision operator18846returned an error. This operator now returns the current version18847of the ACPI CA core subsystem.1884818849Fixed a problem where objects passed as control method parameters18850to AcpiEvaluateObject were always deleted at method termination.18851However, these objects may end up being stored into the namespace18852by the called method. The object reference count mechanism was18853applied to these objects instead of a force delete.1885418855Fixed a problem where static strings or buffers (contained in the18856AML code) that are declared as package elements within the ASL18857code could cause a fault because the interpreter would attempt to18858delete them. These objects are now marked with the "static18859object" flag to prevent any attempt to delete them.1886018861Implemented an interpreter optimization to use operands directly18862from the state object instead of extracting the operands to local18863variables. This reduces stack use and code size, and improves18864performance.1886518866The module exxface.c was eliminated as it was an unnecessary extra18867layer of code.1886818869Current core subsystem library code sizes are shown below. These18870are the code and data sizes for the acpica.lib produced by the18871Microsoft Visual C++ 6.0 compiler, and these values do not include18872any ACPI driver or OSPM code. The debug version of the code18873includes the full debug trace mechanism -- leading to a much18874larger code and data size. Note that these values will vary18875depending on the efficiency of the compiler and the compiler18876options used during generation.1887718878Non-Debug Version: 65K Code, 5K Data, 70K Total18879(Previously 69K) Debug Version: 138K Code, 58K Data, 196K18880Total (Previously 195K)1888118882Linux:1888318884Support for ACPI 2.0 64-bit integers has been added. All ACPI18885Integer objects are now 64 bits wide1888618887All Acpi data types and structures are now in lower case. Only18888Acpi macros are upper case for differentiation.1888918890Documentation:1889118892Changes to the external interfaces as described above.1889318894----------------------------------------18895Summary of changes for this label: 08_31_011889618897ACPI CA Core Subsystem:1889818899A bug with interpreter implementation of the ASL Divide operator18900was found and fixed. The implicit function return value (not the18901explicit store operands) was returning the remainder instead of18902the quotient. This was a longstanding bug and it fixes several18903known outstanding issues on various platforms.1890418905The ACPI_DEBUG_PRINT and function trace entry/exit macros have18906been further optimized for size. There are 700 invocations of the18907DEBUG_PRINT macro alone, so each optimization reduces the size of18908the debug version of the subsystem significantly.1890918910A stack trace mechanism has been implemented. The maximum stack18911usage is about 2K on 32-bit platforms. The debugger command "stat18912stack" will display the current maximum stack usage.1891318914All public symbols and global variables within the subsystem are18915now prefixed with the string "Acpi". This keeps all of the18916symbols grouped together in a kernel map, and avoids conflicts18917with other kernel subsystems.1891818919Most of the internal fixed lookup tables have been moved into the18920code segment via the const operator.1892118922Several enhancements have been made to the interpreter to both18923reduce the code size and improve performance.1892418925Current core subsystem library code sizes are shown below. These18926are the code and data sizes for the acpica.lib produced by the18927Microsoft Visual C++ 6.0 compiler, and these values do not include18928any ACPI driver or OSPM code. The debug version of the code18929includes the full debug trace mechanism which contains over 70018930invocations of the DEBUG_PRINT macro, 500 function entry macro18931invocations, and over 900 function exit macro invocations --18932leading to a much larger code and data size. Note that these18933values will vary depending on the efficiency of the compiler and18934the compiler options used during generation.1893518936Non-Debug Version: 64K Code, 5K Data, 69K Total18937Debug Version: 137K Code, 58K Data, 195K Total1893818939Linux:1894018941Implemented wbinvd() macro, pending a kernel-wide definition.1894218943Fixed /proc/acpi/event to handle poll() and short reads.1894418945ASL Compiler, version X2026:1894618947Fixed a problem introduced in the previous label where the AML1894818949code emitted for package objects produced packages with zero18950length.1895118952----------------------------------------18953Summary of changes for this label: 08_16_011895418955ACPI CA Core Subsystem:1895618957The following ACPI 2.0 ASL operators have been implemented in the18958AML interpreter (These are already supported by the Intel ASL18959compiler): ToDecimalString, ToHexString, ToString, ToInteger, and18960ToBuffer. Support for 64-bit AML constants is implemented in the18961AML parser, debugger, and disassembler.1896218963The internal memory tracking mechanism (leak detection code) has18964been upgraded to reduce the memory overhead (a separate tracking18965block is no longer allocated for each memory allocation), and now18966supports all of the internal object caches.1896718968The data structures and code for the internal object caches have18969been coelesced and optimized so that there is a single cache and18970memory list data structure and a single group of functions that18971implement generic cache management. This has reduced the code18972size in both the debug and release versions of the subsystem.1897318974The DEBUG_PRINT macro(s) have been optimized for size and replaced18975by ACPI_DEBUG_PRINT. The syntax for this macro is slightly18976different, because it generates a single call to an internal18977function. This results in a savings of about 90 bytes per18978invocation, resulting in an overall code and data savings of about1897916% in the debug version of the subsystem.1898018981Linux:1898218983Fixed C3 disk corruption problems and re-enabled C3 on supporting18984machines.1898518986Integrated low-level sleep code by Patrick Mochel.1898718988Further tweaked source code Linuxization.1898918990Other minor fixes.1899118992ASL Compiler:1899318994Support for ACPI 2.0 variable length packages is fixed/completed.1899518996Fixed a problem where the optional length parameter for the ACPI189972.0 ToString operator.1899818999Fixed multiple extraneous error messages when a syntax error is19000detected within the declaration line of a control method.1900119002----------------------------------------19003Summary of changes for this label: 07_17_011900419005ACPI CA Core Subsystem:1900619007Added a new interface named AcpiGetFirmwareTable to obtain any19008ACPI table via the ACPI signature. The interface can be called at19009any time during kernel initialization, even before the kernel19010virtual memory manager is initialized and paging is enabled. This19011allows kernel subsystems to obtain ACPI tables very early, even19012before the ACPI CA subsystem is initialized.1901319014Fixed a problem where Fields defined with the AnyAcc attribute19015could be resolved to the incorrect address under the following19016conditions: 1) the field width is larger than 8 bits and 2) the19017parent operation region is not defined on a DWORD boundary.1901819019Fixed a problem where the interpreter is not being locked during19020namespace initialization (during execution of the _INI control19021methods), causing an error when an attempt is made to release it19022later.1902319024ACPI 2.0 support in the AML Interpreter has begun and will be19025ongoing throughout the rest of this year. In this label, The Mod19026operator is implemented.1902719028Added a new data type to contain full PCI addresses named19029ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device,19030and Function values.1903119032Linux:1903319034Enhanced the Linux version of the source code to change most19035capitalized ACPI type names to lowercase. For example, all19036instances of ACPI_STATUS are changed to acpi_status. This will19037result in a large diff, but the change is strictly cosmetic and19038aligns the CA code closer to the Linux coding standard.1903919040OSL Interfaces:1904119042The interfaces to the PCI configuration space have been changed to19043add the PCI Segment number and to split the single 32-bit combined19044DeviceFunction field into two 16-bit fields. This was19045accomplished by moving the four values that define an address in19046PCI configuration space (segment, bus, device, and function) to19047the new ACPI_PCI_ID structure.1904819049The changes to the PCI configuration space interfaces led to a19050reexamination of the complete set of address space access19051interfaces for PCI, I/O, and Memory. The previously existing 1819052interfaces have proven difficult to maintain (any small change19053must be propagated across at least 6 interfaces) and do not easily19054allow for future expansion to 64 bits if necessary. Also, on some19055systems, it would not be appropriate to demultiplex the access19056width (8, 16, 32,or 64) before calling the OSL if the19057corresponding native OS interfaces contain a similar access width19058parameter. For these reasons, the 18 address space interfaces19059have been replaced by these 6 new ones:1906019061AcpiOsReadPciConfiguration19062AcpiOsWritePciConfiguration19063AcpiOsReadMemory19064AcpiOsWriteMemory19065AcpiOsReadPort19066AcpiOsWritePort1906719068Added a new interface named AcpiOsGetRootPointer to allow the OSL19069to perform the platform and/or OS-specific actions necessary to19070obtain the ACPI RSDP table pointer. On IA-32 platforms, this19071interface will simply call down to the CA core to perform the low-19072memory search for the table. On IA-64, the RSDP is obtained from19073EFI. Migrating this interface to the OSL allows the CA core to1907419075remain OS and platform independent.1907619077Added a new interface named AcpiOsSignal to provide a generic19078"function code and pointer" interface for various miscellaneous19079signals and notifications that must be made to the host OS. The19080first such signals are intended to support the ASL Fatal and19081Breakpoint operators. In the latter case, the AcpiOsBreakpoint19082interface has been obsoleted.1908319084The definition of the AcpiFormatException interface has been19085changed to simplify its use. The caller no longer must supply a19086buffer to the call; A pointer to a const string is now returned19087directly. This allows the call to be easily used in printf19088statements, etc. since the caller does not have to manage a local19089buffer.190901909119092ASL Compiler, Version X2025:1909319094The ACPI 2.0 Switch/Case/Default operators have been implemented19095and are fully functional. They will work with all ACPI 1.019096interpreters, since the operators are simply translated to If/Else19097pairs.1909819099The ACPI 2.0 ElseIf operator is implemented and will also work19100with 1.0 interpreters, for the same reason.1910119102Implemented support for ACPI 2.0 variable-length packages. These19103packages have a separate opcode, and their size is determined by19104the interpreter at run-time.1910519106Documentation The ACPI CA Programmer Reference has been updated to19107reflect the new interfaces and changes to existing interfaces.1910819109------------------------------------------19110Summary of changes for this label: 06_15_011911119112ACPI CA Core Subsystem:1911319114Fixed a problem where a DWORD-accessed field within a Buffer19115object would get its byte address inadvertently rounded down to19116the nearest DWORD. Buffers are always Byte-accessible.1911719118ASL Compiler, version X2024:1911919120Fixed a problem where the Switch() operator would either fault or19121hang the compiler. Note however, that the AML code for this ACPI191222.0 operator is not yet implemented.1912319124Compiler uses the new AcpiOsGetTimer interface to obtain compile19125timings.1912619127Implementation of the CreateField operator automatically converts19128a reference to a named field within a resource descriptor from a19129byte offset to a bit offset if required.1913019131Added some missing named fields from the resource descriptor19132support. These are the names that are automatically created by the19133compiler to reference fields within a descriptor. They are only19134valid at compile time and are not passed through to the AML19135interpreter.1913619137Resource descriptor named fields are now typed as Integers and19138subject to compile-time typechecking when used in expressions.1913919140------------------------------------------19141Summary of changes for this label: 05_18_011914219143ACPI CA Core Subsystem:1914419145Fixed a couple of problems in the Field support code where bits19146from adjacent fields could be returned along with the proper field19147bits. Restructured the field support code to improve performance,19148readability and maintainability.1914919150New DEBUG_PRINTP macro automatically inserts the procedure name19151into the output, saving hundreds of copies of procedure name19152strings within the source, shrinking the memory footprint of the19153debug version of the core subsystem.1915419155Source Code Structure:1915619157The source code directory tree was restructured to reflect the19158current organization of the component architecture. Some files19159and directories have been moved and/or renamed.1916019161Linux:1916219163Fixed leaking kacpidpc processes.1916419165Fixed queueing event data even when /proc/acpi/event is not19166opened.1916719168ASL Compiler, version X2020:1916919170Memory allocation performance enhancement - over 24X compile time19171improvement on large ASL files. Parse nodes and namestring19172buffers are now allocated from a large internal compiler buffer.1917319174The temporary .SRC file is deleted unless the "-s" option is19175specified1917619177The "-d" debug output option now sends all output to the .DBG file19178instead of the console.1917919180"External" second parameter is now optional1918119182"ElseIf" syntax now properly allows the predicate1918319184Last operand to "Load" now recognized as a Target operand1918519186Debug object can now be used anywhere as a normal object.1918719188ResourceTemplate now returns an object of type BUFFER1918919190EISAID now returns an object of type INTEGER1919119192"Index" now works with a STRING operand1919319194"LoadTable" now accepts optional parameters1919519196"ToString" length parameter is now optional1919719198"Interrupt (ResourceType," parse error fixed.1919919200"Register" with a user-defined region space parse error fixed1920119202Escaped backslash at the end of a string ("\\") scan/parse error19203fixed1920419205"Revision" is now an object of type INTEGER.19206192071920819209------------------------------------------19210Summary of changes for this label: 05_02_011921119212Linux:1921319214/proc/acpi/event now blocks properly.1921519216Removed /proc/sys/acpi. You can still dump your DSDT from19217/proc/acpi/dsdt.1921819219ACPI CA Core Subsystem:1922019221Fixed a problem introduced in the previous label where some of the19222"small" resource descriptor types were not recognized.1922319224Improved error messages for the case where an ASL Field is outside19225the range of the parent operation region.1922619227ASL Compiler, version X2018:192281922919230Added error detection for ASL Fields that extend beyond the length19231of the parent operation region (only if the length of the region19232is known at compile time.) This includes fields that have a19233minimum access width that is smaller than the parent region, and19234individual field units that are partially or entirely beyond the19235extent of the parent.19236192371923819239------------------------------------------19240Summary of changes for this label: 04_27_011924119242ACPI CA Core Subsystem:1924319244Fixed a problem where the namespace mutex could be released at the19245wrong time during execution of AcpiRemoveAddressSpaceHandler.1924619247Added optional thread ID output for debug traces, to simplify19248debugging of multiple threads. Added context switch notification19249when the debug code realizes that a different thread is now19250executing ACPI code.1925119252Some additional external data types have been prefixed with the19253string "ACPI_" for consistency. This may effect existing code.19254The data types affected are the external callback typedefs - e.g.,1925519256WALK_CALLBACK becomes ACPI_WALK_CALLBACK.1925719258Linux:1925919260Fixed an issue with the OSL semaphore implementation where a19261thread was waking up with an error from receiving a SIGCHLD19262signal.1926319264Linux version of ACPI CA now uses the system C library for string19265manipulation routines instead of a local implementation.1926619267Cleaned up comments and removed TBDs.1926819269ASL Compiler, version X2017:1927019271Enhanced error detection and reporting for all file I/O19272operations.1927319274Documentation:1927519276Programmer Reference updated to version 1.06.19277192781927919280------------------------------------------19281Summary of changes for this label: 04_13_011928219283ACPI CA Core Subsystem:1928419285Restructured support for BufferFields and RegionFields.19286BankFields support is now fully operational. All known 32-bit19287limitations on field sizes have been removed. Both BufferFields19288and (Operation) RegionFields are now supported by the same field19289management code.1929019291Resource support now supports QWORD address and IO resources. The1929216/32/64 bit address structures and the Extended IRQ structure19293have been changed to properly handle Source Resource strings.1929419295A ThreadId of -1 is now used to indicate a "mutex not acquired"19296condition internally and must never be returned by AcpiOsThreadId.19297This reserved value was changed from 0 since Unix systems allow a19298thread ID of 0.1929919300Linux:1930119302Driver code reorganized to enhance portability1930319304Added a kernel configuration option to control ACPI_DEBUG1930519306Fixed the EC driver to honor _GLK.1930719308ASL Compiler, version X2016:1930919310Fixed support for the "FixedHw" keyword. Previously, the FixedHw19311address space was set to 0, not 0x7f as it should be.1931219313------------------------------------------19314Summary of changes for this label: 03_13_011931519316ACPI CA Core Subsystem:1931719318During ACPI initialization, the _SB_._INI method is now run if19319present.1932019321Notify handler fix - notifies are deferred until the parent method19322completes execution. This fixes the "mutex already acquired"19323issue seen occasionally.1932419325Part of the "implicit conversion" rules in ACPI 2.0 have been19326found to cause compatibility problems with existing ASL/AML. The19327convert "result-to-target-type" implementation has been removed19328for stores to method Args and Locals. Source operand conversion19329is still fully implemented. Possible changes to ACPI 2.019330specification pending.1933119332Fix to AcpiRsCalculatePciRoutingTableLength to return correct19333length.1933419335Fix for compiler warnings for 64-bit compiles.1933619337Linux:1933819339/proc output aligned for easier parsing.1934019341Release-version compile problem fixed.1934219343New kernel configuration options documented in Configure.help.1934419345IBM 600E - Fixed Sleep button may generate "Invalid <NULL>19346context" message.1934719348OSPM:1934919350Power resource driver integrated with bus manager.1935119352Fixed kernel fault during active cooling for thermal zones.1935319354Source Code:1935519356The source code tree has been restructured.19357193581935919360------------------------------------------19361Summary of changes for this label: 03_02_011936219363Linux OS Services Layer (OSL):1936419365Major revision of all Linux-specific code.1936619367Modularized all ACPI-specific drivers.1936819369Added new thermal zone and power resource drivers.1937019371Revamped /proc interface (new functionality is under /proc/acpi).1937219373New kernel configuration options.1937419375Linux known issues:1937619377New kernel configuration options not documented in Configure.help19378yet.193791938019381Module dependencies not currently implemented. If used, they19382should be loaded in this order: busmgr, power, ec, system,19383processor, battery, ac_adapter, button, thermal.1938419385Modules will not load if CONFIG_MODVERSION is set.1938619387IBM 600E - entering S5 may reboot instead of shutting down.1938819389IBM 600E - Sleep button may generate "Invalid <NULL> context"19390message.1939119392Some systems may fail with "execution mutex already acquired"19393message.1939419395ACPI CA Core Subsystem:1939619397Added a new OSL Interface, AcpiOsGetThreadId. This was required19398for the deadlock detection code. Defined to return a non-zero, 32-19399bit thread ID for the currently executing thread. May be a non-19400zero constant integer on single-thread systems.1940119402Implemented deadlock detection for internal subsystem mutexes. We19403may add conditional compilation for this code (debug only) later.1940419405ASL/AML Mutex object semantics are now fully supported. This19406includes multiple acquires/releases by owner and support for the1940719408Mutex SyncLevel parameter.1940919410A new "Force Release" mechanism automatically frees all ASL19411Mutexes that have been acquired but not released when a thread19412exits the interpreter. This forces conformance to the ACPI spec19413("All mutexes must be released when an invocation exits") and19414prevents deadlocked ASL threads. This mechanism can be expanded19415(later) to monitor other resource acquisitions if OEM ASL code19416continues to misbehave (which it will).1941719418Several new ACPI exception codes have been added for the Mutex19419support.1942019421Recursive method calls are now allowed and supported (the ACPI19422spec does in fact allow recursive method calls.) The number of19423recursive calls is subject to the restrictions imposed by the19424SERIALIZED method keyword and SyncLevel (ACPI 2.0) method19425parameter.1942619427Implemented support for the SyncLevel parameter for control19428methods (ACPI 2.0 feature)1942919430Fixed a deadlock problem when multiple threads attempted to use19431the interpreter.1943219433Fixed a problem where the string length of a String package19434element was not always set in a package returned from19435AcpiEvaluateObject.1943619437Fixed a problem where the length of a String package element was19438not always included in the length of the overall package returned19439from AcpiEvaluateObject.1944019441Added external interfaces (Acpi*) to the ACPI debug memory19442manager. This manager keeps a list of all outstanding19443allocations, and can therefore detect memory leaks and attempts to19444free memory blocks more than once. Useful for code such as the19445power manager, etc. May not be appropriate for device drivers.19446Performance with the debug code enabled is slow.1944719448The ACPI Global Lock is now an optional hardware element.1944919450ASL Compiler Version X2015:1945119452Integrated changes to allow the compiler to be generated on19453multiple platforms.1945419455Linux makefile added to generate the compiler on Linux1945619457Source Code:1945819459All platform-specific headers have been moved to their own19460subdirectory, Include/Platform.1946119462New source file added, Interpreter/ammutex.c1946319464New header file, Include/acstruct.h1946519466Documentation:1946719468The programmer reference has been updated for the following new19469interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree1947019471------------------------------------------19472Summary of changes for this label: 02_08_011947319474Core ACPI CA Subsystem: Fixed a problem where an error was19475incorrectly returned if the return resource buffer was larger than19476the actual data (in the resource interfaces).1947719478References to named objects within packages are resolved to the1947919480full pathname string before packages are returned directly (via19481the AcpiEvaluateObject interface) or indirectly via the resource19482interfaces.1948319484Linux OS Services Layer (OSL):1948519486Improved /proc battery interface.194871948819489Added C-state debugging output and other miscellaneous fixes.1949019491ASL Compiler Version X2014:1949219493All defined method arguments can now be used as local variables,19494including the ones that are not actually passed in as parameters.19495The compiler tracks initialization of the arguments and issues an19496exception if they are used without prior assignment (just like19497locals).1949819499The -o option now specifies a filename prefix that is used for all19500output files, including the AML output file. Otherwise, the19501default behavior is as follows: 1) the AML goes to the file19502specified in the DSDT. 2) all other output files use the input19503source filename as the base.1950419505------------------------------------------19506Summary of changes for this label: 01_25_011950719508Core ACPI CA Subsystem: Restructured the implementation of object19509store support within the interpreter. This includes support for19510the Store operator as well as any ASL operators that include a19511target operand.1951219513Partially implemented support for Implicit Result-to-Target19514conversion. This is when a result object is converted on the fly19515to the type of an existing target object. Completion of this19516support is pending further analysis of the ACPI specification19517concerning this matter.1951819519CPU-specific code has been removed from the subsystem (hardware19520directory).1952119522New Power Management Timer functions added1952319524Linux OS Services Layer (OSL): Moved system state transition code19525to the core, fixed it, and modified Linux OSL accordingly.1952619527Fixed C2 and C3 latency calculations.195281952919530We no longer use the compilation date for the version message on19531initialization, but retrieve the version from AcpiGetSystemInfo().1953219533Incorporated for fix Sony VAIO machines.1953419535Documentation: The Programmer Reference has been updated and19536reformatted.195371953819539ASL Compiler: Version X2013: Fixed a problem where the line19540numbering and error reporting could get out of sync in the19541presence of multiple include files.1954219543------------------------------------------19544Summary of changes for this label: 01_15_011954519546Core ACPI CA Subsystem:1954719548Implemented support for type conversions in the execution of the19549ASL Concatenate operator (The second operand is converted to19550match the type of the first operand before concatenation.)1955119552Support for implicit source operand conversion is partially19553implemented. The ASL source operand types Integer, Buffer, and19554String are freely interchangeable for most ASL operators and are19555converted by the interpreter on the fly as required. Implicit19556Target operand conversion (where the result is converted to the19557target type before storing) is not yet implemented.1955819559Support for 32-bit and 64-bit BCD integers is implemented.1956019561Problem fixed where a field read on an aligned field could cause a19562read past the end of the field.1956319564New exception, AE_AML_NO_RETURN_VALUE, is returned when a method19565does not return a value, but the caller expects one. (The ASL19566compiler flags this as a warning.)1956719568ASL Compiler:1956919570Version X2011:195711. Static typechecking of all operands is implemented. This19572prevents the use of invalid objects (such as using a Package where19573an Integer is required) at compile time instead of at interpreter19574run-time.195752. The ASL source line is printed with ALL errors and warnings.195763. Bug fix for source EOF without final linefeed.195774. Debug option is split into a parse trace and a namespace trace.195785. Namespace output option (-n) includes initial values for19579integers and strings.195806. Parse-only option added for quick syntax checking.195817. Compiler checks for duplicate ACPI name declarations1958219583Version X2012:195841. Relaxed typechecking to allow interchangeability between19585strings, integers, and buffers. These types are now converted by19586the interpreter at runtime.195872. Compiler reports time taken by each internal subsystem in the19588debug output file.195891959019591------------------------------------------19592Summary of changes for this label: 12_14_001959319594ASL Compiler:1959519596This is the first official release of the compiler. Since the19597compiler requires elements of the Core Subsystem, this label19598synchronizes everything.1959919600------------------------------------------19601Summary of changes for this label: 12_08_00196021960319604Fixed a problem where named references within the ASL definition19605of both OperationRegions and CreateXXXFields did not work19606properly. The symptom was an AE_AML_OPERAND_TYPE during19607initialization of the region/field. This is similar (but not19608related internally) to the problem that was fixed in the last19609label.1961019611Implemented both 32-bit and 64-bit support for the BCD ASL19612functions ToBCD and FromBCD.1961319614Updated all legal headers to include "2000" in the copyright19615years.1961619617------------------------------------------19618Summary of changes for this label: 12_01_001961919620Fixed a problem where method invocations within the ASL definition19621of both OperationRegions and CreateXXXFields did not work19622properly. The symptom was an AE_AML_OPERAND_TYPE during19623initialization of the region/field:1962419625nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments19626[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s)19627(0x3005)1962819629Fixed a problem where operators with more than one nested19630subexpression would fail. The symptoms were varied, by mostly19631AE_AML_OPERAND_TYPE errors. This was actually a rather serious19632problem that has gone unnoticed until now.1963319634Subtract (Add (1,2), Multiply (3,4))1963519636Fixed a problem where AcpiGetHandle didn't quite get fixed in the19637previous build (The prefix part of a relative path was handled19638incorrectly).1963919640Fixed a problem where Operation Region initialization failed if19641the operation region name was a "namepath" instead of a simple19642"nameseg". Symptom was an AE_NO_OPERAND error.1964319644Fixed a problem where an assignment to a local variable via the19645indirect RefOf mechanism only worked for the first such19646assignment. Subsequent assignments were ignored.1964719648------------------------------------------19649Summary of changes for this label: 11_15_001965019651ACPI 2.0 table support with backwards support for ACPI 1.0 and the196520.71 extensions. Note: although we can read ACPI 2.0 BIOS tables,19653the AML interpreter does NOT have support for the new 2.0 ASL19654grammar terms at this time.1965519656All ACPI hardware access is via the GAS structures in the ACPI 2.019657FADT.1965819659All physical memory addresses across all platforms are now 64 bits19660wide. Logical address width remains dependent on the platform19661(i.e., "void *").1966219663AcpiOsMapMemory interface changed to a 64-bit physical address.1966419665The AML interpreter integer size is now 64 bits, as per the ACPI196662.0 specification.1966719668For backwards compatibility with ACPI 1.0, ACPI tables with a19669revision number less than 2 use 32-bit integers only.1967019671Fixed a problem where the evaluation of OpRegion operands did not19672always resolve them to numbers properly.1967319674------------------------------------------19675Summary of changes for this label: 10_20_001967619677Fix for CBN_._STA issue. This fix will allow correct access to19678CBN_ OpRegions when the _STA returns 0x8.1967919680Support to convert ACPI constants (Ones, Zeros, One) to actual19681values before a package object is returned1968219683Fix for method call as predicate to if/while construct causing19684incorrect if/while behavior1968519686Fix for Else block package lengths sometimes calculated wrong (if19687block > 63 bytes)1968819689Fix for Processor object length field, was always zero1969019691Table load abort if FACP sanity check fails1969219693Fix for problem with Scope(name) if name already exists1969419695Warning emitted if a named object referenced cannot be found19696(resolved) during method execution.196971969819699197001970119702------------------------------------------19703Summary of changes for this label: 9_29_001970419705New table initialization interfaces: AcpiInitializeSubsystem no19706longer has any parameters AcpiFindRootPointer - Find the RSDP (if19707necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP-19708>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by19709AcpiLoadTables1971019711Note: These interface changes require changes to all existing OSDs1971219713The PCI_Config default address space handler is always installed19714at the root namespace object.1971519716-------------------------------------------19717Summary of changes for this label: 09_15_001971819719The new initialization architecture is implemented. New19720interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize)19721AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace1972219723(Namespace is automatically loaded when a table is loaded)1972419725The ACPI_OPERAND_OBJECT has been optimized to shrink its size from1972652 bytes to 32 bytes. There is usually one of these for every19727namespace object, so the memory savings is significant.1972819729Implemented just-in-time evaluation of the CreateField operators.1973019731Bug fixes for IA-64 support have been integrated.1973219733Additional code review comments have been implemented1973419735The so-called "third pass parse" has been replaced by a final walk19736through the namespace to initialize all operation regions (address19737spaces) and fields that have not yet been initialized during the19738execution of the various _INI and REG methods.1973919740New file - namespace/nsinit.c1974119742-------------------------------------------19743Summary of changes for this label: 09_01_001974419745Namespace manager data structures have been reworked to change the19746primary object from a table to a single object. This has19747resulted in dynamic memory savings of 3X within the namespace and197482X overall in the ACPI CA subsystem.1974919750Fixed problem where the call to AcpiEvFindPciRootBuses was19751inadvertently left commented out.1975219753Reduced the warning count when generating the source with the GCC19754compiler.1975519756Revision numbers added to each module header showing the19757SourceSafe version of the file. Please refer to this version19758number when giving us feedback or comments on individual modules.1975919760The main object types within the subsystem have been renamed to19761clarify their purpose:1976219763ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT19764ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT19765ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE1976619767NOTE: no changes to the initialization sequence are included in19768this label.1976919770-------------------------------------------19771Summary of changes for this label: 08_23_001977219773Fixed problem where TerminateControlMethod was being called19774multiple times per method1977519776Fixed debugger problem where single stepping caused a semaphore to19777be oversignalled1977819779Improved performance through additional parse object caching -19780added ACPI_EXTENDED_OP type1978119782-------------------------------------------19783Summary of changes for this label: 08_10_001978419785Parser/Interpreter integration: Eliminated the creation of19786complete parse trees for ACPI tables and control methods.19787Instead, parse subtrees are created and then deleted as soon as19788they are processed (Either entered into the namespace or executed19789by the interpreter). This reduces the use of dynamic kernel19790memory significantly. (about 10X)1979119792Exception codes broken into classes and renumbered. Be sure to19793recompile all code that includes acexcep.h. Hopefully we won't19794have to renumber the codes again now that they are split into19795classes (environment, programmer, AML code, ACPI table, and19796internal).1979719798Fixed some additional alignment issues in the Resource Manager19799subcomponent1980019801Implemented semaphore tracking in the AcpiExec utility, and fixed19802several places where mutexes/semaphores were being unlocked19803without a corresponding lock operation. There are no known19804semaphore or mutex "leaks" at this time.1980519806Fixed the case where an ASL Return operator is used to return an19807unnamed package.1980819809-------------------------------------------19810Summary of changes for this label: 07_28_001981119812Fixed a problem with the way addresses were calculated in19813AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem19814manifested itself when a Field was created with WordAccess or19815DwordAccess, but the field unit defined within the Field was less1981619817than a Word or Dword.1981819819Fixed a problem in AmlDumpOperands() module's loop to pull19820operands off of the operand stack to display information. The19821problem manifested itself as a TLB error on 64-bit systems when19822accessing an operand stack with two or more operands.1982319824Fixed a problem with the PCI configuration space handlers where19825context was getting confused between accesses. This required a19826change to the generic address space handler and address space19827setup definitions. Handlers now get both a global handler context19828(this is the one passed in by the user when executing19829AcpiInstallAddressSpaceHandler() and a specific region context19830that is unique to each region (For example, the _ADR, _SEG and19831_BBN values associated with a specific region). The generic19832function definitions have changed to the following:1983319834typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function,19835UINT32 Address, UINT32 BitWidth, UINT32 *Value, void19836*HandlerContext, // This used to be void *Context void19837*RegionContext); // This is an additional parameter1983819839typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE19840RegionHandle, UINT32 Function, void *HandlerContext, void19841**RegionContext); // This used to be **ReturnContext1984219843-------------------------------------------19844Summary of changes for this label: 07_21_001984519846Major file consolidation and rename. All files within the19847interpreter have been renamed as well as most header files. This19848was done to prevent collisions with existing files in the host19849OSs -- filenames such as "config.h" and "global.h" seem to be19850quite common. The VC project files have been updated. All19851makefiles will require modification.1985219853The parser/interpreter integration continues in Phase 5 with the19854implementation of a complete 2-pass parse (the AML is parsed19855twice) for each table; This avoids the construction of a huge19856parse tree and therefore reduces the amount of dynamic memory19857required by the subsystem. Greater use of the parse object cache19858means that performance is unaffected.1985919860Many comments from the two code reviews have been rolled in.1986119862The 64-bit alignment support is complete.1986319864-------------------------------------------19865Summary of changes for this label: 06_30_001986619867With a nod and a tip of the hat to the technology of yesteryear,19868we've added support in the source code for 80 column output19869devices. The code is now mostly constrained to 80 columns or19870less to support environments and editors that 1) cannot display19871or print more than 80 characters on a single line, and 2) cannot19872disable line wrapping.1987319874A major restructuring of the namespace data structure has been19875completed. The result is 1) cleaner and more19876understandable/maintainable code, and 2) a significant reduction19877in the dynamic memory requirement for each named ACPI object19878(almost half).1987919880-------------------------------------------19881Summary of changes for this label: 06_23_001988219883Linux support has been added. In order to obtain approval to get19884the ACPI CA subsystem into the Linux kernel, we've had to make19885quite a few changes to the base subsystem that will affect all19886users (all the changes are generic and OS- independent). The19887effects of these global changes have been somewhat far reaching.19888Files have been merged and/or renamed and interfaces have been19889renamed. The major changes are described below.1989019891Osd* interfaces renamed to AcpiOs* to eliminate namespace19892pollution/confusion within our target kernels. All OSD19893interfaces must be modified to match the new naming convention.1989419895Files merged across the subsystem. A number of the smaller source19896and header files have been merged to reduce the file count and19897increase the density of the existing files. There are too many19898to list here. In general, makefiles that call out individual19899files will require rebuilding.1990019901Interpreter files renamed. All interpreter files now have the19902prefix am* instead of ie* and is*.1990319904Header files renamed: The acapi.h file is now acpixf.h. The19905acpiosd.h file is now acpiosxf.h. We are removing references to19906the acronym "API" since it is somewhat windowsy. The new name is19907"external interface" or xface or xf in the filenames.j199081990919910All manifest constants have been forced to upper case (some were19911mixed case.) Also, the string "ACPI_" has been prepended to many19912(not all) of the constants, typedefs, and structs.1991319914The globals "DebugLevel" and "DebugLayer" have been renamed19915"AcpiDbgLevel" and "AcpiDbgLayer" respectively.1991619917All other globals within the subsystem are now prefixed with19918"AcpiGbl_" Internal procedures within the subsystem are now19919prefixed with "Acpi" (with only a few exceptions). The original19920two-letter abbreviation for the subcomponent remains after "Acpi"19921- for example, CmCallocate became AcpiCmCallocate.1992219923Added a source code translation/conversion utility. Used to19924generate the Linux source code, it can be modified to generate19925other types of source as well. Can also be used to cleanup19926existing source by removing extraneous spaces and blank lines.19927Found in tools/acpisrc/*1992819929OsdUnMapMemory was renamed to OsdUnmapMemory and then19930AcpiOsUnmapMemory. (UnMap became Unmap).1993119932A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore.19933When set to one, this indicates that the caller wants to use the1993419935semaphore as a mutex, not a counting semaphore. ACPI CA uses19936both types. However, implementers of this call may want to use19937different OS primitives depending on the type of semaphore19938requested. For example, some operating systems provide separate1993919940"mutex" and "semaphore" interfaces - where the mutex interface is19941much faster because it doesn't have all the overhead of a full19942semaphore implementation.1994319944Fixed a deadlock problem where a method that accesses the PCI19945address space can block forever if it is the first access to the19946space.1994719948-------------------------------------------19949Summary of changes for this label: 06_02_001995019951Support for environments that cannot handle unaligned data19952accesses (e.g. firmware and OS environments devoid of alignment19953handler technology namely SAL/EFI and the IA-64 Linux kernel) has19954been added (via configurable macros) in these three areas: -19955Transfer of data from the raw AML byte stream is done via byte19956moves instead of word/dword/qword moves. - External objects are19957aligned within the user buffer, including package elements (sub-19958objects). - Conversion of name strings to UINT32 Acpi Names is now19959done byte-wise.1996019961The Store operator was modified to mimic Microsoft's19962implementation when storing to a Buffer Field.1996319964Added a check of the BM_STS bit before entering C3.1996519966The methods subdirectory has been obsoleted and removed. A new19967file, cmeval.c subsumes the functionality.1996819969A 16-bit (DOS) version of AcpiExec has been developed. The19970makefile is under the acpiexec directory.199711997219973