1---------------------------------------- 212 December 2024. Summary of changes for version 20241212: 3 4Major changes: 5 6Fix 2 critical CVE addressing memory leaks - Seunghun Han 7 8EINJ V2 updates ? Zaid Alali (Ampere Computing) 9 10CDAT updates ? Ira Weiny (Intel Corporation) 11 12Fix mutex handling, don?t release ones that were never acquired ? Daniil Tatianin 13 14Experiment with new tag name format Ryyyy_mm_dd to solve chronological sorting problems 15 16 17---------------------------------------- 1827 September 2024. Summary of changes for version 20240927: 19 20Major changes: 21 22Fix the acpixf.h file which caused issues for the last release (before this) 20240827 23 24Fix the pointer offset for the SLIC table 25 26Verify the local environment and GitHub commits are all in sync which was a problem with the second from last release (before this)20240322 (aka 20240323 � date issue) 27 28 29 30---------------------------------------- 3127 August 2024. Summary of changes for version 20240827: 32 33Major changes: 34 35Fix the PHAT table working: ensure that the PHAT firmware health record offset works correctly, fix various sub-table offsets, prevent segmentation faults when encountering invalid device paths. Contributed by: Armin Wolf <W_Armin@gmx.de> 36 37Fix the optional table 4-byte signature. Contributed by: Daniil Tatianin <99danilt@gmail.com> 38 39Correct the dumping of SLIC and DBG2 tables. Contributed by: Al Stone (Fedora) <ahs3@ahs3.net> 40 41Add support for QWordPCC and DWordPCC by Jose Marinho (ARM) 42 43Fix the integer to hex string conversions by Armin Wolf 44 45Detecting FACS in reduced HW mode and allowing setting waking vector thereby waking up from S3 state 46 47Fixing issues with crossing page boundaries when mapping operation regions by Raju Rangoju, Sanath S and Mario Limonciello (AMD) 48 49Update the support for IORT, HMAT, MPAM, AEST, CEDT, SPCR etc. tables 50 51Fix multiple issues with table parsing, compilation and disassembly by Myra DeMere (Google) 52 53Allow for more flexibility in _DSM usage. 54 55 56---------------------------------------- 5722 March 2024. Summary of changes for version 20240322: 58 59Major changes: 60 61Update all the license header year from 2023 to 2024. 62 63Fix table argument ordering to work properly with iasl. 64 65Get rid of the annoying repeated warning types in MSVC and Windows. 66 67Fix a test in ASLTS with edge case failure. 68 69Fix a couple of issues with how GPEs are counted and enabled. 70 71Add new tables for various architectures/OS, mainly RISC-V and also update many more. 72 73Add an option to either make the output deterministic or non-deterministic. 74 75Remove redundant checks, duplicated code and fix spellings in various files. 76 77Fix flex arrays for C++ compilers and also make ACPICA overall more compatible with different compilers which throw warnings related to memory sanitization etc. 78 79 80---------------------------------------- 8128 June 2023. Summary of changes for version 20230628: 82 830) Global changes: 84 85Fixed a problem with the ASL/AML Timer() operator. Discovered by UBSAN: ?array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of range for type 'acpi_operand_object?. Added AML_NO_OPERAND_RESOLVE flag to Timer (since there are no runtime arguments). Reported by: Abhishek Mainkar abmainkar@nvidia.com. 86 87Added a define for size of acpi_srat_generic_affinity DeviceHandle. Replaced a magic number with a define. The Linux kernel code will utilize this. Reported by Dave Jiang dave.jiang@intel.com. 88 89Added support for _DSC (Deepest State for Configuration) as per ACPI 6.5. 90 911) ACPICA kernel-resident subsystem: 92 93Added port definitions for CDAT SSLBIS. Add upstream port and any port definitions for SSLBIS. Reported by: Dave Jiang dave.jiang@intel.com. 94 95Fixed misspelled CDAT DSMAS define: ACPI_CEDT_DSMAS_NON_VOLATILE -> ACPI_CDAT_DSMAS_NON_VOLATILE. Reported by: Dave Jiang dave.jiang@intel.com. 96 971) ACPICA kernel-resident subsystem: 98 99Fix GCC 12 dangling-pointer warning. We're storing a persistent pointer to an ephemeral local variable which technically is a dangling pointer and the compiler is correct. However, since we never indirect the pointer, this is a safe operation and we can suppress the warning. 100 101Also, some C run-times (like MUSL) aren't including <stdint.h> indirectly so we must include it explicitly or we won't have the type definition for uintptr_t. 102 1032) iASL Compiler/Disassembler and ACPICA tools:. 104 105IASL/RHCT: Enable dumping and compiling newly added nodes. The RHCT table is updated with new nodes. Add compile and dump functionality for these new structures. 106 107AcpiExec: Added a new command, ?interrupt?. The Interrupt command simulates an interrupt with a IntID (GSIV) equal to the first argument of the call/invocation. The acpiexec code simulates the behavior by OSPM: execute the _EVT method of the GED device associated with that IntID. Submitted by: Jose Marinho jose.marinho@arm.com. 108 109AcpiExec: Detect GED device and keep track of _EVT. The GED device is described by a _HID of ACPI0013. This code traverses the namespace identifying all GED devices. For each GED device in the namespace we record the Interrupt object and the _EVT method. This information is used when an interrupt is simulated via the ?interrupt? command. Submitted by: Jose Marinho jose.marinho@arm.com. 110---------------------------------------- 11131 March 2023. Summary of changes for version 20230331: 112 113This release is available at https://acpica.org/downloads 114 1150) Global changes: 116 117 118Update all copyright notices to the year 2023. This effects all source 119modules, as well as utility signons. 120Add OS-specific support for Zephyr RTOS. 121Fix miscellaneous code that accesses various objects. 122Remove some dead code. 123Add C ?Flexible Array? support. 124Add support for 64 bit LoongArch compilation. 125Add first batch of RISC-V related definitions. 126Performed a global automated update to remove tabs, fix indentation 127issues, etc. 128 1291) ACPICA kernel-resident subsystem: 130 131hwvalid: Drop port I/O validation. 132 1332) ACPICA tools and utilities: 134 135iASL: Added full macro support in the preprocessor. Example: 136#define ABCD(a,b,c,d) a+b+c-d 137 138Known macro support limitations (at this time): 139 No support for multi-line #define macros (backslash continuation 140lines) 141 No support for the C-style ternary operator 142 No support for the stringizing operator (#) 143 No support for the concatenation (token pasting) operator (##) 144 No support for variable number of macro arguments 145 146Add support for AMD Secure Processor Table (ASPT) version 1. 147Add support for Arm's MPAM ACPI table version 2. 148ACPI 6.5: MADT: add support for trace buffer extension in GICC. 149Headers: Delete bogus NodeArray array of pointers from AEST table. 150PHAT table support is still ongoing. 151 152 153---------------------------------------- 15420 October 2022. Summary of changes for version 20221020: 155 156This release is available at https://acpica.org/downloads 157 1580) Global changes: 159 160Allow disabling of -Werror. For distro maintainers having `-Werror` can 161delay update of GCC. Since every GCC release might add new warnings that 162were not yet captured, it might break the build of packages. With this 163change, distros can now build with `NOWERROR=TRUE` instead of patching 164either the errors or the makefiles. The default behavior keeps on using 165`-Werror`. 166 1671) ACPICA kernel-resident subsystem: 168 169Added support for FFH Operation Region special context data. FFH(Fixed 170Function Hardware) Opregion is approved to be added in ACPI 6.5 via code 171first approach[1]. It requires special context data similar to GPIO and 172Generic Serial Bus as it needs to know platform specific offset and 173length. 174 175Reverted this commit "executer/exsystem: Warn about sleeps greater than 17610 ms." Due to user complaints about valid sleeps greater than 10ms seen 177in some existing machines -- generating lots of warnings. 178 179Do not touch VGA memory when EBDA < 1KiB. The ACPICA code assumes that 180EBDA region must be at least 1KiB in size. Because this is not 181guaranteed, it might happen that while scanning the memory for RSDP 182pointer, the kernel touches memory above 640KiB. This is unwanted as the 183VGA memory range may not be decoded or even present when running under 184virtualization. 185 186Check that EBDA pointer is in valid memory. If the memory at 0x40e is 187uninitialized, the retrieved physical memory address of EBDA may be 188beyond the low memory (i.e. above 640K). If so, the kernel may 189unintentionally access the VGA memory, that might not be decoded or even 190present in case of virtualization. 191 1922) iASL Compiler/Disassembler and ACPICA tools: 193 194Completed the existing partial support for the CDAT "table". Although 195this isn't technically an ACPI table (It doesn't go into the XSDT), it is 196possible to support this table in the Data Table compiler. Created one 197new file, "utilities/utcksum.c", used to centralize checksum 198generation/validation into one location. Includes changes to makefiles 199and MSVC project files. 200 201Updated support for the IORT table - update to version E.e 202 203Added CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table 204 205iASL: Added CCEL table to both compiler/disassembler. 206 207iASL: NHLT table: Fixed compilation of optional undocumented fields 208 209iASL: Fix iASL compile error due to ACPI_TDEL_OFFSET. Commit # 10e4763 210("iASL: Add CCEL table to both compiler/disassembler") introduced the 211iASL build issue. The issue is due to using ACPI_TDEL_OFFSET for CCEL 212table member reference. To fix it, change ACPI_TDEL_OFFSET with 213ACPI_CCEL_OFFSET. 214 215---------------------------------------- 21631 March 2022. Summary of changes for version 20220331: 217 2180) Global changes: 219 220Update all copyright notices to the year 2022. This effects all source 221modules, as well as utility signons. 222 223 2241) ACPICA kernel-resident subsystem: 225 226For the ASL Sleep() operator, issue a warning if the sleep value is 227greater than 10 Milliseconds. Quick boottime is important, so warn about 228sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350 229ms, so excessive delays should be called out. 10 ms is chosen randomly, 230but three of such delays would already make up ten percent of the 231boottime. 232 233Namespace: Avoid attempting to walk the Namespace if the Namespace does 234not exist. 235 236AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the 237LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a 238pass/fail integer. Now load returns a pass/fail integer, as well as 239storing the return value in an optional 2nd argument. 240 241Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid 242"performing pointer subtraction with a null pointer has undefined 243behavior" compiler warnings, use uintptr_t and offsetof() that are always 244available during Linux kernel builds to define ACPI_UINTPTR_T and the 245ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code 246in the Linux kernel. 247 248Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted 249by superm1. 250 251executer/exsystem: Inform users about ACPI spec violation for the Stall() 252operator. Values greater than 100 microseconds violate the ACPI 253specification, so warn users about it. From the ACPI Specification 254version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*: 255> The implementation of Stall is OS-specific, but must not relinquish 256> control of the processor. Because of this, delays longer than 100 257> microseconds must use Sleep instead of Stall. 258 259 2602) iASL Compiler/Disassembler and ACPICA tools: 261 262Data Table Compiler/Disassembler: Add support for the APMT table - ARM 263Performance Monitoring Unit table. Submitted by @bwicaksononv. 264 265Data Table Compiler/Disassembler: For MADT, add support for the OEM- 266defined subtables (Types 0x80-0x7F). 267 268Data Table Compiler: Fixed a problem with support for the SDEV table, 269where a subtable Length was not computed correctly. 270 271Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT 272Acpi table support. 273 274Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and 275add template. Submitted by MasterDrogo. 276 277Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz: 278iASL/NHLT: Rename linux specific structures to DeviceInfo to improve 279readability of the code. 280iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint. 281Undocumented bytes at the end of Endpoint Descriptor can be present 282independently of Linux-specific structures. Their size can also vary. 283iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4 284bytes of size and then an amount of bytes specified by size. All of the 285terminators that I've seen had a size equal to 4, but theoretically it 286can vary. 287 288iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C). 289 290iASL: Remove a remark due to excessive output. Removed a remark for 291duplicate Offset() operators, due to a user complaint. 292 293---------------------------------------- 29417 December 2021. Summary of changes for version 20211217: 295 2961) ACPICA kernel-resident subsystem: 297 298Hardware: Do not flush CPU cache when entering S4 and S5. According to 299ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to 300S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of 301the sleep state. Blind cache flush on entering S5 causes problems for 302TDX. 303 304Avoid subobject buffer overflow when validating RSDP signature. Since the 305Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to 306it is only to a 4-char array, and so trying to read past the 4th 307character, as will be done when it is an RSDP, reads beyond the bounds of 308the accessed member. Contributed by jrtc27. 309 310Add support for PCC Opregion special context data. PCC Opregion added in 311ACPIC 6.3 requires special context data similar to GPIO and Generic 312Serial Bus as it needs to know the internal PCC buffer and its length as 313well as the PCC channel index when the opregion handler is being executed 314by the OSPM. Adds support for the special context data needed by PCC 315Opregion. Submitted by Sudeep Holla <sudeep.holla@arm.com> 316 3172) iASL Compiler/Disassembler and ACPICA tools: 318 319iASL: Completed compiler support for the NHLT ACPI table. 320 321iASL/NHLT table: Fixed a reported problem where a fault would occur 322during disassembly of a "Linux-Specific" section if the "Specific Data" 323part was not present. 324 325iASL: Added full support (compiler and disassembler) for the AGDI ACPI 326table. Contributed by: Ilkka Koskinen <ilkka@os.amperecomputing.com>. 327 328iASL: Added full support for the TDEL ACPI table. 329 330iASL table compiler: FADT support updates: 3311) Allow the 32-bit DSDT address to be zero. 3322) Issue error if both the 32-bit and 64-bit DSDT addresses are zero. 333 334iASL: Fix unaligned accesses to local cache allocations. Contributed by 335jrtc27. 336 337iASL: Open binary input files in binary mode, not text mode Affects 338binary input AML files, as well as binary data table files, for 339disassembly. 340 341---------------------------------------- 34230 September 2021. Summary of changes for version 20210930: 343 344This release is available at https://acpica.org/downloads 345 3461) ACPICA kernel-resident subsystem: 347 348Hardware: Avoid evaluating methods too early during system resume. During 349wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called 350and it tries to get memory from the OS in order to evaluate a control 351method, but if KFENCE is enabled in the Linux kernel, the memory 352allocation attempt causes an IRQ work to be queued and a self-IPI to be 353sent to the CPU running the code which requires the memory controller to 354be ready, so if that happens too early in the wakeup path, it doesn't 355work. 356 357Prevent that from taking place by calling AcpiGetSleepTypeData() for S0 358upfront, when preparing to enter a given sleep state, and saving the data 359obtained by it for later use during system wakeup. 360 361Added a new _OSI string, "Windows 2020". Posted by superm1. 362 3632) iASL Compiler/Disassembler and ACPICA tools: 364 365iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS 366objects: 367New/latest rules: Under a Device Object: 368 1) If _PRS is present, must have _CRS and _SRS 369 2) If _SRS is present, must have _PRS (_PRS requires _CRS and 370_SRS) 371 3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS 372requires _CRS and _SRS) 373 4) If _SRS is present, probably should have a _DIS (Remark only) 374 375iASL table disassembler: Added disassembly support for the NHLT ACPI 376table. Note: support for Vendor-defined microphone arrays and SNR 377extensions are not supported at this time -- mostly due to a lack of 378example tables. Actual compiler support for NHLT is forthcoming. 379 380Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It 381uses the same subtable structure as the existing Generic Initiator 382Affinity type. 383 384Added the flag for online capable in the MADT, introduced in ACPI 6.3. 385Posted by superm1. 386 3873) ACPICA documentation: Updated the legal info (that appears at the 388start of the Documents) to clarify distribution rights that are granted. 389 390 391---------------------------------------- 39230 July 2021. Summary of changes for version 20210730: 393 394This release is available at https://acpica.org/downloads 395 3961) ACPICA kernel-resident subsystem: 397 3982) iASL Compiler/Disassembler and ACPICA tools: 399 400iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021). 401 Under the Device Object: 402 1) If _DIS is present, must have a _CRS and _SRS 403 2) If _PRS is present, must have a _CRS, _DIS, and _SRS 404 3) If _SRS is present, must have a _CRS and _DIS 405A warning will be issued for each of these cases. 406Note: For existing ASL/projects, these warnings may be disabled by 407specifying this on the command line: 408"-vw 3141" 409 410iASL Table Disassembler/Table compiler: Fix for WPBT table with no 411command-line arguments. Handle the case where the Command-line 412Arguments table field does not exist (zero). 413 414Headers: Add new DBG2 Serial Port Subtypes 415The Microsoft Debug Port Table 2 (DBG2) specification revision 416September 21, 2020 comprises additional Serial Port Subtypes [1]. 417Reflect that in the actbl1.h header file. Submitted by: 418semihalf-wojtas-marcin 419 420iASL: Add full support for the AEST table (data compiler) 421Includes support in the table compiler and the disassembler. 422 423Add PRMT module header to facilitate parsing. 424This structure is used in to parse PRMT in other Operating Systems 425that relies on using subtable headers in order to parse ACPI tables. 426Although the PRMT doesn't have "subtables" it has a list of module 427information structures that act as subtables. 428 429iASL: Table disassembler: Add missing strings to decode subtable types. 430Includes the MADT and CEDT tables. 431 432 433---------------------------------------- 43404 June 2021. Summary of changes for version 20210604: 435 4361) ACPICA kernel-resident subsystem: 437 438Cleaned up (delete) the context mutex during local address handler object 439deletion. 440 441Fixed a memory leak caused by the _CID repair function. 442 443Added support for PlatformRtMechanism OperationRegion handler. Adds a new 444utility function, AcpiUtConvertUuidToString. Writing a buffer to a 445PlatformRtMechanism fieldunit invokes a bidirectional transaction. The 446input buffer contains 26 bytes containing 9 bytes of status, a command 447byte and a 16-byte UUID. This change will simply pass this incoming 448buffer to a handler registered by the OS. 449 4502) iASL Compiler/Disassembler and ACPICA tools: 451 452Added full support for the PRMT ACPI table (Platform Runtime Mechanism 453Table). Includes support in the iASL compiler, the disassembler, and the 454template generator. 455 456Added full support for the BDAT (BIOS Data ACPI Table) ACPI table. 457 458Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI 459table. 460 461Added full support for the SVKL (Storage Volume Key Location Table) ACPI 462table. Header file support from Kuppuswamy Sathyanarayanan 463<sathyanarayanan.kuppuswamy@linux.intel.com>. 464 465Completed full support for the IVRS (I/O Virtualization Reporting 466Structure) ACPI table. Added compiler support for IVRS, updated 467disassembler support. Adds a new utility, UtIsIdInteger, to determine if 468a HID/CID is an integer or a string. 469 470Headers: Added more structs to the CEDT table: CXL fixed memory window 471structure. 472 473ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure. 474 475---------------------------------------- 47631 March 2021. Summary of changes for version 20210331: 477 478This release is available at https://acpica.org/downloads, and includes 479all ACPI 6.4 support 480 4811) ACPICA kernel-resident subsystem: 482ACPI 6.4: iASL: deprecate DDBHandleObj keyword 483Always create namespace nodes using AcpiNsCreateNode(). ACPICA is 484allocating an object using kmalloc(), but then frees it 485using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong. 486Fixed a race condition in generic serial bus operation region handler. 487Fixed by Hans de Goede. 488 4892) iASL Compiler/Disassembler and ACPICA tools: 490 491ACPI 6.4: NFIT: add Location Cookie field 492ACPI 6.4: HMAT: add new fields/flags 493ACPI 6.4: Add new flags in SRAT 494ACPI 6.4: add SDEV secure access components 495ACPI 6.4: add Csi2Bus resource template 496ACPI 6.4: add support for PHAT table 497ACPI 6.4: add support for PMTT table 498Add disassembly support for the IVRS table. Compilation of the table is 499not yet complete. 500Fixed a potential infinite loop due to type mismatch. The for-loop is 501using a UINT8 counter and comparing the upper 502limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In 503the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i 504will wrap around to zero and the loop will never exit. I suspect 505the AslGbl_ExpectedMessagesIndex is never that high, but fixing 506this does future proof the code and cleans up static analysis 507warnings.Colin King. 508iASL/TableCompiler: update it with IORT table E.b revision changes. From 509shamiali2008. 510iASL/TableCompiler: Add compilation support for the VIOT table. Signed- 511off-by: Jean-Philippe Brucker. 512iASL/TableCompiler: Add compilation support for CEDT table. Also, update 513the CEDT template. 514 515---------------------------------------- 51605 January 2021. Summary of changes for version 20210105: 517 518This release is available at https://acpica.org/downloads 519 520 5211) ACPICA kernel-resident subsystem: 522 523Updated all copyrights to 2021. This affects all ACPICA source code 524modules. 525 5262) iASL Compiler/Disassembler and ACPICA tools: 527 528ASL test suite (ASLTS): Updated all copyrights to 2021. 529 530Tools and utilities: Updated all signon copyrights to 2021. 531 532iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC, 533MTMR. Al Stone. 534 535 536---------------------------------------- 53717 December 2020. Summary of changes for version 20201217: 538 539This release is available at https://acpica.org/downloads 540 541 5421) ACPICA kernel-resident subsystem: 543 544Note: The implementation of ACPI 6.4 is underway, and is expected to be 545mostly finished next month, when ACPI 6.4 is released. 546 547From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added 548several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to 549enable this. 550 551AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0. 552These included a few casts, as well as a null pointer check. 553 554Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on 555implicit fallthrough, as well as __attribute__((__fallthrough__)) and 556comments to explicitly denote that cases of fallthrough were intentional. 557Clang also supports this warning and statement attribute, but not the 558comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature 559of GCC. With assistance from @nickdesaulniers. 560 5612) iASL Compiler/Disassembler and ACPICA tools: 562 563Added improvement to method call analysis by saving the return type and 564relaxing certain cases of type checking. 565 566iASL Table Compiler: Improved info messages. Added a message to the -T 567option for when the default template (DSDT) is used. 568Also added a note for when multiple SSDTs are created with a DSDT that 569the SSDTs are created in the same file as the DSDT. 570 571 572---------------------------------------- 573 57413 November 2020. Summary of changes for version 20201113: 575 576This release is available at https://acpica.org/downloads 577 578 5791) ACPICA kernel-resident subsystem: 580 581Interpreter: fixed a memory leak by using use existing buffer in _HID 582repair. There was a memory leak that occurred when a _CID object is 583defined as a package containing string objects. When _CID is checked for 584any possible repairs, it calls a helper function to repair _HID (because 585_CID basically contains multiple _HID entries). The _HID repair function 586assumes that string objects are standalone objects that are not contained 587inside of any packages. The _HID repair function replaced the string 588object with a brand new object and attempted to delete the old object by 589decrementing the reference count of the old object. Strings inside of 590packages have a reference count of 2 so the _HID repair function leaves 591this object in a dangling state and causes a memory leak. Instead of 592allocating a brand new object and removing the old object, use the 593existing object when repairing the _HID object. 594 595Added function trace macros to improve namespace debugging. The namespace 596repair mechanism does not have function tracing macros. Add several trace 597macros to improve debuggability. 598 599Handle "orphan" _REG methods for GPIO OpRegions. Before this change 600AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no 601matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry 602Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs. 603The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific 604UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads 605to potential issues with checks for OpRegion availability, or in other 606words checks if _REG has been called for the OpRegion which the ACPI code 607wants to use. Except for the "orphan" EC handling, ACPICA core does not 608call _REG on an ACPI node which does not define an OpRegion matching the 609type being registered; and the reference design DSDT, from which most 610Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor 611UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins 612were assigned ACPI controlled functions in the reference design. Together 613this leads to the perfect storm, at least on the Cherry Trail based 614Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code 615and has added the Cherry Trail specific UserDefined(0x93) opregion to its 616GPO2 ACPI node to access this pin. But it uses a "has _REG been called" 617availability check for the standard GeneralPurposeIo OpRegion. This 618clearly is a bug in the DSDT, but this does work under Windows. This 619issue leads to the intel vbtn driver reporting the device always being in 620tablet-mode at boot, even if it is in laptop mode. Which in turn causes 621userspace to ignore touchpad events. So in other words, this issue causes 622the touchpad to not work at boot. This change fixes this by extending the 623"orphan" _REG method handling to also apply to GPIO address-space 624handlers. 625 626 6272) iASL Compiler/Disassembler and ACPICA tools: 628 629iASL: Added more info to namespace dump file (-ln option). In a separate 630section of the dump file (after the main namespace dump), emit the full 631pathname for each namespace node, its type, and the ASL filename and line 632number where it is declared. 633 634AcpiHelp: Added an option to display/decode iASL exceptions. Option is: - 635x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value 636is omitted, all iASL exceptions are displayed. 637 638iASL: Use StringLiteral instead of StringData for some ASL macros. The 639use of the stringData rule allows for some "string" oriented opcodes 640(Such as ToString, ToHexString, etc.) None of which make sense with the 641macros in question. This change modifies the StringData part of the rule 642for these macros to a simple string literal - thus disallowing the use 643of ToString, ToHexString, etc. 644The following ASL operators (macros) are affected: 645EisaId 646Fprintf 647Printf 648ToUuid 649Unicode 650Note: The MS compiler requires the use of string literals for these 651operators also. 652 653iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search 654the list of "known" UUIDs for the input to the ToUUID macro. 655 656Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the 657NFIT table. 658 659 660---------------------------------------- 661 66225 September 2020. Summary of changes for version 20200925: 663 664This release is available at https://acpica.org/downloads 665 666 6671) ACPICA kernel-resident subsystem: 668 669Preserve memory opregion mappings. The ACPICA's strategy with respect to 670the handling of memory mappings associated with memory operation regions 671is to avoid mapping the entire region at once which may be problematic at 672least in principle (for example, it may lead to conflicts with 673overlapping mappings having different attributes created by drivers). It 674may also be wasteful, because memory opregions on some systems take up 675vastchunks of address space while the fields in those regions actually 676accessed by AML are sparsely distributed. 677 678For this reason, a one-page "window" is mapped for a given opregion on 679the first memory access through it and if that "window" does not cover an 680address range accessed through that opregion subsequently, it is unmapped 681and a new "window" is mapped to replace it. Next, if the new "window" is 682not sufficient to access memory through the opregion in question in the 683future, it will be replaced with yet another "window" and so on. That 684may lead to a suboptimal sequence of memory mapping and unmapping 685operations, for example if two fields in one opregion separated from each 686other by a sufficiently wide chunk of unused address space are accessed 687in an alternating pattern. 688 689Added support for 64 bit risc-v compilation. Useful for acpica tools and 690incorporating ACPICA into the Firmware Test Suite. Colin Ian King 691<colin.king@canonical.com>. 692 693Added support for SMBus predefined names (from SMBus Control Method 694Interface Specification, Version 1.0, December 10, 1999. New predefined 695names: 696 _SBA 697 _SBI 698 _SBR 699 _SBT 700 _SBW 701 702AML Disassembler: Added a new command, "All <NameSeg>". This command will 703evaluate all objects in the current namespace whose NameString contains 704the input NameSeg as the last element of the NameString. Useful for 705debugging. 706 707 7082) iASL Compiler/Disassembler and ACPICA tools: 709 710iASL: fixed a crash that occurred when predefined objects return packages 711with lengths that exceed the initializer list. 712 713iASL: added more detail to external resolution error message when 714compiling multiple definition blocks. 715 716iASL: added a remark for an attempt to create a nameseg or namestring 717containing lower-case letters. This should prevent declaring multiple 718namesegs or namestrings in an attempt to refer to different objects (with 719different cases), but actually refer to the same object(s). 720 721iASL: improve alias analysis by saving object type. If the alias is a 722method type, the parameter count is also recorded. 723 724AcpiExec: Increase the default loop timeout value. Was 1 second, is now 72510 seconds. Prevents unnecessary timeouts when executing control methods 726from the command line. 727 728AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal 729list. Includes: 730 Memory Device 731 Generic Buttons Device 732 NVDIMM Root Device 733 Control Method Battery 734 Device Graphs for _DSD method 735 Hierarchical Data Extension 736....ARM CoreSight Graph 737 738---------------------------------------- 739 740 74117 July 2020. Summary of changes for version 20200717: 742 743This release is available at https://acpica.org/downloads 744 745 7461) ACPICA kernel-resident subsystem: 747 748Do not increment OperationRegion reference counts for field units. Recent 749server firmware has revealed that this reference count can overflow on 750large servers that declare many field units (thousands) under the same 751OperationRegion. This occurs because each field unit declaration will add 752a reference count to the source OperationRegion. This release solves the 753reference count overflow for OperationRegion objects by preventing 754fieldUnits from incrementing their parent OperationRegion's reference 755count. 756 757Replaced one-element arrays with flexible-arrays, which were introduced 758in C99. 759 760Restored the readme file containing the directions for generation of 761ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is 762located at: generate/msvc2017/readme.txt 763 7642) iASL Compiler/Disassembler and ACPICA tools: 765 766iASL: Fixed a regression found in version 20200214. Prevent iASL from 767emitting an extra byte of garbage data when control methods declared a 768single parameter type without using braces. This extra byte is known to 769cause a blue screen on the Windows AML interpreter. 770 771iASL: Made a change to allow external declarations to specify the type of 772a named object even when some name segments are not defined. 773This change allows the following ASL code to compile (When DEV0 is not 774defined or not defined yet): 775 776 External (\_SB.DEV0.OBJ1, IntObj) 777 External (\_SB.DEV0, DeviceObj) 778 779iASL: Fixed a problem where method names in "Alias ()" statement could be 780misinterpreted. They are now interpreted correctly as method invocations. 781 782iASL: capture a method parameter count (Within the Method info segment, 783as well as the argument node) when using parameter type lists. 784 785---------------------------------------- 786 787 78828 May 2020. Summary of changes for version 20200528: 789 790 7911) ACPICA kernel-resident subsystem: 792 793Removed old/obsolete Visual Studio files which were used to build the 794Windows versions of the ACPICA tools. Since we have moved to Visual 795Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 796project files. The new subdirectory and solution file are located at: 797 798 acpica/generate/msvc2017/AcpiComponents.sln 799 800 8012) iASL Compiler/Disassembler and ACPICA tools: 802 803iASL: added support for a new OperationRegion Address Space (subtype): 804PlatformRtMechanism. Support for this new keyword is being released for 805early prototyping. It will appear in the next release of the ACPI 806specification. 807 808iASL: do not optimize the NameString parameter of the CondRefOf operator. 809In the previous iASL compiler release, the NameString parameter of the 810CondRefOf was optimized. There is evidence that some implementations of 811the AML interpreter do not perform the recursive search-to-parent search 812during the execution of the CondRefOf operator. Therefore, the CondRefOf 813operator behaves differently when the NameString parameter is a single 814name segment (a NameSeg) as opposed to a full NamePath (starting at the 815root scope) or a NameString containing parent prefixes. 816 817iASL: Prevent an inadvertent remark message. This change prevents a 818remark if within a control method the following exist: 8191) An Operation Region is defined, and 8202) A Field operator is defined that refers to the region. 821This happens because at the top level, the Field operator does not 822actually create a new named object, it simply references the operation 823region. 824 825Removed support for the acpinames utility. The acpinames was a simple 826utility used to populate and display the ACPI namespace without executing 827any AML code. However, ACPICA now supports executable opcodes outside of 828control methods. This means that executable AML opcodes such as If and 829Store opcodes need to be executed during table load. Therefore, acpinames 830would need to be updated to match the same behavior as the acpiexec 831utility and since acpiexec can already dump the entire namespace (via the 832'namespace' command), we no longer have the need to maintain acpinames. 833 834 In order to dump the contents of the ACPI namespace using acpiexec, 835execute the following command from the command line: 836 837 acpiexec -b "n" [aml files] 838 839---------------------------------------- 840 841 84230 April 2020. Summary of changes for version 20200430: 843 8441) ACPICA kernel-resident subsystem: 845 846Cleaned up the coding style of a couple of global variables 847(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers. 848AcpiProtocolLengths was made static, and the definition of 849AcpiGbl_NextCmdNum was moved to acglobal.h. 850 851 8522) iASL Compiler/Disassembler and ACPICA tools: 853 854iASL DataTable Compiler: Fixed a segfault on errors that aren't directly 855associated with a field. 856 857Disassembler: has been made more resilient so that it will continue to 858parse AML even if the AML generates ACPI namespace errors. This enables 859iASL to disassemble some AML that may have been compiled using older 860versions of iASL that no longer compile with newer versions of iASL. 861 862iASL: Fixed the required parameters for _NIH and _NIG. Previously, there 863was a mixup where _NIG required one parameter and _NIH required zero 864parameters. This change swaps these parameter requirements. Now it is 865required that _NIH must be called with one parameter and _NIG requires 866zero parameters. 867 868iASL: Allow use of undefined externals as long as they are protected by 869an if (CondRefOf (...)) block when compiling multiple definition blocks. 870 871iASL: Fixed the type override behavior of named objects that are declared 872as External. External declarations will no longer override the type of 873the actual definition if it already exists. 874 875AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable 876command line wildcard support on Windows. Note: the AcpiNames utility is 877essentially redundant with the AcpiExec utility (using the "namespace" 878command) and is therefore deprecated. It will be removed in future 879releases of ACPICA. 880 881Disassembler: ignore AE_ALREADY_EXISTS status when parsing create* 882operators. The disassembler is intended to emit existing ASL code as-is. 883Therefore, error messages emitted during disassembly should be ignored or 884handled in a way such that the disassembler can continue to parse the 885AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op 886parsing for create operators in order to complete parsing ASL termlists. 887 888iASL DataTable Compiler: IVRS table: fix potentially uninitialized 889variable warning. Some compilers catch potential uninitialized variables. 890This is done by examining branches of if/else statements. This change 891replaces an "else if" with an "else" to fix the uninitialized variable 892warning. 893 894 895---------------------------------------- 89626 March 2020. Summary of changes for version 20200326: 897 898 8991) ACPICA kernel-resident subsystem: 900 901Performed a code clean-up to prevent build errors on early versions of 902GCC-10. 903 904Added the NHLT table signature. iASL data table compiler/disassembler 905support for this table is coming soon. 906 907 9082) iASL Compiler/Disassembler and ACPICA tools: 909 910AcpiExec: Fixed several problems with the namespace initialization file 911(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS 912errors, several seg faults, and enhancements to line parsing within the 913init file. In addition, each object found in the init file and it's new 914value is displayed, as well as any such entries that do not have a 915corresponding name in the namespace. For reference, the syntax for the 916various supported data types are presented below: 917 PCHG 0x777788889999BBBB // Integer 918 \DEV1.STR1 "XYZ" // String 919 BUF1 (88 99 AA) // Buffer 920 PKG1 [0x1111 0x2222] // Package 921 \BF1 0x7980 // BufferField 922 RCRV 0x0123456789ABCDEF // Field Unit 923 924iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro 925can be used anywhere in a given ASL file to configure iASL to expect an 926iASL compiler error code on the line where this macro was placed. If the 927error code does not exist, an error is generated. This is intended to be 928used for ACPICA's ASL test suite, but can be used by ASL developers as 929well. 930 931iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD 932IVRS table parsing supported only IVHD type 10h structures. Parsing an 933IVHD type 11h caused the iasl to report unknown subtable type. Add 934necessary structure definition for IVHD type 11h and apply correct 935parsing method based on subtable type. Micha? ?ygowski. 936 937iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name 938According to AMD IOMMU Specification Revision 3.05 the reserved field 939should be IOMMU Feature Reporting. Change the name of the field to the 940correct one. Micha? ?ygowski. 941 942acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch 943based on suggestions by David Seifert and Benjamin Berg. 944 945iASL: table compiler: removed an unused variable (DtCompilerParserResult) 946causing linking errors. Patch based on suggestions by David Seifert and 947Benjamin Berg. 948 949iASL: table compiler: make LexBuffer static to avoid linking errors in 950newer compilers. Patch based on suggestions by David Seifert and Benjamin 951Berg. 952 953iASL: fixed type matching between External and Named objects. External 954object types can only be expressed with ACPI object type values that are 955defined in the ACPI spec. However, iASL uses ACPI object type values that 956are local to ACPICA in addition to the values defined in the ACPI spec. 957This change implements type matching to map some object type values 958specific to ACPICA to ones that are defined in the ACPI spec. 959 960iASL: Dropped the type mismatch compiler error that can arise from 961External declarations to a warning. This warning can occur when there is 962a type difference between the external declaration and the actual object 963declaration (when compiling multiple files/modules simultaneously). 964 965iASL: removed an incorrect error message regarding externals. This change 966removes an incorrect error that is emitted when a duplicate external 967declaration does not contain a type that opens a scope. This is incorrect 968because the duplicate external with conflicting types are already caught 969by iASL and it doesn't make any sense to enforce what this conflicting 970type should be. 971 972AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be 973surrounded by parens. Otherwise, a logical statement that applies a 974logical not operator to this macro could result in a computation that 975applies the operator to the left side of the logical and but not the 976right. Reported-by: John Levon <john.levon@joyent.com> 977 978Fixed a problem with the local version of sprint(): On 32-bit, the 979provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX, 980String + Size will wrap, meaning End < Start, and 981AcpiUtBoundStringOutput() will never output anything as a result. The 982symptom seen of this was acpixtract failing to output anything -- with a 983custom build that included utprint.c. Signed-off-by: John Levon 984<john.levon@joyent.com> 985 986iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the 987ACPI specification. 988 989 990---------------------------------------- 99114 February 2020. Summary of changes for version 20200214: 992 993 9941) ACPICA kernel-resident subsystem: 995 996Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered 997in a guest when it receives a sleep trigger from the hypervisor. When the 998guest resumes from this power state, it does not see the SleepEnabled 999bit. In other words, the sleepHibernation (S4) is triggered in a guest 1000when it receives a sleep trigger from the hypervisor. When the guest 1001resumes from this power state, it does not see the SleepEnabled bit. In 1002other words, the sleep button is not enabled on waking from an S4 state. 1003This causes subsequent invocation of sleep state to fail since the 1004guest.button is not enabled on waking from an S4 state. This causes 1005subsequent invocation of sleep state to fail in the guest. Fix this 1006problem by enabling the sleep button in ACPI legacy wake. From Anchal 1007Agarwal <anchalag@amazon.com>. 1008 1009Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used 1010for checking the status bits of all enabled GPEs in one go. It is needed 1011to distinguish spurious SCIs from genuine ones when deciding whether or 1012not to wake up the system from suspend-to-idle. 1013 1014Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be 1015using HOST in their environment to represent the host name for their 1016machines. Avoid this problem by renaming this variable from HOST to 1017ACPI_HOST. 1018 1019MSVC 2017 project files: Enable multiprocessor generation to improve 1020build performance. 1021 1022Added a macro to get the byte width of a Generic Address structure. New 1023ACPI_ACCESS_BYTE_WIDTH is in addition to the existing 1024ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg. 1025 1026 10272) iASL Compiler/Disassembler and ACPICA tools: 1028 1029iASL: Implemented full support for the (optional, rarely used) ReturnType 1030and ParameterTypesList for the Method, Function, and External operators. 1031For Method declarations, the number of individual ParameterTypes must 1032match the declaration of the number of arguments (NumArgs). This also 1033Fixes a problem with the External operator where extra/extraneous bytes 1034were emitted in the AML code if the optional ReturnType/ParameterTypes 1035were specified for a MethodObj declaration. 1036New error message: 10371) Method NumArgs count does not match length of ParameterTypes list 1038 1039iASL: Implemented detection of type mismatches between External 1040declarations and named object declarations. Also, detect type mismatches 1041between multiple External declarations of the same Name. 1042New error messages: 10431) Type mismatch between external declaration and actual object 1044declaration detected 10452) Type mismatch between multiple external declarations detected 1046 1047iASL: Implemented new error messages for External operators that specify 1048a ReturnType and/or ParameterTypesList for any object type other than 1049control methods (MethodObj). 1050New error messages: 10511) Return type is only allowed for Externals declared as MethodObj 10522) Parameter type is only allowed for Externals declared as MethodObj 1053 1054iASL: Implemented two new remark/warning messages for ASL code that 1055creates named objects from within a control method. This is very 1056inefficient since the named object must be created and deleted each time 1057the method is executed. 1058New messages: 10591) Creation of named objects within a method is highly inefficient, use 1060globals or method local variables instead (remark) 10612) Static OperationRegion should be declared outside control method 1062(warning) 1063 1064iASL: Improved illegal forward reference detection by adding support to 1065detect forward-reference method invocations. 1066 1067iASL: Detect and issue an error message for NameStrings that contain too 1068many individual NameSegs (>255). This is an AML limitation that is 1069defined in the ACPI specification. 1070New message: 10711) NameString contains too many NameSegs (>255) 1072 1073acpidump: windows: use GetSystemFirmwareTable API for all tables except 1074SSDT. By using this API, acpidump is able to get all tables in the XSDT 1075 1076iASL: Removed unused parser file and updated msvc2017 project files. 1077Removed the obsolete AslCompiler.y from the repository. 1078 1079iASL: msvc2017: Fixed macros in the file dependency list to prevent 1080unnecessary rebuilds. Replace %(Directory) with %(RelativeDir). 1081 1082Disassembler: Prevent spilling error messages to the output file. All 1083errors are directed to the console instead. These error messages 1084prevented re-compilation of the resulting disassembled ASL output file 1085(.DSL). 1086 1087 1088---------------------------------------- 108910 January 2020. Summary of changes for version 20200110: 1090 1091 10921) ACPICA kernel-resident subsystem: 1093 1094Updated all copyrights to 2020. This affects all ACPICA source code 1095modules. 1096 1097 10982) iASL Compiler/Disassembler and ACPICA tools: 1099 1100ASL test suite (ASLTS): Updated all copyrights to 2020. 1101 1102Tools and utilities: Updated all signon copyrights to 2020. 1103 1104iASL: fix forward reference analysis for field declarations. Fixes 1105forward reference analysis for field declarations by searching the 1106parent scope for the named object when the object is not present in 1107the current scope. 1108 1109iASL: Improved the error output for ALREADY_EXISTS errors. Now, the 1110full pathname of the name that already exists is printed. 1111 1112iASL: Enhance duplicate Case() detection for buffers. Add check for 1113buffers with no initializer list (these buffers will be filled with 1114zeros at runtime.) 1115 1116 1117---------------------------------------- 111813 December 2019. Summary of changes for version 20191213: 1119 1120 11211) ACPICA kernel-resident subsystem: 1122 1123Return a Buffer object for all fields created via the CreateField 1124operator. Previously, an Integer would be returned if the size of 1125the field was less than or equal to the current size of an Integer. 1126Although this goes against the ACPI specification, it provides 1127compatibility with other ACPI implementations. Also updated the 1128ASLTS test suite to reflect this new behavior. 1129 11302) iASL Compiler/Disassembler and ACPICA tools: 1131 1132iASL: Implemented detection of (and throw an error for) duplicate 1133values for Case statements within a single Switch statement. Duplicate 1134Integers, Strings, and Buffers are supported. 1135 1136iASL: Fix error logging issue during multiple file compilation -- 1137Switch to the correct input file during error node creation. 1138 1139iASL: For duplicate named object creation, now emit an error instead 1140of a warning - since this will cause a runtime error. 1141 1142AcpiSrc: Add unix line-ending support for non-Windows builds. 1143 1144iASL: Add an error condition for an attempt to create a NameString 1145with > 255 NameSegs (the max allowable via the AML definition). 1146 1147 1148---------------------------------------- 114918 October 2019. Summary of changes for version 20191018: 1150 1151 11521) ACPICA kernel-resident subsystem: 1153 1154Debugger: added a new command: ?Fields [address space ID]?. This command 1155dumps the contents of all field units that are defined within the 1156namespace with a particular address space ID. 1157 1158Modified the external interface AcpiLoadTable() to return a table index. 1159This table index can be used for unloading a table for debugging. 1160 ACPI_STATUS 1161 AcpiLoadTable ( 1162 ACPI_TABLE_HEADER *Table, 1163 UINT32 *TableIndex)) 1164 1165Implemented a new external interface: AcpiUnloadTable() This new function 1166takes a table index as an argument and unloads the table. Useful for 1167debugging only. 1168 ACPI_STATUS 1169 AcpiUnloadTable ( 1170 UINT32 TableIndex)) 1171 1172Ported the AcpiNames utility to use the new table initialization 1173sequence. The utility was broken before this change. Also, it was 1174required to include most of the AML interpreter into the utility in order 1175to process table initialization (module-level code execution.) 1176 1177Update for results from running Clang V8.0.1. This fixes all "dead 1178assignment" warnings. There are still several "Dereference of NULL 1179pointer" warnings, but these have been found to be false positive 1180warnings. 1181 1182 11832) iASL Compiler/Disassembler and ACPICA tools: 1184 1185iASL: numerous table compiler changes to ensure that the usage of 1186yacc/bison syntax is POSIX-compliant. 1187 1188iASL/disassembler: several simple bug fixes in the data table 1189disassembler. 1190 1191Acpiexec: expanded the initialization file (the -fi option) to initialize 1192strings, buffers, packages, and field units. 1193 1194 1195---------------------------------------- 119616 August 2019. Summary of changes for version 20190816: 1197 1198This release is available at https://acpica.org/downloads 1199 1200 12011) ACPICA kernel-resident subsystem: 1202 1203Modified the OwnerId mechanism to allow for more Owner Ids. The previous 1204limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT 1205exceptions on machines with a large number of initialization threads, 1206many CPU cores and nested initialization control methods. 1207 1208Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for 1209checking if the given GPE (as represented by a GPE device handle and a 1210GPE number) is currently active and dispatching it (if that's the case) 1211outside of interrupt context. 1212 1213Table load: exit the interpreter before initializing objects within the 1214new table This prevents re-acquiring the interpreter lock when loading 1215tables 1216 1217Added the "Windows 2019" string to the _OSI support (version 1903). Jung- 1218uk Kim 1219 1220Macros: removed pointer math on a null pointer. Causes warnings on some 1221compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR 1222instead of using arithmetic. 1223 1224Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used 1225across all "printf-like" internal functions. Also, cleanup all calls to 1226such functions (both in 32-bit mode and 64-bit mode) now that they are 1227analyzed by the gcc compiler via ACPI_PRINTF_LIKE. 1228 1229 12302) iASL Compiler/Disassembler and ACPICA tools: 1231 1232iASL: implemented a new data table compiler flex/bison front-end. This 1233change is internal and is not intended to result in changes to the 1234compiled code. This new compiler front-end can be invoked using the -tp 1235option for now, until the old mechanism is removed. 1236 1237ASLTS: Implemented a new data table compiler test suite. This test suite 1238generates all table templates and compile/disassemble/re-compile/binary- 1239compare each file. 1240 1241iASL: return -1 if AML files were not generated due to compiler errors 1242 1243iASL: added a warning on use of the now-legacy ASL Processor () keyword. 1244 1245iASL: added an error on _UID object declaration that returns a String 1246within a Processor () declaration. A _UID for a processor must be an 1247Integer. 1248 1249iASL: added a null terminator to name strings that consist only of 1250multiple parent prefixes (^) 1251 1252iASL: added support to compile both ASL and data table files in a single 1253command. 1254 1255Updated the tool generation project files that were recently migrated to 1256MSVC 2017 to eliminate all new warnings. The new project files appear in 1257the directory \acpica\generate\msvc2017. This change effectively 1258deprecates the older project files in \acpica\generate\msvc9. 1259 1260 1261---------------------------------------- 126203 July 2019. Summary of changes for version 20190703: 1263 1264 12651) ACPICA kernel-resident subsystem: 1266 1267Remove legacy module-level support code. There were still some remnants 1268of the legacy module-level code executions. Since we no longer support 1269this option, this is essentially dead code and has been removed from the 1270ACPICA source. 1271 1272iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 1273scope. If these named objects are declared outside the root scope, they 1274will not be invoked by any host Operating System. 1275 1276Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC 1277one) can be enabled in two situations. First, the GPEs with existing _Lxx 1278and _Exx methods are enabled implicitly by ACPICA during system 1279initialization. Second, the GPEs without these methods (like GPEs listed 1280by _PRW objects for wakeup devices) need to be enabled directly by the 1281code that is going to use them (e.g. ACPI power management or device 1282drivers). 1283 1284In the former case, if the status of a given GPE is set to start with, 1285its handler method (either _Lxx or _Exx) needs to be invoked to take care 1286of the events (possibly) signaled before the GPE was enabled. In the 1287latter case, however, the first caller of AcpiEnableGpe() for a given GPE 1288should not be expected to care about any events that might be signaled 1289through it earlier. In that case, it is better to clear the status of 1290the GPE before enabling it, to prevent stale events from triggering 1291unwanted actions (like spurious system resume, for example). 1292 1293For this reason, modify AcpiEvAddGpeReference() to take an additional 1294boolean argument indicating whether or not the GPE status needs to be 1295cleared when its reference counter changes from zero to one and make 1296AcpiEnableGpe() pass TRUE to it through that new argument. 1297 1298 12992) iASL Compiler/Disassembler and ACPICA tools: 1300 1301The tool generation process has been migrated to MSVC 2017, and all 1302project files have been upgraded. The new project files appear in the 1303directory \acpica\generate\msvc2017. This change effectively deprecates 1304the older project files in \acpica\generate\msvc9. 1305 1306iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 1307scope. If these named objects are declared outside the root scope, they 1308will not be invoked by any host Operating System 1309 1310---------------------------------------- 131109 May 2019. Summary of changes for version 20190509: 1312 1313 13141) ACPICA kernel-resident subsystem: 1315 1316Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling 1317them") that causes problems with Thunderbolt controllers to occur if a 1318dock device is connected at init time (the xhci_hcd and thunderbolt 1319modules crash which prevents peripherals connected through them from 1320working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA: 1321Dispatch active GPEs at init time") to get undone, so the problem 1322addressed by commit ecc1165b8b74 appears again as a result of it. 1323 1324 13252) iASL Compiler/Disassembler and ACPICA tools: 1326 1327Reverted iASL: Additional forward reference detection. This change 1328reverts forward reference detection for field declarations. The feature 1329unintentionally emitted AML bytecode with incorrect package lengths for 1330some ASL code related to Fields and OperationRegions. This malformed AML 1331can cause systems to crash 1332during boot. The malformed AML bytecode is emitted in iASL version 133320190329 and 20190405. 1334 1335iASL: improve forward reference detection. This change improves forward 1336reference detection for named objects inside of scopes. If a parse object 1337has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to 1338a named object that is declared later in the AML bytecode. This is 1339allowed if the reference is inside of a method and the declaration is 1340outside of a method like so: 1341 1342DefinitionBlock(...) 1343{ 1344 Method (TEST) 1345 { 1346 Return (NUM0) 1347 } 1348 Name (NUM0,0) 1349} 1350 1351However, if the declaration and reference are both in the same method or 1352outside any methods, this is a forward reference and should be marked as 1353an error because it would result in runtime errors. 1354 1355DefinitionBlock(...) 1356{ 1357 Name (BUFF, Buffer (NUM0) {}) // Forward reference 1358 Name (NUM0, 0x0) 1359 1360 Method (TEST) 1361 { 1362 Local0 = NUM1 1363 Name (NUM1, 0x1) // Forward reference 1364 return (Local0) 1365 } 1366} 1367 1368iASL: Implemented additional buffer overflow analysis for BufferField 1369declarations. Check if a buffer index argument to a create buffer field 1370operation is beyond the end of the target buffer. 1371 1372This affects these AML operators: 1373 1374 AML_CREATE_FIELD_OP 1375 AML_CREATE_BIT_FIELD_OP 1376 AML_CREATE_BYTE_FIELD_OP 1377 AML_CREATE_WORD_FIELD_OP 1378 AML_CREATE_DWORD_FIELD_OP 1379 AML_CREATE_QWORD_FIELD_OP 1380 1381 There are three conditions that must be satisfied in order to allow this 1382validation at compile time: 1383 1384 1) The length of the target buffer must be an integer constant 1385 2) The index specified in the create* must be an integer constant 1386 3) For CreateField, the bit length argument must be non-zero. 1387 1388Example: 1389 Name (BUF1, Buffer() {1,2}) 1390 CreateField (BUF1, 7, 9, CF03) // 3: ERR 1391 1392dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR 1393Error 6165 - ^ Buffer index beyond end of 1394target buffer 1395 1396 1397---------------------------------------- 139805 April 2019. Summary of changes for version 20190405: 1399 1400 14011) ACPICA kernel-resident subsystem: 1402 1403Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop 1404unconditionally clearing ACPI IRQs during suspend/resume") was added 1405earlier to stop clearing of event status bits unconditionally on suspend 1406and resume paths. Though this change fixed an issue on suspend path, it 1407introduced regressions on several resume paths. In the case of S0ix, 1408events are enabled as part of device suspend path. If status bits for the 1409events are set when they are enabled, it could result in premature wake 1410from S0ix. If status is cleared for any event that is being enabled so 1411that any stale events are cleared out. In case of S0ix, events are 1412enabled as part of device suspend path. If status bits for the events are 1413set when they are enabled, it could result in premature wake from S0ix. 1414 1415This change ensures that status is cleared for any event that is being 1416enabled so that any stale events are cleared out. 1417 1418 14192) iASL Compiler/Disassembler and ACPICA tools: 1420 1421iASL: Implemented an enhanced multiple file compilation that combines 1422named objects from all input files to a single namespace. With this 1423feature, any unresolved external declarations as well as duplicate named 1424object declarations can be detected during compilation rather than 1425generating errors much later at runtime. The following commands are 1426examples that utilize this feature: 1427 iasl dsdt.asl ssdt.asl 1428 iasl dsdt.asl ssdt1.asl ssdt2.asl 1429 iasl dsdt.asl ssdt*.asl 1430 1431---------------------------------------- 143229 March 2019. Summary of changes for version 20190329: 1433 1434 14351) ACPICA kernel-resident subsystem: 1436 1437Namespace support: Remove the address nodes from global list after method 1438termination. The global address list contains pointers to namespace nodes 1439that represent Operation Regions. This change properly removes Operation 1440Region namespace nodes that are declared dynamically during method 1441execution. 1442 1443Linux: Use a different debug default than ACPICA. There was a divergence 1444between Linux and the ACPICA codebases. In order to resolve this 1445divergence, Linux now declares its own debug default in aclinux.h 1446 1447Renamed some internal macros to improve code understanding and 1448maintenance. The macros below all operate on single 4-character ACPI 1449NameSegs, not generic strings (old -> new): 1450 ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE 1451 ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG 1452 ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG 1453 1454Fix for missing comma in array declaration for the AcpiGbl_GenericNotify 1455table. 1456 1457Test suite: Update makefiles, add PCC operation region support 1458 1459 14602) iASL Compiler/Disassembler and Tools: 1461 1462iASL: Implemented additional illegal forward reference detection. Now 1463detect and emit an error upon detection of a forward reference from a 1464Field to an Operation Region. This will fail at runtime if allowed to 1465pass the compiler. 1466 1467AcpiExec: Add an address list check for dynamic Operation Regions. This 1468feature performs a sanity test for each node the global address list. 1469This is done in order to ensure that all dynamic operation regions are 1470properly removed from the global address list and no dangling pointers 1471are left behind. 1472 1473Disassembler: Improved generation of resource pathnames. This change 1474improves the code that generates resource descriptor and resource tag 1475pathnames. The original code used a bunch of str* C library functions 1476that caused warnings on some compilers. 1477 1478iASL: Removed some uses of strncpy and replaced with memmove. The strncpy 1479function can overwrite buffers if the calling code is not very careful. 1480In the case of generating a module/table header, use of memmove is a 1481better implementation. 1482 1483 14843) Status of new features that have not been completed at this time: 1485 1486iASL: Implementing an enhanced multiple file compilation into a single 1487namespace feature (Status): This feature will be released soon, and 1488allows multiple ASL files to be compiled into the same single namespace. 1489By doing so, any unresolved external declarations as well as duplicate 1490named object declarations can be detected during compilation (rather than 1491later during runtime). The following commands are examples that utilize 1492this feature: 1493 iasl dsdt.asl ssdt.asl 1494 iasl dsdt.asl ssdt1.asl ssdt2.asl 1495 iasl dsdt.asl ssdt*.asl 1496 1497ASL tutorial status: Feedback is being gathered internally and the 1498current plan is to publish this tutorial on the ACPICA website after a 1499final review by a tech writer. 1500 1501---------------------------------------- 150215 February 2019. Summary of changes for version 20190215: 1503 1504 15050) Support for ACPI specification version 6.3: 1506 1507Add PCC operation region support for the AML interpreter. This adds PCC 1508operation region support in the AML interpreter and a default handler for 1509acpiexec. The change also renames the PCC region address space keyword to 1510PlatformCommChannel. 1511 1512Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. 1513These methods provide OSPM with health information and device boot 1514status. 1515 1516PDTT: Add TriggerOrder to the PCC Identifier structure. The field value 1517defines if the trigger needs to be invoked by OSPM before or at the end 1518of kernel crash dump processing/handling operation. 1519 1520SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT 1521is used for describing devices such as heterogeneous processors, 1522accelerators, GPUs, and IO devices with integrated compute or DMA 1523engines. 1524 1525MADT: Add support for statistical profiling in GICC. Statistical 1526profiling extension (SPE) is an architecture-specific feature for ARM. 1527 1528MADT: Add online capable flag. If this bit is set, system hardware 1529supports enabling this processor during OS runtime. 1530 1531New Error Disconnect Recover Notification value. There are a number of 1532scenarios where system Firmware in collaboration with hardware may 1533disconnect one or more devices from the rest of the system for purposes 1534of error containment. Firmware can use this new notification value to 1535alert OSPM of such a removal. 1536 1537PPTT: New additional fields in Processor Structure Flags. These flags 1538provide more information about processor topology. 1539 1540NFIT/Disassembler: Change a field name from "Address Range" to "Region 1541Type". 1542 1543HMAT updates: make several existing fields to be reserved as well as 1544rename subtable 0 to "memory proximity domain attributes". 1545 1546GTDT: Add support for new GTDT Revision 3. This revision adds information 1547for the EL2 timer. 1548 1549iASL: Update the HMAT example template for new fields. 1550 1551iASL: Add support for the new revision of the GTDT (Rev 3). 1552 1553 15541) ACPICA kernel-resident subsystem: 1555 1556AML Parser: fix the main AML parse loop to correctly skip erroneous 1557extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- 1558byte extended opcodes. If an error occurs during an AML table load, the 1559AML parser will continue loading the table by skipping the offending 1560opcode. This implements a "load table at any cost" philosophy. 1561 1562 15632) iASL Compiler/Disassembler and Tools: 1564 1565iASL: Add checks for illegal object references, such as a reference 1566outside of method to an object within a method. Such an object is only 1567temporary. 1568 1569iASL: Emit error for creation of a zero-length operation region. Such a 1570region is rather pointless. If encountered, a runtime error is also 1571implemented in the interpreter. 1572 1573Debugger: Fix a possible fault with the "test objects" command. 1574 1575iASL: Makefile: support parent directory filenames containing embedded 1576spaces. 1577 1578iASL: Update the TPM2 template to revision 4. 1579 1580iASL: Add the ability to report specific warnings or remarks as errors. 1581 1582Disassembler: Disassemble OEMx tables as actual AML byte code. 1583Previously, these tables were treated as "unknown table". 1584 1585iASL: Add definition and disassembly for TPM2 revision 3. 1586 1587iASL: Add support for TPM2 rev 3 compilation. 1588 1589 1590---------------------------------------- 159108 January 2019. Summary of changes for version 20190108: 1592 1593 15941) ACPICA kernel-resident subsystem: 1595 1596Updated all copyrights to 2019. This affects all source code modules. 1597 1598 15992) iASL Compiler/Disassembler and Tools: 1600 1601ASL test suite (ASLTS): Updated all copyrights to 2019. 1602 1603Tools: Updated all signon copyrights to 2019. 1604 1605AcpiExec: Added a new option to dump extra information concerning any 1606memory leaks detected by the internal object/cache tracking mechanism. - 1607va 1608 1609iASL: Updated the table template for the TPM2 table to the newest version 1610of the table (Revision 4) 1611 1612 1613---------------------------------------- 161413 December 2018. Summary of changes for version 20181213: 1615 1616 16171) ACPICA Kernel-resident Subsystem: 1618 1619Fixed some buffer length issues with the GenericSerialBus, related to two 1620of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, 1621which are rarely seen in the field. For these, the LEN field of the ASL 1622buffer is now ignored. Hans de Goede 1623 1624Implemented a new object evaluation trace mechanism for control methods 1625and data objects. This includes nested control methods. It is 1626particularly useful for examining the ACPI execution during system 1627initialization since the output is relatively terse. The flag below 1628enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: 1629 #define ACPI_LV_EVALUATION 0x00080000 1630 1631Examples: 1632 Enter evaluation : _SB.PCI0._INI (Method) 1633 Exit evaluation : _SB.PCI0._INI 1634 Enter evaluation : _OSI (Method) 1635 Exit evaluation : _OSI 1636 Enter evaluation : _SB.PCI0.TEST (Method) 1637 Nested method call : _SB.PCI0.NST1 1638 Exit nested method : _SB.PCI0.NST1 1639 Exit evaluation : _SB.PCI0.TEST 1640 1641Added two recently-defined _OSI strings. See 1642https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- 1643osi. 1644 "Windows 2018" 1645 "Windows 2018.2" 1646 1647Update for buffer-to-string conversions via the ToHexString ASL operator. 1648A "0x" is now prepended to each of the hex values in the output string. 1649This provides compatibility with other ACPI implementations. The ACPI 1650specification is somewhat vague on this issue. 1651 Example output string after conversion: 1652"0x01,0x02,0x03,0x04,0x05,0x06" 1653 1654Return a run-time error for TermArg expressions within individual package 1655elements. Although this is technically supported by the ASL grammar, 1656other ACPI implementations do not support this either. Also, this fixes a 1657fault if this type of construct is ever encountered (it never has been). 1658 1659 16602) iASL Compiler/Disassembler and Tools: 1661 1662iASL: Implemented a new compile option (-ww) that will promote individual 1663warnings and remarks to errors. This is intended to enhance the firmware 1664build process. 1665 1666AcpiExec: Implemented a new command-line option (-eo) to support the new 1667object evaluation trace mechanism described above. 1668 1669Disassembler: Added support to disassemble OEMx tables as AML/ASL tables 1670instead of a "unknown table" message. 1671 1672AcpiHelp: Improved support for the "special" predefined names such as 1673_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be 1674used for "xx" and "x". 1675 1676---------------------------------------- 167731 October 2018. Summary of changes for version 20181031: 1678 1679 1680An Operation Region regression was fixed by properly adding address 1681ranges to a global list during initialization. This allows OS to 1682accurately check for overlapping regions between native devices (such as 1683PCI) and Operation regions as well as checking for region conflicts 1684between two Operation Regions. 1685 1686Added support for the 2-byte extended opcodes in the code/feature that 1687attempts to continue parsing during the table load phase. Skip parsing 1688Device declarations (and other extended opcodes) when an error occurs 1689during parsing. Previously, only single-byte opcodes were supported. 1690 1691Cleanup: Simplified the module-level code support by eliminating a 1692useless global variable (AcpiGbl_GroupModuleLeveCode). 1693 1694 16952) iASL Compiler/Disassembler and Tools: 1696 1697iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE 1698could cause a fault in the preprocessor. This was an inadvertent side- 1699effect from moving more allocations/frees to the local cache/memory 1700mechanism. 1701 1702iASL: Enhanced error detection by validating that all NameSeg elements 1703within a NamePatch actually exist. The previous behavior was spotty at 1704best, and such errors could be improperly ignored at compiler time (never 1705at runtime, however. There are two new error messages, as shown in the 1706examples below: 1707 1708dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) 1709Error 6161 - ^ One or more objects within 1710the Pathname do not exist (TTTT.BXXX) 1711 1712dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) 1713Error 6160 - One or more prefix Scopes do not exist ^ 1714(BBBB.CBF1) 1715 1716iASL: Disassembler/table-compiler: Added support for the static data 1717table TPM2 revision 3 (an older version of TPM2). The support has been 1718added for the compiler and the disassembler. 1719 1720Fixed compilation of DOS format data table file on Unix/Linux systems. 1721iASL now properly detects line continuations (\) for DOS format data 1722table definition language files on when executing on Unix/Linux. 1723 1724---------------------------------------- 172503 October 2018. Summary of changes for version 20181003: 1726 1727 17282) iASL Compiler/Disassembler and Tools: 1729 1730Fixed a regression introduced in version 20180927 that could cause the 1731compiler to fault, especially with NamePaths containing one or more 1732carats (^). Such as: ^^_SB_PCI0 1733 1734Added a new remark for the Sleep() operator when the sleep time operand 1735is larger than one second. This is a very long time for the ASL/BIOS code 1736and may not be what was intended by the ASL writer. 1737 1738---------------------------------------- 173927 September 2018. Summary of changes for version 20180927: 1740 1741 17421) ACPICA kernel-resident subsystem: 1743 1744Updated the GPE support to clear the status of all ACPI events when 1745entering any/all sleep states in order to avoid premature wakeups. In 1746theory, this may cause some wakeup events to be missed, but the 1747likelihood of this is small. This change restores the original behavior 1748of the ACPICA code in order to fix a regression seen from the previous 1749"Stop unconditionally clearing ACPI IRQs during suspend/resume" change. 1750This regression could cause some systems to incorrectly wake immediately. 1751 1752Updated the execution of the _REG methods during initialization and 1753namespace loading to bring the behavior into closer conformance to the 1754ACPI specification and other ACPI implementations: 1755 1756From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): 1757 "Control methods must assume all operation regions are inaccessible 1758until the _REG(RegionSpace, 1) method is executed" 1759 1760 "The exceptions to this rule are: 17611. OSPM must guarantee that the following operation regions are always 1762accessible: 1763 SystemIO operation regions. 1764 SystemMemory operation regions when accessing memory returned by the 1765System Address Map reporting interfaces." 1766 1767Since the state of both the SystemIO and SystemMemory address spaces are 1768defined by the specification to never change, this ACPICA change ensures 1769that now _REG is never called on them. This solves some problems seen in 1770the field and provides compatibility with other ACPI implementations. An 1771update to the upcoming new version of the ACPI specification will help 1772clarify this behavior. 1773 1774Updated the implementation of support for the Generic Serial Bus. For the 1775"bidirectional" protocols, the internal implementation now automatically 1776creates a return data buffer of the maximum size (255). This handles the 1777worst-case for data that is returned from the serial bus handler, and 1778fixes some problems seen in the field. This new buffer is directly 1779returned to the ASL. As such, there is no true "bidirectional" buffer, 1780which matches the ACPI specification. This is the reason for the "double 1781store" seen in the example ASL code in the specification, shown below: 1782 1783Word Process Call (AttribProcessCall): 1784 OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) 1785 Field(TOP1, BufferAcc, NoLock, Preserve) 1786 { 1787 FLD1, 8, // Virtual register at command value 1. 1788 } 1789 1790 Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer 1791 // as BUFF 1792 CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) 1793 1794 Store(0x5416, DATA) // Save 0x5416 into the data buffer 1795 Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call 1796transaction 1797 // This is the "double store". The write to 1798 // FLD1 returns a new buffer, which is stored 1799 // back into BUFF with the second Store. 1800 1801 18022) iASL Compiler/Disassembler and Tools: 1803 1804iASL: Implemented detection of extraneous/redundant uses of the Offset() 1805operator within a Field Unit list. A remark is now issued for these. For 1806example, the first two of the Offset() operators below are extraneous. 1807Because both the compiler and the interpreter track the offsets 1808automatically, these Offsets simply refer to the current offset and are 1809unnecessary. Note, when optimization is enabled, the iASL compiler will 1810in fact remove the redundant Offset operators and will not emit any AML 1811code for them. 1812 1813 OperationRegion (OPR1, SystemMemory, 0x100, 0x100) 1814 Field (OPR1) 1815 { 1816 Offset (0), // Never needed 1817 FLD1, 32, 1818 Offset (4), // Redundant, offset is already 4 (bytes) 1819 FLD2, 8, 1820 Offset (64), // OK use of Offset. 1821 FLD3, 16, 1822 } 1823dsdt.asl 14: Offset (0), 1824Remark 2158 - ^ Unnecessary/redundant use of Offset 1825operator 1826 1827dsdt.asl 16: Offset (4), 1828Remark 2158 - ^ Unnecessary/redundant use of Offset 1829operator 1830 1831---------------------------------------- 183210 August 2018. Summary of changes for version 20180810: 1833 1834 18351) ACPICA kernel-resident subsystem: 1836 1837Initial ACPI table loading: Attempt to continue loading ACPI tables 1838regardless of malformed AML. Since migrating table initialization to the 1839new module-level code support, the AML interpreter rejected tables upon 1840any ACPI error encountered during table load. This is a problem because 1841non-serious ACPI errors during table load do not necessarily mean that 1842the entire definition block (DSDT or SSDT) is invalid. This change 1843improves the table loading by ignoring some types of errors that can be 1844generated by incorrect AML. This can range from object type errors, scope 1845errors, and index errors. 1846 1847Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs 1848during suspend/resume. The status of ACPI events is no longer cleared 1849when entering the ACPI S5 system state (power off) which caused some 1850systems to power up immediately after turning off power in certain 1851situations. This was a functional regression. It was fixed by clearing 1852the status of all ACPI events again when entering S5 (for system-wide 1853suspend or hibernation the clearing of the status of all events is not 1854desirable, as it might cause the kernel to miss wakeup events sometimes). 1855Rafael Wysocki. 1856 1857 18582) iASL Compiler/Disassembler and Tools: 1859 1860AcpiExec: Enhanced the -fi option (Namespace initialization file). Field 1861elements listed in the initialization file were previously initialized 1862after the table load and before executing module-level code blocks. 1863Recent changes in the module-level code support means that the table load 1864becomes a large control method execution. If fields are used within 1865module-level code and we are executing with the -fi option, the 1866initialization values were used to initialize the namespace object(s) 1867only after the table was finished loading. This change Provides an early 1868initialization of objects specified in the initialization file so that 1869field unit values are populated during the table load (not after the 1870load). 1871 1872AcpiExec: Fixed a small memory leak regression that could result in 1873warnings during exit of the utility. These warnings were similar to 1874these: 1875 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 1876 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 1877 1878---------------------------------------- 187929 June 2018. Summary of changes for version 20180629: 1880 1881 18821) iASL Compiler/Disassembler and Tools: 1883 1884iASL: Fixed a regression related to the use of the ASL External 1885statement. Error checking for the use of the External() statement has 1886been relaxed. Previously, a restriction on the use of External meant that 1887the referenced named object was required to be defined in a different 1888table (an SSDT). Thus it would be an error to declare an object as an 1889external and then define the same named object in the same table. For 1890example: 1891 DefinitionBlock (...) 1892 { 1893 External (DEV1) 1894 Device (DEV1){...} // This was an error 1895 } 1896However, this behavior has caused regressions in some existing ASL code, 1897because there is code that depends on named objects and externals (with 1898the same name) being declared in the same table. This change will allow 1899the ASL code above to compile without errors or warnings. 1900 1901iASL: Implemented ASL language extensions for four operators to make some 1902of their arguments optional instead of required: 1903 1) Field (RegionName, AccessType, LockRule, UpdateRule) 1904 2) BankField (RegionName, BankName, BankValue, 1905 AccessType, LockRule, UpdateRule) 1906 3) IndexField (IndexName, DataName, 1907 AccessType, LockRule, UpdateRule) 1908For the Field operators above, the AccessType, LockRule, and UpdateRule 1909are now optional arguments. The default values are: 1910 AccessType: AnyAcc 1911 LockRule: NoLock 1912 UpdateRule: Preserve 1913 4) Mutex (MutexName, SyncLevel) 1914For this operator, the SyncLevel argument is now optional. This argument 1915is rarely used in any meaningful way by ASL code, and thus it makes sense 1916to make it optional. The default value is: 1917 SyncLevel: 0 1918 1919iASL: Attempted use of the ASL Unload() operator now results in the 1920following warning: 1921 "Unload is not supported by all operating systems" 1922This is in fact very true, and the Unload operator may be completely 1923deprecated in the near future. 1924 1925AcpiExec: Fixed a regression for the -fi option (Namespace initialization 1926file. Recent changes in the ACPICA module-level code support altered the 1927table load/initialization sequence . This means that the table load has 1928become a large method execution of the table itself. If Operation Region 1929Fields are used within any module-level code and the -fi option was 1930specified, the initialization values were populated only after the table 1931had completely finished loading (and thus the module-level code had 1932already been executed). This change moves the initialization of objects 1933listed in the initialization file to before the table is executed as a 1934method. Field unit values are now initialized before the table execution 1935is performed. 1936 1937---------------------------------------- 193831 May 2018. Summary of changes for version 20180531: 1939 1940 19411) ACPICA kernel-resident Subsystem: 1942 1943Implemented additional support to help ensure that a DSDT or SSDT is 1944fully loaded even if errors are incurred during the load. The majority of 1945the problems that are seen is the failure of individual AML operators 1946that occur during execution of any module-level code (MLC) existing in 1947the table. This support adds a mechanism to abort the current ASL 1948statement (AML opcode), emit an error message, and to simply move on to 1949the next opcode -- instead of aborting the entire table load. This is 1950different than the execution of a control method where the entire method 1951is aborted upon any error. The goal is to perform a very "best effort" to 1952load the ACPI tables. The most common MLC errors that have been seen in 1953the field are direct references to unresolved ASL/AML symbols (referenced 1954directly without the use of the CondRefOf operator to validate the 1955symbol). This new ACPICA behavior is now compatible with other ACPI 1956implementations. 1957 1958Interpreter: The Unload AML operator is no longer supported for the 1959reasons below. An AE_NOT_IMPLEMENTED exception is returned. 19601) A correct implementation on at least some hosts may not be possible. 19612) Other ACPI implementations do not correctly/fully support it. 19623) It requires host device driver support which is not known to exist. 1963 (To properly support namespace unload out from underneath.) 19644) This AML operator has never been seen in the field. 1965 1966Parser: Added a debug option to dump AML parse sub-trees as they are 1967being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is 1968ACPI_DB_PARSE_TREES. 1969 1970Debugger: Reduced the verbosity for errors incurred during table load and 1971module-level code execution. 1972 1973Completed an investigation into adding a namespace node "owner list" 1974instead of the current "owner ID" associated with namespace nodes. This 1975list would link together all nodes that are owned by an individual 1976control method. The purpose would be to enhance control method execution 1977by speeding up cleanup during method exit (all namespace nodes created by 1978a method are deleted upon method termination.) Currently, the entire 1979namespace must be searched for matching owner IDs if (and only if) the 1980method creates named objects outside of the local scope. However, by far 1981the most common case is that methods create objects locally, not outside 1982the method scope. There is already an ACPICA optimization in place that 1983only searches the entire namespace in the rare case of a method creating 1984objects elsewhere in the namespace. Therefore, it is felt that the 1985overhead of adding an additional pointer to each namespace node to 1986implement the owner list makes this feature unnecessary. 1987 1988 19892) iASL Compiler/Disassembler and Tools: 1990 1991iASL, Disassembler, and Template generator: Implemented support for 1992Revision D of the IORT table. Adds a new subtable that is used to specify 1993SMMUv3 PMCGs. rmurphy-arm. 1994 1995Disassembler: Restored correct table header validation for the "special" 1996ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI 1997table header and must be special-cased. This was a regression that has 1998been present for apparently a long time. 1999 2000AcpiExec: Reduced verbosity of the local exception handler implemented 2001within acpiexec. This handler is invoked by ACPICA upon any exceptions 2002generated during control method execution. A new option was added: -vh 2003restores the original verbosity level if desired. 2004 2005AcpiExec: Changed the default base from decimal to hex for the -x option 2006(set debug level). This simplifies the use of this option and matches the 2007behavior of the corresponding iASL -x option. 2008 2009AcpiExec: Restored a force-exit on multiple control-c (sigint) 2010interrupts. This allows program termination even if other issues cause 2011the control-c to fail. 2012 2013ASL test suite (ASLTS): Added tests for the recently implemented package 2014element resolution mechanism that allows forward references to named 2015objects from individual package elements (this mechanism provides 2016compatibility with other ACPI implementations.) 2017 2018 2019---------------------------------------- 20208 May 2018. Summary of changes for version 20180508: 2021 2022 20231) ACPICA kernel-resident subsystem: 2024 2025Completed the new (recently deployed) package resolution mechanism for 2026the Load and LoadTable ASL/AML operators. This fixes a regression that 2027was introduced in version 20180209 that could result in an 2028AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table 2029(SSDT) that contains package objects. 2030 2031 20322) iASL Compiler/Disassembler and Tools: 2033 2034AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 20351 MB. This change allows for table offsets within the acpidump file to be 2036up to 8 characters. These changes are backwards compatible with existing 2037acpidump files. 2038 2039 2040---------------------------------------- 204127 April 2018. Summary of changes for version 20180427: 2042 2043 20441) ACPICA kernel-resident subsystem: 2045 2046Debugger: Added support for Package objects in the "Test Objects" 2047command. This command walks the entire namespace and evaluates all named 2048data objects (Integers, Strings, Buffers, and now Packages). 2049 2050Improved error messages for the namespace root node. Originally, the root 2051was referred to by the confusing string "\___". This has been replaced by 2052"Namespace Root" for clarification. 2053 2054Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin 2055Ian King <colin.king@canonical.com>. 2056 2057 20582) iASL Compiler/Disassembler and Tools: 2059 2060iASL: Implemented support to detect and flag illegal forward references. 2061For compatibility with other ACPI implementations, these references are 2062now illegal at the root level of the DSDT or SSDTs. Forward references 2063have always been illegal within control methods. This change should not 2064affect existing ASL/AML code because of the fact that these references 2065have always been illegal in the other ACPI implementation. 2066 2067iASL: Added error messages for the case where a table OEM ID and OEM 2068TABLE ID strings are longer than the ACPI-defined length. Previously, 2069these strings were simply silently truncated. 2070 2071iASL: Enhanced the -tc option (which creates an AML hex file in C, 2072suitable for import into a firmware project): 2073 1) Create a unique name for the table, to simplify use of multiple 2074SSDTs. 2075 2) Add a protection #ifdef in the file, similar to a .h header file. 2076With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, 2077evan.lloyd@arm.com 2078 2079AcpiExec: Added a new option, -df, to disable the local fault handler. 2080This is useful during debugging, where it may be desired to drop into a 2081debugger on a fault. 2082 2083---------------------------------------- 208413 March 2018. Summary of changes for version 20180313: 2085 2086 20871) ACPICA kernel-resident subsystem: 2088 2089Implemented various improvements to the GPE support: 2090 20911) Dispatch all active GPEs at initialization time so that no GPEs are 2092lost. 20932) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled 2094before devices are enumerated. 20953) Don't unconditionally clear ACPI IRQs during suspend/resume, so that 2096IRQs are not lost. 20974) Add parallel GPE handling to eliminate the possibility of dispatching 2098the same GPE twice. 20995) Dispatch any pending GPEs after enabling for the first time. 2100 2101AcpiGetObjectInfo - removed support for the _STA method. This was causing 2102problems on some platforms. 2103 2104Added a new _OSI string, "Windows 2017.2". 2105 2106Cleaned up and simplified the module-level code support. These changes 2107are in preparation for the eventual removal of the legacy MLC support 2108(deferred execution), replaced by the new MLC architecture which executes 2109the MLC as a table is loaded (DSDT/SSDTs). 2110 2111Changed a compile-time option to a runtime option. Changes the option to 2112ignore ACPI table load-time package resolution errors into a runtime 2113option. Used only for platforms that generate many AE_NOT_FOUND errors 2114during boot. AcpiGbl_IgnorePackageResolutionErrors. 2115 2116Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some 2117ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid 2118compilation errors from unused variables (seen with some compilers). 2119 2120 21212) iASL Compiler/Disassembler and Tools: 2122 2123ASLTS: parallelized execution in order to achieve an (approximately) 2X 2124performance increase. 2125 2126ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves 2127error reporting. 2128 2129---------------------------------------- 213009 February 2018. Summary of changes for version 20180209: 2131 2132 21331) ACPICA kernel-resident subsystem: 2134 2135Completed the final integration of the recent changes to Package Object 2136handling and the module-level AML code support. This allows forward 2137references from individual package elements when the package object is 2138declared from within module-level code blocks. Provides compatibility 2139with other ACPI implementations. 2140 2141The new architecture for the AML module-level code has been completed and 2142is now the default for the ACPICA code. This new architecture executes 2143the module-level code in-line as the ACPI table is loaded/parsed instead 2144of the previous architecture which deferred this code until after the 2145table was fully loaded. This solves some ASL code ordering issues and 2146provides compatibility with other ACPI implementations. At this time, 2147there is an option to fallback to the earlier architecture, but this 2148support is deprecated and is planned to be completely removed later this 2149year. 2150 2151Added a compile-time option to ignore AE_NOT_FOUND exceptions during 2152resolution of named reference elements within Package objects. Although 2153this is potentially a serious problem, it can generate a lot of 2154noise/errors on platforms whose firmware carries around a bunch of unused 2155Package objects. To disable these errors, define 2156ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All 2157errors are always reported for ACPICA applications such as AcpiExec. 2158 2159Fixed a regression related to the explicit type-conversion AML operators 2160(ToXXXX). The regression was introduced early in 2017 but was not seen 2161until recently because these operators are not fully supported by other 2162ACPI implementations and are thus rarely used by firmware developers. The 2163operators are defined by the ACPI specification to not implement the 2164"implicit result object conversion". The regression incorrectly 2165introduced this object conversion for the following explicit conversion 2166operators: 2167 ToInteger 2168 ToString 2169 ToBuffer 2170 ToDecimalString 2171 ToHexString 2172 ToBCD 2173 FromBCD 2174 2175 21762) iASL Compiler/Disassembler and Tools: 2177 2178iASL: Fixed a problem with the compiler constant folding feature as 2179related to the ToXXXX explicit conversion operators. These operators do 2180not support the "implicit result object conversion" by definition. Thus, 2181ASL expressions that use these operators cannot be folded to a simple 2182Store operator because Store implements the implicit conversion. This 2183change uses the CopyObject operator for the ToXXXX operator folding 2184instead. CopyObject is defined to not implement implicit result 2185conversions and is thus appropriate for folding the ToXXXX operators. 2186 2187iASL: Changed the severity of an error condition to a simple warning for 2188the case where a symbol is declared both locally and as an external 2189symbol. This accommodates existing ASL code. 2190 2191AcpiExec: The -ep option to enable the new architecture for module-level 2192code has been removed. It is replaced by the -dp option which instead has 2193the opposite effect: it disables the new architecture (the default) and 2194enables the legacy architecture. When the legacy code is removed in the 2195future, the -dp option will be removed also. 2196 2197---------------------------------------- 219805 January 2018. Summary of changes for version 20180105: 2199 2200 22011) ACPICA kernel-resident subsystem: 2202 2203Updated all copyrights to 2018. This affects all source code modules. 2204 2205Fixed a possible build error caused by an unresolved reference to the 2206AcpiUtSafeStrncpy function. 2207 2208Removed NULL pointer arithmetic in the various pointer manipulation 2209macros. All "(void *) NULL" constructs are converted to "(void *) 0". 2210This eliminates warnings/errors in newer C compilers. Jung-uk Kim. 2211 2212Added support for A32 ABI compilation, which uses the ILP32 model. Anuj 2213Mittal. 2214 2215 22162) iASL Compiler/Disassembler and Tools: 2217 2218ASLTS: Updated all copyrights to 2018. 2219 2220Tools: Updated all signon copyrights to 2018. 2221 2222AcpiXtract: Fixed a regression related to ACPI table signatures where the 2223signature was truncated to 3 characters (instead of 4). 2224 2225AcpiExec: Restore the original terminal mode after the use of the -v and 2226-vd options. 2227 2228ASLTS: Deployed the iASL __METHOD__ macro across the test suite. 2229 2230---------------------------------------- 223114 December 2017. Summary of changes for version 20171214: 2232 2233 22341) ACPICA kernel-resident subsystem: 2235 2236Fixed a regression in the external (public) AcpiEvaluateObjectTyped 2237interface where the optional "pathname" argument had inadvertently become 2238a required argument returning an error if omitted (NULL pointer 2239argument). 2240 2241Fixed two possible memory leaks related to the recently developed "late 2242resolution" of reference objects within ASL Package Object definitions. 2243 2244Added two recently defined _OSI strings: "Windows 2016" and "Windows 22452017". Mario Limonciello. 2246 2247Implemented and deployed a safer version of the C library function 2248strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the 2249creation of unterminated strings as a possible result of a standard 2250strncpy. 2251 2252Cleaned up and restructured the global variable file (acglobal.h). There 2253are many changes, but no functional changes. 2254 2255 22562) iASL Compiler/Disassembler and Tools: 2257 2258iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the 2259optional OemData field at the end of the table was incorrectly required 2260for proper compilation. It is now correctly an optional field. 2261 2262ASLTS: The entire suite was converted from standard ASL to the ASL+ 2263language, using the ASL-to-ASL+ converter which is integrated into the 2264iASL compiler. A binary compare of all output files has verified the 2265correctness of the conversion. 2266 2267iASL: Fixed the source code build for platforms where "char" is unsigned. 2268This affected the iASL lexer only. Jung-uk Kim. 2269 2270---------------------------------------- 227110 November 2017. Summary of changes for version 20171110: 2272 2273 22741) ACPICA kernel-resident subsystem: 2275 2276This release implements full support for ACPI 6.2A: 2277 NFIT - Added a new subtable, "Platform Capabilities Structure" 2278No other changes to ACPICA were required, since ACPI 6.2A is primarily an 2279errata release of the specification. 2280 2281Other ACPI table changes: 2282 IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo 2283 PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy 2284Linton 2285 2286Utilities: Modified the string/integer conversion functions to use 2287internal 64-bit divide support instead of a native divide. On 32-bit 2288platforms, a 64-bit divide typically requires a library function which 2289may not be present in the build (kernel or otherwise). 2290 2291Implemented a targeted error message for timeouts returned from the 2292Embedded Controller device driver. This is seen frequently enough to 2293special-case an AE_TIME returned from an EC operation region access: 2294 "Timeout from EC hardware or EC device driver" 2295 2296Changed the "ACPI Exception" message prefix to "ACPI Error" so that all 2297runtime error messages have the identical prefix. 2298 2299 23002) iASL Compiler/Disassembler and Tools: 2301 2302AcpiXtract: Fixed a problem with table header detection within the 2303acpidump file. Processing a table could be ended early if a 0x40 (@) 2304appears in the original binary table, resulting in the @ symbol appearing 2305in the decoded ASCII field at the end of the acpidump text line. The 2306symbol caused acpixtract to incorrectly think it had reached the end of 2307the current table and the beginning of a new table. 2308 2309AcpiXtract: Added an option (-f) to ignore some errors during table 2310extraction. This initial implementation ignores non-ASCII and non- 2311printable characters found in the acpidump text file. 2312 2313TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics 2314for ASLTS. This feature is used to track memory allocations from 2315different memory caches within the ACPICA code. At the end of an ASLTS 2316run, these memory statistics are recorded and stored in a log file. 2317 2318Debugger (user-space version): Implemented a simple "Background" command. 2319Creates a new thread to execute a control method in the background, while 2320control returns to the debugger prompt to allow additional commands. 2321 Syntax: Background <Namepath> [Arguments] 2322 2323---------------------------------------- 232429 September 2017. Summary of changes for version 20170929: 2325 2326 23271) ACPICA kernel-resident subsystem: 2328 2329Redesigned and implemented an improved ASL While() loop timeout 2330mechanism. This mechanism is used to prevent infinite loops in the kernel 2331AML interpreter caused by either non-responsive hardware or incorrect AML 2332code. The new implementation uses AcpiOsGetTimer instead of a simple 2333maximum loop count, and is thus more accurate and constant across 2334different machines. The default timeout is currently 30 seconds, but this 2335may be adjusted later. 2336 2337Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to 2338better reflect the new implementation of the loop timeout mechanism. 2339 2340Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support 2341and to fix an off-by-one error. Jung-uk Kim. 2342 2343Fixed an EFI build problem by updating the makefiles to for a new file 2344that was added, utstrsuppt.c 2345 2346 23472) iASL Compiler/Disassembler and Tools: 2348 2349Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This 2350includes support in the table disassembler, compiler, and template 2351generator. 2352 2353iASL: Added an exception for an illegal type of recursive method 2354invocation. If a method creates named objects, the first recursive call 2355will fail at runtime. This change adds an error detection at compile time 2356to catch the problem up front. Note: Marking such a method as 2357"serialized" will not help with this problem, because the same thread can 2358acquire the method mutex more than once. Example compiler and runtime 2359output: 2360 2361 Method (MTH1) 2362 { 2363 Name (INT1, 1) 2364 MTH1 () 2365 } 2366 2367 dsdt.asl 22: MTH1 () 2368 Error 6152 - ^ Illegal recursive call to method 2369 that creates named objects (MTH1) 2370 2371Previous runtime exception: 2372 ACPI Error: [INT1] Namespace lookup failure, 2373 AE_ALREADY_EXISTS (20170831/dswload2-465) 2374 2375iASL: Updated support for External() opcodes to improve namespace 2376management and error detection. These changes are related to issues seen 2377with multiple-segment namespace pathnames within External declarations, 2378such as below: 2379 2380 External(\_SB.PCI0.GFX0, DeviceObj) 2381 External(\_SB.PCI0.GFX0.ALSI) 2382 2383iASL: Implemented support for multi-line error/warning messages. This 2384enables more detailed and helpful error messages as below, from the 2385initial deployment for the duplicate names error: 2386 2387 DSDT.iiii 1692: Device(PEG2) { 2388 Error 6074 - ^ Name already exists in scope 2389(PEG2) 2390 2391 Original name creation/declaration below: 2392 DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) 2393 2394AcpiXtract: Added additional flexibility to support differing input hex 2395dump formats. Specifically, hex dumps that contain partial disassembly 2396and/or comments within the ACPI table data definition. There exist some 2397dump utilities seen in the field that create this type of hex dump (such 2398as Simics). For example: 2399 2400 DSDT @ 0xdfffd0c0 (10999 bytes) 2401 Signature DSDT 2402 Length 10999 2403 Revision 1 2404 Checksum 0xf3 (Ok) 2405 OEM_ID BXPC 2406 OEM_table_id BXDSDT 2407 OEM_revision 1 2408 Creator_id 1280593481 2409 Creator_revision 537399345 2410 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 2411 ... 2412 2af0: 5f 4c 30 46 00 a4 01 2413 2414Test suite: Miscellaneous changes/fixes: 2415 More cleanup and simplification of makefiles 2416 Continue compilation of test cases after a compile failure 2417 Do not perform binary compare unless both files actually exist 2418 2419iASL: Performed some code/module restructuring. Moved all memory 2420allocation functions to new modules. Two new files, aslallocate.c and 2421aslcache.c 2422 2423---------------------------------------- 242431 August 2017. Summary of changes for version 20170831: 2425 2426 24271) ACPICA kernel-resident subsystem: 2428 2429Implemented internal support for full 64-bit addresses that appear in all 2430Generic Address Structure (GAS) structures. Previously, only the lower 32 2431bits were used. Affects the use of GAS structures in the FADT and other 2432tables, as well as the GAS structures passed to the AcpiRead and 2433AcpiWrite public external interfaces that are used by drivers. Lv Zheng. 2434 2435Added header support for the PDTT ACPI table (Processor Debug Trigger 2436Table). Full support in the iASL Data Table Compiler and disassembler is 2437forthcoming. 2438 2439 24402) iASL Compiler/Disassembler and Tools: 2441 2442iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor 2443Properties Topology Table) where a flag bit was specified in the wrong 2444bit position ("Line Size Valid", bit 6). 2445 2446iASL: Implemented support for Octal integer constants as defined by the 2447ASL language grammar, per the ACPI specification. Any integer constant 2448that starts with a zero is an octal constant. For example, 2449 Store (037777, Local0) /* Octal constant */ 2450 Store (0x3FFF, Local0) /* Hex equivalent */ 2451 Store (16383, Local0) /* Decimal equivalent */ 2452 2453iASL: Improved overflow detection for 64-bit string conversions during 2454compilation of integer constants. "Overflow" in this case means a string 2455that represents an integer that is too large to fit into a 64-bit value. 2456Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to 2457the low-order 32 bits with a warning, as previously implemented. Several 2458new exceptions are defined that indicate a 64-bit overflow, as well as 2459the base (radix) that was used during the attempted conversion. Examples: 2460 Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW 2461 Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW 2462 Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW 2463 2464iASL: Added a warning for the case where a ResourceTemplate is declared 2465with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In 2466this case, the resulting template is created with a single END_TAG 2467descriptor, which is essentially useless. 2468 2469iASL: Expanded the -vw option (ignore specific warnings/remarks) to 2470include compilation error codes as well. 2471 2472---------------------------------------- 247328 July 2017. Summary of changes for version 20170728: 2474 2475 24761) ACPICA kernel-resident subsystem: 2477 2478Fixed a regression seen with small resource descriptors that could cause 2479an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. 2480 2481AML interpreter: Implemented a new feature that allows forward references 2482from individual named references within package objects that are 2483contained within blocks of "module-level code". This provides 2484compatibility with other ACPI implementations and supports existing 2485firmware that depends on this feature. Example: 2486 2487 Name (ABCD, 1) 2488 If (ABCD) /* An If() at module-level */ 2489 { 2490 Name (PKG1, Package() 2491 { 2492 INT1 /* Forward reference to object INT1 2493*/ 2494 }) 2495 Name (INT1, 0x1234) 2496 } 2497 2498AML Interpreter: Fixed a problem with the Alias() operator where aliases 2499to some ASL objects were not handled properly. Objects affected are: 2500Mutex, Event, and OperationRegion. 2501 2502AML Debugger: Enhanced to properly handle AML Alias objects. These 2503objects have one level of indirection which was not fully supported by 2504the debugger. 2505 2506Table Manager: Added support to detect and ignore duplicate SSDTs within 2507the XSDT/RSDT. This error in the XSDT has been seen in the field. 2508 2509EFI and EDK2 support: 2510 Enabled /WX flag for MSVC builds 2511 Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer 2512 Added local support for 64-bit multiply and shift operations 2513 Added support to compile acpidump.efi on Windows 2514 Added OSL function stubs for interfaces not used under EFI 2515 2516Added additional support for the _DMA predefined name. _DMA returns a 2517buffer containing a resource template. This change add support within the 2518resource manager (AcpiWalkResourceBuffer) to walk and parse this list of 2519resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 2520 2521 25222) iASL Compiler/Disassembler and Tools: 2523 2524iASL: Fixed a problem where the internal input line buffer(s) could 2525overflow if there are very long lines in the input ASL source code file. 2526Implemented buffer management that automatically increases the size of 2527the buffers as necessary. 2528 2529iASL: Added an option (-vx) to "expect" particular remarks, warnings and 2530errors. If the specified exception is not raised during compilation, the 2531compiler emits an error. This is intended to support the ASL test suite, 2532but may be useful in other contexts. 2533 2534iASL: Implemented a new predefined macro, __METHOD__, which returns a 2535string containing the name of the current control method that is being 2536compiled. 2537 2538iASL: Implemented debugger and table compiler support for the SDEI ACPI 2539table (Software Delegated Exception Interface). James Morse 2540<james.morse@arm.com> 2541 2542Unix/Linux makefiles: Added an option to disable compile optimizations. 2543The disable occurs when the NOOPT flag is set to TRUE. 2544theracermaster@gmail.com 2545 2546Acpidump: Added support for multiple DSDT and FACS tables. This can occur 2547when there are different tables for 32-bit versus 64-bit. 2548 2549Enhanced error reporting for the ASL test suite (ASLTS) by removing 2550unnecessary/verbose text, and emit the actual line number where an error 2551has occurred. These changes are intended to improve the usefulness of the 2552test suite. 2553 2554---------------------------------------- 255529 June 2017. Summary of changes for version 20170629: 2556 2557 25581) ACPICA kernel-resident subsystem: 2559 2560Tables: Implemented a deferred ACPI table verification. This is useful 2561for operating systems where the tables cannot be verified in the early 2562initialization stage due to early memory mapping limitations on some 2563architectures. Lv Zheng. 2564 2565Tables: Removed the signature validation for dynamically loaded tables. 2566Provides compatibility with other ACPI implementations. Previously, only 2567SSDT tables were allowed, as per the ACPI specification. Now, any table 2568signature can be used via the Load() operator. Lv Zheng. 2569 2570Tables: Fixed several mutex issues that could cause errors during table 2571acquisition. Lv Zheng. 2572 2573Tables: Fixed a problem where an ACPI warning could be generated if a 2574null pointer was passed to the AcpiPutTable interface. Lv Zheng. 2575 2576Tables: Added a mechanism to handle imbalances for the AcpiGetTable and 2577AcpiPutTable interfaces. This applies to the "late stage" table loading 2578when the use of AcpiPutTable is no longer required (since the system 2579memory manager is fully running and available). Lv Zheng. 2580 2581Fixed/Reverted a regression during processing of resource descriptors 2582that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG 2583exception in this case. 2584 2585Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the 2586I/O Remapping specification. Robin Murphy <robin.murphy@arm.com> 2587 2588Interpreter: Fixed a possible fault if an Alias operator with an invalid 2589or duplicate target is encountered during Alias creation in 2590AcpiExCreateAlias. Alex James <theracermaster@gmail.com> 2591 2592Added an option to use designated initializers for function pointers. 2593Kees Cook <keescook@google.com> 2594 2595 25962) iASL Compiler/Disassembler and Tools: 2597 2598iASL: Allow compilation of External declarations with target pathnames 2599that refer to existing named objects within the table. Erik Schmauss. 2600 2601iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a 2602FieldUnit name also is declared via External in the same table. Erik 2603Schmauss. 2604 2605iASL: Allow existing scope names within pathnames used in External 2606statements. For example: 2607 External (ABCD.EFGH) // ABCD exists, but EFGH is truly external 2608 Device (ABCD) 2609 2610iASL: IORT ACPI table: Implemented changes required to decode the new 2611Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table 2612compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> 2613 2614Disassembler: Don't abort disassembly on errors from External() 2615statements. Erik Schmauss. 2616 2617Disassembler: fixed a possible fault when one of the Create*Field 2618operators references a Resource Template. ACPICA Bugzilla 1396. 2619 2620iASL: In the source code, resolved some naming inconsistences across the 2621parsing support. Fixes confusion between "Parse Op" and "Parse Node". 2622Adds a new file, aslparseop.c 2623 2624---------------------------------------- 262531 May 2017. Summary of changes for version 20170531: 2626 2627 26280) ACPI 6.2 support: 2629 2630The ACPI specification version 6.2 has been released and is available at 2631http://uefi.org/specifications 2632 2633This version of ACPICA fully supports the ACPI 6.2 specification. Changes 2634are summarized below. 2635 2636New ACPI tables (Table Compiler/Disassembler/Templates): 2637 HMAT (Heterogeneous Memory Attributes Table) 2638 WSMT (Windows SMM Security Mitigation Table) 2639 PPTT (Processor Properties Topology Table) 2640 2641New subtables for existing ACPI tables: 2642 HEST (New subtable, Arch-deferred machine check) 2643 SRAT (New subtable, Arch-specific affinity structure) 2644 PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) 2645 2646Simple updates for existing ACPI tables: 2647 BGRT (two new flag bits) 2648 HEST (New bit defined for several subtables, GHES_ASSIST) 2649 2650New Resource Descriptors and Resource macros (Compiler/Disassembler): 2651 PinConfig() 2652 PinFunction() 2653 PinGroup() 2654 PinGroupConfig() 2655 PinGroupFunction() 2656 New type for hardware error notification (section 18.3.2.9) 2657 2658New predefined names/methods (Compiler/Interpreter): 2659 _HMA (Heterogeneous Memory Attributes) 2660 _LSI (Label Storage Information) 2661 _LSR (Label Storage Read) 2662 _LSW (Label Storage Write) 2663 2664ASL grammar/macro changes (Compiler): 2665 For() ASL macro, implemented with the AML while operator 2666 Extensions to Concatenate operator 2667 Support for multiple definition blocks in same ASL file 2668 Clarification for Buffer operator 2669 Allow executable AML code underneath all scopes (Devices, etc.) 2670 Clarification/change for the _OSI return value 2671 ASL grammar update for reference operators 2672 Allow a zero-length string for AML filename in DefinitionBlock 2673 2674Miscellaneous: 2675 New device object notification value 2676 Remove a notify value (0x0C) for graceful shutdown 2677 New UUIDs for processor/cache properties and 2678 physical package property 2679 New _HID, ACPI0014 (Wireless Power Calibration Device) 2680 2681 26821) ACPICA kernel-resident subsystem: 2683 2684Added support to disable ACPI events on hardware-reduced platforms. 2685Eliminates error messages of the form "Could not enable fixed event". Lv 2686Zheng 2687 2688Fixed a problem using Device/Thermal objects with the ObjectType and 2689DerefOf ASL operators. This support had not been fully/properly 2690implemented. 2691 2692Fixed a problem where if a Buffer object containing a resource template 2693was longer than the actual resource template, an error was generated -- 2694even though the AML is legal. This case has been seen in the field. 2695 2696Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. 2697The values for DUAL_PIC and MULTIPLE_APIC were reversed. 2698 2699Added header file changes for the TPM2 ACPI table. Update to new version 2700of the TCG specification. Adds a new TPM2 subtable for ARM SMC. 2701 2702Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. 2703These interfaces are intended to be used only in conjunction with the 2704predefined _DLM method (Device Lock Method). "This object appears in a 2705device scope when AML access to the device must be synchronized with the 2706OS environment". 2707 2708Example Code and Data Size: These are the sizes for the OS-independent 2709acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2710debug version of the code includes the debug output trace mechanism and 2711has a much larger code and data size. 2712 2713 Current Release: 2714 Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total 2715 Debug Version: 204.0K Code, 84.3K Data, 288.3K Total 2716 Previous Release: 2717 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 2718 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2719 2720 27212) iASL Compiler/Disassembler and Tools: 2722 2723iASL: Fixed a problem where an External() declaration could not refer to 2724a Field Unit. Erik Schmauss. 2725 2726Disassembler: Improved support for the Switch/Case operators. This 2727feature will disassemble AML code back to the original Switch operators 2728when possible, instead of an If..Else sequence. David Box 2729 2730iASL and disassembler: Improved the handling of multiple extraneous 2731parentheses for both ASL input and disassembled ASL output. 2732 2733Improved the behavior of the iASL compiler and disassembler to detect 2734improper use of external declarations 2735 2736Disassembler: Now aborts immediately upon detection of an unknown AML 2737opcode. The AML parser has no real way to recover from this, and can 2738result in the creation of an ill-formed parse tree that causes errors 2739later during the disassembly. 2740 2741All tools: Fixed a problem where the Unix application OSL did not handle 2742control-c correctly. For example, a control-c could incorrectly wake the 2743debugger. 2744 2745AcpiExec: Improved the Control-C handling and added a handler for 2746segmentation faults (SIGSEGV). Supports both Windows and Unix-like 2747environments. 2748 2749Reduced the verbosity of the generic unix makefiles. Previously, each 2750compilation displayed the full set of compiler options. This has been 2751eliminated as the options are easily inspected within the makefiles. Each 2752compilation now results in a single line of output. 2753 2754---------------------------------------- 275503 March 2017. Summary of changes for version 20170303: 2756 2757 27580) ACPICA licensing: 2759 2760The licensing information at the start of each source code module has 2761been updated. In addition to the Intel license, the dual GPLv2/BSD 2762license has been added for completeness. Now, a single version of the 2763source code should be suitable for all ACPICA customers. This is the 2764major change for this release since it affects all source code modules. 2765 2766 27671) ACPICA kernel-resident subsystem: 2768 2769Fixed two issues with the common asltypes.h header that could cause 2770problems in some environments: (Kim Jung-uk) 2771 Removed typedef for YY_BUFFER_STATE ? 2772 Fixes an error with earlier versions of Flex. 2773 Removed use of FILE typedef (which is only defined in stdio.h) 2774 2775 27762) iASL Compiler/Disassembler and Tools: 2777 2778Disassembler: fixed a regression introduced in 20170224. A fix for a 2779memory leak related to resource descriptor tags (names) could fault when 2780the disassembler was generated with 64-bit compilers. 2781 2782The ASLTS test suite has been updated to implement a new testing 2783architecture. During generation of the suite from ASL source, both the 2784ASL and ASL+ compilers are now validated, as well as the disassembler 2785itself (Erik Schmauss). The architecture executes as follows: 2786 2787 For every ASL source module: 2788 Compile (legacy ASL compilation) 2789 Disassemble the resulting AML to ASL+ source code 2790 Compile the new ASL+ module 2791 Perform a binary compare on the legacy AML and the new ASL+ AML 2792 The ASLTS suite then executes normally using the AML binaries. 2793 2794---------------------------------------- 279524 February 2017. Summary of changes for version 20170224: 2796 2797 27981) ACPICA kernel-resident subsystem: 2799 2800Interpreter: Fixed two issues with the control method return value auto- 2801repair feature, where an attempt to double-delete an internal object 2802could result in an ACPICA warning (for _CID repair and others). No fault 2803occurs, however, because the attempted deletion (actually a release to an 2804internal cache) is detected and ignored via object poisoning. 2805 2806Debugger: Fixed an AML interpreter mutex issue during the single stepping 2807of control methods. If certain debugger commands are executed during 2808stepping, a mutex acquire/release error could occur. Lv Zheng. 2809 2810Fixed some issues generating ACPICA with the Intel C compiler by 2811restoring the original behavior and compiler-specific include file in 2812acenv.h. Lv Zheng. 2813 2814Example Code and Data Size: These are the sizes for the OS-independent 2815acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2816debug version of the code includes the debug output trace mechanism and 2817has a much larger code and data size. 2818 2819 Current Release: 2820 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 2821 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2822 Previous Release: 2823 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2824 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2825 2826 28272) iASL Compiler/Disassembler and Tools: 2828 2829iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion 2830tool has been designed, implemented, and included in this release. The 2831key feature of this utility is that the original comments within the 2832input ASL file are preserved during the conversion process, and included 2833within the converted ASL+ file -- thus creating a transparent conversion 2834of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. 2835 2836 Usage: iasl -ca <ASL-filename> // Output is a .dsl file with 2837converted code 2838 2839iASL/Disassembler: Improved the detection and correct disassembly of 2840Switch/Case operators. This feature detects sequences of if/elseif/else 2841operators that originated from ASL Switch/Case/Default operators and 2842emits the original operators. David Box. 2843 2844iASL: Improved the IORT ACPI table support in the following areas. Lv 2845Zheng: 2846 Clear MappingOffset if the MappingCount is zero. 2847 Fix the disassembly of the SMMU GSU interrupt offset. 2848 Update the template file for the IORT table. 2849 2850Disassembler: Enhanced the detection and disassembly of resource 2851template/descriptor within a Buffer object. An EndTag descriptor is now 2852required to have a zero second byte, since all known ASL compilers emit 2853this. This helps eliminate incorrect decisions when a buffer is 2854disassembled (false positives on resource templates). 2855 2856---------------------------------------- 285719 January 2017. Summary of changes for version 20170119: 2858 2859 28601) General ACPICA software: 2861 2862Entire source code base: Added the 2017 copyright to all source code 2863legal/licensing module headers and utility/tool signons. This includes 2864the standard Linux dual-license header. This affects virtually every file 2865in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 2866the ACPICA test suite. 2867 2868 28692) iASL Compiler/Disassembler and Tools: 2870 2871iASL: Removed/fixed an inadvertent remark when a method argument 2872containing a reference is used as a target operand within the method (and 2873never used as a simple argument), as in the example below. Jeffrey Hugo. 2874 2875 dsdt.asl 1507: Store(0x1, Arg0) 2876 Remark 2146 - ^ Method Argument is never used (Arg0) 2877 2878All tools: Removed the bit width of the compiler that generated the tool 2879from the common signon for all user space tools. This proved to be 2880confusing and unnecessary. This includes similar removal of HARDWARE_NAME 2881from the generic makefiles (Thomas Petazzoni). Example below. 2882 2883 Old: 2884 ASL+ Optimizing Compiler version 20170119-32 2885 ASL+ Optimizing Compiler version 20170119-64 2886 2887 New: 2888 ASL+ Optimizing Compiler version 20170119 2889 2890---------------------------------------- 289122 December 2016. Summary of changes for version 20161222: 2892 2893 28941) ACPICA kernel-resident subsystem: 2895 2896AML Debugger: Implemented a new mechanism to simplify and enhance 2897debugger integration into all environments, including kernel debuggers 2898and user-space utilities, as well as remote debug services. This 2899mechanism essentially consists of new OSL interfaces to support debugger 2900initialization/termination, as well as wait/notify interfaces to perform 2901the debugger handshake with the host. Lv Zheng. 2902 2903 New OSL interfaces: 2904 AcpiOsInitializeDebugger (void) 2905 AcpiOsTerminateDebugger (void) 2906 AcpiOsWaitCommandReady (void) 2907 AcpiOsNotifyCommandComplete (void) 2908 2909 New OS services layer: 2910 osgendbg.c -- Example implementation, and used for AcpiExec 2911 2912Update for Generic Address Space (GAS) support: Although the AccessWidth 2913and/or BitOffset fields of the GAS are not often used, this change now 2914fully supports these fields. This affects the internal support for FADT 2915registers, registers in other ACPI data tables, and the AcpiRead and 2916AcpiWrite public interfaces. Lv Zheng. 2917 2918Sleep support: In order to simplify integration of ACPI sleep for the 2919various host operating systems, a new OSL interface has been introduced. 2920AcpiOsEnterSleep allows the host to perform any required operations 2921before the final write to the sleep control register(s) is performed by 2922ACPICA. Lv Zheng. 2923 2924 New OSL interface: 2925 AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) 2926 2927 Called from these internal interfaces: 2928 AcpiHwLegacySleep 2929 AcpiHwExtendedSleep 2930 2931EFI support: Added a very small EFI/ACPICA example application. Provides 2932a simple demo for EFI integration, as well as assisting with resolution 2933of issues related to customer ACPICA/EFI integration. Lv Zheng. See: 2934 2935 source/tools/efihello/efihello.c 2936 2937Local C library: Implemented several new functions to enhance ACPICA 2938portability, for environments where these clib functions are not 2939available (such as EFI). Lv Zheng: 2940 putchar 2941 getchar 2942 strpbrk 2943 strtok 2944 memmove 2945 2946Fixed a regression where occasionally a valid resource descriptor was 2947incorrectly detected as invalid at runtime, and a 2948AE_AML_NO_RESOURCE_END_TAG was returned. 2949 2950Fixed a problem with the recently implemented support that enables 2951control method invocations as Target operands to many ASL operators. 2952Warnings of this form: "Needed type [Reference], found [Processor]" were 2953seen at runtime for some method invocations. 2954 2955Example Code and Data Size: These are the sizes for the OS-independent 2956acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2957debug version of the code includes the debug output trace mechanism and 2958has a much larger code and data size. 2959 2960 Current Release: 2961 Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total 2962 Debug Version: 201.7K Code, 82.7K Data, 284.4K Total 2963 Previous Release: 2964 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 2965 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2966 2967 29682) iASL Compiler/Disassembler and Tools: 2969 2970Disassembler: Enhanced output by adding the capability to detect and 2971disassemble ASL Switch/Case statements back to the original ASL source 2972code instead of if/else blocks. David Box. 2973 2974AcpiHelp: Split a large file into separate files based upon 2975functionality/purpose. New files are: 2976 ahaml.c 2977 ahasl.c 2978 2979---------------------------------------- 298017 November 2016. Summary of changes for version 20161117: 2981 2982 29831) ACPICA kernel-resident subsystem: 2984 2985Table Manager: Fixed a regression introduced in 20160729, "FADT support 2986cleanup". This was an attempt to remove all references in the source to 2987the FADT version 2, which never was a legal version number. It was 2988skipped because it was an early version of 64-bit support that was 2989eventually abandoned for the current 64-bit support. 2990 2991Interpreter: Fixed a problem where runtime implicit conversion was 2992incorrectly disabled for the ASL operators below. This brings the 2993behavior into compliance with the ACPI specification: 2994 FromBCD 2995 ToBCD 2996 ToDecimalString 2997 ToHexString 2998 ToInteger 2999 ToBuffer 3000 3001Table Manager: Added a new public interface, AcpiPutTable, used to 3002release and free an ACPI table returned by AcpiGetTable and related 3003interfaces. Lv Zheng. 3004 3005Example Code and Data Size: These are the sizes for the OS-independent 3006acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3007debug version of the code includes the debug output trace mechanism and 3008has a much larger code and data size. 3009 3010 Current Release: 3011 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 3012 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 3013 Previous Release: 3014 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 3015 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 3016 3017 30182) iASL Compiler/Disassembler and Tools: 3019 3020Disassembler: Fixed a regression for disassembly of Resource Template. 3021Detection of templates in the AML stream missed some types of templates. 3022 3023iASL: Fixed a problem where an Access Size error was returned for the PCC 3024address space when the AccessSize of the GAS register is greater than a 3025DWORD. Hoan Tran. 3026 3027iASL: Implemented several grammar changes for the operators below. These 3028changes are slated for the next version of the ACPI specification: 3029 RefOf - Disallow method invocation as an operand 3030 CondRefOf - Disallow method invocation as an operand 3031 DerefOf - Disallow operands that use the result from operators 3032that 3033 do not return a reference (Changed TermArg to 3034SuperName). 3035 3036iASL: Control method invocations are now allowed for Target operands, as 3037per the ACPI specification. Removed error for using a control method 3038invocation as a Target operand. 3039 3040Disassembler: Improved detection of Resource Templates, Unicode, and 3041Strings within Buffer objects. These subtypes do not contain a specific 3042opcode to indicate the originating ASL code, and they must be detected by 3043other means within the disassembler. 3044 3045iASL: Implemented an optimization improvement for 32-bit ACPI tables 3046(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 3047only after 64-bit to 32-bit truncation. A truncation warning message is 3048still emitted, however. 3049 3050AcpiXtract: Implemented handling for both types of line terminators (LF 3051or CR/LF) so that it can accept AcpiDump output files from any system. 3052Peter Wu. 3053 3054AcpiBin: Added two new options for comparing AML files: 3055 -a: compare and display ALL mismatches 3056 -o: start compare at this offset into the second file 3057 3058---------------------------------------- 305930 September 2016. Summary of changes for version 20160930: 3060 3061 30621) ACPICA kernel-resident subsystem: 3063 3064Fixed a regression in the internal AcpiTbFindTable function where a non 3065AE_OK exception could inadvertently be returned even if the function did 3066not fail. This problem affects the following operators: 3067 DataTableRegion 3068 LoadTable 3069 3070Fixed a regression in the LoadTable operator where a load to any 3071namespace location other than the root no longer worked properly. 3072 3073Increased the maximum loop count value that will result in the 3074AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 3075prevent infinite loops within the AML interpreter and thus the host OS 3076kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 30771,048,575). 3078 3079Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 3080acpixf.h file. This allows hosts to easily configure the maximum loop 3081count at runtime. 3082 3083Removed an illegal character in the strtoul64.c file. This character 3084caused errors with some C compilers. 3085 3086Example Code and Data Size: These are the sizes for the OS-independent 3087acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3088debug version of the code includes the debug output trace mechanism and 3089has a much larger code and data size. 3090 3091 Current Release: 3092 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 3093 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 3094 Previous Release: 3095 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 3096 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 3097 3098 30992) iASL Compiler/Disassembler and Tools: 3100 3101Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 3102the simpler ASL ElseIf keyword. During the conversion, a trailing If 3103block could be lost and missing from the disassembled output. 3104 3105iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 3106the missing rule caused a parse error when using the Index operator as an 3107operand to ObjectType. This construct now compiles properly. Example: 3108 ObjectType(PKG1[4]). 3109 3110iASL: Correctly handle unresolved symbols in the hardware map file (-lm 3111option). Previously, unresolved symbols could cause a protection fault. 3112Such symbols are now marked as unresolved in the map file. 3113 3114iASL: Implemented support to allow control method invocations as an 3115operand to the ASL DeRefOf operator. Example: 3116 DeRefOf(MTH1(Local0)) 3117 3118Disassembler: Improved support for the ToPLD ASL macro. Detection of a 3119possible _PLD buffer now includes examination of both the normal buffer 3120length (16 or 20) as well as the surrounding AML package length. 3121 3122Disassembler: Fixed a problem with the decoding of complex expressions 3123within the Divide operator for ASL+. For the case where both the quotient 3124and remainder targets are specified, the entire statement cannot be 3125disassembled. Previously, the output incorrectly contained a mix of ASL- 3126and ASL+ operators. This mixed statement causes a syntax error when 3127compiled. Example: 3128 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 3129disassembled to: 3130 Divide (INT1 + 6, 128, RSLT, QUOT) 3131 3132iASL/Tools: Added support to process AML and non-AML ACPI tables 3133consistently. For the disassembler and AcpiExec, allow all types of ACPI 3134tables (AML and data tables). For the iASL -e option, allow only AML 3135tables (DSDT/SSDT). 3136 3137---------------------------------------- 313831 August 2016. Summary of changes for version 20160831: 3139 3140 31411) ACPICA kernel-resident subsystem: 3142 3143Improve support for the so-called "module-level code", which is defined 3144to be math, logical and control AML opcodes that appear outside of any 3145control method. This change improves the support by adding more opcodes 3146that can be executed in the manner. Some other issues have been solved, 3147and the ASL grammar changes to support such code under all scope 3148operators (Device, etc.) are complete. Lv Zheng. 3149 3150UEFI support: these OSL functions have been implemented. This is an 3151additional step toward supporting the AcpiExec utility natively (with 3152full hardware access) under UEFI. Marcelo Ferreira. 3153 AcpiOsReadPciConfiguration 3154 AcpiOsWritePciConfiguration 3155 3156Fixed a possible mutex error during control method auto-serialization. Lv 3157Zheng. 3158 3159Updated support for the Generic Address Structure by fully implementing 3160all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 3161Zheng. 3162 3163Updated the return value for the internal _OSI method. Instead of 31640xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 3165for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 3166implementations, and will be reflected and clarified in the next version 3167of the ACPI specification. 3168 3169Implemented two new table events that can be passed to an ACPICA table 3170handler. These events are used to indicate a table installation or 3171uninstallation. These events are used in addition to existed table load 3172and unload events. Lv Zheng. 3173 3174Implemented a cleanup for all internal string-to-integer conversions. 3175Consolidate multiple versions of this functionality and limit possible 3176bases to either 10 or 16 to simplify the code. Adds a new file, 3177utstrtoul64. 3178 3179Cleanup the inclusion order of the various compiler-specific headers. 3180This simplifies build configuration management. The compiler-specific 3181headers are now split out from the host-specific headers. Lv Zheng. 3182 3183Example Code and Data Size: These are the sizes for the OS-independent 3184acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3185debug version of the code includes the debug output trace mechanism and 3186has a much larger code and data size. 3187 3188 Current Release: 3189 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 3190 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 3191 3192 31932) iASL Compiler/Disassembler and Tools: 3194 3195iASL/AcpiExec: Added a command line option to display the build date/time 3196of the tool (-vd). This can be useful to verify that the correct version 3197of the tools are being used. 3198 3199AML Debugger: Implemented a new subcommand ("execute predef") to execute 3200all predefined control methods and names within the current namespace. 3201This can be useful for debugging problems with ACPI tables and the ACPI 3202namespace. 3203 3204---------------------------------------- 320529 July 2016. Summary of changes for version 20160729: 3206 3207 32081) ACPICA kernel-resident subsystem: 3209 3210Implemented basic UEFI support for the various ACPICA tools. This 3211includes: 32121) An OSL to implement the various AcpiOs* interfaces on UEFI. 32132) Support to obtain the ACPI tables on UEFI. 32143) Local implementation of required C library functions not available on 3215UEFI. 32164) A front-end (main) function for the tools for UEFI-related 3217initialization. 3218 3219The initial deployment of this support is the AcpiDump utility executing 3220as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 3221Current environments supported are Linux/Unix. MSVC generation is not 3222supported at this time. See the generate/efi/README file for build 3223instructions. Lv Zheng. 3224 3225Future plans include porting the AcpiExec utility to execute natively on 3226the platform with I/O and memory access. This will allow viewing/dump of 3227the platform namespace and native execution of ACPI control methods that 3228access the actual hardware. To fully implement this support, the OSL 3229functions below must be implemented with UEFI interfaces. Any community 3230help in the implementation of these functions would be appreciated: 3231 AcpiOsReadPort 3232 AcpiOsWritePort 3233 AcpiOsReadMemory 3234 AcpiOsWriteMemory 3235 AcpiOsReadPciConfiguration 3236 AcpiOsWritePciConfiguration 3237 3238Restructured and standardized the C library configuration for ACPICA, 3239resulting in the various configuration options below. This includes a 3240global restructuring of the compiler-dependent and platform-dependent 3241include files. These changes may affect the existing platform-dependent 3242configuration files on some hosts. Lv Zheng. 3243 3244The current C library configuration options appear below. For any issues, 3245it may be helpful to examine the existing compiler-dependent and 3246platform-dependent files as examples. Lv Zheng. 3247 32481) Linux kernel: 3249 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 3250library. 3251 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 32522) Unix/Windows/BSD applications: 3253 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 3254library. 3255 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 32563) UEFI applications: 3257 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 3258library. 3259 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 32604) UEFI applications (EDK2/StdLib): 3261 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 3262 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 3263 3264 3265AML interpreter: "module-level code" support. Allows for execution of so- 3266called "executable" AML code (math/logical operations, etc.) outside of 3267control methods not just at the module level (top level) but also within 3268any scope declared outside of a control method - Scope{}, Device{}, 3269Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 3270 3271Simplified the configuration of the "maximum AML loops" global option by 3272adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 3273modified at runtime. 3274 3275 3276Example Code and Data Size: These are the sizes for the OS-independent 3277acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3278debug version of the code includes the debug output trace mechanism and 3279has a much larger code and data size. 3280 3281 Current Release: 3282 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 3283 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 3284 3285 32862) iASL Compiler/Disassembler and Tools: 3287 3288iASL: Add full support for the RASF ACPI table (RAS Features Table). 3289Includes disassembler, data table compiler, and header support. 3290 3291iASL Expand "module-level code" support. Allows for 3292compilation/disassembly of so-called "executable" AML code (math/logical 3293operations, etc.) outside of control methods not just at the module level 3294(top level) but also within any scope declared outside of a control 3295method - Scope{}, Device{}, Processor{}, PowerResource{}, and 3296ThermalZone{}. 3297 3298AcpiDump: Added support for dumping all SSDTs on newer versions of 3299Windows. These tables are now easily available -- SSDTs are not available 3300through the registry on older versions. 3301 3302---------------------------------------- 330327 May 2016. Summary of changes for version 20160527: 3304 3305 33061) ACPICA kernel-resident subsystem: 3307 3308Temporarily reverted the new arbitrary bit length/alignment support in 3309AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 3310a number of regressions with the new code that need to be fully resolved 3311and tested before this support can be finally integrated into ACPICA. 3312Apologies for any inconveniences these issues may have caused. 3313 3314The ACPI message macros are not configurable (ACPI_MSG_ERROR, 3315ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 3316and ACPI_MSG_BIOS_WARNING). Lv Zheng. 3317 3318Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 3319option. Adds a new return macro, return_STR. Junk-uk Kim. 3320 3321Example Code and Data Size: These are the sizes for the OS-independent 3322acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3323debug version of the code includes the debug output trace mechanism and 3324has a much larger code and data size. 3325 3326 Current Release: 3327 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 3328 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 3329 Previous Release: 3330 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 3331 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 3332 3333---------------------------------------- 333422 April 2016. Summary of changes for version 20160422: 3335 33361) ACPICA kernel-resident subsystem: 3337 3338Fixed a regression in the GAS (generic address structure) arbitrary bit 3339support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 3340and incorrect return values. Lv Zheng. ACPICA BZ 1270. 3341 3342ACPI 6.0: Added support for new/renamed resource macros. One new argument 3343was added to each of these macros, and the original name has been 3344deprecated. The AML disassembler will always disassemble to the new 3345names. Support for the new macros was added to iASL, disassembler, 3346resource manager, and the acpihelp utility. ACPICA BZ 1274. 3347 3348 I2cSerialBus -> I2cSerialBusV2 3349 SpiSerialBus -> SpiSerialBusV2 3350 UartSerialBus -> UartSerialBusV2 3351 3352ACPI 6.0: Added support for a new integer field that was appended to the 3353package object returned by the _BIX method. This adds iASL compile-time 3354and AML runtime error checking. ACPICA BZ 1273. 3355 3356ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 3357Subspace Type2" (Headers, Disassembler, and data table compiler). 3358 3359Example Code and Data Size: These are the sizes for the OS-independent 3360acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3361debug version of the code includes the debug output trace mechanism and 3362has a much larger code and data size. 3363 3364 Current Release: 3365 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 3366 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 3367 Previous Release: 3368 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 3369 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 3370 3371 33722) iASL Compiler/Disassembler and Tools: 3373 3374iASL: Implemented an ASL grammar extension to allow/enable executable 3375"module-level code" to be created and executed under the various 3376operators that create new scopes. This type of AML code is already 3377supported in all known AML interpreters, and the grammar change will 3378appear in the next version of the ACPI specification. Simplifies the 3379conditional runtime creation of named objects under these object types: 3380 3381 Device 3382 PowerResource 3383 Processor 3384 Scope 3385 ThermalZone 3386 3387iASL: Implemented a new ASL extension, a "For" loop macro to add greater 3388ease-of-use to the ASL language. The syntax is similar to the 3389corresponding C operator, and is implemented with the existing AML While 3390opcode -- thus requiring no changes to existing AML interpreters. 3391 3392 For (Initialize, Predicate, Update) {TermList} 3393 3394Grammar: 3395 ForTerm := 3396 For ( 3397 Initializer // Nothing | TermArg => ComputationalData 3398 Predicate // Nothing | TermArg => ComputationalData 3399 Update // Nothing | TermArg => ComputationalData 3400 ) {TermList} 3401 3402 3403iASL: The _HID/_ADR detection and validation has been enhanced to search 3404under conditionals in order to allow these objects to be conditionally 3405created at runtime. 3406 3407iASL: Fixed several issues with the constant folding feature. The 3408improvement allows better detection and resolution of statements that can 3409be folded at compile time. ACPICA BZ 1266. 3410 3411iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 3412conversion to the ASL ElseIf operator where incorrect ASL code could be 3413generated. 3414 3415iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 3416sometimes an extra (and extraneous) set of parentheses were emitted for 3417some combinations of operators. Although this did not cause any problems 3418with recompilation of the disassembled code, it made the code more 3419difficult to read. David Box. ACPICA BZ 1231. 3420 3421iASL: Changed to ignore the unreferenced detection for predefined names 3422of resource descriptor elements, when the resource descriptor is 3423created/defined within a control method. 3424 3425iASL: Disassembler: Fix a possible fault with externally declared Buffer 3426objects. 3427 3428---------------------------------------- 342918 March 2016. Summary of changes for version 20160318: 3430 34311) ACPICA kernel-resident subsystem: 3432 3433Added support for arbitrary bit lengths and bit offsets for registers 3434defined by the Generic Address Structure. Previously, only aligned bit 3435lengths of 8/16/32/64 were supported. This was sufficient for many years, 3436but recently some machines have been seen that require arbitrary bit- 3437level support. ACPICA BZ 1240. Lv Zheng. 3438 3439Fixed an issue where the \_SB._INI method sometimes must be evaluated 3440before any _REG methods are evaluated. Lv Zheng. 3441 3442Implemented several changes related to ACPI table support 3443(Headers/Disassembler/TableCompiler): 3444NFIT: For ACPI 6.1, updated to add some additional new fields and 3445constants. 3446FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 34476). 3448DMAR: Added new constants per the 10/2014 DMAR spec. 3449IORT: Added new subtable per the 10/2015 IORT spec. 3450HEST: For ACPI 6.1, added new constants and new subtable. 3451DBG2: Added new constants per the 12/2015 DBG2 spec. 3452FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 3453ACPICA BZ 1249. 3454ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 3455 3456Updated header support for the DMAR table to match the current version of 3457the related spec. 3458 3459Added extensions to the ASL Concatenate operator to allow any ACPI object 3460to be passed as an operand. Any object other than Integer/String/Buffer 3461simply returns a string containing the object type. This extends the 3462usefulness of the Printf macros. Previously, Concatenate would abort the 3463control method if a non-data object was encountered. 3464 3465ACPICA source code: Deployed the C "const" keyword across the source code 3466where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 3467 3468Example Code and Data Size: These are the sizes for the OS-independent 3469acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3470debug version of the code includes the debug output trace mechanism and 3471has a much larger code and data size. 3472 3473 Current Release: 3474 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 3475 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 3476 Previous Release: 3477 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 3478 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 3479 3480 34812) iASL Compiler/Disassembler and Tools: 3482 3483iASL/Disassembler: Improved the heuristic used to determine the number of 3484arguments for an externally defined control method (a method in another 3485table). Although this is an improvement, there is no deterministic way to 3486"guess" the number of method arguments. Only the ACPI 6.0 External opcode 3487will completely solve this problem as it is deployed (automatically) in 3488newer BIOS code. 3489 3490iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 3491statements that could cause errors when the disassembled file is 3492compiled. ACPICA BZ 1243. David Box. 3493 3494iASL: Fixed a regression caused by the merger of the two versions of the 3495local strtoul64. Because of a dependency on a global variable, strtoul64 3496could return an error for integers greater than a 32-bit value. ACPICA BZ 34971260. 3498 3499iASL: Fixed a regression where a fault could occur for an ASL Return 3500statement if it invokes a control method that is not resolved. ACPICA BZ 35011264. 3502 3503AcpiXtract: Improved input file validation: detection of binary files and 3504non-acpidump text files. 3505 3506---------------------------------------- 350712 February 2016. Summary of changes for version 20160212: 3508 35091) ACPICA kernel-resident subsystem: 3510 3511Implemented full support for the ACPI 6.1 specification (released in 3512January). This version of the specification is available at: 3513http://www.uefi.org/specifications 3514 3515Only a relatively small number of changes were required in ACPICA to 3516support ACPI 6.1, in these areas: 3517- New predefined names 3518- New _HID values 3519- A new subtable for HEST 3520- A few other header changes for new values 3521 3522Ensure \_SB_._INI is executed before any _REG methods are executed. There 3523appears to be existing BIOS code that relies on this behavior. Lv Zheng. 3524 3525Reverted a change made in version 20151218 which enabled method 3526invocations to be targets of various ASL operators (SuperName and Target 3527grammar elements). While the new behavior is supported by the ACPI 3528specification, other AML interpreters do not support this behavior and 3529never will. The ACPI specification will be updated for ACPI 6.2 to remove 3530this support. Therefore, the change was reverted to the original ACPICA 3531behavior. 3532 3533ACPICA now supports the GCC 6 compiler. 3534 3535Current Release: (Note: build changes increased sizes) 3536 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 3537 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 3538Previous Release: 3539 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 3540 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 3541 3542 35432) iASL Compiler/Disassembler and Tools: 3544 3545Completed full support for the ACPI 6.0 External() AML opcode. The 3546compiler emits an external AML opcode for each ASL External statement. 3547This opcode is used by the disassembler to assist with the disassembly of 3548external control methods by specifying the required number of arguments 3549for the method. AML interpreters do not use this opcode. To ensure that 3550interpreters do not even see the opcode, a block of one or more external 3551opcodes is surrounded by an "If(0)" construct. As this feature becomes 3552commonly deployed in BIOS code, the ability of disassemblers to correctly 3553disassemble AML code will be greatly improved. David Box. 3554 3555iASL: Implemented support for an optional cross-reference output file. 3556The -lx option will create a the cross-reference file with the suffix 3557"xrf". Three different types of cross-reference are created in this file: 3558- List of object references made from within each control method 3559- Invocation (caller) list for each user-defined control method 3560- List of references to each non-method object in the namespace 3561 3562iASL: Method invocations as ASL Target operands are now disallowed and 3563flagged as errors in preparation for ACPI 6.2 (see the description of the 3564problem above). 3565 3566---------------------------------------- 35678 January 2016. Summary of changes for version 20160108: 3568 35691) ACPICA kernel-resident subsystem: 3570 3571Updated all ACPICA copyrights and signons to 2016: Added the 2016 3572copyright to all source code module headers and utility/tool signons. 3573This includes the standard Linux dual-license header. This affects 3574virtually every file in the ACPICA core subsystem, iASL compiler, all 3575ACPICA utilities, and the ACPICA test suite. 3576 3577Fixed a regression introduced in version 20151218 concerning the 3578execution of so-called module-level ASL/AML code. Namespace objects 3579created under a module-level If() construct were not properly/fully 3580entered into the namespace and could cause an interpreter fault when 3581accessed. 3582 3583Example Code and Data Size: These are the sizes for the OS-independent 3584acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3585debug version of the code includes the debug output trace mechanism and 3586has a much larger code and data size. 3587 3588Current Release: 3589 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 3590 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 3591 Previous Release: 3592 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 3593 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 3594 3595 35962) iASL Compiler/Disassembler and Tools: 3597 3598Fixed a problem with the compilation of the GpioIo and GpioInt resource 3599descriptors. The _PIN field name was incorrectly defined to be an array 3600of 32-bit values, but the _PIN values are in fact 16 bits each. This 3601would cause incorrect bit width warnings when using Word (16-bit) fields 3602to access the descriptors. 3603 3604 3605---------------------------------------- 360618 December 2015. Summary of changes for version 20151218: 3607 36081) ACPICA kernel-resident subsystem: 3609 3610Implemented per-AML-table execution of "module-level code" as individual 3611ACPI tables are loaded into the namespace during ACPICA initialization. 3612In other words, any module-level code within an AML table is executed 3613immediately after the table is loaded, instead of batched and executed 3614after all of the tables have been loaded. This provides compatibility 3615with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 3616David Box. 3617 3618To fully support the feature above, the default operation region handlers 3619for the SystemMemory, SystemIO, and PCI_Config address spaces are now 3620installed before any ACPI tables are loaded. This enables module-level 3621code to access these address spaces during the table load and module- 3622level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 3623Box. 3624 3625Implemented several changes to the internal _REG support in conjunction 3626with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 3627utilities for the changes above. Although these tools were changed, host 3628operating systems that simply use the default handlers for SystemMemory, 3629SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 3630 3631For example, in the code below, DEV1 is conditionally added to the 3632namespace by the DSDT via module-level code that accesses an operation 3633region. The SSDT references DEV1 via the Scope operator. DEV1 must be 3634created immediately after the DSDT is loaded in order for the SSDT to 3635successfully reference DEV1. Previously, this code would cause an 3636AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 3637fully supported by ACPICA. 3638 3639 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 3640 { 3641 OperationRegion (OPR1, SystemMemory, 0x400, 32) 3642 Field (OPR1, AnyAcc, NoLock, Preserve) 3643 { 3644 FLD1, 1 3645 } 3646 If (FLD1) 3647 { 3648 Device (\DEV1) 3649 { 3650 } 3651 } 3652 } 3653 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 3654 { 3655 External (\DEV1, DeviceObj) 3656 Scope (\DEV1) 3657 { 3658 } 3659 } 3660 3661Fixed an AML interpreter problem where control method invocations were 3662not handled correctly when the invocation was itself a SuperName argument 3663to another ASL operator. In these cases, the method was not invoked. 3664ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 3665argument: 3666 Store 3667 Acquire, Wait 3668 CondRefOf, RefOf 3669 Decrement, Increment 3670 Load, Unload 3671 Notify 3672 Signal, Release, Reset 3673 SizeOf 3674 3675Implemented automatic String-to-ObjectReference conversion support for 3676packages returned by predefined names (such as _DEP). A common BIOS error 3677is to add double quotes around an ObjectReference namepath, which turns 3678the reference into an unexpected string object. This support detects the 3679problem and corrects it before the package is returned to the caller that 3680invoked the method. Lv Zheng. 3681 3682Implemented extensions to the Concatenate operator. Concatenate now 3683accepts any type of object, it is not restricted to simply 3684Integer/String/Buffer. For objects other than these 3 basic data types, 3685the argument is treated as a string containing the name of the object 3686type. This expands the utility of Concatenate and the Printf/Fprintf 3687macros. ACPICA BZ 1222. 3688 3689Cleaned up the output of the ASL Debug object. The timer() value is now 3690optional and no longer emitted by default. Also, the basic data types of 3691Integer/String/Buffer are simply emitted as their values, without a data 3692type string -- since the data type is obvious from the output. ACPICA BZ 36931221. 3694 3695Example Code and Data Size: These are the sizes for the OS-independent 3696acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3697debug version of the code includes the debug output trace mechanism and 3698has a much larger code and data size. 3699 3700 Current Release: 3701 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 3702 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 3703 Previous Release: 3704 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 3705 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 3706 3707 37082) iASL Compiler/Disassembler and Tools: 3709 3710iASL: Fixed some issues with the ASL Include() operator. This operator 3711was incorrectly defined in the iASL parser rules, causing a new scope to 3712be opened for the code within the include file. This could lead to 3713several issues, including allowing ASL code that is technically illegal 3714and not supported by AML interpreters. Note, this does not affect the 3715related #include preprocessor operator. ACPICA BZ 1212. 3716 3717iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 3718operator is essentially an ASL macro since there is no AML opcode 3719associated with it. The code emitted by the iASL compiler for ElseIf is 3720an Else opcode followed immediately by an If opcode. The disassembler 3721will now emit an ElseIf if it finds an Else immediately followed by an 3722If. This simplifies the decoded ASL, especially for deeply nested 3723If..Else and large Switch constructs. Thus, the disassembled code more 3724closely follows the original source ASL. ACPICA BZ 1211. Example: 3725 3726 Old disassembly: 3727 Else 3728 { 3729 If (Arg0 == 0x02) 3730 { 3731 Local0 = 0x05 3732 } 3733 } 3734 3735 New disassembly: 3736 ElseIf (Arg0 == 0x02) 3737 { 3738 Local0 = 0x05 3739 } 3740 3741AcpiExec: Added support for the new module level code behavior and the 3742early region installation. This required a small change to the 3743initialization, since AcpiExec must install its own operation region 3744handlers. 3745 3746AcpiExec: Added support to make the debug object timer optional. Default 3747is timer disabled. This cleans up the debug object output -- the timer 3748data is rarely used. 3749 3750AcpiExec: Multiple ACPI tables are now loaded in the order that they 3751appear on the command line. This can be important when there are 3752interdependencies/references between the tables. 3753 3754iASL/Templates. Add support to generate template files with multiple 3755SSDTs within a single output file. Also added ommand line support to 3756specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 37571223, 1225. 3758 3759 3760---------------------------------------- 376124 November 2015. Summary of changes for version 20151124: 3762 37631) ACPICA kernel-resident subsystem: 3764 3765Fixed a possible regression for a previous update to FADT handling. The 3766FADT no longer has a fixed table ID, causing some issues with code that 3767was hardwired to a specific ID. Lv Zheng. 3768 3769Fixed a problem where the method auto-serialization could interfere with 3770the current SyncLevel. This change makes the auto-serialization support 3771transparent to the SyncLevel support and management. 3772 3773Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 3774interface is intended for early access to the namespace during the 3775initial namespace device discovery walk. The _SUB method has been seen to 3776access operation regions in some cases, causing errors because the 3777operation regions are not fully initialized. 3778 3779AML Debugger: Fixed some issues with the terminate/quit/exit commands 3780that can cause faults. Lv Zheng. 3781 3782AML Debugger: Add thread ID support so that single-step mode only applies 3783to the AML Debugger thread. This prevents runtime errors within some 3784kernels. Lv Zheng. 3785 3786Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 3787methods that are invoked by this interface are optional, removed warnings 3788emitted for the case where one or more of these methods do not exist. 3789ACPICA BZ 1208, original change by Prarit Bhargava. 3790 3791Made a major pass through the entire ACPICA source code base to 3792standardize formatting that has diverged a bit over time. There are no 3793functional changes, but this will of course cause quite a few code 3794differences from the previous ACPICA release. 3795 3796Example Code and Data Size: These are the sizes for the OS-independent 3797acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3798debug version of the code includes the debug output trace mechanism and 3799has a much larger code and data size. 3800 3801 Current Release: 3802 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 3803 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 3804 Previous Release: 3805 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3806 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3807 3808 38092) iASL Compiler/Disassembler and Tools: 3810 3811iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 3812definition blocks within a single ASL file and the resulting AML file. 3813Support for this type of file was also added to the various tools that 3814use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 3815example code below shows two definition blocks within the same file: 3816 3817 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 38180x12345678) 3819 { 3820 } 3821 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 3822 { 3823 } 3824 3825iASL: Enhanced typechecking for the Name() operator. All expressions for 3826the value of the named object must be reduced/folded to a single constant 3827at compile time, as per the ACPI specification (the AML definition of 3828Name()). 3829 3830iASL: Fixed some code indentation issues for the -ic and -ia options (C 3831and assembly headers). Now all emitted code correctly begins in column 1. 3832 3833iASL: Added an error message for an attempt to open a Scope() on an 3834object defined in an SSDT. The DSDT is always loaded into the namespace 3835first, so any attempt to open a Scope on an SSDT object will fail at 3836runtime. 3837 3838 3839---------------------------------------- 384030 September 2015. Summary of changes for version 20150930: 3841 38421) ACPICA kernel-resident subsystem: 3843 3844Debugger: Implemented several changes and bug fixes to assist support for 3845the in-kernel version of the AML debugger. Lv Zheng. 3846- Fix the "predefined" command for in-kernel debugger. 3847- Do not enter debug command loop for the help and version commands. 3848- Disallow "execute" command during execution/single-step of a method. 3849 3850Interpreter: Updated runtime typechecking for all operators that have 3851target operands. The operand is resolved and validated that it is legal. 3852For example, the target cannot be a non-data object such as a Device, 3853Mutex, ThermalZone, etc., as per the ACPI specification. 3854 3855Debugger: Fixed the double-mutex user I/O handshake to work when local 3856deadlock detection is enabled. 3857 3858Debugger: limited display of method locals and arguments (LocalX and 3859ArgX) to only those that have actually been initialized. This prevents 3860lines of extraneous output. 3861 3862Updated the definition of the NFIT table to correct the bit polarity of 3863one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 3864 3865Example Code and Data Size: These are the sizes for the OS-independent 3866acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3867debug version of the code includes the debug output trace mechanism and 3868has a much larger code and data size. 3869 3870 Current Release: 3871 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3872 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3873 Previous Release: 3874 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3875 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3876 3877 38782) iASL Compiler/Disassembler and Tools: 3879 3880iASL: Improved the compile-time typechecking for operands of many of the 3881ASL operators: 3882 3883-- Added an option to disable compiler operand/operator typechecking (- 3884ot). 3885 3886-- For the following operators, the TermArg operands are now validated 3887when possible to be Integer data objects: BankField, OperationRegion, 3888DataTableRegion, Buffer, and Package. 3889 3890-- Store (Source, Target): Both the source and target operands are 3891resolved and checked that the operands are both legal. For example, 3892neither operand can be a non-data object such as a Device, Mutex, 3893ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 3894operator can be used to store an object to any type of target object. 3895 3896-- Store (Source, Target): If the source is a Package object, the target 3897must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 3898is a Package, the source must also be a Package. 3899 3900-- Store (Source, Target): A warning is issued if the source and target 3901resolve to the identical named object. 3902 3903-- Store (Source, <method invocation>): An error is generated for the 3904target method invocation, as this construct is not supported by the AML 3905interpreter. 3906 3907-- For all ASL math and logic operators, the target operand must be a 3908data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 3909includes the function return value also. 3910 3911-- External declarations are also included in the typechecking where 3912possible. External objects defined using the UnknownObj keyword cannot be 3913typechecked, however. 3914 3915iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 3916operator: 3917- Legacy code: Index(PKG1, 3) 3918- New ASL+ code: PKG1[3] 3919This completes the ACPI 6.0 ASL+ support as it was the only operator not 3920supported. 3921 3922iASL: Fixed the file suffix for the preprocessor output file (.i). Two 3923spaces were inadvertently appended to the filename, causing file access 3924and deletion problems on some systems. 3925 3926ASL Test Suite (ASLTS): Updated the master makefile to generate all 3927possible compiler output files when building the test suite -- thus 3928exercising these features of the compiler. These files are automatically 3929deleted when the test suite exits. 3930 3931 3932---------------------------------------- 393318 August 2015. Summary of changes for version 20150818: 3934 39351) ACPICA kernel-resident subsystem: 3936 3937Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 3938Zheng. ACPICA BZ 1186. 3939 3940Completed development to ensure that the ACPICA Disassembler and Debugger 3941are fully standalone components of ACPICA. Removed cross-component 3942dependences. Lv Zheng. 3943 3944The max-number-of-AML-loops is now runtime configurable (previously was 3945compile-time only). This is essentially a loop timeout to force-abort 3946infinite AML loops. ACPCIA BZ 1192. 3947 3948Debugger: Cleanup output to dump ACPI names and namepaths without any 3949trailing underscores. Lv Zheng. ACPICA BZ 1135. 3950 3951Removed unnecessary conditional compilations across the Debugger and 3952Disassembler components where entire modules could be left uncompiled. 3953 3954The aapits test is deprecated and has been removed from the ACPICA git 3955tree. The test has never been completed and has not been maintained, thus 3956becoming rather useless. ACPICA BZ 1015, 794. 3957 3958A batch of small changes to close bugzilla and other reports: 3959- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 3960- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 3961- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 3962- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 3963Moore. 3964- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 3965ACPICA BZ 1184. 3966- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 3967operators. 3968- Debugger: Split debugger initialization/termination interfaces. Lv 3969Zheng. 3970- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 3971identification. 3972- AcpiExec: Add debug message during _REG method phase during table 3973load/init. 3974- AcpiNames: Fix a regression where some output was missing and no longer 3975emitted. 3976- Debugger: General cleanup and simplification. Lv Zheng. 3977- Disassembler: Cleanup use of several global option variables. Lv Zheng. 3978 3979Example Code and Data Size: These are the sizes for the OS-independent 3980acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3981debug version of the code includes the debug output trace mechanism and 3982has a much larger code and data size. 3983 3984 Current Release: 3985 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3986 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3987 Previous Release: 3988 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 3989 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 3990 3991 39922) iASL Compiler/Disassembler and Tools: 3993 3994AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 3995were not handled properly and caused load errors. Now, properly invoke 3996and use the ACPICA auto-reallocate mechanism for ACPI table data 3997structures. ACPICA BZ 1188 3998 3999AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 4000BZ 1190. 4001 4002AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 4003AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 4004executed during initialization. ACPICA BZ 1187, 1189. 4005 4006iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 4007that corresponds to each disassembled ASL statement, to simplify 4008debugging. ACPICA BZ 1191. 4009 4010Debugger: Add option to the "objects" command to display a summary of the 4011current namespace objects (Object type and count). This is displayed if 4012the command is entered with no arguments. 4013 4014AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 4015 4016 4017---------------------------------------- 401817 July 2015. Summary of changes for version 20150717: 4019 40201) ACPICA kernel-resident subsystem: 4021 4022Improved the partitioning between the Debugger and Disassembler 4023components. This allows the Debugger to be used standalone within kernel 4024code without the Disassembler (which is used for single stepping also). 4025This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 4026 4027Debugger: Implemented a new command to trace the execution of control 4028methods (Trace). This is especially useful for the in-kernel version of 4029the debugger when file I/O may not be available for method trace output. 4030See the ACPICA reference for more information. Lv Zheng. 4031 4032Moved all C library prototypes (used for the local versions of these 4033functions when requested) to a new header, acclib.h 4034Cleaned up the use of non-ANSI C library functions. These functions are 4035implemented locally in ACPICA. Moved all such functions to a common 4036source file, utnonansi.c 4037 4038Debugger: Fixed a problem with the "!!" command (get last command 4039executed) where the debugger could enter an infinite loop and eventually 4040crash. 4041 4042Removed the use of local macros that were used for some of the standard C 4043library functions to automatically cast input parameters. This mostly 4044affected the is* functions where the input parameter is defined to be an 4045int. This required a few modifications to the main ACPICA source code to 4046provide casting for these functions and eliminate possible compiler 4047warnings for these parameters. 4048 4049Across the source code, added additional status/error checking to resolve 4050issues discovered by static source code analysis tools such as Coverity. 4051 4052Example Code and Data Size: These are the sizes for the OS-independent 4053acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4054debug version of the code includes the debug output trace mechanism and 4055has a much larger code and data size. 4056 4057 Current Release: 4058 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 4059 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 4060 Previous Release: 4061 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 4062 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 4063 4064 40652) iASL Compiler/Disassembler and Tools: 4066 4067iASL: Fixed a regression where the device map file feature no longer 4068worked properly when used in conjunction with the disassembler. It only 4069worked properly with the compiler itself. 4070 4071iASL: Implemented a new warning for method LocalX variables that are set 4072but never used (similar to a C compiler such as gcc). This also applies 4073to ArgX variables that are not defined by the parent method, and are 4074instead (legally) used as local variables. 4075 4076iASL/Preprocessor: Finished the pass-through of line numbers from the 4077preprocessor to the compiler. This ensures that compiler errors/warnings 4078have the correct original line numbers and filenames, regardless of any 4079#include files. 4080 4081iASL/Preprocessor: Fixed a couple of issues with comment handling and the 4082pass-through of comments to the preprocessor output file (which becomes 4083the compiler input file). Also fixed a problem with // comments that 4084appear after a math expression. 4085 4086iASL: Added support for the TCPA server table to the table compiler and 4087template generator. (The client table was already previously supported) 4088 4089iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 4090identify the iASL compiler. 4091 4092Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 4093multiple times. The new names are ACPI_SIGN_NEGATIVE and 4094ACPI_SIGN_POSITIVE. 4095 4096AcpiHelp: Update to expand help messages for the iASL preprocessor 4097directives. 4098 4099 4100---------------------------------------- 410119 June 2015. Summary of changes for version 20150619: 4102 4103Two regressions in version 20150616 have been addressed: 4104 4105Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 4106etc.) This update changes ACPICA to only use the standard headers for 4107functions, or the prototypes for the local versions of the C library 4108functions. Across the source code, this required some additional casts 4109for some Clib invocations for portability. Moved all local prototypes to 4110a new file, acclib.h 4111 4112Fixes several problems with recent changes to the handling of the FACS 4113table that could cause some systems not to boot. 4114 4115 4116---------------------------------------- 411716 June 2015. Summary of changes for version 20150616: 4118 4119 41201) ACPICA kernel-resident subsystem: 4121 4122Across the entire ACPICA source code base, the various macros for the C 4123library functions (such as ACPI_STRLEN, etc.) have been removed and 4124replaced by the standard C library names (strlen, etc.) The original 4125purpose for these macros is no longer applicable. This simplification 4126reduces the number of macros used in the ACPICA source code 4127significantly, improving readability and maintainability. 4128 4129Implemented support for a new ACPI table, the OSDT. This table, the 4130"override" SDT, can be loaded directly by the host OS at boot time. It 4131enables the replacement of existing namespace objects that were installed 4132via the DSDT and/or SSDTs. The primary purpose for this is to replace 4133buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 4134for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 4135Moore. 4136 4137Added support for systems with (improperly) two FACS tables -- a "32-bit" 4138table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 4139X field). This change will support both automatically. There continues to 4140be systems found with this issue. This support requires a change to the 4141AcpiSetFirmwareWakingVector interface. Also, a public global variable has 4142been added to allow the host to select which FACS is desired 4143(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 4144details Lv Zheng. 4145 4146Added a new feature to allow for systems that do not contain an FACS. 4147Although this is already supported on hardware-reduced platforms, the 4148feature has been extended for all platforms. The reasoning is that we do 4149not want to abort the entire ACPICA initialization just because the 4150system is seriously buggy and has no FACS. 4151 4152Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 4153not correctly transcribed from the ACPI specification in ACPICA version 415420150515. 4155 4156Implemented support for the _CLS object in the AcpiGetObjectInfo external 4157interface. 4158 4159Updated the definitions of the TCPA and TPM2 ACPI tables to the more 4160recent TCG ACPI Specification, December 14, 2014. Table disassembler and 4161compiler also updated. Note: The TCPA "server" table is not supported by 4162the disassembler/table-compiler at this time. 4163 4164ACPI 6.0: Added definitions for the new GIC version field in the MADT. 4165 4166Example Code and Data Size: These are the sizes for the OS-independent 4167acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4168debug version of the code includes the debug output trace mechanism and 4169has a much larger code and data size. 4170 4171 Current Release: 4172 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 4173 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 4174 Previous Release: 4175 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 4176 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 4177 4178 41792) iASL Compiler/Disassembler and Tools: 4180 4181Disassembler: Fixed a problem with the new symbolic operator disassembler 4182where incorrect ASL code could be emitted in some cases for the "non- 4183commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 4184ShiftRight. The actual problem cases seem to be rather unusual in common 4185ASL code, however. David Box. 4186 4187Modified the linux version of acpidump to obtain ACPI tables from not 4188just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 4189Zheng. 4190 4191iASL: Fixed a problem where the user preprocessor output file (.i) 4192contained extra data that was not expected. The compiler was using this 4193file as a temporary file and passed through #line directives in order to 4194keep compiler error messages in sync with the input file and line number 4195across multiple include files. The (.i) is no longer a temporary file as 4196the compiler uses a new, different file for the original purpose. 4197 4198iASL: Fixed a problem where comments within the original ASL source code 4199file were not passed through to the preprocessor output file, nor any 4200listing files. 4201 4202iASL: Fixed some issues for the handling of the "#include" preprocessor 4203directive and the similar (but not the same) "Include" ASL operator. 4204 4205iASL: Add support for the new OSDT in both the disassembler and compiler. 4206 4207iASL: Fixed a problem with the constant folding support where a Buffer 4208object could be incorrectly generated (incorrectly formed) during a 4209conversion to a Store() operator. 4210 4211AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 4212description text for the _REV predefined name. _REV now permanently 4213returns 2, as per the ACPI 6.0 specification. 4214 4215Debugger: Enhanced the output of the Debug ASL object for references 4216produced by the Index operator. For Buffers and strings, only output the 4217actual byte pointed to by the index. For packages, only print the single 4218package element decoded by the index. Previously, the entire 4219buffer/string/package was emitted. 4220 4221iASL/Table-compiler: Fixed a regression where the "generic" data types 4222were no longer recognized, causing errors. 4223 4224 4225---------------------------------------- 422615 May 2015. Summary of changes for version 20150515: 4227 4228This release implements most of ACPI 6.0 as described below. 4229 42301) ACPICA kernel-resident subsystem: 4231 4232Implemented runtime argument checking and return value checking for all 4233new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 4234_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 4235 4236Example Code and Data Size: These are the sizes for the OS-independent 4237acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4238debug version of the code includes the debug output trace mechanism and 4239has a much larger code and data size. 4240 4241 Current Release: 4242 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 4243 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 4244 Previous Release: 4245 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 4246 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 4247 4248 42492) iASL Compiler/Disassembler and Tools: 4250 4251iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 4252names (argument count validation and return value typechecking.) 4253 4254iASL disassembler and table compiler: implemented support for all new 4255ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 4256 4257iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 4258tables: FADT, MADT. 4259 4260iASL preprocessor: Added a new directive to enable inclusion of binary 4261blobs into ASL code. The new directive is #includebuffer. It takes a 4262binary file as input and emits a named ascii buffer object into the ASL 4263code. 4264 4265AcpiHelp: Added support for all new ACPI 6.0 predefined names. 4266 4267AcpiHelp: Added a new option, -d, to display all iASL preprocessor 4268directives. 4269 4270AcpiHelp: Added a new option, -t, to display all known/supported ACPI 4271tables. 4272 4273 4274---------------------------------------- 427510 April 2015. Summary of changes for version 20150410: 4276 4277Reverted a change introduced in version 20150408 that caused 4278a regression in the disassembler where incorrect operator 4279symbols could be emitted. 4280 4281 4282---------------------------------------- 428308 April 2015. Summary of changes for version 20150408: 4284 4285 42861) ACPICA kernel-resident subsystem: 4287 4288Permanently set the return value for the _REV predefined name. It now 4289returns 2 (was 5). This matches other ACPI implementations. _REV will be 4290deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 4291for ACPI 2.0 and later. It should never be used to differentiate or 4292identify operating systems. 4293 4294Added the "Windows 2015" string to the _OSI support. ACPICA will now 4295return TRUE to a query with this string. 4296 4297Fixed several issues with the local version of the printf function. 4298 4299Added the C99 compiler option (-std=c99) to the Unix makefiles. 4300 4301 Current Release: 4302 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 4303 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 4304 Previous Release: 4305 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4306 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4307 4308 43092) iASL Compiler/Disassembler and Tools: 4310 4311iASL: Implemented an enhancement to the constant folding feature to 4312transform the parse tree to a simple Store operation whenever possible: 4313 Add (2, 3, X) ==> is converted to: Store (5, X) 4314 X = 2 + 3 ==> is converted to: Store (5, X) 4315 4316Updated support for the SLIC table (Software Licensing Description Table) 4317in both the Data Table compiler and the disassembler. The SLIC table 4318support now conforms to "Microsoft Software Licensing Tables (SLIC and 4319MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 4320following the ACPI header is now defined to be "Proprietary Data", and as 4321such, can only be entered or displayed as a hex data block. 4322 4323Implemented full support for the MSDM table as described in the document 4324above. Note: The format of MSDM is similar to SLIC. Any MSDM data 4325following the ACPI header is defined to be "Proprietary Data", and can 4326only be entered or displayed as a hex data block. 4327 4328Implemented the -Pn option for the iASL Table Compiler (was only 4329implemented for the ASL compiler). This option disables the iASL 4330preprocessor. 4331 4332Disassembler: For disassembly of Data Tables, added a comment field 4333around the Ascii equivalent data that is emitted as part of the "Raw 4334Table Data" block. This prevents the iASL Preprocessor from possible 4335confusion if/when the table is compiled. 4336 4337Disassembler: Added an option (-df) to force the disassembler to assume 4338that the table being disassembled contains valid AML. This feature is 4339useful for disassembling AML files that contain ACPI signatures other 4340than DSDT or SSDT (such as OEMx or other signatures). 4341 4342Changes for the EFI version of the tools: 43431) Fixed a build error/issue 43442) Fixed a cast warning 4345 4346iASL: Fixed a path issue with the __FILE__ operator by making the 4347directory prefix optional within the internal SplitInputFilename 4348function. 4349 4350Debugger: Removed some unused global variables. 4351 4352Tests: Updated the makefile for proper generation of the AAPITS suite. 4353 4354 4355---------------------------------------- 435604 February 2015. Summary of changes for version 20150204: 4357 4358ACPICA kernel-resident subsystem: 4359 4360Updated all ACPICA copyrights and signons to 2014. Added the 2014 4361copyright to all module headers and signons, including the standard Linux 4362header. This affects virtually every file in the ACPICA core subsystem, 4363iASL compiler, all ACPICA utilities, and the test suites. 4364 4365Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 4366A raw gpe handling mechanism was created to allow better handling of GPE 4367storms that aren't easily managed by the normal handler. The raw handler 4368allows disabling/renabling of the GPE so that interrupt storms can be 4369avoided in cases where events cannot be timely serviced. In this 4370scenario, handlers should use the AcpiSetGpe() API to disable/enable the 4371GPE. This API will leave the reference counts undisturbed, thereby 4372preventing unintentional clearing of the GPE when the intent in only to 4373temporarily disable it. Raw handlers allow enabling and disabling of a 4374GPE by removing GPE register locking. As such, raw handlers much provide 4375their own locks while using GPE API's to protect access to GPE data 4376structures. 4377Lv Zheng 4378 4379Events: Always modify GPE registers under the GPE lock. 4380Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 4381values. Reported as bug by joe.liu@apple.com. 4382 4383Unix makefiles: Separate option to disable optimizations and 4384_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 4385NOOPT disable option and creates a separate flag (NOFORTIFY) for this 4386purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 4387errors when building ACPICA. This allows disabling the option without 4388also having to disable optimazations. 4389David Box 4390 4391 Current Release: 4392 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 4393 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 4394 4395-- 4396-------------------------------------- 439707 November 2014. Summary of changes for version 20141107: 4398 4399This release is available at https://acpica.org/downloads 4400 4401This release introduces and implements language extensions to ASL that 4402provide support for symbolic ("C-style") operators and expressions. These 4403language extensions are known collectively as ASL+. 4404 4405 44061) iASL Compiler/Disassembler and Tools: 4407 4408Disassembler: Fixed a problem with disassembly of the UartSerialBus 4409macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 4410Box. 4411 4412Disassembler: Fixed the Unicode macro support to add escape sequences. 4413All non-printable ASCII values are emitted as escape sequences, as well 4414as the standard escapes for quote and backslash. Ensures that the 4415disassembled macro can be correctly recompiled. 4416 4417iASL: Added Printf/Fprintf macros for formatted output. These macros are 4418translated to existing AML Concatenate and Store operations. Printf 4419writes to the ASL Debug object. Fprintf allows the specification of an 4420ASL name as the target. Only a single format specifier is required, %o, 4421since the AML interpreter dynamically converts objects to the required 4422type. David E. Box. 4423 4424 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 4425 (Concatenate (Concatenate (Concatenate ("", Arg0), 4426 ": Unexpected value for "), Arg1), ", "), Arg2), 4427 " at line "), Arg3), Debug) 4428 4429 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 4430 Arg0, Arg1, Arg2, Arg3) 4431 4432 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 4433 ("", Arg1), ": "), Arg0), " Successful"), STR1) 4434 4435 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 4436 4437iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 4438ASL parse tree before the AML code is generated. This allows blocks of 4439ASL code to be removed in order to help locate and identify problem 4440devices and/or code. David E. Box. 4441 4442AcpiExec: Added support (-fi) for an optional namespace object 4443initialization file. This file specifies initial values for namespace 4444objects as necessary for debugging and testing different ASL code paths 4445that may be taken as a result of BIOS options. 4446 4447 44482) Overview of symbolic operator support for ASL (ASL+) 4449------------------------------------------------------- 4450 4451As an extension to the ASL language, iASL implements support for symbolic 4452(C-style) operators for math and logical expressions. This can greatly 4453simplify ASL code as well as improve both readability and 4454maintainability. These language extensions can exist concurrently with 4455all legacy ASL code and expressions. 4456 4457The symbolic extensions are 100% compatible with existing AML 4458interpreters, since no new AML opcodes are created. To implement the 4459extensions, the iASL compiler transforms the symbolic expressions into 4460the legacy ASL/AML equivalents at compile time. 4461 4462Full symbolic expressions are supported, along with the standard C 4463precedence and associativity rules. 4464 4465Full disassembler support for the symbolic expressions is provided, and 4466creates an automatic migration path for existing ASL code to ASL+ code 4467via the disassembly process. By default, the disassembler now emits ASL+ 4468code with symbolic expressions. An option (-dl) is provided to force the 4469disassembler to emit legacy ASL code if desired. 4470 4471Below is the complete list of the currently supported symbolic operators 4472with examples. See the iASL User Guide for additional information. 4473 4474 4475ASL+ Syntax Legacy ASL Equivalent 4476----------- --------------------- 4477 4478 // Math operators 4479 4480Z = X + Y Add (X, Y, Z) 4481Z = X - Y Subtract (X, Y, Z) 4482Z = X * Y Multiply (X, Y, Z) 4483Z = X / Y Divide (X, Y, , Z) 4484Z = X % Y Mod (X, Y, Z) 4485Z = X << Y ShiftLeft (X, Y, Z) 4486Z = X >> Y ShiftRight (X, Y, Z) 4487Z = X & Y And (X, Y, Z) 4488Z = X | Y Or (X, Y, Z) 4489Z = X ^ Y Xor (X, Y, Z) 4490Z = ~X Not (X, Z) 4491X++ Increment (X) 4492X-- Decrement (X) 4493 4494 // Logical operators 4495 4496(X == Y) LEqual (X, Y) 4497(X != Y) LNotEqual (X, Y) 4498(X < Y) LLess (X, Y) 4499(X > Y) LGreater (X, Y) 4500(X <= Y) LLessEqual (X, Y) 4501(X >= Y) LGreaterEqual (X, Y) 4502(X && Y) LAnd (X, Y) 4503(X || Y) LOr (X, Y) 4504(!X) LNot (X) 4505 4506 // Assignment and compound assignment operations 4507 4508X = Y Store (Y, X) 4509X += Y Add (X, Y, X) 4510X -= Y Subtract (X, Y, X) 4511X *= Y Multiply (X, Y, X) 4512X /= Y Divide (X, Y, , X) 4513X %= Y Mod (X, Y, X) 4514X <<= Y ShiftLeft (X, Y, X) 4515X >>= Y ShiftRight (X, Y, X) 4516X &= Y And (X, Y, X) 4517X |= Y Or (X, Y, X) 4518X ^= Y Xor (X, Y, X) 4519 4520 45213) ASL+ Examples: 4522----------------- 4523 4524Legacy ASL: 4525 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 4526 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 45270x03FB), 4528 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 4529 { 4530 And (MEMB, 0xFFFFFFF0, SRMB) 4531 Store (MEMB, Local2) 4532 Store (PDBM, Local1) 4533 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 4534 Store (SRMB, MEMB) 4535 Or (PDBM, 0x02, PDBM) 4536 } 4537 4538ASL+ version: 4539 If (((R510 & 0x03FB) == 0x02E0) || 4540 ((R520 & 0x03FB) == 0x02E0) || 4541 ((R530 & 0x03FB) == 0x02E0) || 4542 ((R540 & 0x03FB) == 0x02E0)) 4543 { 4544 SRMB = (MEMB & 0xFFFFFFF0) 4545 Local2 = MEMB 4546 Local1 = PDBM 4547 PDBM &= 0xFFFFFFFFFFFFFFF9 4548 MEMB = SRMB 4549 PDBM |= 0x02 4550 } 4551 4552Legacy ASL: 4553 Store (0x1234, Local1) 4554 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 4555 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 4556 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 4557 Store (Index (PKG1, 0x03), Local6) 4558 Store (Add (Local3, Local2), Debug) 4559 Add (Local1, 0x0F, Local2) 4560 Add (Local1, Multiply (Local2, Local3), Local2) 4561 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 4562 4563ASL+ version: 4564 Local1 = 0x1234 4565 Local3 = (((Local1 + TEST) + 0x20) * Local2) 4566 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 4567 Local3 = (Local1 + (TEST + (0x20 * Local2))) 4568 Local6 = Index (PKG1, 0x03) 4569 Debug = (Local3 + Local2) 4570 Local2 = (Local1 + 0x0F) 4571 Local2 = (Local1 + (Local2 * Local3)) 4572 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 4573 4574 4575---------------------------------------- 457626 September 2014. Summary of changes for version 20140926: 4577 45781) ACPICA kernel-resident subsystem: 4579 4580Updated the GPIO operation region handler interface (GeneralPurposeIo). 4581In order to support GPIO Connection objects with multiple pins, along 4582with the related Field objects, the following changes to the interface 4583have been made: The Address is now defined to be the offset in bits of 4584the field unit from the previous invocation of a Connection. It can be 4585viewed as a "Pin Number Index" into the connection resource descriptor. 4586The BitWidth is the exact bit width of the field. It is usually one bit, 4587but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 4588additional information and examples. 4589 4590GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 4591corresponding _Lxx/_Exx methods are disabled (they may have been enabled 4592by the firmware), so that they cannot fire until they are enabled via 4593AcpiUpdateAllGpes. Rafael J. Wysocki. 4594 4595Added a new return flag for the Event/GPE status interfaces -- 4596AcpiGetEventStatus and AcpiGetGpeStatus. The new 4597ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 4598GPE currently has a handler associated with it, and can thus actually 4599affect the system. Lv Zheng. 4600 4601Example Code and Data Size: These are the sizes for the OS-independent 4602acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4603debug version of the code includes the debug output trace mechanism and 4604has a much larger code and data size. 4605 4606 Current Release: 4607 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 4608 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 4609 Previous Release: 4610 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4611 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4612 46132) iASL Compiler/Disassembler and Tools: 4614 4615iASL: Fixed a memory allocation/free regression introduced in 20140828 4616that could cause the compiler to crash. This was introduced inadvertently 4617during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 46181113. 4619 4620iASL: Removed two error messages that have been found to create false 4621positives, until they can be fixed and fully validated (ACPICA BZ 1112): 46221) Illegal forward reference within a method 46232) Illegal reference across two methods 4624 4625iASL: Implemented a new option (-lm) to create a hardware mapping file 4626that summarizes all GPIO, I2C, SPI, and UART connections. This option 4627works for both the compiler and disassembler. See the iASL compiler user 4628guide for additional information and examples (section 6.4.6). 4629 4630AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 4631version 2. This corrects the AE_BAD_HEADER exception seen on systems with 4632a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 4633 4634AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 4635unless STDIN is actually a terminal. Assists with batch-mode processing. 4636ACPICA BZ 1114. 4637 4638Disassembler/AcpiHelp: Added another large group of recognized _HID 4639values. 4640 4641 4642---------------------------------------- 464328 August 2014. Summary of changes for version 20140828: 4644 46451) ACPICA kernel-resident subsystem: 4646 4647Fixed a problem related to the internal use of the Timer() operator where 4648a 64-bit divide could cause an attempted link to a double-precision math 4649library. This divide is not actually necessary, so the code was 4650restructured to eliminate it. Lv Zheng. 4651 4652ACPI 5.1: Added support for the runtime validation of the _DSD package 4653(similar to the iASL support). 4654 4655ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 4656SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 4657 4658Example Code and Data Size: These are the sizes for the OS-independent 4659acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4660debug version of the code includes the debug output trace mechanism and 4661has a much larger code and data size. 4662 4663 Current Release: 4664 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4665 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4666 Previous Release: 4667 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 4668 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 4669 46702) iASL Compiler/Disassembler and Tools: 4671 4672AcpiExec: Fixed a problem on unix systems where the original terminal 4673state was not always properly restored upon exit. Seen when using the -v 4674option. ACPICA BZ 1104. 4675 4676iASL: Fixed a problem with the validation of the ranges/length within the 4677Memory24 resource descriptor. There was a boundary condition when the 4678range was equal to the (length -1) caused by the fact that these values 4679are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 4680 4681Disassembler: Fixed a problem with the GpioInt descriptor interrupt 4682polarity 4683flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 4684is 4685now supported properly. 4686 4687ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 4688in the disassembler, data table compiler, and table template generator. 4689 4690iASL: Added a requirement for Device() objects that one of either a _HID 4691or _ADR must exist within the scope of a Device, as per the ACPI 4692specification. Remove a similar requirement that was incorrectly in place 4693for the _DSD object. 4694 4695iASL: Added error detection for illegal named references within control 4696methods that would cause runtime failures. Now trapped as errors are: 1) 4697References to objects within a non-parent control method. 2) Forward 4698references (within a method) -- for control methods, AML interpreters use 4699a one-pass parse of control methods. ACPICA BZ 1008. 4700 4701iASL: Added error checking for dependencies related to the _PSx power 4702methods. ACPICA BZ 1029. 47031) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 4704_PS3. 47052) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 4706scope. 4707 4708iASL and table compiler: Cleanup miscellaneous memory leaks by fully 4709deploying the existing object and string caches and adding new caches for 4710the table compiler. 4711 4712iASL: Split the huge parser source file into multiple subfiles to improve 4713manageability. Generation now requires the M4 macro preprocessor, which 4714is part of the Bison distribution on both unix and windows platforms. 4715 4716AcpiSrc: Fixed and removed all extraneous warnings generated during 4717entire ACPICA source code scan and/or conversion. 4718 4719 4720---------------------------------------- 4721 472224 July 2014. Summary of changes for version 20140724: 4723 4724The ACPI 5.1 specification has been released and is available at: 4725http://uefi.org/specs/access 4726 4727 47280) ACPI 5.1 support in ACPICA: 4729 4730ACPI 5.1 is fully supported in ACPICA as of this release. 4731 4732New predefined names. Support includes iASL and runtime ACPICA 4733validation. 4734 _CCA (Cache Coherency Attribute). 4735 _DSD (Device-Specific Data). David Box. 4736 4737Modifications to existing ACPI tables. Support includes headers, iASL 4738Data Table compiler, disassembler, and the template generator. 4739 FADT - New fields and flags. Graeme Gregory. 4740 GTDT - One new subtable and new fields. Tomasz Nowicki. 4741 MADT - Two new subtables. Tomasz Nowicki. 4742 PCCT - One new subtable. 4743 4744Miscellaneous. 4745 New notification type for System Resource Affinity change events. 4746 4747 47481) ACPICA kernel-resident subsystem: 4749 4750Fixed a regression introduced in 20140627 where a fault can happen during 4751the deletion of Alias AML namespace objects. The problem affected both 4752the core ACPICA and the ACPICA tools including iASL and AcpiExec. 4753 4754Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 4755simple mechanism to enable wake GPEs that have no associated handler or 4756control method. Rafael Wysocki. 4757 4758Updated the AcpiEnableGpe interface to disallow the enable if there is no 4759handler or control method associated with the particular GPE. This will 4760help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 4761 4762Updated GPE handling and dispatch by disabling the GPE before clearing 4763the status bit for edge-triggered GPEs. Lv Zheng. 4764 4765Added Timer() support to the AML Debug object. The current timer value is 4766now displayed with each invocation of (Store to) the debug object to 4767enable simple generation of execution times for AML code (method 4768execution for example.) ACPICA BZ 1093. 4769 4770Example Code and Data Size: These are the sizes for the OS-independent 4771acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4772debug version of the code includes the debug output trace mechanism and 4773has a much larger code and data size. 4774 4775 Current Release: 4776 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 4777 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 4778 Previous Release: 4779 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 4780 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 4781 4782 47832) iASL Compiler/Disassembler and Tools: 4784 4785Fixed an issue with the recently added local printf implementation, 4786concerning width/precision specifiers that could cause incorrect output. 4787Lv Zheng. ACPICA BZ 1094. 4788 4789Disassembler: Added support to detect buffers that contain UUIDs and 4790disassemble them to an invocation of the ToUUID operator. Also emit 4791commented descriptions of known ACPI-related UUIDs. 4792 4793AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 4794-u. Adds three new files. 4795 4796iASL: Update table compiler and disassembler for DMAR table changes that 4797were introduced in September 2013. With assistance by David Woodhouse. 4798 4799---------------------------------------- 480027 June 2014. Summary of changes for version 20140627: 4801 48021) ACPICA kernel-resident subsystem: 4803 4804Formatted Output: Implemented local versions of standard formatted output 4805utilities such as printf, etc. Over time, it has been discovered that 4806there are in fact many portability issues with printf, and the addition 4807of this feature will fix/prevent these issues once and for all. Some 4808known issues are summarized below: 4809 48101) Output of 64-bit values is not portable. For example, UINT64 is %ull 4811for the Linux kernel and is %uI64 for some MSVC versions. 48122) Invoking printf consistently in a manner that is portable across both 481332-bit and 64-bit platforms is difficult at best in many situations. 48143) The output format for pointers varies from system to system (leading 4815zeros especially), and leads to inconsistent output from ACPICA across 4816platforms. 48174) Certain platform-specific printf formats may conflict with ACPICA use. 48185) If there is no local C library available, ACPICA now has local support 4819for printf. 4820 4821-- To address these printf issues in a complete manner, ACPICA now 4822directly implements a small subset of printf format specifiers, only 4823those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 4824 4825Implemented support for ACPICA generation within the EFI environment. 4826Initially, the AcpiDump utility is supported in the UEFI shell 4827environment. Lv Zheng. 4828 4829Added a new external interface, AcpiLogError, to improve ACPICA 4830portability. This allows the host to redirect error messages from the 4831ACPICA utilities. Lv Zheng. 4832 4833Added and deployed new OSL file I/O interfaces to improve ACPICA 4834portability: 4835 AcpiOsOpenFile 4836 AcpiOsCloseFile 4837 AcpiOsReadFile 4838 AcpiOsWriteFile 4839 AcpiOsGetFileOffset 4840 AcpiOsSetFileOffset 4841There are C library implementations of these functions in the new file 4842service_layers/oslibcfs.c -- however, the functions can be implemented by 4843the local host in any way necessary. Lv Zheng. 4844 4845Implemented a mechanism to disable/enable ACPI table checksum validation 4846at runtime. This can be useful when loading tables very early during OS 4847initialization when it may not be possible to map the entire table in 4848order to compute the checksum. Lv Zheng. 4849 4850Fixed a buffer allocation issue for the Generic Serial Bus support. 4851Originally, a fixed buffer length was used. This change allows for 4852variable-length buffers based upon the protocol indicated by the field 4853access attributes. Reported by Lan Tianyu. Lv Zheng. 4854 4855Fixed a problem where an object detached from a namespace node was not 4856properly terminated/cleared and could cause a circular list problem if 4857reattached. ACPICA BZ 1063. David Box. 4858 4859Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 4860 4861Fixed a possible memory leak in an error return path within the function 4862AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 4863 4864Example Code and Data Size: These are the sizes for the OS-independent 4865acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4866debug version of the code includes the debug output trace mechanism and 4867has a much larger code and data size. 4868 4869 Current Release: 4870 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 4871 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 4872 Previous Release: 4873 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4874 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4875 4876 48772) iASL Compiler/Disassembler and Tools: 4878 4879Disassembler: Add dump of ASCII equivalent text within a comment at the 4880end of each line of the output for the Buffer() ASL operator. 4881 4882AcpiDump: Miscellaneous changes: 4883 Fixed repetitive table dump in -n mode. 4884 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 4885the ACPI 2.0 GUID fails. 4886 4887iASL: Fixed a problem where the compiler could fault if incorrectly given 4888an acpidump output file as input. ACPICA BZ 1088. David Box. 4889 4890AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 4891they are invoked without any arguments. 4892 4893Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 48941086. Colin Ian King. 4895 4896Disassembler: Cleaned up a block of code that extracts a parent Op 4897object. Added a comment that explains that the parent is guaranteed to be 4898valid in this case. ACPICA BZ 1069. 4899 4900 4901---------------------------------------- 490224 April 2014. Summary of changes for version 20140424: 4903 49041) ACPICA kernel-resident subsystem: 4905 4906Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 4907Some of these tables are known to contain a trailing NULL entry. Lv 4908Zheng. 4909 4910Removed an extraneous error message for the case where there are a large 4911number of system GPEs (> 124). This was the "32-bit FADT register is too 4912long to convert to GAS struct" message, which is irrelevant for GPEs 4913since the GPEx_BLK_LEN fields of the FADT are always used instead of the 4914(limited capacity) GAS bit length. Also, several changes to ensure proper 4915support for GPE numbers > 255, where some "GPE number" fields were 8-bits 4916internally. 4917 4918Implemented and deployed additional configuration support for the public 4919ACPICA external interfaces. Entire classes of interfaces can now be 4920easily modified or configured out, replaced by stubbed inline functions 4921by default. Lv Zheng. 4922 4923Moved all public ACPICA runtime configuration globals to the public 4924ACPICA external interface file for convenience. Also, removed some 4925obsolete/unused globals. See the file acpixf.h. Lv Zheng. 4926 4927Documentation: Added a new section to the ACPICA reference describing the 4928maximum number of GPEs that can be supported by the FADT-defined GPEs in 4929block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 4930reference. 4931 4932Example Code and Data Size: These are the sizes for the OS-independent 4933acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4934debug version of the code includes the debug output trace mechanism and 4935has a much larger code and data size. 4936 4937 Current Release: 4938 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4939 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4940 Previous Release: 4941 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 4942 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 4943 4944 49452) iASL Compiler/Disassembler and Tools: 4946 4947iASL and disassembler: Add full support for the LPIT table (Low Power 4948Idle Table). Includes support in the disassembler, data table compiler, 4949and template generator. 4950 4951AcpiDump utility: 49521) Add option to force the use of the RSDT (over the XSDT). 49532) Improve validation of the RSDP signature (use 8 chars instead of 4). 4954 4955iASL: Add check for predefined packages that are too large. For 4956predefined names that contain subpackages, check if each subpackage is 4957too large. (Check for too small already exists.) 4958 4959Debugger: Updated the GPE command (which simulates a GPE by executing the 4960GPE code paths in ACPICA). The GPE device is now optional, and defaults 4961to the GPE 0/1 FADT-defined blocks. 4962 4963Unix application OSL: Update line-editing support. Add additional error 4964checking and take care not to reset terminal attributes on exit if they 4965were never set. This should help guarantee that the terminal is always 4966left in the previous state on program exit. 4967 4968 4969---------------------------------------- 497025 March 2014. Summary of changes for version 20140325: 4971 49721) ACPICA kernel-resident subsystem: 4973 4974Updated the auto-serialize feature for control methods. This feature 4975automatically serializes all methods that create named objects in order 4976to prevent runtime errors. The update adds support to ignore the 4977currently executing AML SyncLevel when invoking such a method, in order 4978to prevent disruption of any existing SyncLevel priorities that may exist 4979in the AML code. Although the use of SyncLevels is relatively rare, this 4980change fixes a regression where an AE_AML_MUTEX_ORDER exception can 4981appear on some machines starting with the 20140214 release. 4982 4983Added a new external interface to allow the host to install ACPI tables 4984very early, before the namespace is even created. AcpiInstallTable gives 4985the host additional flexibility for ACPI table management. Tables can be 4986installed directly by the host as if they had originally appeared in the 4987XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 4988(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 4989with additional internal restructuring and cleanup. See the ACPICA 4990Reference for interface details. Lv Zheng. 4991 4992Added validation of the checksum for all incoming dynamically loaded 4993tables (via external interfaces or via AML Load/LoadTable operators). Lv 4994Zheng. 4995 4996Updated the use of the AcpiOsWaitEventsComplete interface during Notify 4997and GPE handler removal. Restructured calls to eliminate possible race 4998conditions. Lv Zheng. 4999 5000Added a warning for the use/execution of the ASL/AML Unload (table) 5001operator. This will help detect and identify machines that use this 5002operator if and when it is ever used. This operator has never been seen 5003in the field and the usage model and possible side-effects of the drastic 5004runtime action of a full table removal are unknown. 5005 5006Reverted the use of #pragma push/pop which was introduced in the 20140214 5007release. It appears that push and pop are not implemented by enough 5008compilers to make the use of this feature feasible for ACPICA at this 5009time. However, these operators may be deployed in a future ACPICA 5010release. 5011 5012Added the missing EXPORT_SYMBOL macros for the install and remove SCI 5013handler interfaces. 5014 5015Source code generation: 50161) Disabled the use of the "strchr" macro for the gcc-specific 5017generation. For some versions of gcc, this macro can periodically expose 5018a compiler bug which in turn causes compile-time error(s). 50192) Added support for PPC64 compilation. Colin Ian King. 5020 5021Example Code and Data Size: These are the sizes for the OS-independent 5022acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5023debug version of the code includes the debug output trace mechanism and 5024has a much larger code and data size. 5025 5026 Current Release: 5027 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 5028 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 5029 Previous Release: 5030 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 5031 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 5032 5033 50342) iASL Compiler/Disassembler and Tools: 5035 5036Disassembler: Added several new features to improve the readability of 5037the resulting ASL code. Extra information is emitted within comment 5038fields in the ASL code: 50391) Known _HID/_CID values are decoded to descriptive text. 50402) Standard values for the Notify() operator are decoded to descriptive 5041text. 50423) Target operands are expanded to full pathnames (in a comment) when 5043possible. 5044 5045Disassembler: Miscellaneous updates for extern() handling: 50461) Abort compiler if file specified by -fe option does not exist. 50472) Silence unnecessary warnings about argument count mismatches. 50483) Update warning messages concerning unresolved method externals. 50494) Emit "UnknownObj" keyword for externals whose type cannot be 5050determined. 5051 5052AcpiHelp utility: 50531) Added the -a option to display both the ASL syntax and the AML 5054encoding for an input ASL operator. This effectively displays all known 5055information about an ASL operator with one AcpiHelp invocation. 50562) Added substring match support (similar to a wildcard) for the -i 5057(_HID/PNP IDs) option. 5058 5059iASL/Disassembler: Since this tool does not yet support execution on big- 5060endian machines, added detection of endianness and an error message if 5061execution is attempted on big-endian. Support for big-endian within iASL 5062is a feature that is on the ACPICA to-be-done list. 5063 5064AcpiBin utility: 50651) Remove option to extract binary files from an acpidump; this function 5066is made obsolete by the AcpiXtract utility. 50672) General cleanup of open files and allocated buffers. 5068 5069 5070---------------------------------------- 507114 February 2014. Summary of changes for version 20140214: 5072 50731) ACPICA kernel-resident subsystem: 5074 5075Implemented a new mechanism to proactively prevent problems with ill- 5076behaved reentrant control methods that create named ACPI objects. This 5077behavior is illegal as per the ACPI specification, but is nonetheless 5078frequently seen in the field. Previously, this could lead to an 5079AE_ALREADY_EXISTS exception if the method was actually entered by more 5080than one thread. This new mechanism detects such methods at table load 5081time and marks them "serialized" to prevent reentrancy. A new global 5082option, AcpiGbl_AutoSerializeMethods, has been added to disable this 5083feature if desired. This mechanism and global option obsoletes and 5084supersedes the previous AcpiGbl_SerializeAllMethods option. 5085 5086Added the "Windows 2013" string to the _OSI support. ACPICA will now 5087respond TRUE to _OSI queries with this string. It is the stated policy of 5088ACPICA to add new strings to the _OSI support as soon as possible after 5089they are defined. See the full ACPICA _OSI policy which has been added to 5090the utilities/utosi.c file. 5091 5092Hardened/updated the _PRT return value auto-repair code: 50931) Do not abort the repair on a single subpackage failure, continue to 5094check all subpackages. 50952) Add check for the minimum subpackage length (4). 50963) Properly handle extraneous NULL package elements. 5097 5098Added support to avoid the possibility of infinite loops when traversing 5099object linked lists. Never allow an infinite loop, even in the face of 5100corrupted object lists. 5101 5102ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 5103pack(pop) directives to ensure that the ACPICA headers are independent of 5104compiler settings or other host headers. 5105 5106Example Code and Data Size: These are the sizes for the OS-independent 5107acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5108debug version of the code includes the debug output trace mechanism and 5109has a much larger code and data size. 5110 5111 Current Release: 5112 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 5113 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 5114 Previous Release: 5115 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 5116 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 5117 5118 51192) iASL Compiler/Disassembler and Tools: 5120 5121iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 5122first reserved field was incorrectly forced to have a value of zero. This 5123change correctly forces the field to have a value of one. ACPICA BZ 1081. 5124 5125Debugger: Added missing support for the "Extra" and "Data" subobjects 5126when displaying object data. 5127 5128Debugger: Added support to display entire object linked lists when 5129displaying object data. 5130 5131iASL: Removed the obsolete -g option to obtain ACPI tables from the 5132Windows registry. This feature has been superseded by the acpidump 5133utility. 5134 5135 5136---------------------------------------- 513714 January 2014. Summary of changes for version 20140114: 5138 51391) ACPICA kernel-resident subsystem: 5140 5141Updated all ACPICA copyrights and signons to 2014. Added the 2014 5142copyright to all module headers and signons, including the standard Linux 5143header. This affects virtually every file in the ACPICA core subsystem, 5144iASL compiler, all ACPICA utilities, and the test suites. 5145 5146Improved parameter validation for AcpiInstallGpeBlock. Added the 5147following checks: 51481) The incoming device handle refers to type ACPI_TYPE_DEVICE. 51492) There is not already a GPE block attached to the device. 5150Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 5151device. 5152 5153Correctly support "references" in the ACPI_OBJECT. This change fixes the 5154support to allow references (namespace nodes) to be passed as arguments 5155to control methods via the evaluate object interface. This is probably 5156most useful for testing purposes, however. 5157 5158Improved support for 32/64 bit physical addresses in printf()-like 5159output. This change improves the support for physical addresses in printf 5160debug statements and other output on both 32-bit and 64-bit hosts. It 5161consistently outputs the appropriate number of bytes for each host. The 5162%p specifier is unsatisfactory since it does not emit uniform output on 5163all hosts/clib implementations (on some, leading zeros are not supported, 5164leading to difficult-to-read output). 5165 5166Example Code and Data Size: These are the sizes for the OS-independent 5167acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5168debug version of the code includes the debug output trace mechanism and 5169has a much larger code and data size. 5170 5171 Current Release: 5172 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 5173 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 5174 Previous Release: 5175 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 5176 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 5177 5178 51792) iASL Compiler/Disassembler and Tools: 5180 5181iASL: Fix a possible fault when using the Connection() operator. Fixes a 5182problem if the parent Field definition for the Connection operator refers 5183to an operation region that does not exist. ACPICA BZ 1064. 5184 5185AcpiExec: Load of local test tables is now optional. The utility has the 5186capability to load some various tables to test features of ACPICA. 5187However, there are enough of them that the output of the utility became 5188confusing. With this change, only the required local tables are displayed 5189(RSDP, XSDT, etc.) along with the actual tables loaded via the command 5190line specification. This makes the default output simler and easier to 5191understand. The -el command line option restores the original behavior 5192for testing purposes. 5193 5194AcpiExec: Added support for overlapping operation regions. This change 5195expands the simulation of operation regions by supporting regions that 5196overlap within the given address space. Supports SystemMemory and 5197SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 5198 5199AcpiExec: Added region handler support for PCI_Config and EC spaces. This 5200allows AcpiExec to simulate these address spaces, similar to the current 5201support for SystemMemory and SystemIO. 5202 5203Debugger: Added new command to read/write/compare all namespace objects. 5204The command "test objects" will exercise the entire namespace by writing 5205new values to each data object, and ensuring that the write was 5206successful. The original value is then restored and verified. 5207 5208Debugger: Added the "test predefined" command. This change makes this 5209test public and puts it under the new "test" command. The test executes 5210each and every predefined name within the current namespace. 5211 5212 5213---------------------------------------- 521418 December 2013. Summary of changes for version 20131218: 5215 5216Global note: The ACPI 5.0A specification was released this month. There 5217are no changes needed for ACPICA since this release of ACPI is an 5218errata/clarification release. The specification is available at 5219acpi.info. 5220 5221 52221) ACPICA kernel-resident subsystem: 5223 5224Added validation of the XSDT root table if it is present. Some older 5225platforms contain an XSDT that is ill-formed or otherwise invalid (such 5226as containing some or all entries that are NULL pointers). This change 5227adds a new function to validate the XSDT before actually using it. If the 5228XSDT is found to be invalid, ACPICA will now automatically fall back to 5229using the RSDT instead. Original implementation by Zhao Yakui. Ported to 5230ACPICA and enhanced by Lv Zheng and Bob Moore. 5231 5232Added a runtime option to ignore the XSDT and force the use of the RSDT. 5233This change adds a runtime option that will force ACPICA to use the RSDT 5234instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 5235requires that an XSDT be used instead of the RSDT, the XSDT has been 5236found to be corrupt or ill-formed on some machines. Lv Zheng. 5237 5238Added a runtime option to favor 32-bit FADT register addresses over the 523964-bit addresses. This change adds an option to favor 32-bit FADT 5240addresses when there is a conflict between the 32-bit and 64-bit versions 5241of the same register. The default behavior is to use the 64-bit version 5242in accordance with the ACPI specification. This can now be overridden via 5243the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 5244 5245During the change above, the internal "Convert FADT" and "Verify FADT" 5246functions have been merged to simplify the code, making it easier to 5247understand and maintain. ACPICA BZ 933. 5248 5249Improve exception reporting and handling for GPE block installation. 5250Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 5251status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 5252 5253Added helper macros to extract bus/segment numbers from the HEST table. 5254This change adds two macros to extract the encoded bus and segment 5255numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 5256Betty Dall <betty.dall@hp.com> 5257 5258Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 5259by ACPICA. It is not a public macro, so it should have no effect on 5260existing OSV code. Lv Zheng. 5261 5262Example Code and Data Size: These are the sizes for the OS-independent 5263acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5264debug version of the code includes the debug output trace mechanism and 5265has a much larger code and data size. 5266 5267 Current Release: 5268 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 5269 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 5270 Previous Release: 5271 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 5272 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 5273 5274 52752) iASL Compiler/Disassembler and Tools: 5276 5277Disassembler: Improved pathname support for emitted External() 5278statements. This change adds full pathname support for external names 5279that have been resolved internally by the inclusion of additional ACPI 5280tables (via the iASL -e option). Without this change, the disassembler 5281can emit multiple externals for the same object, or it become confused 5282when the Scope() operator is used on an external object. Overall, greatly 5283improves the ability to actually recompile the emitted ASL code when 5284objects a referenced across multiple ACPI tables. Reported by Michael 5285Tsirkin (mst@redhat.com). 5286 5287Tests/ASLTS: Updated functional control suite to execute with no errors. 5288David Box. Fixed several errors related to the testing of the interpreter 5289slack mode. Lv Zheng. 5290 5291iASL: Added support to detect names that are declared within a control 5292method, but are unused (these are temporary names that are only valid 5293during the time the method is executing). A remark is issued for these 5294cases. ACPICA BZ 1022. 5295 5296iASL: Added full support for the DBG2 table. Adds full disassembler, 5297table compiler, and template generator support for the DBG2 table (Debug 5298Port 2 table). 5299 5300iASL: Added full support for the PCCT table, update the table definition. 5301Updates the PCCT table definition in the actbl3.h header and adds table 5302compiler and template generator support. 5303 5304iASL: Added an option to emit only error messages (no warnings/remarks). 5305The -ve option will enable only error messages, warnings and remarks are 5306suppressed. This can simplify debugging when only the errors are 5307important, such as when an ACPI table is disassembled and there are many 5308warnings and remarks -- but only the actual errors are of real interest. 5309 5310Example ACPICA code (source/tools/examples): Updated the example code so 5311that it builds to an actual working program, not just example code. Added 5312ACPI tables and execution of an example control method in the DSDT. Added 5313makefile support for Unix generation. 5314 5315 5316---------------------------------------- 531715 November 2013. Summary of changes for version 20131115: 5318 5319This release is available at https://acpica.org/downloads 5320 5321 53221) ACPICA kernel-resident subsystem: 5323 5324Resource Manager: Fixed loop termination for the "get AML length" 5325function. The loop previously had an error termination on a NULL resource 5326pointer, which can never happen since the loop simply increments a valid 5327resource pointer. This fix changes the loop to terminate with an error on 5328an invalid end-of-buffer condition. The problem can be seen as an 5329infinite loop by callers to AcpiSetCurrentResources with an invalid or 5330corrupted resource descriptor, or a resource descriptor that is missing 5331an END_TAG descriptor. Reported by Dan Carpenter 5332<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 5333 5334Table unload and ACPICA termination: Delete all attached data objects 5335during namespace node deletion. This fix updates namespace node deletion 5336to delete the entire list of attached objects (attached via 5337AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 53381024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 5339 5340ACPICA termination: Added support to delete all objects attached to the 5341root namespace node. This fix deletes any and all objects that have been 5342attached to the root node via AcpiAttachData. Previously, none of these 5343objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 5344 5345Debug output: Do not emit the function nesting level for the in-kernel 5346build. The nesting level is really only useful during a single-thread 5347execution. Therefore, only enable this output for the AcpiExec utility. 5348Also, only emit the thread ID when executing under AcpiExec (Context 5349switches are still always detected and a message is emitted). ACPICA BZ 5350972. 5351 5352Example Code and Data Size: These are the sizes for the OS-independent 5353acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5354debug version of the code includes the debug output trace mechanism and 5355has a much larger code and data size. 5356 5357 Current Release: 5358 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 5359 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 5360 Previous Release: 5361 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 5362 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 5363 5364 53652) iASL Compiler/Disassembler and Tools: 5366 5367AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 5368correct portable POSIX header for terminal control functions. 5369 5370Disassembler: Fixed control method invocation issues related to the use 5371of the CondRefOf() operator. The problem is seen in the disassembly where 5372control method invocations may not be disassembled properly if the 5373control method name has been used previously as an argument to CondRefOf. 5374The solution is to not attempt to emit an external declaration for the 5375CondRefOf target (it is not necessary in the first place). This prevents 5376disassembler object type confusion. ACPICA BZ 988. 5377 5378Unix Makefiles: Added an option to disable compiler optimizations and the 5379_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 5380with optimizations (reportedly, gcc 4.4 for example). This change adds a 5381command line option for make (NOOPT) that disables all compiler 5382optimizations and the _FORTIFY_SOURCE compiler flag. The default 5383optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 53841034. Lv Zheng, Bob Moore. 5385 5386Tests/ASLTS: Added options to specify individual test cases and modes. 5387This allows testers running aslts.sh to optionally specify individual 5388test modes and test cases. Also added an option to disable the forced 5389generation of the ACPICA tools from source if desired. Lv Zheng. 5390 5391---------------------------------------- 539227 September 2013. Summary of changes for version 20130927: 5393 5394This release is available at https://acpica.org/downloads 5395 5396 53971) ACPICA kernel-resident subsystem: 5398 5399Fixed a problem with store operations to reference objects. This change 5400fixes a problem where a Store operation to an ArgX object that contained 5401a 5402reference to a field object did not complete the automatic dereference 5403and 5404then write to the actual field object. Instead, the object type of the 5405field object was inadvertently changed to match the type of the source 5406operand. The new behavior will actually write to the field object (buffer 5407field or field unit), thus matching the correct ACPI-defined behavior. 5408 5409Implemented support to allow the host to redefine individual OSL 5410prototypes. This change enables the host to redefine OSL prototypes found 5411in the acpiosxf.h file. This allows the host to implement OSL interfaces 5412with a macro or inlined function. Further, it allows the host to add any 5413additional required modifiers such as __iomem, __init, __exit, etc., as 5414necessary on a per-interface basis. Enables maximum flexibility for the 5415OSL interfaces. Lv Zheng. 5416 5417Hardcoded the access width for the FADT-defined reset register. The ACPI 5418specification requires the reset register width to be 8 bits. ACPICA now 5419hardcodes the width to 8 and ignores the FADT width value. This provides 5420compatibility with other ACPI implementations that have allowed BIOS code 5421with bad register width values to go unnoticed. Matthew Garett, Bob 5422Moore, 5423Lv Zheng. 5424 5425Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 5426used 5427in the OSL header (acpiosxf). The change modifies the position of this 5428macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 5429build issues if the OSL defines the implementation of the interface to be 5430an inline stub function. Lv Zheng. 5431 5432Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 5433initialization interfaces. This change adds a new macro for the main init 5434and terminate external interfaces in order to support hosts that require 5435additional or different processing for these functions. Changed from 5436ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 5437Zheng, Bob Moore. 5438 5439Cleaned up the memory allocation macros for configurability. In the 5440common 5441case, the ACPI_ALLOCATE and related macros now resolve directly to their 5442respective AcpiOs* OSL interfaces. Two options: 54431) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 5444default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 54452) For AcpiExec (and for debugging), the macros can optionally be 5446resolved 5447to the local ACPICA interfaces that track each allocation (local tracking 5448is used to immediately detect memory leaks). 5449Lv Zheng. 5450 5451Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 5452to predefine this macro to either TRUE or FALSE during the system build. 5453 5454Replaced __FUNCTION_ with __func__ in the gcc-specific header. 5455 5456Example Code and Data Size: These are the sizes for the OS-independent 5457acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5458debug version of the code includes the debug output trace mechanism and 5459has a much larger code and data size. 5460 5461 Current Release: 5462 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 5463 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 5464 Previous Release: 5465 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 5466 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5467 5468 54692) iASL Compiler/Disassembler and Tools: 5470 5471iASL: Implemented wildcard support for the -e option. This simplifies use 5472when there are many SSDTs that must be included to resolve external 5473method 5474declarations. ACPICA BZ 1041. Example: 5475 iasl -e ssdt*.dat -d dsdt.dat 5476 5477AcpiExec: Add history/line-editing for Unix/Linux systems. This change 5478adds a portable module that implements full history and limited line 5479editing for Unix and Linux systems. It does not use readline() due to 5480portability issues. Instead it uses the POSIX termio interface to put the 5481terminal in raw input mode so that the various special keys can be 5482trapped 5483(such as up/down-arrow for history support and left/right-arrow for line 5484editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 5485 5486AcpiXtract: Add support to handle (ignore) "empty" lines containing only 5487one or more spaces. This provides compatible with early or different 5488versions of the AcpiDump utility. ACPICA BZ 1044. 5489 5490AcpiDump: Do not ignore tables that contain only an ACPI table header. 5491Apparently, some BIOSs create SSDTs that contain an ACPI table header but 5492no other data. This change adds support to dump these tables. Any tables 5493shorter than the length of an ACPI table header remain in error (an error 5494message is emitted). Reported by Yi Li. 5495 5496Debugger: Echo actual command along with the "unknown command" message. 5497 5498---------------------------------------- 549923 August 2013. Summary of changes for version 20130823: 5500 55011) ACPICA kernel-resident subsystem: 5502 5503Implemented support for host-installed System Control Interrupt (SCI) 5504handlers. Certain ACPI functionality requires the host to handle raw 5505SCIs. For example, the "SCI Doorbell" that is defined for memory power 5506state support requires the host device driver to handle SCIs to examine 5507if the doorbell has been activated. Multiple SCI handlers can be 5508installed to allow for future expansion. New external interfaces are 5509AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 5510details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 5511 5512Operation region support: Never locally free the handler "context" 5513pointer. This change removes some dangerous code that attempts to free 5514the handler context pointer in some (rare) circumstances. The owner of 5515the handler owns this pointer and the ACPICA code should never touch it. 5516Although not seen to be an issue in any kernel, it did show up as a 5517problem (fault) under AcpiExec. Also, set the internal storage field for 5518the context pointer to zero when the region is deactivated, simply for 5519sanity. David Box. ACPICA BZ 1039. 5520 5521AcpiRead: On error, do not modify the return value target location. If an 5522error happens in the middle of a split 32/32 64-bit I/O operation, do not 5523modify the target of the return value pointer. Makes the code consistent 5524with the rest of ACPICA. Bjorn Helgaas. 5525 5526Example Code and Data Size: These are the sizes for the OS-independent 5527acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5528debug version of the code includes the debug output trace mechanism and 5529has a much larger code and data size. 5530 5531 Current Release: 5532 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 5533 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5534 Previous Release: 5535 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 5536 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 5537 5538 55392) iASL Compiler/Disassembler and Tools: 5540 5541AcpiDump: Implemented several new features and fixed some problems: 55421) Added support to dump the RSDP, RSDT, and XSDT tables. 55432) Added support for multiple table instances (SSDT, UEFI). 55443) Added option to dump "customized" (overridden) tables (-c). 55454) Fixed a problem where some table filenames were improperly 5546constructed. 55475) Improved some error messages, removed some unnecessary messages. 5548 5549iASL: Implemented additional support for disassembly of ACPI tables that 5550contain invocations of external control methods. The -fe<file> option 5551allows the import of a file that specifies the external methods along 5552with the required number of arguments for each -- allowing for the 5553correct disassembly of the table. This is a workaround for a limitation 5554of AML code where the disassembler often cannot determine the number of 5555arguments required for an external control method and generates incorrect 5556ASL code. See the iASL reference for details. ACPICA BZ 1030. 5557 5558Debugger: Implemented a new command (paths) that displays the full 5559pathnames (namepaths) and object types of all objects in the namespace. 5560This is an alternative to the namespace command. 5561 5562Debugger: Implemented a new command (sci) that invokes the SCI dispatch 5563mechanism and any installed handlers. 5564 5565iASL: Fixed a possible segfault for "too many parent prefixes" condition. 5566This can occur if there are too many parent prefixes in a namepath (for 5567example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 5568 5569Application OSLs: Set the return value for the PCI read functions. These 5570functions simply return AE_OK, but should set the return value to zero 5571also. This change implements this. ACPICA BZ 1038. 5572 5573Debugger: Prevent possible command line buffer overflow. Increase the 5574size of a couple of the debugger line buffers, and ensure that overflow 5575cannot happen. ACPICA BZ 1037. 5576 5577iASL: Changed to abort immediately on serious errors during the parsing 5578phase. Due to the nature of ASL, there is no point in attempting to 5579compile these types of errors, and they typically end up causing a 5580cascade of hundreds of errors which obscure the original problem. 5581 5582---------------------------------------- 558325 July 2013. Summary of changes for version 20130725: 5584 55851) ACPICA kernel-resident subsystem: 5586 5587Fixed a problem with the DerefOf operator where references to FieldUnits 5588and BufferFields incorrectly returned the parent object, not the actual 5589value of the object. After this change, a dereference of a FieldUnit 5590reference results in a read operation on the field to get the value, and 5591likewise, the appropriate BufferField value is extracted from the target 5592buffer. 5593 5594Fixed a problem where the _WAK method could cause a fault under these 5595circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 5596method returned no value. The problem is rarely seen because most kernels 5597run ACPICA in slack mode. 5598 5599For the DerefOf operator, a fatal error now results if an attempt is made 5600to dereference a reference (created by the Index operator) to a NULL 5601package element. Provides compatibility with other ACPI implementations, 5602and this behavior will be added to a future version of the ACPI 5603specification. 5604 5605The ACPI Power Management Timer (defined in the FADT) is now optional. 5606This provides compatibility with other ACPI implementations and will 5607appear in the next version of the ACPI specification. If there is no PM 5608Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 5609zero in the FADT indicates no PM timer. 5610 5611Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 5612allows the host to globally enable/disable all vendor strings, all 5613feature strings, or both. Intended to be primarily used for debugging 5614purposes only. Lv Zheng. 5615 5616Expose the collected _OSI data to the host via a global variable. This 5617data tracks the highest level vendor ID that has been invoked by the BIOS 5618so that the host (and potentially ACPICA itself) can change behaviors 5619based upon the age of the BIOS. 5620 5621Example Code and Data Size: These are the sizes for the OS-independent 5622acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5623debug version of the code includes the debug output trace mechanism and 5624has a much larger code and data size. 5625 5626 Current Release: 5627 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 5628 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5629 Previous Release: 5630 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 5631 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 5632 5633 56342) iASL Compiler/Disassembler and Tools: 5635 5636iASL: Created the following enhancements for the -so option (create 5637offset table): 56381)Add offsets for the last nameseg in each namepath for every supported 5639object type 56402)Add support for Processor, Device, Thermal Zone, and Scope objects 56413)Add the actual AML opcode for the parent object of every supported 5642object type 56434)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 5644 5645Disassembler: Emit all unresolved external symbols in a single block. 5646These are external references to control methods that could not be 5647resolved, and thus, the disassembler had to make a guess at the number of 5648arguments to parse. 5649 5650iASL: The argument to the -T option (create table template) is now 5651optional. If not specified, the default table is a DSDT, typically the 5652most common case. 5653 5654---------------------------------------- 565526 June 2013. Summary of changes for version 20130626: 5656 56571) ACPICA kernel-resident subsystem: 5658 5659Fixed an issue with runtime repair of the _CST object. Null or invalid 5660elements were not always removed properly. Lv Zheng. 5661 5662Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 5663FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 5664the maximum number of GPEs is 1016. Use of multiple GPE block devices 5665makes the system-wide number of GPEs essentially unlimited. 5666 5667Example Code and Data Size: These are the sizes for the OS-independent 5668acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5669debug version of the code includes the debug output trace mechanism and 5670has a much larger code and data size. 5671 5672 Current Release: 5673 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 5674 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 5675 Previous Release: 5676 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 5677 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 5678 5679 56802) iASL Compiler/Disassembler and Tools: 5681 5682Portable AcpiDump: Implemented full support for the Linux and FreeBSD 5683hosts. Now supports Linux, FreeBSD, and Windows. 5684 5685Disassembler: Added some missing types for the HEST and EINJ tables: "Set 5686Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 5687 5688iASL/Preprocessor: Implemented full support for nested 5689#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 5690 5691Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 5692max. The original purpose of this constraint was to limit the amount of 5693debug output. However, the string function in question (UtPrintString) is 5694now used for the disassembler also, where 256 bytes is insufficient. 5695Reported by RehabMan@GitHub. 5696 5697iASL/DataTables: Fixed some problems and issues with compilation of DMAR 5698tables. ACPICA BZ 999. Lv Zheng. 5699 5700iASL: Fixed a couple of error exit issues that could result in a "Could 5701not delete <file>" message during ASL compilation. 5702 5703AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 5704the actual signatures for these tables are "FACP" and "APIC", 5705respectively. 5706 5707AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 5708tables are allowed to have multiple instances. 5709 5710---------------------------------------- 571117 May 2013. Summary of changes for version 20130517: 5712 57131) ACPICA kernel-resident subsystem: 5714 5715Fixed a regression introduced in version 20130328 for _INI methods. This 5716change fixes a problem introduced in 20130328 where _INI methods are no 5717longer executed properly because of a memory block that was not 5718initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 5719<tomasz.nowicki@linaro.org>. 5720 5721Fixed a possible problem with the new extended sleep registers in the 5722ACPI 57235.0 FADT. Do not use these registers (even if populated) unless the HW- 5724reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 57251020. Lv Zheng. 5726 5727Implemented return value repair code for _CST predefined objects: Sort 5728the 5729list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 5730 5731Implemented a debug-only option to disable loading of SSDTs from the 5732RSDT/XSDT during ACPICA initialization. This can be useful for debugging 5733ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 5734acglobal.h - ACPICA BZ 1005. Lv Zheng. 5735 5736Fixed some issues in the ACPICA initialization and termination code: 5737Tomasz Nowicki <tomasz.nowicki@linaro.org> 57381) Clear events initialized flag upon event component termination. ACPICA 5739BZ 1013. 57402) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 57413) Delete global lock pending lock during termination. ACPICA BZ 1012. 57424) Clear debug buffer global on termination to prevent possible multiple 5743delete. ACPICA BZ 1010. 5744 5745Standardized all switch() blocks across the entire source base. After 5746many 5747years, different formatting for switch() had crept in. This change makes 5748the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 5749 5750Split some files to enhance ACPICA modularity and configurability: 57511) Split buffer dump routines into utilities/utbuffer.c 57522) Split internal error message routines into utilities/uterror.c 57533) Split table print utilities into tables/tbprint.c 57544) Split iASL command-line option processing into asloptions.c 5755 5756Makefile enhancements: 57571) Support for all new files above. 57582) Abort make on errors from any subcomponent. Chao Guan. 57593) Add build support for Apple Mac OS X. Liang Qi. 5760 5761Example Code and Data Size: These are the sizes for the OS-independent 5762acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5763debug version of the code includes the debug output trace mechanism and 5764has a much larger code and data size. 5765 5766 Current Release: 5767 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 5768 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 5769 Previous Release: 5770 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 5771 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 5772 5773 57742) iASL Compiler/Disassembler and Tools: 5775 5776New utility: Implemented an easily portable version of the acpidump 5777utility to extract ACPI tables from the system (or a file) in an ASCII 5778hex 5779dump format. The top-level code implements the various command line 5780options, file I/O, and table dump routines. To port to a new host, only 5781three functions need to be implemented to get tables -- since this 5782functionality is OS-dependent. See the tools/acpidump/apmain.c module and 5783the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 57841) The Windows version obtains the ACPI tables from the Registry. 57852) The Linux version is under development. 57863) Other hosts - If an OS-dependent module is submitted, it will be 5787distributed with ACPICA. 5788 5789iASL: Fixed a regression for -D preprocessor option (define symbol). A 5790restructuring/change to the initialization sequence caused this option to 5791no longer work properly. 5792 5793iASL: Implemented a mechanism to disable specific warnings and remarks. 5794Adds a new command line option, "-vw <messageid> as well as "#pragma 5795disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 5796 5797iASL: Fix for too-strict package object validation. The package object 5798validation for return values from the predefined names is a bit too 5799strict, it does not allow names references within the package (which will 5800be resolved at runtime.) These types of references cannot be validated at 5801compile time. This change ignores named references within package objects 5802for names that return or define static packages. 5803 5804Debugger: Fixed the 80-character command line limitation for the History 5805command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 5806 5807iASL: Added control method and package support for the -so option 5808(generates AML offset table for BIOS support.) 5809 5810iASL: issue a remark if a non-serialized method creates named objects. If 5811a thread blocks within the method for any reason, and another thread 5812enters the method, the method will fail because an attempt will be made 5813to 5814create the same (named) object twice. In this case, issue a remark that 5815the method should be marked serialized. NOTE: may become a warning later. 5816ACPICA BZ 909. 5817 5818---------------------------------------- 581918 April 2013. Summary of changes for version 20130418: 5820 58211) ACPICA kernel-resident subsystem: 5822 5823Fixed a possible buffer overrun during some rare but specific field unit 5824read operations. This overrun can only happen if the DSDT version is 1 -- 5825meaning that all AML integers are 32 bits -- and the field length is 5826between 33 and 55 bits long. During the read, an internal buffer object 5827is 5828created for the field unit because the field is larger than an integer 5829(32 5830bits). However, in this case, the buffer will be incorrectly written 5831beyond the end because the buffer length is less than the internal 5832minimum 5833of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 5834long, but a full 8 bytes will be written. 5835 5836Updated the Embedded Controller "orphan" _REG method support. This refers 5837to _REG methods under the EC device that have no corresponding operation 5838region. This is allowed by the ACPI specification. This update removes a 5839dependency on the existence an ECDT table. It will execute an orphan _REG 5840method as long as the operation region handler for the EC is installed at 5841the EC device node and not the namespace root. Rui Zhang (original 5842update), Bob Moore (update/integrate). 5843 5844Implemented run-time argument typechecking for all predefined ACPI names 5845(_STA, _BIF, etc.) This change performs object typechecking on all 5846incoming arguments for all predefined names executed via 5847AcpiEvaluateObject. This ensures that ACPI-related device drivers are 5848passing correct object types as well as the correct number of arguments 5849(therefore identifying any issues immediately). Also, the ASL/namespace 5850definition of the predefined name is checked against the ACPI 5851specification for the proper argument count. Adds one new file, 5852nsarguments.c 5853 5854Changed an exception code for the ASL UnLoad() operator. Changed the 5855exception code for the case where the input DdbHandle is invalid, from 5856AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 5857 5858Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 5859global makefile. The use of this flag causes compiler errors on earlier 5860versions of GCC, so it has been removed for compatibility. 5861 5862Miscellaneous cleanup: 58631) Removed some unused/obsolete macros 58642) Fixed a possible memory leak in the _OSI support 58653) Removed an unused variable in the predefined name support 58664) Windows OSL: remove obsolete reference to a memory list field 5867 5868Example Code and Data Size: These are the sizes for the OS-independent 5869acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5870debug version of the code includes the debug output trace mechanism and 5871has a much larger code and data size. 5872 5873 Current Release: 5874 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5875 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5876 Previous Release: 5877 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 5878 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 5879 5880 58812) iASL Compiler/Disassembler and Tools: 5882 5883AcpiExec: Added installation of a handler for the SystemCMOS address 5884space. This prevents control method abort if a method accesses this 5885space. 5886 5887AcpiExec: Added support for multiple EC devices, and now install EC 5888operation region handler(s) at the actual EC device instead of the 5889namespace root. This reflects the typical behavior of host operating 5890systems. 5891 5892AcpiExec: Updated to ensure that all operation region handlers are 5893installed before the _REG methods are executed. This prevents a _REG 5894method from aborting if it accesses an address space has no handler. 5895AcpiExec installs a handler for every possible address space. 5896 5897Debugger: Enhanced the "handlers" command to display non-root handlers. 5898This change enhances the handlers command to display handlers associated 5899with individual devices throughout the namespace, in addition to the 5900currently supported display of handlers associated with the root 5901namespace 5902node. 5903 5904ASL Test Suite: Several test suite errors have been identified and 5905resolved, reducing the total error count during execution. Chao Guan. 5906 5907---------------------------------------- 590828 March 2013. Summary of changes for version 20130328: 5909 59101) ACPICA kernel-resident subsystem: 5911 5912Fixed several possible race conditions with the internal object reference 5913counting mechanism. Some of the external ACPICA interfaces update object 5914reference counts without holding the interpreter or namespace lock. This 5915change adds a spinlock to protect reference count updates on the internal 5916ACPICA objects. Reported by and with assistance from Andriy Gapon 5917(avg@FreeBSD.org). 5918 5919FADT support: Removed an extraneous warning for very large GPE register 5920sets. This change removes a size mismatch warning if the legacy length 5921field for a GPE register set is larger than the 64-bit GAS structure can 5922accommodate. GPE register sets can be larger than the 255-bit width 5923limitation of the GAS structure. Linn Crosetto (linn@hp.com). 5924 5925_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 5926return from this interface. Handles a possible timeout case if 5927ACPI_WAIT_FOREVER is modified by the host to be a value less than 5928"forever". Jung-uk Kim. 5929 5930Predefined name support: Add allowed/required argument type information 5931to 5932the master predefined info table. This change adds the infrastructure to 5933enable typechecking on incoming arguments for all predefined 5934methods/objects. It does not actually contain the code that will fully 5935utilize this information, this is still under development. Also condenses 5936some duplicate code for the predefined names into a new module, 5937utilities/utpredef.c 5938 5939Example Code and Data Size: These are the sizes for the OS-independent 5940acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5941debug version of the code includes the debug output trace mechanism and 5942has a much larger code and data size. 5943 5944 Previous Release: 5945 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 5946 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 5947 Current Release: 5948 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5949 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5950 5951 59522) iASL Compiler/Disassembler and Tools: 5953 5954iASL: Implemented a new option to simplify the development of ACPI- 5955related 5956BIOS code. Adds support for a new "offset table" output file. The -so 5957option will create a C table containing the AML table offsets of various 5958named objects in the namespace so that BIOS code can modify them easily 5959at 5960boot time. This can simplify BIOS runtime code by eliminating expensive 5961searches for "magic values", enhancing boot times and adding greater 5962reliability. With assistance from Lee Hamel. 5963 5964iASL: Allow additional predefined names to return zero-length packages. 5965Now, all predefined names that are defined by the ACPI specification to 5966return a "variable-length package of packages" are allowed to return a 5967zero length top-level package. This allows the BIOS to tell the host that 5968the requested feature is not supported, and supports existing BIOS/ASL 5969code and practices. 5970 5971iASL: Changed the "result not used" warning to an error. This is the case 5972where an ASL operator is effectively a NOOP because the result of the 5973operation is not stored anywhere. For example: 5974 Add (4, Local0) 5975There is no target (missing 3rd argument), nor is the function return 5976value used. This is potentially a very serious problem -- since the code 5977was probably intended to do something, but for whatever reason, the value 5978was not stored. Therefore, this issue has been upgraded from a warning to 5979an error. 5980 5981AcpiHelp: Added allowable/required argument types to the predefined names 5982info display. This feature utilizes the recent update to the predefined 5983names table (above). 5984 5985---------------------------------------- 598614 February 2013. Summary of changes for version 20130214: 5987 59881) ACPICA Kernel-resident Subsystem: 5989 5990Fixed a possible regression on some hosts: Reinstated the safe return 5991macros (return_ACPI_STATUS, etc.) that ensure that the argument is 5992evaluated only once. Although these macros are not needed for the ACPICA 5993code itself, they are often used by ACPI-related host device drivers 5994where 5995the safe feature may be necessary. 5996 5997Fixed several issues related to the ACPI 5.0 reduced hardware support 5998(SOC): Now ensure that if the platform declares itself as hardware- 5999reduced 6000via the FADT, the following functions become NOOPs (and always return 6001AE_OK) because ACPI is always enabled by definition on these machines: 6002 AcpiEnable 6003 AcpiDisable 6004 AcpiHwGetMode 6005 AcpiHwSetMode 6006 6007Dynamic Object Repair: Implemented additional runtime repairs for 6008predefined name return values. Both of these repairs can simplify code in 6009the related device drivers that invoke these methods: 60101) For the _STR and _MLS names, automatically repair/convert an ASCII 6011string to a Unicode buffer. 60122) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 6013a 6014lone end tag descriptor in the following cases: A Return(0) was executed, 6015a null buffer was returned, or no object at all was returned (non-slack 6016mode only). Adds a new file, nsconvert.c 6017ACPICA BZ 998. Bob Moore, Lv Zheng. 6018 6019Resource Manager: Added additional code to prevent possible infinite 6020loops 6021while traversing corrupted or ill-formed resource template buffers. Check 6022for zero-length resource descriptors in all code that loops through 6023resource templates (the length field is used to index through the 6024template). This change also hardens the external AcpiWalkResources and 6025AcpiWalkResourceBuffer interfaces. 6026 6027Local Cache Manager: Enhanced the main data structure to eliminate an 6028unnecessary mechanism to access the next object in the list. Actually 6029provides a small performance enhancement for hosts that use the local 6030ACPICA cache manager. Jung-uk Kim. 6031 6032Example Code and Data Size: These are the sizes for the OS-independent 6033acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6034debug version of the code includes the debug output trace mechanism and 6035has a much larger code and data size. 6036 6037 Previous Release: 6038 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 6039 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 6040 Current Release: 6041 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 6042 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 6043 6044 60452) iASL Compiler/Disassembler and Tools: 6046 6047iASL/Disassembler: Fixed several issues with the definition of the ACPI 60485.0 RASF table (RAS Feature Table). This change incorporates late changes 6049that were made to the ACPI 5.0 specification. 6050 6051iASL/Disassembler: Added full support for the following new ACPI tables: 6052 1) The MTMR table (MID Timer Table) 6053 2) The VRTC table (Virtual Real Time Clock Table). 6054Includes header file, disassembler, table compiler, and template support 6055for both tables. 6056 6057iASL: Implemented compile-time validation of package objects returned by 6058predefined names. This new feature validates static package objects 6059returned by the various predefined names defined to return packages. Both 6060object types and package lengths are validated, for both parent packages 6061and sub-packages, if any. The code is similar in structure and behavior 6062to 6063the runtime repair mechanism within the AML interpreter and uses the 6064existing predefined name information table. Adds a new file, aslprepkg.c. 6065ACPICA BZ 938. 6066 6067iASL: Implemented auto-detection of binary ACPI tables for disassembly. 6068This feature detects a binary file with a valid ACPI table header and 6069invokes the disassembler automatically. Eliminates the need to 6070specifically invoke the disassembler with the -d option. ACPICA BZ 862. 6071 6072iASL/Disassembler: Added several warnings for the case where there are 6073unresolved control methods during the disassembly. This can potentially 6074cause errors when the output file is compiled, because the disassembler 6075assumes zero method arguments in these cases (it cannot determine the 6076actual number of arguments without resolution/definition of the method). 6077 6078Debugger: Added support to display all resources with a single command. 6079Invocation of the resources command with no arguments will now display 6080all 6081resources within the current namespace. 6082 6083AcpiHelp: Added descriptive text for each ACPICA exception code displayed 6084via the -e option. 6085 6086---------------------------------------- 608717 January 2013. Summary of changes for version 20130117: 6088 60891) ACPICA Kernel-resident Subsystem: 6090 6091Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 6092return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 6093objects to return a package containing one integer, most BIOS code 6094returns 6095two integers and the previous code reflects that. However, we also need 6096to 6097support BIOS code that actually implements to the ACPI spec, and this 6098change reflects this. 6099 6100Fixed two issues with the ACPI_DEBUG_PRINT macros: 61011) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 6102C compilers that require this support. 61032) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 6104ACPI_DEBUG is already used by many of the various hosts. 6105 6106Updated all ACPICA copyrights and signons to 2013. Added the 2013 6107copyright to all module headers and signons, including the standard Linux 6108header. This affects virtually every file in the ACPICA core subsystem, 6109iASL compiler, all ACPICA utilities, and the test suites. 6110 6111Example Code and Data Size: These are the sizes for the OS-independent 6112acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6113debug version of the code includes the debug output trace mechanism and 6114has a much larger code and data size. 6115 6116 Previous Release: 6117 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 6118 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 6119 Current Release: 6120 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 6121 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 6122 6123 61242) iASL Compiler/Disassembler and Tools: 6125 6126Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 6127prevent a possible fault on some hosts. Some C libraries modify the arg 6128pointer parameter to vfprintf making it difficult to call it twice in the 6129AcpiOsVprintf function. Use a local buffer to workaround this issue. This 6130does not affect the Windows OSL since the Win C library does not modify 6131the arg pointer. Chao Guan, Bob Moore. 6132 6133iASL: Fixed a possible infinite loop when the maximum error count is 6134reached. If an output file other than the .AML file is specified (such as 6135a listing file), and the maximum number of errors is reached, do not 6136attempt to flush data to the output file(s) as the compiler is aborting. 6137This can cause an infinite loop as the max error count code essentially 6138keeps calling itself. 6139 6140iASL/Disassembler: Added an option (-in) to ignore NOOP 6141opcodes/operators. 6142Implemented for both the compiler and the disassembler. Often, the NOOP 6143opcode is used as padding for packages that are changed dynamically by 6144the 6145BIOS. When disassembled and recompiled, these NOOPs will cause syntax 6146errors. This option causes the disassembler to ignore all NOOP opcodes 6147(0xA3), and it also causes the compiler to ignore all ASL source code 6148NOOP 6149statements as well. 6150 6151Debugger: Enhanced the Sleep command to execute all sleep states. This 6152change allows Sleep to be invoked with no arguments and causes the 6153debugger to execute all of the sleep states, 0-5, automatically. 6154 6155---------------------------------------- 615620 December 2012. Summary of changes for version 20121220: 6157 61581) ACPICA Kernel-resident Subsystem: 6159 6160Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 6161alternate entry point for AcpiWalkResources and improves the usability of 6162the resource manager by accepting as input a buffer containing the output 6163of either a _CRS, _PRS, or _AEI method. The key functionality is that the 6164input buffer is not deleted by this interface so that it can be used by 6165the host later. See the ACPICA reference for details. 6166 6167Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 6168(DSDT version < 2). The constant will be truncated and this warning 6169reflects that behavior. 6170 6171Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 6172ExtendedInterrupt, and GpioInt descriptors. This change adds support to 6173both get and set the new wake bit in these descriptors, separately from 6174the existing share bit. Reported by Aaron Lu. 6175 6176Interpreter: Fix Store() when an implicit conversion is not possible. For 6177example, in the cases such as a store of a string to an existing package 6178object, implement the store as a CopyObject(). This is a small departure 6179from the ACPI specification which states that the control method should 6180be 6181aborted in this case. However, the ASLTS suite depends on this behavior. 6182 6183Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 6184macros: check if debug output is currently enabled as soon as possible to 6185minimize performance impact if debug is in fact not enabled. 6186 6187Source code restructuring: Cleanup to improve modularity. The following 6188new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 6189psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 6190Associated makefiles and project files have been updated. 6191 6192Changed an exception code for LoadTable operator. For the case where one 6193of the input strings is too long, change the returned exception code from 6194AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 6195 6196Fixed a possible memory leak in dispatcher error path. On error, delete 6197the mutex object created during method mutex creation. Reported by 6198tim.gardner@canonical.com. 6199 6200Example Code and Data Size: These are the sizes for the OS-independent 6201acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6202debug version of the code includes the debug output trace mechanism and 6203has a much larger code and data size. 6204 6205 Previous Release: 6206 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 6207 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6208 Current Release: 6209 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 6210 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 6211 6212 62132) iASL Compiler/Disassembler and Tools: 6214 6215iASL: Disallow a method call as argument to the ObjectType ASL operator. 6216This change tracks an errata to the ACPI 5.0 document. The AML grammar 6217will not allow the interpreter to differentiate between a method and a 6218method invocation when these are used as an argument to the ObjectType 6219operator. The ACPI specification change is to disallow a method 6220invocation 6221(UserTerm) for the ObjectType operator. 6222 6223Finish support for the TPM2 and CSRT tables in the headers, table 6224compiler, and disassembler. 6225 6226Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 6227always expires immediately if the semaphore is not available. The 6228original 6229code was using a relative-time timeout, but sem_timedwait requires the 6230use 6231of an absolute time. 6232 6233iASL: Added a remark if the Timer() operator is used within a 32-bit 6234table. This operator returns a 64-bit time value that will be truncated 6235within a 32-bit table. 6236 6237iASL Source code restructuring: Cleanup to improve modularity. The 6238following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 6239aslmethod.c, and aslfileio.c. Associated makefiles and project files have 6240been updated. 6241 6242 6243---------------------------------------- 624414 November 2012. Summary of changes for version 20121114: 6245 62461) ACPICA Kernel-resident Subsystem: 6247 6248Implemented a performance enhancement for ACPI/AML Package objects. This 6249change greatly increases the performance of Package objects within the 6250interpreter. It changes the processing of reference counts for packages 6251by 6252optimizing for the most common case where the package sub-objects are 6253either Integers, Strings, or Buffers. Increases the overall performance 6254of 6255the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 62562X.) 6257Chao Guan. ACPICA BZ 943. 6258 6259Implemented and deployed common macros to extract flag bits from resource 6260descriptors. Improves readability and maintainability of the code. Fixes 6261a 6262problem with the UART serial bus descriptor for the number of data bits 6263flags (was incorrectly 2 bits, should be 3). 6264 6265Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 6266of the macros and changed the SETx macros to the style of (destination, 6267source). Also added ACPI_CASTx companion macros. Lv Zheng. 6268 6269Example Code and Data Size: These are the sizes for the OS-independent 6270acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6271debug version of the code includes the debug output trace mechanism and 6272has a much larger code and data size. 6273 6274 Previous Release: 6275 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 6276 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6277 Current Release: 6278 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 6279 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6280 6281 62822) iASL Compiler/Disassembler and Tools: 6283 6284Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 6285adds the ShareAndWake and ExclusiveAndWake flags which were added to the 6286Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 6287 6288Disassembler: Fixed a problem with external declaration generation. Fixes 6289a problem where an incorrect pathname could be generated for an external 6290declaration if the original reference to the object includes leading 6291carats (^). ACPICA BZ 984. 6292 6293Debugger: Completed a major update for the Disassemble<method> command. 6294This command was out-of-date and did not properly disassemble control 6295methods that had any reasonable complexity. This fix brings the command 6296up 6297to the same level as the rest of the disassembler. Adds one new file, 6298dmdeferred.c, which is existing code that is now common with the main 6299disassembler and the debugger disassemble command. ACPICA MZ 978. 6300 6301iASL: Moved the parser entry prototype to avoid a duplicate declaration. 6302Newer versions of Bison emit this prototype, so moved the prototype out 6303of 6304the iASL header to where it is actually used in order to avoid a 6305duplicate 6306declaration. 6307 6308iASL/Tools: Standardized use of the stream I/O functions: 6309 1) Ensure check for I/O error after every fopen/fread/fwrite 6310 2) Ensure proper order of size/count arguments for fread/fwrite 6311 3) Use test of (Actual != Requested) after all fwrite, and most fread 6312 4) Standardize I/O error messages 6313Improves reliability and maintainability of the code. Bob Moore, Lv 6314Zheng. 6315ACPICA BZ 981. 6316 6317Disassembler: Prevent duplicate External() statements. During generation 6318of external statements, detect similar pathnames that are actually 6319duplicates such as these: 6320 External (\ABCD) 6321 External (ABCD) 6322Remove all leading '\' characters from pathnames during the external 6323statement generation so that duplicates will be detected and tossed. 6324ACPICA BZ 985. 6325 6326Tools: Replace low-level I/O with stream I/O functions. Replace 6327open/read/write/close with the stream I/O equivalents 6328fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 6329Moore. 6330 6331AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 6332name header so that AcpiXtract recognizes the output file/table. 6333 6334iASL: Remove obsolete -2 option flag. Originally intended to force the 6335compiler/disassembler into an ACPI 2.0 mode, this was never implemented 6336and the entire concept is now obsolete. 6337 6338---------------------------------------- 633918 October 2012. Summary of changes for version 20121018: 6340 6341 63421) ACPICA Kernel-resident Subsystem: 6343 6344Updated support for the ACPI 5.0 MPST table. Fixes some problems 6345introduced by late changes to the table as it was added to the ACPI 5.0 6346specification. Includes header, disassembler, and data table compiler 6347support as well as a new version of the MPST template. 6348 6349AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 63505.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 6351methods: _HID, _CID, and _UID. 6352 6353Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 6354ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 6355name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 6356names for their various drivers. Affects the AcpiGetObjectInfo external 6357interface, and other internal interfaces as well. 6358 6359Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 6360This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 6361on machines that support non-aligned transfers. Optimizes for this case 6362rather than using a strncpy. With assistance from Zheng Lv. 6363 6364Resource Manager: Small fix for buffer size calculation. Fixed a one byte 6365error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 6366 6367Added a new debug print message for AML mutex objects that are force- 6368released. At control method termination, any currently acquired mutex 6369objects are force-released. Adds a new debug-only message for each one 6370that is released. 6371 6372Audited/updated all ACPICA return macros and the function debug depth 6373counter: 1) Ensure that all functions that use the various TRACE macros 6374also use the appropriate ACPICA return macros. 2) Ensure that all normal 6375return statements surround the return expression (value) with parens to 6376ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 6377Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 6378 6379Global source code changes/maintenance: All extra lines at the start and 6380end of each source file have been removed for consistency. Also, within 6381comments, all new sentences start with a single space instead of a double 6382space, again for consistency across the code base. 6383 6384Example Code and Data Size: These are the sizes for the OS-independent 6385acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6386debug version of the code includes the debug output trace mechanism and 6387has a much larger code and data size. 6388 6389 Previous Release: 6390 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 6391 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 6392 Current Release: 6393 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 6394 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6395 6396 63972) iASL Compiler/Disassembler and Tools: 6398 6399AcpiExec: Improved the algorithm used for memory leak/corruption 6400detection. Added some intelligence to the code that maintains the global 6401list of allocated memory. The list is now ordered by allocated memory 6402address, significantly improving performance. When running AcpiExec on 6403the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 6404on the platform and/or the environment. Note, this performance 6405enhancement affects the AcpiExec utility only, not the kernel-resident 6406ACPICA code. 6407 6408Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 6409the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 6410incorrect table offset reported for invalid opcodes. Report the original 641132-bit value for bad ACPI_NAMEs (as well as the repaired name.) 6412 6413Disassembler: Enhanced the -vt option to emit the binary table data in 6414hex format to assist with debugging. 6415 6416Fixed a potential filename buffer overflow in osunixdir.c. Increased the 6417size of file structure. Colin Ian King. 6418 6419---------------------------------------- 642013 September 2012. Summary of changes for version 20120913: 6421 6422 64231) ACPICA Kernel-resident Subsystem: 6424 6425ACPI 5.0: Added two new notify types for the Hardware Error Notification 6426Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 6427and 6428MCE(6). 6429 6430Table Manager: Merged/removed duplicate code in the root table resize 6431functions. One function is external, the other is internal. Lv Zheng, 6432ACPICA 6433BZ 846. 6434 6435Makefiles: Completely removed the obsolete "Linux" makefiles under 6436acpica/generate/linux. These makefiles are obsolete and have been 6437replaced 6438by 6439the generic unix makefiles under acpica/generate/unix. 6440 6441Makefiles: Ensure that binary files always copied properly. Minor rule 6442change 6443to ensure that the final binary output files are always copied up to the 6444appropriate binary directory (bin32 or bin64.) 6445 6446Example Code and Data Size: These are the sizes for the OS-independent 6447acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6448debug 6449version of the code includes the debug output trace mechanism and has a 6450much 6451larger code and data size. 6452 6453 Previous Release: 6454 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 6455 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 6456 Current Release: 6457 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 6458 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 6459 6460 64612) iASL Compiler/Disassembler and Tools: 6462 6463Disassembler: Fixed a possible fault during the disassembly of resource 6464descriptors when a second parse is required because of the invocation of 6465external control methods within the table. With assistance from 6466adq@lidskialf.net. ACPICA BZ 976. 6467 6468iASL: Fixed a namepath optimization problem. An error can occur if the 6469parse 6470node that contains the namepath to be optimized does not have a parent 6471node 6472that is a named object. This change fixes the problem. 6473 6474iASL: Fixed a regression where the AML file is not deleted on errors. The 6475AML 6476output file should be deleted if there are any errors during the 6477compiler. 6478The 6479only exception is if the -f (force output) option is used. ACPICA BZ 974. 6480 6481iASL: Added a feature to automatically increase internal line buffer 6482sizes. 6483Via realloc(), automatically increase the internal line buffer sizes as 6484necessary to support very long source code lines. The current version of 6485the 6486preprocessor requires a buffer long enough to contain full source code 6487lines. 6488This change increases the line buffer(s) if the input lines go beyond the 6489current buffer size. This eliminates errors that occurred when a source 6490code 6491line was longer than the buffer. 6492 6493iASL: Fixed a problem with constant folding in method declarations. The 6494SyncLevel term is a ByteConstExpr, and incorrect code would be generated 6495if a 6496Type3 opcode was used. 6497 6498Debugger: Improved command help support. For incorrect argument count, 6499display 6500full help for the command. For help command itself, allow an argument to 6501specify a command. 6502 6503Test Suites: Several bug fixes for the ASLTS suite reduces the number of 6504errors during execution of the suite. Guan Chao. 6505 6506---------------------------------------- 650716 August 2012. Summary of changes for version 20120816: 6508 6509 65101) ACPICA Kernel-resident Subsystem: 6511 6512Removed all use of the deprecated _GTS and _BFS predefined methods. The 6513_GTS 6514(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 6515deprecated and will probably be removed from the ACPI specification. 6516Windows 6517does not invoke them, and reportedly never will. The final nail in the 6518coffin 6519is that the ACPI specification states that these methods must be run with 6520interrupts off, which is not going to happen in a kernel interpreter. 6521Note: 6522Linux has removed all use of the methods also. It was discovered that 6523invoking these functions caused failures on some machines, probably 6524because 6525they were never tested since Windows does not call them. Affects two 6526external 6527interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 6528ACPICA BZ 969. 6529 6530Implemented support for complex bit-packed buffers returned from the _PLD 6531(Physical Location of Device) predefined method. Adds a new external 6532interface, AcpiDecodePldBuffer that parses the buffer into a more usable 6533C 6534structure. Note: C Bitfields cannot be used for this type of predefined 6535structure since the memory layout of individual bitfields is not defined 6536by 6537the C language. In addition, there are endian concerns where a compiler 6538will 6539change the bitfield ordering based on the machine type. The new ACPICA 6540interface eliminates these issues, and should be called after _PLD is 6541executed. ACPICA BZ 954. 6542 6543Implemented a change to allow a scope change to root (via "Scope (\)") 6544during 6545execution of module-level ASL code (code that is executed at table load 6546time.) Lin Ming. 6547 6548Added the Windows8/Server2012 string for the _OSI method. This change 6549adds 6550a 6551new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 65522012. 6553 6554Added header support for the new ACPI tables DBG2 (Debug Port Table Type 65552) 6556and CSRT (Core System Resource Table). 6557 6558Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 6559names. This simplifies access to the buffers returned by these predefined 6560names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 6561 6562GPE support: Removed an extraneous parameter from the various low-level 6563internal GPE functions. Tang Feng. 6564 6565Removed the linux makefiles from the unix packages. The generate/linux 6566makefiles are obsolete and have been removed from the unix tarball 6567release 6568packages. The replacement makefiles are under generate/unix, and there is 6569a 6570top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 6571 6572Updates for Unix makefiles: 65731) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 65742) Update linker flags (move to end of command line) for AcpiExec 6575utility. 6576Guan Chao. 6577 6578Split ACPICA initialization functions to new file, utxfinit.c. Split from 6579utxface.c to improve modularity and reduce file size. 6580 6581Example Code and Data Size: These are the sizes for the OS-independent 6582acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6583debug version of the code includes the debug output trace mechanism and 6584has a 6585much larger code and data size. 6586 6587 Previous Release: 6588 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 6589 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 6590 Current Release: 6591 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 6592 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 6593 6594 65952) iASL Compiler/Disassembler and Tools: 6596 6597iASL: Fixed a problem with constant folding for fixed-length constant 6598expressions. The constant-folding code was not being invoked for constant 6599expressions that allow the use of type 3/4/5 opcodes to generate 6600constants 6601for expressions such as ByteConstExpr, WordConstExpr, etc. This could 6602result 6603in the generation of invalid AML bytecode. ACPICA BZ 970. 6604 6605iASL: Fixed a generation issue on newer versions of Bison. Newer versions 6606apparently automatically emit some of the necessary externals. This 6607change 6608handles these versions in order to eliminate generation warnings. 6609 6610Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 6611 6612Disassembler: Add support to decode _PLD buffers. The decoded buffer 6613appears 6614within comments in the output file. 6615 6616Debugger: Fixed a regression with the "Threads" command where 6617AE_BAD_PARAMETER was always returned. 6618 6619---------------------------------------- 662011 July 2012. Summary of changes for version 20120711: 6621 66221) ACPICA Kernel-resident Subsystem: 6623 6624Fixed a possible fault in the return package object repair code. Fixes a 6625problem that can occur when a lone package object is wrapped with an 6626outer 6627package object in order to force conformance to the ACPI specification. 6628Can 6629affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 6630_DLM, 6631_CSD, _PSD, _TSD. 6632 6633Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 6634PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 6635ARB_DIS bit must be implemented in the host-dependent C3 processor power 6636state 6637support. Note, ARB_DIS is obsolete and only applies to older chipsets, 6638both 6639Intel and other vendors. (for Intel: ICH4-M and earlier) 6640 6641This change removes the code to disable/enable bus master arbitration 6642during 6643suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 6644causes 6645resume problems on some machines. The change has been in use for over 6646seven 6647years within Linux. 6648 6649Implemented two new external interfaces to support host-directed dynamic 6650ACPI 6651table load and unload. They are intended to simplify the host 6652implementation 6653of hot-plug support: 6654 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 6655 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 6656table. 6657See the ACPICA reference for additional details. Adds one new file, 6658components/tables/tbxfload.c 6659 6660Implemented and deployed two new interfaces for errors and warnings that 6661are 6662known to be caused by BIOS/firmware issues: 6663 AcpiBiosError: Prints "ACPI Firmware Error" message. 6664 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 6665Deployed these new interfaces in the ACPICA Table Manager code for ACPI 6666table 6667and FADT errors. Additional deployment to be completed as appropriate in 6668the 6669future. The associated conditional macros are ACPI_BIOS_ERROR and 6670ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 6671ACPICA 6672BZ 6673843. 6674 6675Implicit notify support: ensure that no memory allocation occurs within a 6676critical region. This fix moves a memory allocation outside of the time 6677that a 6678spinlock is held. Fixes issues on systems that do not allow this 6679behavior. 6680Jung-uk Kim. 6681 6682Split exception code utilities and tables into a new file, 6683utilities/utexcep.c 6684 6685Example Code and Data Size: These are the sizes for the OS-independent 6686acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6687debug 6688version of the code includes the debug output trace mechanism and has a 6689much 6690larger code and data size. 6691 6692 Previous Release: 6693 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 6694 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 6695 Current Release: 6696 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 6697 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 6698 6699 67002) iASL Compiler/Disassembler and Tools: 6701 6702iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 6703of 67040. Jung-uk Kim. 6705 6706Debugger: Enhanced the "tables" command to emit additional information 6707about 6708the current set of ACPI tables, including the owner ID and flags decode. 6709 6710Debugger: Reimplemented the "unload" command to use the new 6711AcpiUnloadParentTable external interface. This command was disable 6712previously 6713due to need for an unload interface. 6714 6715AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 6716option 6717will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 6718 6719---------------------------------------- 672020 June 2012. Summary of changes for version 20120620: 6721 6722 67231) ACPICA Kernel-resident Subsystem: 6724 6725Implemented support to expand the "implicit notify" feature to allow 6726multiple 6727devices to be notified by a single GPE. This feature automatically 6728generates a 6729runtime device notification in the absence of a BIOS-provided GPE control 6730method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 6731notify is 6732provided by ACPICA for Windows compatibility, and is a workaround for 6733BIOS 6734AML 6735code errors. See the description of the AcpiSetupGpeForWake interface in 6736the 6737APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 6738 6739Changed some comments and internal function names to simplify and ensure 6740correctness of the Linux code translation. No functional changes. 6741 6742Example Code and Data Size: These are the sizes for the OS-independent 6743acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6744debug 6745version of the code includes the debug output trace mechanism and has a 6746much 6747larger code and data size. 6748 6749 Previous Release: 6750 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 6751 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 6752 Current Release: 6753 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 6754 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 6755 6756 67572) iASL Compiler/Disassembler and Tools: 6758 6759Disassembler: Added support to emit short, commented descriptions for the 6760ACPI 6761predefined names in order to improve the readability of the disassembled 6762output. ACPICA BZ 959. Changes include: 6763 1) Emit descriptions for all standard predefined names (_INI, _STA, 6764_PRW, 6765etc.) 6766 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 6767 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 6768etc.) 6769 6770AcpiSrc: Fixed several long-standing Linux code translation issues. 6771Argument 6772descriptions in function headers are now translated properly to lower 6773case 6774and 6775underscores. ACPICA BZ 961. Also fixes translation problems such as 6776these: 6777(old -> new) 6778 i_aSL -> iASL 6779 00-7_f -> 00-7F 6780 16_k -> 16K 6781 local_fADT -> local_FADT 6782 execute_oSI -> execute_OSI 6783 6784iASL: Fixed a problem where null bytes were inadvertently emitted into 6785some 6786listing files. 6787 6788iASL: Added the existing debug options to the standard help screen. There 6789are 6790no longer two different help screens. ACPICA BZ 957. 6791 6792AcpiHelp: Fixed some typos in the various predefined name descriptions. 6793Also 6794expand some of the descriptions where appropriate. 6795 6796iASL: Fixed the -ot option (display compile times/statistics). Was not 6797working 6798properly for standard output; only worked for the debug file case. 6799 6800---------------------------------------- 680118 May 2012. Summary of changes for version 20120518: 6802 6803 68041) ACPICA Core Subsystem: 6805 6806Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 6807defined 6808to block until asynchronous events such as notifies and GPEs have 6809completed. 6810Within ACPICA, it is only called before a notify or GPE handler is 6811removed/uninstalled. It also may be useful for the host OS within related 6812drivers such as the Embedded Controller driver. See the ACPICA reference 6813for 6814additional information. ACPICA BZ 868. 6815 6816ACPI Tables: Added a new error message for a possible overflow failure 6817during 6818the conversion of FADT 32-bit legacy register addresses to internal 6819common 682064- 6821bit GAS structure representation. The GAS has a one-byte "bit length" 6822field, 6823thus limiting the register length to 255 bits. ACPICA BZ 953. 6824 6825Example Code and Data Size: These are the sizes for the OS-independent 6826acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6827debug 6828version of the code includes the debug output trace mechanism and has a 6829much 6830larger code and data size. 6831 6832 Previous Release: 6833 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6834 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6835 Current Release: 6836 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 6837 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 6838 6839 68402) iASL Compiler/Disassembler and Tools: 6841 6842iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 6843macro. 6844This keyword was added late in the ACPI 5.0 release cycle and was not 6845implemented until now. 6846 6847Disassembler: Added support for Operation Region externals. Adds missing 6848support for operation regions that are defined in another table, and 6849referenced locally via a Field or BankField ASL operator. Now generates 6850the 6851correct External statement. 6852 6853Disassembler: Several additional fixes for the External() statement 6854generation 6855related to some ASL operators. Also, order the External() statements 6856alphabetically in the disassembler output. Fixes the External() 6857generation 6858for 6859the Create* field, Alias, and Scope operators: 6860 1) Create* buffer field operators - fix type mismatch warning on 6861disassembly 6862 2) Alias - implement missing External support 6863 3) Scope - fix to make sure all necessary externals are emitted. 6864 6865iASL: Improved pathname support. For include files, merge the prefix 6866pathname 6867with the file pathname and eliminate unnecessary components. Convert 6868backslashes in all pathnames to forward slashes, for readability. Include 6869file 6870pathname changes affect both #include and Include() type operators. 6871 6872iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 6873end 6874of a valid line by inserting a newline and then returning the EOF during 6875the 6876next call to GetNextLine. Prevents the line from being ignored due to EOF 6877condition. 6878 6879iASL: Implemented some changes to enhance the IDE support (-vi option.) 6880Error 6881and Warning messages are now correctly recognized for both the source 6882code 6883browser and the global error and warning counts. 6884 6885---------------------------------------- 688620 April 2012. Summary of changes for version 20120420: 6887 6888 68891) ACPICA Core Subsystem: 6890 6891Implemented support for multiple notify handlers. This change adds 6892support 6893to 6894allow multiple system and device notify handlers on Device, Thermal Zone, 6895and 6896Processor objects. This can simplify the host OS notification 6897implementation. 6898Also re-worked and restructured the entire notify support code to 6899simplify 6900handler installation, handler removal, notify event queuing, and notify 6901dispatch to handler(s). Note: there can still only be two global notify 6902handlers - one for system notifies and one for device notifies. There are 6903no 6904changes to the existing handler install/remove interfaces. Lin Ming, Bob 6905Moore, Rafael Wysocki. 6906 6907Fixed a regression in the package repair code where the object reference 6908count was calculated incorrectly. Regression was introduced in the commit 6909"Support to add Package wrappers". 6910 6911Fixed a couple possible memory leaks in the AML parser, in the error 6912recovery 6913path. Jesper Juhl, Lin Ming. 6914 6915Example Code and Data Size: These are the sizes for the OS-independent 6916acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6917debug version of the code includes the debug output trace mechanism and 6918has a 6919much larger code and data size. 6920 6921 Previous Release: 6922 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6923 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6924 Current Release: 6925 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6926 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6927 6928 69292) iASL Compiler/Disassembler and Tools: 6930 6931iASL: Fixed a problem with the resource descriptor support where the 6932length 6933of the StartDependentFn and StartDependentFnNoPrio descriptors were not 6934included in cumulative descriptor offset, resulting in incorrect values 6935for 6936resource tags within resource descriptors appearing after a 6937StartDependent* 6938descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 6939 6940iASL and Preprocessor: Implemented full support for the #line directive 6941to 6942correctly track original source file line numbers through the .i 6943preprocessor 6944output file - for error and warning messages. 6945 6946iASL: Expand the allowable byte constants for address space IDs. 6947Previously, 6948the allowable range was 0x80-0xFF (user-defined spaces), now the range is 69490x0A-0xFF to allow for custom and new IDs without changing the compiler. 6950 6951iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 6952 6953iASL: Add option to completely disable the preprocessor (-Pn). 6954 6955iASL: Now emit all error/warning messages to standard error (stderr) by 6956default (instead of the previous stdout). 6957 6958ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 6959Update 6960for resource descriptor offset fix above. Update/cleanup error output 6961routines. Enable and send iASL errors/warnings to an error logfile 6962(error.txt). Send all other iASL output to a logfile (compiler.txt). 6963Fixed 6964several extraneous "unrecognized operator" messages. 6965 6966---------------------------------------- 696720 March 2012. Summary of changes for version 20120320: 6968 6969 69701) ACPICA Core Subsystem: 6971 6972Enhanced the sleep/wake interfaces to optionally execute the _GTS method 6973(Going To Sleep) and the _BFS method (Back From Sleep). Windows 6974apparently 6975does not execute these methods, and therefore these methods are often 6976untested. It has been seen on some systems where the execution of these 6977methods causes errors and also prevents the machine from entering S5. It 6978is 6979therefore suggested that host operating systems do not execute these 6980methods 6981by default. In the future, perhaps these methods can be optionally 6982executed 6983based on the age of the system and/or what is the newest version of 6984Windows 6985that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 6986and 6987AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 6988Ming. 6989 6990Fixed a problem where the length of the local/common FADT was set too 6991early. 6992The local FADT table length cannot be set to the common length until the 6993original length has been examined. There is code that checks the table 6994length 6995and sets various fields appropriately. This can affect older machines 6996with 6997early FADT versions. For example, this can cause inadvertent writes to 6998the 6999CST_CNT register. Julian Anastasov. 7000 7001Fixed a mapping issue related to a physical table override. Use the 7002deferred 7003mapping mechanism for tables loaded via the physical override OSL 7004interface. 7005This allows for early mapping before the virtual memory manager is 7006available. 7007Thomas Renninger, Bob Moore. 7008 7009Enhanced the automatic return-object repair code: Repair a common problem 7010with 7011predefined methods that are defined to return a variable-length Package 7012of 7013sub-objects. If there is only one sub-object, some BIOS ASL code 7014mistakenly 7015simply returns the single object instead of a Package with one sub- 7016object. 7017This new support will repair this error by wrapping a Package object 7018around 7019the original object, creating the correct and expected Package with one 7020sub- 7021object. Names that can be repaired in this manner include: _ALR, _CSD, 7022_HPX, 7023_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 7024939. 7025 7026Changed the exception code returned for invalid ACPI paths passed as 7027parameters to external interfaces such as AcpiEvaluateObject. Was 7028AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 7029 7030Example Code and Data Size: These are the sizes for the OS-independent 7031acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7032debug 7033version of the code includes the debug output trace mechanism and has a 7034much 7035larger code and data size. 7036 7037 Previous Release: 7038 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 7039 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7040 Current Release: 7041 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 7042 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7043 7044 70452) iASL Compiler/Disassembler and Tools: 7046 7047iASL: Added the infrastructure and initial implementation of a integrated 7048C- 7049like preprocessor. This will simplify BIOS development process by 7050eliminating 7051the need for a separate preprocessing step during builds. On Windows, it 7052also 7053eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 7054features including full #define() macro support are still under 7055development. 7056These preprocessor directives are supported: 7057 #define 7058 #elif 7059 #else 7060 #endif 7061 #error 7062 #if 7063 #ifdef 7064 #ifndef 7065 #include 7066 #pragma message 7067 #undef 7068 #warning 7069In addition, these new command line options are supported: 7070 -D <symbol> Define symbol for preprocessor use 7071 -li Create preprocessed output file (*.i) 7072 -P Preprocess only and create preprocessor output file (*.i) 7073 7074Table Compiler: Fixed a problem where the equals operator within an 7075expression 7076did not work properly. 7077 7078Updated iASL to use the current versions of Bison/Flex. Updated the 7079Windows 7080project file to invoke these tools from the standard location. ACPICA BZ 7081904. 7082Versions supported: 7083 Flex for Windows: V2.5.4 7084 Bison for Windows: V2.4.1 7085 7086---------------------------------------- 708715 February 2012. Summary of changes for version 20120215: 7088 7089 70901) ACPICA Core Subsystem: 7091 7092There have been some major changes to the sleep/wake support code, as 7093described below (a - e). 7094 7095a) The AcpiLeaveSleepState has been split into two interfaces, similar to 7096AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 7097AcpiLeaveSleepStatePrep. This allows the host to perform actions between 7098the 7099time the _BFS method is called and the _WAK method is called. NOTE: all 7100hosts 7101must update their wake/resume code or else sleep/wake will not work 7102properly. 7103Rafael Wysocki. 7104 7105b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 7106_WAK 7107method. Some machines require that the GPEs are enabled before the _WAK 7108method 7109is executed. Thomas Renninger. 7110 7111c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 7112bit. 7113Some BIOS code assumes that WAK_STS will be cleared on resume and use it 7114to 7115determine whether the system is rebooting or resuming. Matthew Garrett. 7116 7117d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 7118Sleep) to 7119match the ACPI specification requirement. Rafael Wysocki. 7120 7121e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 7122registers within the V5 FADT. This support adds two new files: 7123hardware/hwesleep.c implements the support for the new registers. Moved 7124all 7125sleep/wake external interfaces to hardware/hwxfsleep.c. 7126 7127 7128Added a new OSL interface for ACPI table overrides, 7129AcpiOsPhysicalTableOverride. This interface allows the host to override a 7130table via a physical address, instead of the logical address required by 7131AcpiOsTableOverride. This simplifies the host implementation. Initial 7132implementation by Thomas Renninger. The ACPICA implementation creates a 7133single 7134shared function for table overrides that attempts both a logical and a 7135physical override. 7136 7137Expanded the OSL memory read/write interfaces to 64-bit data 7138(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 7139transfer support for GAS register structures passed to AcpiRead and 7140AcpiWrite. 7141 7142Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 7143custom 7144build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 7145model. 7146See the ACPICA reference for details. ACPICA BZ 942. This option removes 7147about 714810% of the code and 5% of the static data, and the following hardware 7149ACPI 7150features become unavailable: 7151 PM Event and Control registers 7152 SCI interrupt (and handler) 7153 Fixed Events 7154 General Purpose Events (GPEs) 7155 Global Lock 7156 ACPI PM timer 7157 7158Updated the unix tarball directory structure to match the ACPICA git 7159source 7160tree. This ensures that the generic unix makefiles work properly (in 7161generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 7162867. 7163 7164Updated the return value of the _REV predefined method to integer value 5 7165to 7166reflect ACPI 5.0 support. 7167 7168Moved the external ACPI PM timer interface prototypes to the public 7169acpixf.h 7170file where they belong. 7171 7172Example Code and Data Size: These are the sizes for the OS-independent 7173acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7174debug 7175version of the code includes the debug output trace mechanism and has a 7176much 7177larger code and data size. 7178 7179 Previous Release: 7180 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 7181 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 7182 Current Release: 7183 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 7184 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7185 7186 71872) iASL Compiler/Disassembler and Tools: 7188 7189Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 7190descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 7191incorrectly displayed. 7192 7193AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 7194specification. 7195 7196---------------------------------------- 719711 January 2012. Summary of changes for version 20120111: 7198 7199 72001) ACPICA Core Subsystem: 7201 7202Implemented a new mechanism to allow host device drivers to check for 7203address 7204range conflicts with ACPI Operation Regions. Both SystemMemory and 7205SystemIO 7206address spaces are supported. A new external interface, 7207AcpiCheckAddressRange, 7208allows drivers to check an address range against the ACPI namespace. See 7209the 7210ACPICA reference for additional details. Adds one new file, 7211utilities/utaddress.c. Lin Ming, Bob Moore. 7212 7213Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 7214Control 7215and 7216Status registers, update the ACPI 5.0 flags, and update internal data 7217structures to handle an FADT larger than 256 bytes. The size of the ACPI 72185.0 7219FADT is 268 bytes. 7220 7221Updated all ACPICA copyrights and signons to 2012. Added the 2012 7222copyright to 7223all module headers and signons, including the standard Linux header. This 7224affects virtually every file in the ACPICA core subsystem, iASL compiler, 7225and 7226all ACPICA utilities. 7227 7228Example Code and Data Size: These are the sizes for the OS-independent 7229acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7230debug 7231version of the code includes the debug output trace mechanism and has a 7232much 7233larger code and data size. 7234 7235 Previous Release: 7236 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 7237 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 7238 Current Release: 7239 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 7240 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 7241 7242 72432) iASL Compiler/Disassembler and Tools: 7244 7245Disassembler: fixed a problem with the automatic resource tag generation 7246support. Fixes a problem where the resource tags are inadvertently not 7247constructed if the table being disassembled contains external references 7248to 7249control methods. Moved the actual construction of the tags to after the 7250final 7251namespace is constructed (after 2nd parse is invoked due to external 7252control 7253method references.) ACPICA BZ 941. 7254 7255Table Compiler: Make all "generic" operators caseless. These are the 7256operators 7257like UINT8, String, etc. Making these caseless improves ease-of-use. 7258ACPICA BZ 7259934. 7260 7261---------------------------------------- 726223 November 2011. Summary of changes for version 20111123: 7263 72640) ACPI 5.0 Support: 7265 7266This release contains full support for the ACPI 5.0 specification, as 7267summarized below. 7268 7269Reduced Hardware Support: 7270------------------------- 7271 7272This support allows for ACPI systems without the usual ACPI hardware. 7273This 7274support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 7275will 7276not attempt to initialize or use any of the usual ACPI hardware. Note, 7277when 7278this flag is set, all of the following ACPI hardware is assumed to be not 7279present and is not initialized or accessed: 7280 7281 General Purpose Events (GPEs) 7282 Fixed Events (PM1a/PM1b and PM Control) 7283 Power Management Timer and Console Buttons (power/sleep) 7284 Real-time Clock Alarm 7285 Global Lock 7286 System Control Interrupt (SCI) 7287 The FACS is assumed to be non-existent 7288 7289ACPI Tables: 7290------------ 7291 7292All new tables and updates to existing tables are fully supported in the 7293ACPICA headers (for use by device drivers), the disassembler, and the 7294iASL 7295Data Table Compiler. ACPI 5.0 defines these new tables: 7296 7297 BGRT /* Boot Graphics Resource Table */ 7298 DRTM /* Dynamic Root of Trust for Measurement table */ 7299 FPDT /* Firmware Performance Data Table */ 7300 GTDT /* Generic Timer Description Table */ 7301 MPST /* Memory Power State Table */ 7302 PCCT /* Platform Communications Channel Table */ 7303 PMTT /* Platform Memory Topology Table */ 7304 RASF /* RAS Feature table */ 7305 7306Operation Regions/SpaceIDs: 7307--------------------------- 7308 7309All new operation regions are fully supported by the iASL compiler, the 7310disassembler, and the ACPICA runtime code (for dispatch to region 7311handlers.) 7312The new operation region Space IDs are: 7313 7314 GeneralPurposeIo 7315 GenericSerialBus 7316 7317Resource Descriptors: 7318--------------------- 7319 7320All new ASL resource descriptors are fully supported by the iASL 7321compiler, 7322the 7323ASL/AML disassembler, and the ACPICA runtime Resource Manager code 7324(including 7325all new predefined resource tags). New descriptors are: 7326 7327 FixedDma 7328 GpioIo 7329 GpioInt 7330 I2cSerialBus 7331 SpiSerialBus 7332 UartSerialBus 7333 7334ASL/AML Operators, New and Modified: 7335------------------------------------ 7336 7337One new operator is added, the Connection operator, which is used to 7338associate 7339a GeneralPurposeIo or GenericSerialBus resource descriptor with 7340individual 7341field objects within an operation region. Several new protocols are 7342associated 7343with the AccessAs operator. All are fully supported by the iASL compiler, 7344disassembler, and runtime ACPICA AML interpreter: 7345 7346 Connection // Declare Field Connection 7347attributes 7348 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 7349 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 7350Protocol 7351 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 7352 RawDataBuffer // Data type for Vendor Data 7353fields 7354 7355Predefined ASL/AML Objects: 7356--------------------------- 7357 7358All new predefined objects/control-methods are supported by the iASL 7359compiler 7360and the ACPICA runtime validation/repair (arguments and return values.) 7361New 7362predefined names include the following: 7363 7364Standard Predefined Names (Objects or Control Methods): 7365 _AEI, _CLS, _CPC, _CWS, _DEP, 7366 _DLM, _EVT, _GCP, _CRT, _GWS, 7367 _HRV, _PRE, _PSE, _SRT, _SUB. 7368 7369Resource Tags (Names used to access individual fields within resource 7370descriptors): 7371 _DBT, _DPL, _DRS, _END, _FLC, 7372 _IOR, _LIN, _MOD, _PAR, _PHA, 7373 _PIN, _PPI, _POL, _RXL, _SLV, 7374 _SPE, _STB, _TXL, _VEN. 7375 7376ACPICA External Interfaces: 7377--------------------------- 7378 7379Several new interfaces have been defined for use by ACPI-related device 7380drivers and other host OS services: 7381 7382AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 7383to 7384acquire and release AML mutexes that are defined in the DSDT/SSDT tables 7385provided by the BIOS. They are intended to be used in conjunction with 7386the 7387ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 7388mutual exclusion with the AML code/interpreter. 7389 7390AcpiGetEventResources: Returns the (formatted) resource descriptors as 7391defined 7392by the ACPI 5.0 _AEI object (ACPI Event Information). This object 7393provides 7394resource descriptors associated with hardware-reduced platform events, 7395similar 7396to the AcpiGetCurrentResources interface. 7397 7398Operation Region Handlers: For General Purpose IO and Generic Serial Bus 7399operation regions, information about the Connection() object and any 7400optional 7401length information is passed to the region handler within the Context 7402parameter. 7403 7404AcpiBufferToResource: This interface converts a raw AML buffer containing 7405a 7406resource template or resource descriptor to the ACPI_RESOURCE internal 7407format 7408suitable for use by device drivers. Can be used by an operation region 7409handler 7410to convert the Connection() buffer object into a ACPI_RESOURCE. 7411 7412Miscellaneous/Tools/TestSuites: 7413------------------------------- 7414 7415Support for extended _HID names (Four alpha characters instead of three). 7416Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 7417Support for ACPI 5.0 features in the ASLTS test suite. 7418Fully updated documentation (ACPICA and iASL reference documents.) 7419 7420ACPI Table Definition Language: 7421------------------------------- 7422 7423Support for this language was implemented and released as a subsystem of 7424the 7425iASL compiler in 2010. (See the iASL compiler User Guide.) 7426 7427 7428Non-ACPI 5.0 changes for this release: 7429-------------------------------------- 7430 74311) ACPICA Core Subsystem: 7432 7433Fix a problem with operation region declarations where a failure can 7434occur 7435if 7436the region name and an argument that evaluates to an object (such as the 7437region address) are in different namespace scopes. Lin Ming, ACPICA BZ 7438937. 7439 7440Do not abort an ACPI table load if an invalid space ID is found within. 7441This 7442will be caught later if the offending method is executed. ACPICA BZ 925. 7443 7444Fixed an issue with the FFixedHW space ID where the ID was not always 7445recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 7446 7447Fixed a problem with the 32-bit generation of the unix-specific OSL 7448(osunixxf.c). Lin Ming, ACPICA BZ 936. 7449 7450Several changes made to enable generation with the GCC 4.6 compiler. 7451ACPICA BZ 7452935. 7453 7454New error messages: Unsupported I/O requests (not 8/16/32 bit), and 7455Index/Bank 7456field registers out-of-range. 7457 74582) iASL Compiler/Disassembler and Tools: 7459 7460iASL: Implemented the __PATH__ operator, which returns the full pathname 7461of 7462the current source file. 7463 7464AcpiHelp: Automatically display expanded keyword information for all ASL 7465operators. 7466 7467Debugger: Add "Template" command to disassemble/dump resource template 7468buffers. 7469 7470Added a new master script to generate and execute the ASLTS test suite. 7471Automatically handles 32- and 64-bit generation. See tests/aslts.sh 7472 7473iASL: Fix problem with listing generation during processing of the 7474Switch() 7475operator where AML listing was disabled until the entire Switch block was 7476completed. 7477 7478iASL: Improve support for semicolon statement terminators. Fix "invalid 7479character" message for some cases when the semicolon is used. Semicolons 7480are 7481now allowed after every <Term> grammar element. ACPICA BZ 927. 7482 7483iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 7484923. 7485 7486Disassembler: Fix problem with disassembly of the DataTableRegion 7487operator 7488where an inadvertent "Unhandled deferred opcode" message could be 7489generated. 7490 74913) Example Code and Data Size 7492 7493These are the sizes for the OS-independent acpica.lib produced by the 7494Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 7495includes the debug output trace mechanism and has a much larger code and 7496data 7497size. 7498 7499 Previous Release: 7500 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7501 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7502 Current Release: 7503 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 7504 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 7505 7506---------------------------------------- 750722 September 2011. Summary of changes for version 20110922: 7508 75090) ACPI 5.0 News: 7510 7511Support for ACPI 5.0 in ACPICA has been underway for several months and 7512will 7513be released at the same time that ACPI 5.0 is officially released. 7514 7515The ACPI 5.0 specification is on track for release in the next few 7516months. 7517 75181) ACPICA Core Subsystem: 7519 7520Fixed a problem where the maximum sleep time for the Sleep() operator was 7521intended to be limited to two seconds, but was inadvertently limited to 752220 7523seconds instead. 7524 7525Linux and Unix makefiles: Added header file dependencies to ensure 7526correct 7527generation of ACPICA core code and utilities. Also simplified the 7528makefiles 7529considerably through the use of the vpath variable to specify search 7530paths. 7531ACPICA BZ 924. 7532 75332) iASL Compiler/Disassembler and Tools: 7534 7535iASL: Implemented support to check the access length for all fields 7536created to 7537access named Resource Descriptor fields. For example, if a resource field 7538is 7539defined to be two bits, a warning is issued if a CreateXxxxField() is 7540used 7541with an incorrect bit length. This is implemented for all current 7542resource 7543descriptor names. ACPICA BZ 930. 7544 7545Disassembler: Fixed a byte ordering problem with the output of 24-bit and 754656- 7547bit integers. 7548 7549iASL: Fixed a couple of issues associated with variable-length package 7550objects. 1) properly handle constants like One, Ones, Zero -- do not make 7551a 7552VAR_PACKAGE when these are used as a package length. 2) Allow the 7553VAR_PACKAGE 7554opcode (in addition to PACKAGE) when validating object types for 7555predefined 7556names. 7557 7558iASL: Emit statistics for all output files (instead of just the ASL input 7559and 7560AML output). Includes listings, hex files, etc. 7561 7562iASL: Added -G option to the table compiler to allow the compilation of 7563custom 7564ACPI tables. The only part of a table that is required is the standard 756536- 7566byte 7567ACPI header. 7568 7569AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 7570headers), 7571which also adds correct 64-bit support. Also, now all output filenames 7572are 7573completely lower case. 7574 7575AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 7576loading table files. A warning is issued for any such tables. The only 7577exception is an FADT. This also fixes a possible fault when attempting to 7578load 7579non-AML tables. ACPICA BZ 932. 7580 7581AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 7582a 7583missing table terminator could cause a fault when using the -p option. 7584 7585AcpiSrc: Fixed a possible divide-by-zero fault when generating file 7586statistics. 7587 75883) Example Code and Data Size 7589 7590These are the sizes for the OS-independent acpica.lib produced by the 7591Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 7592includes the debug output trace mechanism and has a much larger code and 7593data 7594size. 7595 7596 Previous Release (VC 9.0): 7597 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7598 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7599 Current Release (VC 9.0): 7600 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7601 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7602 7603 7604---------------------------------------- 760523 June 2011. Summary of changes for version 20110623: 7606 76071) ACPI CA Core Subsystem: 7608 7609Updated the predefined name repair mechanism to not attempt repair of a 7610_TSS 7611return object if a _PSS object is present. We can only sort the _TSS 7612return 7613package if there is no _PSS within the same scope. This is because if 7614_PSS 7615is 7616present, the ACPI specification dictates that the _TSS Power Dissipation 7617field 7618is to be ignored, and therefore some BIOSs leave garbage values in the 7619_TSS 7620Power field(s). In this case, it is best to just return the _TSS package 7621as- 7622is. Reported by, and fixed with assistance from Fenghua Yu. 7623 7624Added an option to globally disable the control method return value 7625validation 7626and repair. This runtime option can be used to disable return value 7627repair 7628if 7629this is causing a problem on a particular machine. Also added an option 7630to 7631AcpiExec (-dr) to set this disable flag. 7632 7633All makefiles and project files: Major changes to improve generation of 7634ACPICA 7635tools. ACPICA BZ 912: 7636 Reduce default optimization levels to improve compatibility 7637 For Linux, add strict-aliasing=0 for gcc 4 7638 Cleanup and simplify use of command line defines 7639 Cleanup multithread library support 7640 Improve usage messages 7641 7642Linux-specific header: update handling of THREAD_ID and pthread. For the 764332- 7644bit case, improve casting to eliminate possible warnings, especially with 7645the 7646acpica tools. 7647 7648Example Code and Data Size: These are the sizes for the OS-independent 7649acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7650debug 7651version of the code includes the debug output trace mechanism and has a 7652much 7653larger code and data size. 7654 7655 Previous Release (VC 9.0): 7656 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 7657 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7658 Current Release (VC 9.0): 7659 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7660 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7661 76622) iASL Compiler/Disassembler and Tools: 7663 7664With this release, a new utility named "acpihelp" has been added to the 7665ACPICA 7666package. This utility summarizes the ACPI specification chapters for the 7667ASL 7668and AML languages. It generates under Linux/Unix as well as Windows, and 7669provides the following functionality: 7670 Find/display ASL operator(s) -- with description and syntax. 7671 Find/display ASL keyword(s) -- with exact spelling and descriptions. 7672 Find/display ACPI predefined name(s) -- with description, number 7673 of arguments, and the return value data type. 7674 Find/display AML opcode name(s) -- with opcode, arguments, and 7675grammar. 7676 Decode/display AML opcode -- with opcode name, arguments, and 7677grammar. 7678 7679Service Layers: Make multi-thread support configurable. Conditionally 7680compile 7681the multi-thread support so that threading libraries will not be linked 7682if 7683not 7684necessary. The only tool that requires multi-thread support is AcpiExec. 7685 7686iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 7687of 7688Bison appear to want the interface to yyerror to be a const char * (or at 7689least this is a problem when generating iASL on some systems.) ACPICA BZ 7690923 7691Pierre Lejeune. 7692 7693Tools: Fix for systems where O_BINARY is not defined. Only used for 7694Windows 7695versions of the tools. 7696 7697---------------------------------------- 769827 May 2011. Summary of changes for version 20110527: 7699 77001) ACPI CA Core Subsystem: 7701 7702ASL Load() operator: Reinstate most restrictions on the incoming ACPI 7703table 7704signature. Now, only allow SSDT, OEMx, and a null signature. History: 7705 1) Originally, we checked the table signature for "SSDT" or "PSDT". 7706 (PSDT is now obsolete.) 7707 2) We added support for OEMx tables, signature "OEM" plus a fourth 7708 "don't care" character. 7709 3) Valid tables were encountered with a null signature, so we just 7710 gave up on validating the signature, (05/2008). 7711 4) We encountered non-AML tables such as the MADT, which caused 7712 interpreter errors and kernel faults. So now, we once again allow 7713 only SSDT, OEMx, and now, also a null signature. (05/2011). 7714 7715Added the missing _TDL predefined name to the global name list in order 7716to 7717enable validation. Affects both the core ACPICA code and the iASL 7718compiler. 7719 7720Example Code and Data Size: These are the sizes for the OS-independent 7721acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7722debug 7723version of the code includes the debug output trace mechanism and has a 7724much 7725larger code and data size. 7726 7727 Previous Release (VC 9.0): 7728 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 7729 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 7730 Current Release (VC 9.0): 7731 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 7732 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7733 77342) iASL Compiler/Disassembler and Tools: 7735 7736Debugger/AcpiExec: Implemented support for "complex" method arguments on 7737the 7738debugger command line. This adds support beyond simple integers -- 7739including 7740Strings, Buffers, and Packages. Includes support for nested packages. 7741Increased the default command line buffer size to accommodate these 7742arguments. 7743See the ACPICA reference for details and syntax. ACPICA BZ 917. 7744 7745Debugger/AcpiExec: Implemented support for "default" method arguments for 7746the 7747Execute/Debug command. Now, the debugger will always invoke a control 7748method 7749with the required number of arguments -- even if the command line 7750specifies 7751none or insufficient arguments. It uses default integer values for any 7752missing 7753arguments. Also fixes a bug where only six method arguments maximum were 7754supported instead of the required seven. 7755 7756Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 7757and 7758also return status in order to prevent buffer overruns. See the ACPICA 7759reference for details and syntax. ACPICA BZ 921 7760 7761iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 7762makefiles to simplify support for the two different but similar parser 7763generators, bison and yacc. 7764 7765Updated the generic unix makefile for gcc 4. The default gcc version is 7766now 7767expected to be 4 or greater, since options specific to gcc 4 are used. 7768 7769---------------------------------------- 777013 April 2011. Summary of changes for version 20110413: 7771 77721) ACPI CA Core Subsystem: 7773 7774Implemented support to execute a so-called "orphan" _REG method under the 7775EC 7776device. This change will force the execution of a _REG method underneath 7777the 7778EC 7779device even if there is no corresponding operation region of type 7780EmbeddedControl. Fixes a problem seen on some machines and apparently is 7781compatible with Windows behavior. ACPICA BZ 875. 7782 7783Added more predefined methods that are eligible for automatic NULL 7784package 7785element removal. This change adds another group of predefined names to 7786the 7787list 7788of names that can be repaired by having NULL package elements dynamically 7789removed. This group are those methods that return a single variable- 7790length 7791package containing simple data types such as integers, buffers, strings. 7792This 7793includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 7794_PSL, 7795_Sx, 7796and _TZD. ACPICA BZ 914. 7797 7798Split and segregated all internal global lock functions to a new file, 7799evglock.c. 7800 7801Updated internal address SpaceID for DataTable regions. Moved this 7802internal 7803space 7804id in preparation for ACPI 5.0 changes that will include some new space 7805IDs. 7806This 7807change should not affect user/host code. 7808 7809Example Code and Data Size: These are the sizes for the OS-independent 7810acpica.lib 7811produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7812version of 7813the code includes the debug output trace mechanism and has a much larger 7814code 7815and 7816data size. 7817 7818 Previous Release (VC 9.0): 7819 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7820 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7821 Current Release (VC 9.0): 7822 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 7823 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 7824 78252) iASL Compiler/Disassembler and Tools: 7826 7827iASL/DTC: Major update for new grammar features. Allow generic data types 7828in 7829custom ACPI tables. Field names are now optional. Any line can be split 7830to 7831multiple lines using the continuation char (\). Large buffers now use 7832line- 7833continuation character(s) and no colon on the continuation lines. See the 7834grammar 7835update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 7836Moore. 7837 7838iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 7839statements. 7840Since the parser stuffs a "zero" as the return value for these statements 7841(due 7842to 7843the underlying AML grammar), they were seen as "return with value" by the 7844iASL 7845semantic checking. They are now seen correctly as "null" return 7846statements. 7847 7848iASL: Check if a_REG declaration has a corresponding Operation Region. 7849Adds a 7850check for each _REG to ensure that there is in fact a corresponding 7851operation 7852region declaration in the same scope. If not, the _REG method is not very 7853useful 7854since it probably won't be executed. ACPICA BZ 915. 7855 7856iASL/DTC: Finish support for expression evaluation. Added a new 7857expression 7858parser 7859that implements c-style operator precedence and parenthesization. ACPICA 7860bugzilla 7861908. 7862 7863Disassembler/DTC: Remove support for () and <> style comments in data 7864tables. 7865Now 7866that DTC has full expression support, we don't want to have comment 7867strings 7868that 7869start with a parentheses or a less-than symbol. Now, only the standard /* 7870and 7871// 7872comments are supported, as well as the bracket [] comments. 7873 7874AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 7875"unusual" 7876headers in the acpidump file. Update the header validation to support 7877these 7878tables. Problem introduced in previous AcpiXtract version in the change 7879to 7880support "wrong checksum" error messages emitted by acpidump utility. 7881 7882iASL: Add a * option to generate all template files (as a synonym for 7883ALL) 7884as 7885in 7886"iasl -T *" or "iasl -T ALL". 7887 7888iASL/DTC: Do not abort compiler on fatal errors. We do not want to 7889completely 7890abort the compiler on "fatal" errors, simply should abort the current 7891compile. 7892This allows multiple compiles with a single (possibly wildcard) compiler 7893invocation. 7894 7895---------------------------------------- 789616 March 2011. Summary of changes for version 20110316: 7897 78981) ACPI CA Core Subsystem: 7899 7900Fixed a problem caused by a _PRW method appearing at the namespace root 7901scope 7902during the setup of wake GPEs. A fault could occur if a _PRW directly 7903under 7904the 7905root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 7906 7907Implemented support for "spurious" Global Lock interrupts. On some 7908systems, a 7909global lock interrupt can occur without the pending flag being set. Upon 7910a 7911GL 7912interrupt, we now ensure that a thread is actually waiting for the lock 7913before 7914signaling GL availability. Rafael Wysocki, Bob Moore. 7915 7916Example Code and Data Size: These are the sizes for the OS-independent 7917acpica.lib 7918produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7919version of 7920the code includes the debug output trace mechanism and has a much larger 7921code 7922and 7923data size. 7924 7925 Previous Release (VC 9.0): 7926 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7927 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7928 Current Release (VC 9.0): 7929 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7930 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7931 79322) iASL Compiler/Disassembler and Tools: 7933 7934Implemented full support for the "SLIC" ACPI table. Includes support in 7935the 7936header files, disassembler, table compiler, and template generator. Bob 7937Moore, 7938Lin Ming. 7939 7940AcpiXtract: Correctly handle embedded comments and messages from 7941AcpiDump. 7942Apparently some or all versions of acpidump will occasionally emit a 7943comment 7944like 7945"Wrong checksum", etc., into the dump file. This was causing problems for 7946AcpiXtract. ACPICA BZ 905. 7947 7948iASL: Fix the Linux makefile by removing an inadvertent double file 7949inclusion. 7950ACPICA BZ 913. 7951 7952AcpiExec: Update installation of operation region handlers. Install one 7953handler 7954for a user-defined address space. This is used by the ASL test suite 7955(ASLTS). 7956 7957---------------------------------------- 795811 February 2011. Summary of changes for version 20110211: 7959 79601) ACPI CA Core Subsystem: 7961 7962Added a mechanism to defer _REG methods for some early-installed 7963handlers. 7964Most user handlers should be installed before call to 7965AcpiEnableSubsystem. 7966However, Event handlers and region handlers should be installed after 7967AcpiInitializeObjects. Override handlers for the "default" regions should 7968be 7969installed early, however. This change executes all _REG methods for the 7970default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 7971chicken/egg issues between them. ACPICA BZ 848. 7972 7973Implemented an optimization for GPE detection. This optimization will 7974simply 7975ignore GPE registers that contain no enabled GPEs -- there is no need to 7976read the register since this information is available internally. This 7977becomes more important on machines with a large GPE space. ACPICA 7978bugzilla 7979884. Lin Ming. Suggestion from Joe Liu. 7980 7981Removed all use of the highly unreliable FADT revision field. The 7982revision 7983number in the FADT has been found to be completely unreliable and cannot 7984be 7985trusted. Only the actual table length can be used to infer the version. 7986This 7987change updates the ACPICA core and the disassembler so that both no 7988longer 7989even look at the FADT version and instead depend solely upon the FADT 7990length. 7991 7992Fix an unresolved name issue for the no-debug and no-error-message source 7993generation cases. The _AcpiModuleName was left undefined in these cases, 7994but 7995it is actually needed as a parameter to some interfaces. Define 7996_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 7997 7998Split several large files (makefiles and project files updated) 7999 utglobal.c -> utdecode.c 8000 dbcomds.c -> dbmethod.c dbnames.c 8001 dsopcode.c -> dsargs.c dscontrol.c 8002 dsload.c -> dsload2.c 8003 aslanalyze.c -> aslbtypes.c aslwalks.c 8004 8005Example Code and Data Size: These are the sizes for the OS-independent 8006acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 8007debug version of the code includes the debug output trace mechanism and 8008has 8009a much larger code and data size. 8010 8011 Previous Release (VC 9.0): 8012 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 8013 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 8014 Current Release (VC 9.0): 8015 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 8016 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 8017 80182) iASL Compiler/Disassembler and Tools: 8019 8020iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 8021These are useful C-style macros with the standard definitions. ACPICA 8022bugzilla 898. 8023 8024iASL/DTC: Added support for integer expressions and labels. Support for 8025full 8026expressions for all integer fields in all ACPI tables. Support for labels 8027in 8028"generic" portions of tables such as UEFI. See the iASL reference manual. 8029 8030Debugger: Added a command to display the status of global handlers. The 8031"handlers" command will display op region, fixed event, and miscellaneous 8032global handlers. installation status -- and for op regions, whether 8033default 8034or user-installed handler will be used. 8035 8036iASL: Warn if reserved method incorrectly returns a value. Many 8037predefined 8038names are defined such that they do not return a value. If implemented as 8039a 8040method, issue a warning if such a name explicitly returns a value. ACPICA 8041Bugzilla 855. 8042 8043iASL: Added detection of GPE method name conflicts. Detects a conflict 8044where 8045there are two GPE methods of the form _Lxy and _Exy in the same scope. 8046(For 8047example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 8048 8049iASL/DTC: Fixed a couple input scanner issues with comments and line 8050numbers. Comment remover could get confused and miss a comment ending. 8051Fixed 8052a problem with line counter maintenance. 8053 8054iASL/DTC: Reduced the severity of some errors from fatal to error. There 8055is 8056no need to abort on simple errors within a field definition. 8057 8058Debugger: Simplified the output of the help command. All help output now 8059in 8060a single screen, instead of help subcommands. ACPICA Bugzilla 897. 8061 8062---------------------------------------- 806312 January 2011. Summary of changes for version 20110112: 8064 80651) ACPI CA Core Subsystem: 8066 8067Fixed a race condition between method execution and namespace walks that 8068can 8069possibly cause a fault. The problem was apparently introduced in version 807020100528 as a result of a performance optimization that reduces the 8071number 8072of 8073namespace walks upon method exit by using the delete_namespace_subtree 8074function instead of the delete_namespace_by_owner function used 8075previously. 8076Bug is a missing namespace lock in the delete_namespace_subtree function. 8077dana.myers@oracle.com 8078 8079Fixed several issues and a possible fault with the automatic "serialized" 8080method support. History: This support changes a method to "serialized" on 8081the 8082fly if the method generates an AE_ALREADY_EXISTS error, indicating the 8083possibility that it cannot handle reentrancy. This fix repairs a couple 8084of 8085issues seen in the field, especially on machines with many cores: 8086 8087 1) Delete method children only upon the exit of the last thread, 8088 so as to not delete objects out from under other running threads 8089 (and possibly causing a fault.) 8090 2) Set the "serialized" bit for the method only upon the exit of the 8091 Last thread, so as to not cause deadlock when running threads 8092 attempt to exit. 8093 3) Cleanup the use of the AML "MethodFlags" and internal method flags 8094 so that there is no longer any confusion between the two. 8095 8096 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 8097 8098Debugger: Now lock the namespace for duration of a namespace dump. 8099Prevents 8100issues if the namespace is changing dynamically underneath the debugger. 8101Especially affects temporary namespace nodes, since the debugger displays 8102these also. 8103 8104Updated the ordering of include files. The ACPICA headers should appear 8105before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 8106set 8107any necessary compiler-specific defines, etc. Affects the ACPI-related 8108tools 8109and utilities. 8110 8111Updated all ACPICA copyrights and signons to 2011. Added the 2011 8112copyright 8113to all module headers and signons, including the Linux header. This 8114affects 8115virtually every file in the ACPICA core subsystem, iASL compiler, and all 8116utilities. 8117 8118Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 8119project files for VC++ 6.0 are now obsolete. New project files can be 8120found 8121under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 8122details. 8123 8124Example Code and Data Size: These are the sizes for the OS-independent 8125acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 8126debug version of the code includes the debug output trace mechanism and 8127has a 8128much larger code and data size. 8129 8130 Previous Release (VC 6.0): 8131 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 8132 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 8133 Current Release (VC 9.0): 8134 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 8135 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 8136 81372) iASL Compiler/Disassembler and Tools: 8138 8139iASL: Added generic data types to the Data Table compiler. Add "generic" 8140data 8141types such as UINT32, String, Unicode, etc., to simplify the generation 8142of 8143platform-defined tables such as UEFI. Lin Ming. 8144 8145iASL: Added listing support for the Data Table Compiler. Adds listing 8146support 8147(-l) to display actual binary output for each line of input code. 8148 8149---------------------------------------- 815009 December 2010. Summary of changes for version 20101209: 8151 81521) ACPI CA Core Subsystem: 8153 8154Completed the major overhaul of the GPE support code that was begun in 8155July 81562010. Major features include: removal of _PRW execution in ACPICA (host 8157executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 8158changes to existing interfaces, simplification of GPE handler operation, 8159and 8160a handful of new interfaces: 8161 8162 AcpiUpdateAllGpes 8163 AcpiFinishGpe 8164 AcpiSetupGpeForWake 8165 AcpiSetGpeWakeMask 8166 One new file, evxfgpe.c to consolidate all external GPE interfaces. 8167 8168See the ACPICA Programmer Reference for full details and programming 8169information. See the new section 4.4 "General Purpose Event (GPE) 8170Support" 8171for a full overview, and section 8.7 "ACPI General Purpose Event 8172Management" 8173for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 8174Ming, 8175Bob Moore, Rafael Wysocki. 8176 8177Implemented a new GPE feature for Windows compatibility, the "Implicit 8178Wake 8179GPE Notify". This feature will automatically issue a Notify(2) on a 8180device 8181when a Wake GPE is received if there is no corresponding GPE method or 8182handler. ACPICA BZ 870. 8183 8184Fixed a problem with the Scope() operator during table parse and load 8185phase. 8186During load phase (table load or method execution), the scope operator 8187should 8188not enter the target into the namespace. Instead, it should open a new 8189scope 8190at the target location. Linux BZ 19462, ACPICA BZ 882. 8191 8192Example Code and Data Size: These are the sizes for the OS-independent 8193acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8194debug version of the code includes the debug output trace mechanism and 8195has a 8196much larger code and data size. 8197 8198 Previous Release: 8199 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 8200 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 8201 Current Release: 8202 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8203 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8204 82052) iASL Compiler/Disassembler and Tools: 8206 8207iASL: Relax the alphanumeric restriction on _CID strings. These strings 8208are 8209"bus-specific" per the ACPI specification, and therefore any characters 8210are 8211acceptable. The only checks that can be performed are for a null string 8212and 8213perhaps for a leading asterisk. ACPICA BZ 886. 8214 8215iASL: Fixed a problem where a syntax error that caused a premature EOF 8216condition on the source file emitted a very confusing error message. The 8217premature EOF is now detected correctly. ACPICA BZ 891. 8218 8219Disassembler: Decode the AccessSize within a Generic Address Structure 8220(byte 8221access, word access, etc.) Note, this field does not allow arbitrary bit 8222access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 8223 8224New: AcpiNames utility - Example namespace dump utility. Shows an example 8225of 8226ACPICA configuration for a minimal namespace dump utility. Uses table and 8227namespace managers, but no AML interpreter. Does not add any 8228functionality 8229over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 8230partition and configure ACPICA. ACPICA BZ 883. 8231 8232AML Debugger: Increased the debugger buffer size for method return 8233objects. 8234Was 4K, increased to 16K. Also enhanced error messages for debugger 8235method 8236execution, including the buffer overflow case. 8237 8238---------------------------------------- 823913 October 2010. Summary of changes for version 20101013: 8240 82411) ACPI CA Core Subsystem: 8242 8243Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 8244now 8245clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 8246HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 8247 8248Changed the type of the predefined namespace object _TZ from ThermalZone 8249to 8250Device. This was found to be confusing to the host software that 8251processes 8252the various thermal zones, since _TZ is not really a ThermalZone. 8253However, 8254a 8255Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 8256Zhang. 8257 8258Added Windows Vista SP2 to the list of supported _OSI strings. The actual 8259string is "Windows 2006 SP2". 8260 8261Eliminated duplicate code in AcpiUtExecute* functions. Now that the 8262nsrepair 8263code automatically repairs _HID-related strings, this type of code is no 8264longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 8265878. 8266 8267Example Code and Data Size: These are the sizes for the OS-independent 8268acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8269debug version of the code includes the debug output trace mechanism and 8270has a 8271much larger code and data size. 8272 8273 Previous Release: 8274 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8275 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8276 Current Release: 8277 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8278 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8279 82802) iASL Compiler/Disassembler and Tools: 8281 8282iASL: Implemented additional compile-time validation for _HID strings. 8283The 8284non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 8285length 8286of 8287the string must be exactly seven or eight characters. For both _HID and 8288_CID 8289strings, all characters must be alphanumeric. ACPICA BZ 874. 8290 8291iASL: Allow certain "null" resource descriptors. Some BIOS code creates 8292descriptors that are mostly or all zeros, with the expectation that they 8293will 8294be filled in at runtime. iASL now allows this as long as there is a 8295"resource 8296tag" (name) associated with the descriptor, which gives the ASL a handle 8297needed to modify the descriptor. ACPICA BZ 873. 8298 8299Added single-thread support to the generic Unix application OSL. 8300Primarily 8301for iASL support, this change removes the use of semaphores in the 8302single- 8303threaded ACPICA tools/applications - increasing performance. The 8304_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 8305option. ACPICA BZ 879. 8306 8307AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 8308support 8309for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 8310 8311iASL: Moved all compiler messages to a new file, aslmessages.h. 8312 8313---------------------------------------- 831415 September 2010. Summary of changes for version 20100915: 8315 83161) ACPI CA Core Subsystem: 8317 8318Removed the AcpiOsDerivePciId OSL interface. The various host 8319implementations 8320of this function were not OS-dependent and are now obsolete and can be 8321removed from all host OSLs. This function has been replaced by 8322AcpiHwDerivePciId, which is now part of the ACPICA core code. 8323AcpiHwDerivePciId has been implemented without recursion. Adds one new 8324module, hwpci.c. ACPICA BZ 857. 8325 8326Implemented a dynamic repair for _HID and _CID strings. The following 8327problems are now repaired at runtime: 1) Remove a leading asterisk in the 8328string, and 2) the entire string is uppercased. Both repairs are in 8329accordance with the ACPI specification and will simplify host driver 8330code. 8331ACPICA BZ 871. 8332 8333The ACPI_THREAD_ID type is no longer configurable, internally it is now 8334always UINT64. This simplifies the ACPICA code, especially any printf 8335output. 8336UINT64 is the only common data type for all thread_id types across all 8337operating systems. It is now up to the host OSL to cast the native 8338thread_id 8339type to UINT64 before returning the value to ACPICA (via 8340AcpiOsGetThreadId). 8341Lin Ming, Bob Moore. 8342 8343Added the ACPI_INLINE type to enhance the ACPICA configuration. The 8344"inline" 8345keyword is not standard across compilers, and this type allows inline to 8346be 8347configured on a per-compiler basis. Lin Ming. 8348 8349Made the system global AcpiGbl_SystemAwakeAndRunning publicly 8350available. 8351Added an extern for this boolean in acpixf.h. Some hosts utilize this 8352value 8353during suspend/restore operations. ACPICA BZ 869. 8354 8355All code that implements error/warning messages with the "ACPI:" prefix 8356has 8357been moved to a new module, utxferror.c. 8358 8359The UINT64_OVERLAY was moved to utmath.c, which is the only module where 8360it 8361is used. ACPICA BZ 829. Lin Ming, Bob Moore. 8362 8363Example Code and Data Size: These are the sizes for the OS-independent 8364acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8365debug version of the code includes the debug output trace mechanism and 8366has a 8367much larger code and data size. 8368 8369 Previous Release: 8370 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 8371 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 8372 Current Release: 8373 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8374 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8375 83762) iASL Compiler/Disassembler and Tools: 8377 8378iASL/Disassembler: Write ACPI errors to stderr instead of the output 8379file. 8380This keeps the output files free of random error messages that may 8381originate 8382from within the namespace/interpreter code. Used this opportunity to 8383merge 8384all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 8385866. Lin Ming, Bob Moore. 8386 8387Tools: update some printfs for ansi warnings on size_t. Handle width 8388change 8389of size_t on 32-bit versus 64-bit generations. Lin Ming. 8390 8391---------------------------------------- 839206 August 2010. Summary of changes for version 20100806: 8393 83941) ACPI CA Core Subsystem: 8395 8396Designed and implemented a new host interface to the _OSI support code. 8397This 8398will allow the host to dynamically add or remove multiple _OSI strings, 8399as 8400well as install an optional handler that is called for each _OSI 8401invocation. 8402Also added a new AML debugger command, 'osi' to display and modify the 8403global 8404_OSI string table, and test support in the AcpiExec utility. See the 8405ACPICA 8406reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 8407New Functions: 8408 AcpiInstallInterface - Add an _OSI string. 8409 AcpiRemoveInterface - Delete an _OSI string. 8410 AcpiInstallInterfaceHandler - Install optional _OSI handler. 8411Obsolete Functions: 8412 AcpiOsValidateInterface - no longer used. 8413New Files: 8414 source/components/utilities/utosi.c 8415 8416Re-introduced the support to enable multi-byte transfers for Embedded 8417Controller (EC) operation regions. A reported problem was found to be a 8418bug 8419in the host OS, not in the multi-byte support. Previously, the maximum 8420data 8421size passed to the EC operation region handler was a single byte. There 8422are 8423often EC Fields larger than one byte that need to be transferred, and it 8424is 8425useful for the EC driver to lock these as a single transaction. This 8426change 8427enables single transfers larger than 8 bits. This effectively changes the 8428access to the EC space from ByteAcc to AnyAcc, and will probably require 8429changes to the host OS Embedded Controller driver to enable 16/32/64/256- 8430bit 8431transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 8432 8433Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 8434prototype in acpiosxf.h had the output value pointer as a (void *). 8435It should be a (UINT64 *). This may affect some host OSL code. 8436 8437Fixed a couple problems with the recently modified Linux makefiles for 8438iASL 8439and AcpiExec. These new makefiles place the generated object files in the 8440local directory so that there can be no collisions between the files that 8441are 8442shared between them that are compiled with different options. 8443 8444Example Code and Data Size: These are the sizes for the OS-independent 8445acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8446debug version of the code includes the debug output trace mechanism and 8447has a 8448much larger code and data size. 8449 8450 Previous Release: 8451 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8452 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 8453 Current Release: 8454 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 8455 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 8456 84572) iASL Compiler/Disassembler and Tools: 8458 8459iASL/Disassembler: Added a new option (-da, "disassemble all") to load 8460the 8461namespace from and disassemble an entire group of AML files. Useful for 8462loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 8463and 8464disassembling with one simple command. ACPICA BZ 865. Lin Ming. 8465 8466iASL: Allow multiple invocations of -e option. This change allows 8467multiple 8468uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 8469834. 8470Lin Ming. 8471 8472---------------------------------------- 847302 July 2010. Summary of changes for version 20100702: 8474 84751) ACPI CA Core Subsystem: 8476 8477Implemented several updates to the recently added GPE reference count 8478support. The model for "wake" GPEs is changing to give the host OS 8479complete 8480control of these GPEs. Eventually, the ACPICA core will not execute any 8481_PRW 8482methods, since the host already must execute them. Also, additional 8483changes 8484were made to help ensure that the reference counts are kept in proper 8485synchronization with reality. Rafael J. Wysocki. 8486 84871) Ensure that GPEs are not enabled twice during initialization. 84882) Ensure that GPE enable masks stay in sync with the reference count. 84893) Do not inadvertently enable GPEs when writing GPE registers. 84904) Remove the internal wake reference counter and add new AcpiGpeWakeup 8491interface. This interface will set or clear individual GPEs for wakeup. 84925) Remove GpeType argument from AcpiEnable and AcpiDisable. These 8493interfaces 8494are now used for "runtime" GPEs only. 8495 8496Changed the behavior of the GPE install/remove handler interfaces. The 8497GPE 8498is 8499no longer disabled during this process, as it was found to cause problems 8500on 8501some machines. Rafael J. Wysocki. 8502 8503Reverted a change introduced in version 20100528 to enable Embedded 8504Controller multi-byte transfers. This change was found to cause problems 8505with 8506Index Fields and possibly Bank Fields. It will be reintroduced when these 8507problems have been resolved. 8508 8509Fixed a problem with references to Alias objects within Package Objects. 8510A 8511reference to an Alias within the definition of a Package was not always 8512resolved properly. Aliases to objects like Processors, Thermal zones, 8513etc. 8514were resolved to the actual object instead of a reference to the object 8515as 8516it 8517should be. Package objects are only allowed to contain integer, string, 8518buffer, package, and reference objects. Redhat bugzilla 608648. 8519 8520Example Code and Data Size: These are the sizes for the OS-independent 8521acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8522debug version of the code includes the debug output trace mechanism and 8523has a 8524much larger code and data size. 8525 8526 Previous Release: 8527 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8528 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 8529 Current Release: 8530 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8531 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 8532 85332) iASL Compiler/Disassembler and Tools: 8534 8535iASL: Implemented a new compiler subsystem to allow definition and 8536compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 8537These 8538are called "ACPI Data Tables", and the new compiler is the "Data Table 8539Compiler". This compiler is intended to simplify the existing error-prone 8540process of creating these tables for the BIOS, as well as allowing the 8541disassembly, modification, recompilation, and override of existing ACPI 8542data 8543tables. See the iASL User Guide for detailed information. 8544 8545iASL: Implemented a new Template Generator option in support of the new 8546Data 8547Table Compiler. This option will create examples of all known ACPI tables 8548that can be used as the basis for table development. See the iASL 8549documentation and the -T option. 8550 8551Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 8552Descriptor Table). 8553 8554Updated the Linux makefiles for iASL and AcpiExec to place the generated 8555object files in the local directory so that there can be no collisions 8556between the shared files between them that are generated with different 8557options. 8558 8559Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 8560Use 8561the #define __APPLE__ to enable this support. 8562 8563---------------------------------------- 856428 May 2010. Summary of changes for version 20100528: 8565 8566Note: The ACPI 4.0a specification was released on April 5, 2010 and is 8567available at www.acpi.info. This is primarily an errata release. 8568 85691) ACPI CA Core Subsystem: 8570 8571Undefined ACPI tables: We are looking for the definitions for the 8572following 8573ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 8574 8575Implemented support to enable multi-byte transfers for Embedded 8576Controller 8577(EC) operation regions. Previously, the maximum data size passed to the 8578EC 8579operation region handler was a single byte. There are often EC Fields 8580larger 8581than one byte that need to be transferred, and it is useful for the EC 8582driver 8583to lock these as a single transaction. This change enables single 8584transfers 8585larger than 8 bits. This effectively changes the access to the EC space 8586from 8587ByteAcc to AnyAcc, and will probably require changes to the host OS 8588Embedded 8589Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 8590bit 8591transfers. Alexey Starikovskiy, Lin Ming 8592 8593Implemented a performance enhancement for namespace search and access. 8594This 8595change enhances the performance of namespace searches and walks by adding 8596a 8597backpointer to the parent in each namespace node. On large namespaces, 8598this 8599change can improve overall ACPI performance by up to 9X. Adding a pointer 8600to 8601each namespace node increases the overall size of the internal namespace 8602by 8603about 5%, since each namespace entry usually consists of both a namespace 8604node and an ACPI operand object. However, this is the first growth of the 8605namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 8606 8607Implemented a performance optimization that reduces the number of 8608namespace 8609walks. On control method exit, only walk the namespace if the method is 8610known 8611to have created namespace objects outside of its local scope. Previously, 8612the 8613entire namespace was traversed on each control method exit. This change 8614can 8615improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 8616Moore. 8617 8618Added support to truncate I/O addresses to 16 bits for Windows 8619compatibility. 8620Some ASL code has been seen in the field that inadvertently has bits set 8621above bit 15. This feature is optional and is enabled if the BIOS 8622requests 8623any Windows OSI strings. It can also be enabled by the host OS. Matthew 8624Garrett, Bob Moore. 8625 8626Added support to limit the maximum time for the ASL Sleep() operator. To 8627prevent accidental deep sleeps, limit the maximum time that Sleep() will 8628actually sleep. Configurable, the default maximum is two seconds. ACPICA 8629bugzilla 854. 8630 8631Added run-time validation support for the _WDG and_WED Microsoft 8632predefined 8633methods. These objects are defined by "Windows Instrumentation", and are 8634not 8635part of the ACPI spec. ACPICA BZ 860. 8636 8637Expanded all statistic counters used during namespace and device 8638initialization from 16 to 32 bits in order to support very large 8639namespaces. 8640 8641Replaced all instances of %d in printf format specifiers with %u since 8642nearly 8643all integers in ACPICA are unsigned. 8644 8645Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 8646returned 8647as AE_NO_HANDLER. 8648 8649Example Code and Data Size: These are the sizes for the OS-independent 8650acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8651debug version of the code includes the debug output trace mechanism and 8652has a 8653much larger code and data size. 8654 8655 Previous Release: 8656 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 8657 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 8658 Current Release: 8659 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8660 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 8661 86622) iASL Compiler/Disassembler and Tools: 8663 8664iASL: Added compiler support for the _WDG and_WED Microsoft predefined 8665methods. These objects are defined by "Windows Instrumentation", and are 8666not 8667part of the ACPI spec. ACPICA BZ 860. 8668 8669AcpiExec: added option to disable the memory tracking mechanism. The -dt 8670option will disable the tracking mechanism, which improves performance 8671considerably. 8672 8673AcpiExec: Restructured the command line options into -d (disable) and -e 8674(enable) options. 8675 8676---------------------------------------- 867728 April 2010. Summary of changes for version 20100428: 8678 86791) ACPI CA Core Subsystem: 8680 8681Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 8682including FADT-based and GPE Block Devices, execute any _PRW methods in 8683the 8684new table, and process any _Lxx/_Exx GPE methods in the new table. Any 8685runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 8686immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 8687Devices. Provides compatibility with other ACPI implementations. Two new 8688files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 8689Moore. 8690 8691Fixed a regression introduced in version 20100331 within the table 8692manager 8693where initial table loading could fail. This was introduced in the fix 8694for 8695AcpiReallocateRootTable. Also, renamed some of fields in the table 8696manager 8697data structures to clarify their meaning and use. 8698 8699Fixed a possible allocation overrun during internal object copy in 8700AcpiUtCopySimpleObject. The original code did not correctly handle the 8701case 8702where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 8703847. 8704 8705Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 8706possible access beyond end-of-allocation. Also, now fully validate 8707descriptor 8708(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 8709 8710Example Code and Data Size: These are the sizes for the OS-independent 8711acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8712debug version of the code includes the debug output trace mechanism and 8713has a 8714much larger code and data size. 8715 8716 Previous Release: 8717 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 8718 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 8719 Current Release: 8720 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 8721 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 8722 87232) iASL Compiler/Disassembler and Tools: 8724 8725iASL: Implemented Min/Max/Len/Gran validation for address resource 8726descriptors. This change implements validation for the address fields 8727that 8728are common to all address-type resource descriptors. These checks are 8729implemented: Checks for valid Min/Max, length within the Min/Max window, 8730valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 8731per 8732table 6-40 in the ACPI 4.0a specification. Also split the large 8733aslrestype1.c 8734and aslrestype2.c files into five new files. ACPICA BZ 840. 8735 8736iASL: Added support for the _Wxx predefined names. This support was 8737missing 8738and these names were not recognized by the compiler as valid predefined 8739names. ACPICA BZ 851. 8740 8741iASL: Added an error for all predefined names that are defined to return 8742no 8743value and thus must be implemented as Control Methods. These include all 8744of 8745the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 8746names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 8747 8748iASL: Implemented the -ts option to emit hex AML data in ASL format, as 8749an 8750ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 8751be 8752dynamically loaded via the Load() operator. Also cleaned up output for 8753the 8754- 8755ta and -tc options. ACPICA BZ 853. 8756 8757Tests: Added a new file with examples of extended iASL error checking. 8758Demonstrates the advanced error checking ability of the iASL compiler. 8759Available at tests/misc/badcode.asl. 8760 8761---------------------------------------- 876231 March 2010. Summary of changes for version 20100331: 8763 87641) ACPI CA Core Subsystem: 8765 8766Completed a major update for the GPE support in order to improve support 8767for 8768shared GPEs and to simplify both host OS and ACPICA code. Added a 8769reference 8770count mechanism to support shared GPEs that require multiple device 8771drivers. 8772Several external interfaces have changed. One external interface has been 8773removed. One new external interface was added. Most of the GPE external 8774interfaces now use the GPE spinlock instead of the events mutex (and the 8775Flags parameter for many GPE interfaces has been removed.) See the 8776updated 8777ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 8778Rafael 8779Wysocki. ACPICA BZ 831. 8780 8781Changed: 8782 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 8783Removed: 8784 AcpiSetGpeType 8785New: 8786 AcpiSetGpe 8787 8788Implemented write support for DataTable operation regions. These regions 8789are 8790defined via the DataTableRegion() operator. Previously, only read support 8791was 8792implemented. The ACPI specification allows DataTableRegions to be 8793read/write, 8794however. 8795 8796Implemented a new subsystem option to force a copy of the DSDT to local 8797memory. Optionally copy the entire DSDT to local memory (instead of 8798simply 8799mapping it.) There are some (albeit very rare) BIOSs that corrupt or 8800replace 8801the original DSDT, creating the need for this option. Default is FALSE, 8802do 8803not copy the DSDT. 8804 8805Implemented detection of a corrupted or replaced DSDT. This change adds 8806support to detect a DSDT that has been corrupted and/or replaced from 8807outside 8808the OS (by firmware). This is typically catastrophic for the system, but 8809has 8810been seen on some machines. Once this problem has been detected, the DSDT 8811copy option can be enabled via system configuration. Lin Ming, Bob Moore. 8812 8813Fixed two problems with AcpiReallocateRootTable during the root table 8814copy. 8815When copying the root table to the new allocation, the length used was 8816incorrect. The new size was used instead of the current table size, 8817meaning 8818too much data was copied. Also, the count of available slots for ACPI 8819tables 8820was not set correctly. Alexey Starikovskiy, Bob Moore. 8821 8822Example Code and Data Size: These are the sizes for the OS-independent 8823acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8824debug version of the code includes the debug output trace mechanism and 8825has a 8826much larger code and data size. 8827 8828 Previous Release: 8829 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8830 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8831 Current Release: 8832 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 8833 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 8834 88352) iASL Compiler/Disassembler and Tools: 8836 8837iASL: Implement limited typechecking for values returned from predefined 8838control methods. The type of any returned static (unnamed) object is now 8839validated. For example, Return(1). ACPICA BZ 786. 8840 8841iASL: Fixed a predefined name object verification regression. Fixes a 8842problem 8843introduced in version 20100304. An error is incorrectly generated if a 8844predefined name is declared as a static named object with a value defined 8845using the keywords "Zero", "One", or "Ones". Lin Ming. 8846 8847iASL: Added Windows 7 support for the -g option (get local ACPI tables) 8848by 8849reducing the requested registry access rights. ACPICA BZ 842. 8850 8851Disassembler: fixed a possible fault when generating External() 8852statements. 8853Introduced in commit ae7d6fd: Properly handle externals with parent- 8854prefix 8855(carat). Fixes a string length allocation calculation. Lin Ming. 8856 8857---------------------------------------- 885804 March 2010. Summary of changes for version 20100304: 8859 88601) ACPI CA Core Subsystem: 8861 8862Fixed a possible problem with the AML Mutex handling function 8863AcpiExReleaseMutex where the function could fault under the very rare 8864condition when the interpreter has blocked, the interpreter lock is 8865released, 8866the interpreter is then reentered via the same thread, and attempts to 8867acquire an AML mutex that was previously acquired. FreeBSD report 140979. 8868Lin 8869Ming. 8870 8871Implemented additional configuration support for the AML "Debug Object". 8872Output from the debug object can now be enabled via a global variable, 8873AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 8874debugging. 8875This debug output is now available in the release version of ACPICA 8876instead 8877of just the debug version. Also, the entire debug output module can now 8878be 8879configured out of the ACPICA build if desired. One new file added, 8880executer/exdebug.c. Lin Ming, Bob Moore. 8881 8882Added header support for the ACPI MCHI table (Management Controller Host 8883Interface Table). This table was added in ACPI 4.0, but the defining 8884document 8885has only recently become available. 8886 8887Standardized output of integer values for ACPICA warnings/errors. Always 8888use 88890x prefix for hex output, always use %u for unsigned integer decimal 8890output. 8891Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 8892400 8893invocations.) These invocations were converted from the original 8894ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 8895 8896Example Code and Data Size: These are the sizes for the OS-independent 8897acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8898debug version of the code includes the debug output trace mechanism and 8899has a 8900much larger code and data size. 8901 8902 Previous Release: 8903 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8904 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8905 Current Release: 8906 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8907 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8908 89092) iASL Compiler/Disassembler and Tools: 8910 8911iASL: Implemented typechecking support for static (non-control method) 8912predefined named objects that are declared with the Name() operator. For 8913example, the type of this object is now validated to be of type Integer: 8914Name(_BBN, 1). This change migrates the compiler to using the core 8915predefined 8916name table instead of maintaining a local version. Added a new file, 8917aslpredef.c. ACPICA BZ 832. 8918 8919Disassembler: Added support for the ACPI 4.0 MCHI table. 8920 8921---------------------------------------- 892221 January 2010. Summary of changes for version 20100121: 8923 89241) ACPI CA Core Subsystem: 8925 8926Added the 2010 copyright to all module headers and signons. This affects 8927virtually every file in the ACPICA core subsystem, the iASL compiler, the 8928tools/utilities, and the test suites. 8929 8930Implemented a change to the AcpiGetDevices interface to eliminate 8931unnecessary 8932invocations of the _STA method. In the case where a specific _HID is 8933requested, do not run _STA until a _HID match is found. This eliminates 8934potentially dozens of _STA calls during a search for a particular 8935device/HID, 8936which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 8937 8938Implemented an additional repair for predefined method return values. 8939Attempt 8940to repair unexpected NULL elements within returned Package objects. 8941Create 8942an 8943Integer of value zero, a NULL String, or a zero-length Buffer as 8944appropriate. 8945ACPICA BZ 818. Lin Ming, Bob Moore. 8946 8947Removed the obsolete ACPI_INTEGER data type. This type was introduced as 8948the 8949code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 8950(with 895164-bit AML integers). It is now obsolete and this change removes it from 8952the 8953ACPICA code base, replaced by UINT64. The original typedef has been 8954retained 8955for now for compatibility with existing device driver code. ACPICA BZ 8956824. 8957 8958Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 8959in 8960the parse tree object. 8961 8962Added additional warning options for the gcc-4 generation. Updated the 8963source 8964accordingly. This includes some code restructuring to eliminate 8965unreachable 8966code, elimination of some gotos, elimination of unused return values, 8967some 8968additional casting, and removal of redundant declarations. 8969 8970Example Code and Data Size: These are the sizes for the OS-independent 8971acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8972debug version of the code includes the debug output trace mechanism and 8973has a 8974much larger code and data size. 8975 8976 Previous Release: 8977 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 8978 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 8979 Current Release: 8980 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8981 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8982 89832) iASL Compiler/Disassembler and Tools: 8984 8985No functional changes for this release. 8986 8987---------------------------------------- 898814 December 2009. Summary of changes for version 20091214: 8989 89901) ACPI CA Core Subsystem: 8991 8992Enhanced automatic data type conversions for predefined name repairs. 8993This 8994change expands the automatic repairs/conversions for predefined name 8995return 8996values to make Integers, Strings, and Buffers fully interchangeable. 8997Also, 8998a 8999Buffer can be converted to a Package of Integers if necessary. The 9000nsrepair.c 9001module was completely restructured. Lin Ming, Bob Moore. 9002 9003Implemented automatic removal of null package elements during predefined 9004name 9005repairs. This change will automatically remove embedded and trailing NULL 9006package elements from returned package objects that are defined to 9007contain 9008a 9009variable number of sub-packages. The driver is then presented with a 9010package 9011with no null elements to deal with. ACPICA BZ 819. 9012 9013Implemented a repair for the predefined _FDE and _GTM names. The expected 9014return value for both names is a Buffer of 5 DWORDs. This repair fixes 9015two 9016possible problems (both seen in the field), where a package of integers 9017is 9018returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 9019Kim. 9020 9021Implemented additional module-level code support. This change will 9022properly 9023execute module-level code that is not at the root of the namespace (under 9024a 9025Device object, etc.). Now executes the code within the current scope 9026instead 9027of the root. ACPICA BZ 762. Lin Ming. 9028 9029Fixed possible mutex acquisition errors when running _REG methods. Fixes 9030a 9031problem where mutex errors can occur when running a _REG method that is 9032in 9033the same scope as a method-defined operation region or an operation 9034region 9035under a module-level IF block. This type of code is rare, so the problem 9036has 9037not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 9038 9039Fixed a possible memory leak during module-level code execution. An 9040object 9041could be leaked for each block of executed module-level code if the 9042interpreter slack mode is enabled This change deletes any implicitly 9043returned 9044object from the module-level code block. Lin Ming. 9045 9046Removed messages for successful predefined repair(s). The repair 9047mechanism 9048was considered too wordy. Now, messages are only unconditionally emitted 9049if 9050the return object cannot be repaired. Existing messages for successful 9051repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 9052827. 9053 9054Example Code and Data Size: These are the sizes for the OS-independent 9055acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9056debug version of the code includes the debug output trace mechanism and 9057has a 9058much larger code and data size. 9059 9060 Previous Release: 9061 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 9062 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 9063 Current Release: 9064 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 9065 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 9066 90672) iASL Compiler/Disassembler and Tools: 9068 9069iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 9070files 9071were no longer automatically removed at the termination of the compile. 9072 9073acpiexec: Implemented the -f option to specify default region fill value. 9074This option specifies the value used to initialize buffers that simulate 9075operation regions. Default value is zero. Useful for debugging problems 9076that 9077depend on a specific initial value for a region or field. 9078 9079---------------------------------------- 908012 November 2009. Summary of changes for version 20091112: 9081 90821) ACPI CA Core Subsystem: 9083 9084Implemented a post-order callback to AcpiWalkNamespace. The existing 9085interface only has a pre-order callback. This change adds an additional 9086parameter for a post-order callback which will be more useful for bus 9087scans. 9088ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 9089 9090Modified the behavior of the operation region memory mapping cache for 9091SystemMemory. Ensure that the memory mappings created for operation 9092regions 9093do not cross 4K page boundaries. Crossing a page boundary while mapping 9094regions can cause kernel warnings on some hosts if the pages have 9095different 9096attributes. Such regions are probably BIOS bugs, and this is the 9097workaround. 9098Linux BZ 14445. Lin Ming. 9099 9100Implemented an automatic repair for predefined methods that must return 9101sorted lists. This change will repair (by sorting) packages returned by 9102_ALR, 9103_PSS, and _TSS. Drivers can now assume that the packages are correctly 9104sorted 9105and do not contain NULL package elements. Adds one new file, 9106namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 9107 9108Fixed a possible fault during predefined name validation if a return 9109Package 9110object contains NULL elements. Also adds a warning if a NULL element is 9111followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 9112may 9113include repair or removal of all such NULL elements where possible. 9114 9115Implemented additional module-level executable AML code support. This 9116change 9117will execute module-level code that is not at the root of the namespace 9118(under a Device object, etc.) at table load time. Module-level executable 9119AML 9120code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 9121 9122Implemented a new internal function to create Integer objects. This 9123function 9124simplifies miscellaneous object creation code. ACPICA BZ 823. 9125 9126Reduced the severity of predefined repair messages, Warning to Info. 9127Since 9128the object was successfully repaired, a warning is too severe. Reduced to 9129an 9130info message for now. These messages may eventually be changed to debug- 9131only. 9132ACPICA BZ 812. 9133 9134Example Code and Data Size: These are the sizes for the OS-independent 9135acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9136debug version of the code includes the debug output trace mechanism and 9137has a 9138much larger code and data size. 9139 9140 Previous Release: 9141 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 9142 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 9143 Current Release: 9144 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 9145 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 9146 91472) iASL Compiler/Disassembler and Tools: 9148 9149iASL: Implemented Switch() with While(1) so that Break works correctly. 9150This 9151change correctly implements the Switch operator with a surrounding 9152While(1) 9153so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 9154 9155iASL: Added a message if a package initializer list is shorter than 9156package 9157length. Adds a new remark for a Package() declaration if an initializer 9158list 9159exists, but is shorter than the declared length of the package. Although 9160technically legal, this is probably a coding error and it is seen in the 9161field. ACPICA BZ 815. Lin Ming, Bob Moore. 9162 9163iASL: Fixed a problem where the compiler could fault after the maximum 9164number 9165of errors was reached (200). 9166 9167acpixtract: Fixed a possible warning for pointer cast if the compiler 9168warning 9169level set very high. 9170 9171---------------------------------------- 917213 October 2009. Summary of changes for version 20091013: 9173 91741) ACPI CA Core Subsystem: 9175 9176Fixed a problem where an Operation Region _REG method could be executed 9177more 9178than once. If a custom address space handler is installed by the host 9179before 9180the "initialize operation regions" phase of the ACPICA initialization, 9181any 9182_REG methods for that address space could be executed twice. This change 9183fixes the problem. ACPICA BZ 427. Lin Ming. 9184 9185Fixed a possible memory leak for the Scope() ASL operator. When the exact 9186invocation of "Scope(\)" is executed (change scope to root), one internal 9187operand object was leaked. Lin Ming. 9188 9189Implemented a run-time repair for the _MAT predefined method. If the _MAT 9190return value is defined as a Field object in the AML, and the field 9191size is less than or equal to the default width of an integer (32 or 919264),_MAT 9193can incorrectly return an Integer instead of a Buffer. ACPICA now 9194automatically repairs this problem. ACPICA BZ 810. 9195 9196Implemented a run-time repair for the _BIF and _BIX predefined methods. 9197The 9198"OEM Information" field is often incorrectly returned as an Integer with 9199value zero if the field is not supported by the platform. This is due to 9200an 9201ambiguity in the ACPI specification. The field should always be a string. 9202ACPICA now automatically repairs this problem by returning a NULL string 9203within the returned Package. ACPICA BZ 807. 9204 9205Example Code and Data Size: These are the sizes for the OS-independent 9206acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9207debug version of the code includes the debug output trace mechanism and 9208has a 9209much larger code and data size. 9210 9211 Previous Release: 9212 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 9213 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 9214 Current Release: 9215 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 9216 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 9217 92182) iASL Compiler/Disassembler and Tools: 9219 9220Disassembler: Fixed a problem where references to external symbols that 9221contained one or more parent-prefixes (carats) were not handled 9222correctly, 9223possibly causing a fault. ACPICA BZ 806. Lin Ming. 9224 9225Disassembler: Restructured the code so that all functions that handle 9226external symbols are in a single module. One new file is added, 9227common/dmextern.c. 9228 9229AML Debugger: Added a max count argument for the Batch command (which 9230executes multiple predefined methods within the namespace.) 9231 9232iASL: Updated the compiler documentation (User Reference.) Available at 9233http://www.acpica.org/documentation/. ACPICA BZ 750. 9234 9235AcpiXtract: Updated for Lint and other formatting changes. Close all open 9236files. 9237 9238---------------------------------------- 923903 September 2009. Summary of changes for version 20090903: 9240 92411) ACPI CA Core Subsystem: 9242 9243For Windows Vista compatibility, added the automatic execution of an _INI 9244method located at the namespace root (\_INI). This method is executed at 9245table load time. This support is in addition to the automatic execution 9246of 9247\_SB._INI. Lin Ming. 9248 9249Fixed a possible memory leak in the interpreter for AML package objects 9250if 9251the package initializer list is longer than the defined size of the 9252package. 9253This apparently can only happen if the BIOS changes the package size on 9254the 9255fly (seen in a _PSS object), as ASL compilers do not allow this. The 9256interpreter will truncate the package to the defined size (and issue an 9257error 9258message), but previously could leave the extra objects undeleted if they 9259were 9260pre-created during the argument processing (such is the case if the 9261package 9262consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 9263 9264Fixed a problem seen when a Buffer or String is stored to itself via ASL. 9265This has been reported in the field. Previously, ACPICA would zero out 9266the 9267buffer/string. Now, the operation is treated as a noop. Provides Windows 9268compatibility. ACPICA BZ 803. Lin Ming. 9269 9270Removed an extraneous error message for ASL constructs of the form 9271Store(LocalX,LocalX) when LocalX is uninitialized. These curious 9272statements 9273are seen in many BIOSs and are once again treated as NOOPs and no error 9274is 9275emitted when they are encountered. ACPICA BZ 785. 9276 9277Fixed an extraneous warning message if a _DSM reserved method returns a 9278Package object. _DSM can return any type of object, so validation on the 9279return type cannot be performed. ACPICA BZ 802. 9280 9281Example Code and Data Size: These are the sizes for the OS-independent 9282acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9283debug version of the code includes the debug output trace mechanism and 9284has a 9285much larger code and data size. 9286 9287 Previous Release: 9288 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 9289 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 9290 Current Release: 9291 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 9292 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 9293 92942) iASL Compiler/Disassembler and Tools: 9295 9296iASL: Fixed a problem with the use of the Alias operator and Resource 9297Templates. The correct alias is now constructed and no error is emitted. 9298ACPICA BZ 738. 9299 9300iASL: Implemented the -I option to specify additional search directories 9301for 9302include files. Allows multiple additional search paths for include files. 9303Directories are searched in the order specified on the command line 9304(after 9305the local directory is searched.) ACPICA BZ 800. 9306 9307iASL: Fixed a problem where the full pathname for include files was not 9308emitted for warnings/errors. This caused the IDE support to not work 9309properly. ACPICA BZ 765. 9310 9311iASL: Implemented the -@ option to specify a Windows-style response file 9312containing additional command line options. ACPICA BZ 801. 9313 9314AcpiExec: Added support to load multiple AML files simultaneously (such 9315as 9316a 9317DSDT and multiple SSDTs). Also added support for wildcards within the AML 9318pathname. These features allow all machine tables to be easily loaded and 9319debugged together. ACPICA BZ 804. 9320 9321Disassembler: Added missing support for disassembly of HEST table Error 9322Bank 9323subtables. 9324 9325---------------------------------------- 932630 July 2009. Summary of changes for version 20090730: 9327 9328The ACPI 4.0 implementation for ACPICA is complete with this release. 9329 93301) ACPI CA Core Subsystem: 9331 9332ACPI 4.0: Added header file support for all new and changed ACPI tables. 9333Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 9334new 9335for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 9336BERT, 9337EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 9338There 9339have been some ACPI 4.0 changes to other existing tables. Split the large 9340actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 9341 9342ACPI 4.0: Implemented predefined name validation for all new names. There 9343are 934431 new names in ACPI 4.0. The predefined validation module was split into 9345two 9346files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 9347 9348Implemented support for so-called "module-level executable code". This is 9349executable AML code that exists outside of any control method and is 9350intended 9351to be executed at table load time. Although illegal since ACPI 2.0, this 9352type 9353of code still exists and is apparently still being created. Blocks of 9354this 9355code are now detected and executed as intended. Currently, the code 9356blocks 9357must exist under either an If, Else, or While construct; these are the 9358typical cases seen in the field. ACPICA BZ 762. Lin Ming. 9359 9360Implemented an automatic dynamic repair for predefined names that return 9361nested Package objects. This applies to predefined names that are defined 9362to 9363return a variable-length Package of sub-packages. If the number of sub- 9364packages is one, BIOS code is occasionally seen that creates a simple 9365single 9366package with no sub-packages. This code attempts to fix the problem by 9367wrapping a new package object around the existing package. These methods 9368can 9369be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 9370BZ 9371790. 9372 9373Fixed a regression introduced in 20090625 for the AcpiGetDevices 9374interface. 9375The _HID/_CID matching was broken and no longer matched IDs correctly. 9376ACPICA 9377BZ 793. 9378 9379Fixed a problem with AcpiReset where the reset would silently fail if the 9380register was one of the protected I/O ports. AcpiReset now bypasses the 9381port 9382validation mechanism. This may eventually be driven into the 9383AcpiRead/Write 9384interfaces. 9385 9386Fixed a regression related to the recent update of the AcpiRead/Write 9387interfaces. A sleep/suspend could fail if the optional PM2 Control 9388register 9389does not exist during an attempt to write the Bus Master Arbitration bit. 9390(However, some hosts already delete the code that writes this bit, and 9391the 9392code may in fact be obsolete at this date.) ACPICA BZ 799. 9393 9394Fixed a problem where AcpiTerminate could fault if inadvertently called 9395twice 9396in succession. ACPICA BZ 795. 9397 9398Example Code and Data Size: These are the sizes for the OS-independent 9399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9400debug version of the code includes the debug output trace mechanism and 9401has a 9402much larger code and data size. 9403 9404 Previous Release: 9405 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 9406 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 9407 Current Release: 9408 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 9409 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 9410 94112) iASL Compiler/Disassembler and Tools: 9412 9413ACPI 4.0: Implemented disassembler support for all new ACPI tables and 9414changes to existing tables. ACPICA BZ 775. 9415 9416---------------------------------------- 941725 June 2009. Summary of changes for version 20090625: 9418 9419The ACPI 4.0 Specification was released on June 16 and is available at 9420www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 9421continue for the next few releases. 9422 94231) ACPI CA Core Subsystem: 9424 9425ACPI 4.0: Implemented interpreter support for the IPMI operation region 9426address space. Includes support for bi-directional data buffers and an 9427IPMI 9428address space handler (to be installed by an IPMI device driver.) ACPICA 9429BZ 9430773. Lin Ming. 9431 9432ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 9433Includes 9434support in both the header files and the disassembler. 9435 9436Completed a major update for the AcpiGetObjectInfo external interface. 9437Changes include: 9438 - Support for variable, unlimited length HID, UID, and CID strings. 9439 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 9440etc.) 9441 - Call the _SxW power methods on behalf of a device object. 9442 - Determine if a device is a PCI root bridge. 9443 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 9444These changes will require an update to all callers of this interface. 9445See 9446the updated ACPICA Programmer Reference for details. One new source file 9447has 9448been added - utilities/utids.c. ACPICA BZ 368, 780. 9449 9450Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 9451transfers. The Value parameter has been extended from 32 bits to 64 bits 9452in 9453order to support new ACPI 4.0 tables. These changes will require an 9454update 9455to 9456all callers of these interfaces. See the ACPICA Programmer Reference for 9457details. ACPICA BZ 768. 9458 9459Fixed several problems with AcpiAttachData. The handler was not invoked 9460when 9461the host node was deleted. The data sub-object was not automatically 9462deleted 9463when the host node was deleted. The interface to the handler had an 9464unused 9465parameter, this was removed. ACPICA BZ 778. 9466 9467Enhanced the function that dumps ACPI table headers. All non-printable 9468characters in the string fields are now replaced with '?' (Signature, 9469OemId, 9470OemTableId, and CompilerId.) ACPI tables with non-printable characters in 9471these fields are occasionally seen in the field. ACPICA BZ 788. 9472 9473Fixed a problem with predefined method repair code where the code that 9474attempts to repair/convert an object of incorrect type is only executed 9475on 9476the first time the predefined method is called. The mechanism that 9477disables 9478warnings on subsequent calls was interfering with the repair mechanism. 9479ACPICA BZ 781. 9480 9481Fixed a possible memory leak in the predefined validation/repair code 9482when 9483a 9484buffer is automatically converted to an expected string object. 9485 9486Removed obsolete 16-bit files from the distribution and from the current 9487git 9488tree head. ACPICA BZ 776. 9489 9490Example Code and Data Size: These are the sizes for the OS-independent 9491acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9492debug version of the code includes the debug output trace mechanism and 9493has a 9494much larger code and data size. 9495 9496 Previous Release: 9497 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 9498 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 9499 Current Release: 9500 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 9501 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 9502 95032) iASL Compiler/Disassembler and Tools: 9504 9505ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 9506operation region keyword. ACPICA BZ 771, 772. Lin Ming. 9507 9508ACPI 4.0: iASL - implemented compile-time validation support for all new 9509predefined names and control methods (31 total). ACPICA BZ 769. 9510 9511---------------------------------------- 951221 May 2009. Summary of changes for version 20090521: 9513 95141) ACPI CA Core Subsystem: 9515 9516Disabled the preservation of the SCI enable bit in the PM1 control 9517register. 9518The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 9519to 9520be 9521a "preserved" bit - "OSPM always preserves this bit position", section 95224.7.3.2.1. However, some machines fail if this bit is in fact preserved 9523because the bit needs to be explicitly set by the OS as a workaround. No 9524machines fail if the bit is not preserved. Therefore, ACPICA no longer 9525attempts to preserve this bit. 9526 9527Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 9528incorrectly formed _PRT package could cause a fault. Added validation to 9529ensure that each package element is actually a sub-package. 9530 9531Implemented a new interface to install or override a single control 9532method, 9533AcpiInstallMethod. This interface is useful when debugging in order to 9534repair 9535an existing method or to install a missing method without having to 9536override 9537the entire ACPI table. See the ACPICA Programmer Reference for use and 9538examples. Lin Ming, Bob Moore. 9539 9540Fixed several reference count issues with the DdbHandle object that is 9541created from a Load or LoadTable operator. Prevent premature deletion of 9542the 9543object. Also, mark the object as invalid once the table has been 9544unloaded. 9545This is needed because the handle itself may not be deleted after the 9546table 9547unload, depending on whether it has been stored in a named object by the 9548caller. Lin Ming. 9549 9550Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 9551mutexes of the same sync level are acquired but then not released in 9552strict 9553opposite order, the internally maintained Current Sync Level becomes 9554confused 9555and can cause subsequent execution errors. ACPICA BZ 471. 9556 9557Changed the allowable release order for ASL mutex objects. The ACPI 4.0 9558specification has been changed to make the SyncLevel for mutex objects 9559more 9560useful. When releasing a mutex, the SyncLevel of the mutex must now be 9561the 9562same as the current sync level. This makes more sense than the previous 9563rule 9564(SyncLevel less than or equal). This change updates the code to match the 9565specification. 9566 9567Fixed a problem with the local version of the AcpiOsPurgeCache function. 9568The 9569(local) cache must be locked during all cache object deletions. Andrew 9570Baumann. 9571 9572Updated the Load operator to use operation region interfaces. This 9573replaces 9574direct memory mapping with region access calls. Now, all region accesses 9575go 9576through the installed region handler as they should. 9577 9578Simplified and optimized the NsGetNextNode function. Reduced parameter 9579count 9580and reduced code for this frequently used function. 9581 9582Example Code and Data Size: These are the sizes for the OS-independent 9583acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9584debug version of the code includes the debug output trace mechanism and 9585has a 9586much larger code and data size. 9587 9588 Previous Release: 9589 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 9590 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 9591 Current Release: 9592 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 9593 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 9594 95952) iASL Compiler/Disassembler and Tools: 9596 9597Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 9598problems 9599with sub-table disassembly and handling invalid sub-tables. Attempt 9600recovery 9601after an invalid sub-table ID. 9602 9603---------------------------------------- 960422 April 2009. Summary of changes for version 20090422: 9605 96061) ACPI CA Core Subsystem: 9607 9608Fixed a compatibility issue with the recently released I/O port 9609protection 9610mechanism. For windows compatibility, 1) On a port protection violation, 9611simply ignore the request and do not return an exception (allow the 9612control 9613method to continue execution.) 2) If only part of the request overlaps a 9614protected port, read/write the individual ports that are not protected. 9615Linux 9616BZ 13036. Lin Ming 9617 9618Enhanced the execution of the ASL/AML BreakPoint operator so that it 9619actually 9620breaks into the AML debugger if the debugger is present. This matches the 9621ACPI-defined behavior. 9622 9623Fixed several possible warnings related to the use of the configurable 9624ACPI_THREAD_ID. This type can now be configured as either an integer or a 9625pointer with no warnings. Also fixes several warnings in printf-like 9626statements for the 64-bit build when the type is configured as a pointer. 9627ACPICA BZ 766, 767. 9628 9629Fixed a number of possible warnings when compiling with gcc 4+ (depending 9630on 9631warning options.) Examples include printf formats, aliasing, unused 9632globals, 9633missing prototypes, missing switch default statements, use of non-ANSI 9634library functions, use of non-ANSI constructs. See generate/unix/Makefile 9635for 9636a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 9637 9638Example Code and Data Size: These are the sizes for the OS-independent 9639acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9640debug version of the code includes the debug output trace mechanism and 9641has a 9642much larger code and data size. 9643 9644 Previous Release: 9645 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 9646 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 9647 Current Release: 9648 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 9649 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 9650 96512) iASL Compiler/Disassembler and Tools: 9652 9653iASL: Fixed a generation warning from Bison 2.3 and fixed several 9654warnings 9655on 9656the 64-bit build. 9657 9658iASL: Fixed a problem where the Unix/Linux versions of the compiler could 9659not 9660correctly digest Windows/DOS formatted files (with CR/LF). 9661 9662iASL: Added a new option for "quiet mode" (-va) that produces only the 9663compilation summary, not individual errors and warnings. Useful for large 9664batch compilations. 9665 9666AcpiExec: Implemented a new option (-z) to enable a forced 9667semaphore/mutex 9668timeout that can be used to detect hang conditions during execution of 9669AML 9670code (includes both internal semaphores and AML-defined mutexes and 9671events.) 9672 9673Added new makefiles for the generation of acpica in a generic unix-like 9674environment. These makefiles are intended to generate the acpica tools 9675and 9676utilities from the original acpica git source tree structure. 9677 9678Test Suites: Updated and cleaned up the documentation files. Updated the 9679copyrights to 2009, affecting all source files. Use the new version of 9680iASL 9681with quiet mode. Increased the number of available semaphores in the 9682Windows 9683OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 9684added 9685an alternate implementation of the semaphore timeout to allow aslts to 9686execute fully on Cygwin. 9687 9688---------------------------------------- 968920 March 2009. Summary of changes for version 20090320: 9690 96911) ACPI CA Core Subsystem: 9692 9693Fixed a possible race condition between AcpiWalkNamespace and dynamic 9694table 9695unloads. Added a reader/writer locking mechanism to allow multiple 9696concurrent 9697namespace walks (readers), but block a dynamic table unload until it can 9698gain 9699exclusive write access to the namespace. This fixes a problem where a 9700table 9701unload could (possibly catastrophically) delete the portion of the 9702namespace 9703that is currently being examined by a walk. Adds a new file, utlock.c, 9704that 9705implements the reader/writer lock mechanism. ACPICA BZ 749. 9706 9707Fixed a regression introduced in version 20090220 where a change to the 9708FADT 9709handling could cause the ACPICA subsystem to access non-existent I/O 9710ports. 9711 9712Modified the handling of FADT register and table (FACS/DSDT) addresses. 9713The 9714FADT can contain both 32-bit and 64-bit versions of these addresses. 9715Previously, the 64-bit versions were favored, meaning that if both 32 and 971664 9717versions were valid, but not equal, the 64-bit version was used. This was 9718found to cause some machines to fail. Now, in this case, the 32-bit 9719version 9720is used instead. This now matches the Windows behavior. 9721 9722Implemented a new mechanism to protect certain I/O ports. Provides 9723Microsoft 9724compatibility and protects the standard PC I/O ports from access via AML 9725code. Adds a new file, hwvalid.c 9726 9727Fixed a possible extraneous warning message from the FADT support. The 9728message warns of a 32/64 length mismatch between the legacy and GAS 9729definitions for a register. 9730 9731Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 9732is 9733made obsolete by the port protection mechanism above. It was previously 9734used 9735to validate the entire address range of an operation region, which could 9736be 9737incorrect if the range included illegal ports, but fields within the 9738operation region did not actually access those ports. Validation is now 9739performed on a per-field basis instead of the entire region. 9740 9741Modified the handling of the PM1 Status Register ignored bit (bit 11.) 9742Ignored bits must be "preserved" according to the ACPI spec. Usually, 9743this 9744means a read/modify/write when writing to the register. However, for 9745status 9746registers, writing a one means clear the event. Writing a zero means 9747preserve 9748the event (do not clear.) This behavior is clarified in the ACPI 4.0 9749spec, 9750and the ACPICA code now simply always writes a zero to the ignored bit. 9751 9752Modified the handling of ignored bits for the PM1 A/B Control Registers. 9753As 9754per the ACPI specification, for the control registers, preserve 9755(read/modify/write) all bits that are defined as either reserved or 9756ignored. 9757 9758Updated the handling of write-only bits in the PM1 A/B Control Registers. 9759When reading the register, zero the write-only bits as per the ACPI spec. 9760ACPICA BZ 443. Lin Ming. 9761 9762Removed "Linux" from the list of supported _OSI strings. Linux no longer 9763wants to reply true to this request. The Windows strings are the only 9764paths 9765through the AML that are tested and known to work properly. 9766 9767 Previous Release: 9768 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 9769 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 9770 Current Release: 9771 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 9772 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 9773 97742) iASL Compiler/Disassembler and Tools: 9775 9776Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 9777and 9778aetables.c 9779 9780---------------------------------------- 978120 February 2009. Summary of changes for version 20090220: 9782 97831) ACPI CA Core Subsystem: 9784 9785Optimized the ACPI register locking. Removed locking for reads from the 9786ACPI 9787bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 9788is 9789not required when reading the single-bit registers. The 9790AcpiGetRegisterUnlocked function is no longer needed and has been 9791removed. 9792This will improve performance for reads on these registers. ACPICA BZ 9793760. 9794 9795Fixed the parameter validation for AcpiRead/Write. Now return 9796AE_BAD_PARAMETER if the input register pointer is null, and 9797AE_BAD_ADDRESS 9798if 9799the register has an address of zero. Previously, these cases simply 9800returned 9801AE_OK. For optional registers such as PM1B status/enable/control, the 9802caller 9803should check for a valid register address before calling. ACPICA BZ 748. 9804 9805Renamed the external ACPI bit register access functions. Renamed 9806AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 9807functions. The new names are AcpiReadBitRegister and 9808AcpiWriteBitRegister. 9809Also, restructured the code for these functions by simplifying the code 9810path 9811and condensing duplicate code to reduce code size. 9812 9813Added new functions to transparently handle the possibly split PM1 A/B 9814registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 9815functions 9816now handle the split registers for PM1 Status, Enable, and Control. 9817ACPICA 9818BZ 9819746. 9820 9821Added a function to handle the PM1 control registers, 9822AcpiHwWritePm1Control. 9823This function writes both of the PM1 control registers (A/B). These 9824registers 9825are different than the PM1 A/B status and enable registers in that 9826different 9827values can be written to the A/B registers. Most notably, the SLP_TYP 9828bits 9829can be different, as per the values returned from the _Sx predefined 9830methods. 9831 9832Removed an extra register write within AcpiHwClearAcpiStatus. This 9833function 9834was writing an optional PM1B status register twice. The existing call to 9835the 9836low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 9837A/B 9838register. ACPICA BZ 751. 9839 9840Split out the PM1 Status registers from the FADT. Added new globals for 9841these 9842registers (A/B), similar to the way the PM1 Enable registers are handled. 9843Instead of overloading the FADT Event Register blocks. This makes the 9844code 9845clearer and less prone to error. 9846 9847Fixed the warning message for when the platform contains too many ACPI 9848tables 9849for the default size of the global root table data structure. The 9850calculation 9851for the truncation value was incorrect. 9852 9853Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 9854obsolete macro, since it is now a simple reference to ->common.type. 9855There 9856were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 9857 9858Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 9859TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 9860simply SLEEP_TYPE. ACPICA BZ 754. 9861 9862Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 9863function is only needed on 64-bit host operating systems and is thus not 9864included for 32-bit hosts. 9865 9866Debug output: print the input and result for invocations of the _OSI 9867reserved 9868control method via the ACPI_LV_INFO debug level. Also, reduced some of 9869the 9870verbosity of this debug level. Len Brown. 9871 9872Example Code and Data Size: These are the sizes for the OS-independent 9873acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9874debug version of the code includes the debug output trace mechanism and 9875has a 9876much larger code and data size. 9877 9878 Previous Release: 9879 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9880 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9881 Current Release: 9882 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 9883 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 9884 98852) iASL Compiler/Disassembler and Tools: 9886 9887Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 9888various legal performance profiles. 9889 9890---------------------------------------- 989123 January 2009. Summary of changes for version 20090123: 9892 98931) ACPI CA Core Subsystem: 9894 9895Added the 2009 copyright to all module headers and signons. This affects 9896virtually every file in the ACPICA core subsystem, the iASL compiler, and 9897the tools/utilities. 9898 9899Implemented a change to allow the host to override any ACPI table, 9900including 9901dynamically loaded tables. Previously, only the DSDT could be replaced by 9902the 9903host. With this change, the AcpiOsTableOverride interface is called for 9904each 9905table found in the RSDT/XSDT during ACPICA initialization, and also 9906whenever 9907a table is dynamically loaded via the AML Load operator. 9908 9909Updated FADT flag definitions, especially the Boot Architecture flags. 9910 9911Debugger: For the Find command, automatically pad the input ACPI name 9912with 9913underscores if the name is shorter than 4 characters. This enables a 9914match 9915with the actual namespace entry which is itself padded with underscores. 9916 9917Example Code and Data Size: These are the sizes for the OS-independent 9918acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9919debug version of the code includes the debug output trace mechanism and 9920has a 9921much larger code and data size. 9922 9923 Previous Release: 9924 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 9925 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 9926 Current Release: 9927 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9928 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9929 99302) iASL Compiler/Disassembler and Tools: 9931 9932Fix build error under Bison-2.4. 9933 9934Disassembler: Enhanced FADT support. Added decoding of the Boot 9935Architecture 9936flags. Now decode all flags, regardless of the FADT version. Flag output 9937includes the FADT version which first defined each flag. 9938 9939The iASL -g option now dumps the RSDT to a file (in addition to the FADT 9940and 9941DSDT). Windows only. 9942 9943---------------------------------------- 994404 December 2008. Summary of changes for version 20081204: 9945 99461) ACPI CA Core Subsystem: 9947 9948The ACPICA Programmer Reference has been completely updated and revamped 9949for 9950this release. This includes updates to the external interfaces, OSL 9951interfaces, the overview sections, and the debugger reference. 9952 9953Several new ACPICA interfaces have been implemented and documented in the 9954programmer reference: 9955AcpiReset - Writes the reset value to the FADT-defined reset register. 9956AcpiDisableAllGpes - Disable all available GPEs. 9957AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 9958AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 9959AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 9960AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 9961AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 9962 9963Most of the public ACPI hardware-related interfaces have been moved to a 9964new 9965file, components/hardware/hwxface.c 9966 9967Enhanced the FADT parsing and low-level ACPI register access: The ACPI 9968register lengths within the FADT are now used, and the low level ACPI 9969register access no longer hardcodes the ACPI register lengths. Given that 9970there may be some risk in actually trusting the FADT register lengths, a 9971run- 9972time option was added to fall back to the default hardcoded lengths if 9973the 9974FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 9975option is set to true for now, and a warning is issued if a suspicious 9976FADT 9977register length is overridden with the default value. 9978 9979Fixed a reference count issue in NsRepairObject. This problem was 9980introduced 9981in version 20081031 as part of a fix to repair Buffer objects within 9982Packages. Lin Ming. 9983 9984Added semaphore support to the Linux/Unix application OS-services layer 9985(OSL). ACPICA BZ 448. Lin Ming. 9986 9987Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 9988will 9989be implemented in the OSL, or will binary semaphores be used instead. 9990 9991Example Code and Data Size: These are the sizes for the OS-independent 9992acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9993debug version of the code includes the debug output trace mechanism and 9994has a 9995much larger code and data size. 9996 9997 Previous Release: 9998 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 9999 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 10000 Current Release: 10001 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 10002 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 10003 100042) iASL Compiler/Disassembler and Tools: 10005 10006iASL: Completed the '-e' option to include additional ACPI tables in 10007order 10008to 10009aid with disassembly and External statement generation. ACPICA BZ 742. 10010Lin 10011Ming. 10012 10013iASL: Removed the "named object in while loop" error. The compiler cannot 10014determine how many times a loop will execute. ACPICA BZ 730. 10015 10016Disassembler: Implemented support for FADT revision 2 (MS extension). 10017ACPICA 10018BZ 743. 10019 10020Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 10021MCFG). 10022 10023---------------------------------------- 1002431 October 2008. Summary of changes for version 20081031: 10025 100261) ACPI CA Core Subsystem: 10027 10028Restructured the ACPICA header files into public/private. acpi.h now 10029includes 10030only the "public" acpica headers. All other acpica headers are "private" 10031and 10032should not be included by acpica users. One new file, accommon.h is used 10033to 10034include the commonly used private headers for acpica code generation. 10035Future 10036plans include moving all private headers to a new subdirectory. 10037 10038Implemented an automatic Buffer->String return value conversion for 10039predefined ACPI methods. For these methods (such as _BIF), added 10040automatic 10041conversion for return objects that are required to be a String, but a 10042Buffer 10043was found instead. This can happen when reading string battery data from 10044an 10045operation region, because it used to be difficult to convert the data 10046from 10047buffer to string from within the ASL. Ensures that the host OS is 10048provided 10049with a valid null-terminated string. Linux BZ 11822. 10050 10051Updated the FACS waking vector interfaces. Split 10052AcpiSetFirmwareWakingVector 10053into two: one for the 32-bit vector, another for the 64-bit vector. This 10054is 10055required because the host OS must setup the wake much differently for 10056each 10057vector (real vs. protected mode, etc.) and the interface itself should 10058not 10059be 10060deciding which vector to use. Also, eliminated the 10061GetFirmwareWakingVector 10062interface, as it served no purpose (only the firmware reads the vector, 10063OS 10064only writes the vector.) ACPICA BZ 731. 10065 10066Implemented a mechanism to escape infinite AML While() loops. Added a 10067loop 10068counter to force exit from AML While loops if the count becomes too 10069large. 10070This can occur in poorly written AML when the hardware does not respond 10071within a while loop and the loop does not implement a timeout. The 10072maximum 10073loop count is configurable. A new exception code is returned when a loop 10074is 10075broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 10076 10077Optimized the execution of AML While loops. Previously, a control state 10078object was allocated and freed for each execution of the loop. The 10079optimization is to simply reuse the control state for each iteration. 10080This 10081speeds up the raw loop execution time by about 5%. 10082 10083Enhanced the implicit return mechanism. For Windows compatibility, return 10084an 10085implicit integer of value zero for methods that contain no executable 10086code. 10087Such methods are seen in the field as stubs (presumably), and can cause 10088drivers to fail if they expect a return value. Lin Ming. 10089 10090Allow multiple backslashes as root prefixes in namepaths. In a fully 10091qualified namepath, allow multiple backslash prefixes. This can happen 10092(and 10093is seen in the field) because of the use of a double-backslash in strings 10094(since backslash is the escape character) causing confusion. ACPICA BZ 10095739 10096Lin Ming. 10097 10098Emit a warning if two different FACS or DSDT tables are discovered in the 10099FADT. Checks if there are two valid but different addresses for the FACS 10100and 10101DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 10102 10103Consolidated the method argument count validation code. Merged the code 10104that 10105validates control method argument counts into the predefined validation 10106module. Eliminates possible multiple warnings for incorrect argument 10107counts. 10108 10109Implemented ACPICA example code. Includes code for ACPICA initialization, 10110handler installation, and calling a control method. Available at 10111source/tools/examples. 10112 10113Added a global pointer for FACS table to simplify internal FACS access. 10114Use 10115the global pointer instead of using AcpiGetTableByIndex for each FACS 10116access. 10117This simplifies the code for the Global Lock and the Firmware Waking 10118Vector(s). 10119 10120Example Code and Data Size: These are the sizes for the OS-independent 10121acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10122debug version of the code includes the debug output trace mechanism and 10123has a 10124much larger code and data size. 10125 10126 Previous Release: 10127 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 10128 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 10129 Current Release: 10130 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 10131 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 10132 101332) iASL Compiler/Disassembler and Tools: 10134 10135iASL: Improved disassembly of external method calls. Added the -e option 10136to 10137allow the inclusion of additional ACPI tables to help with the 10138disassembly 10139of 10140method invocations and the generation of external declarations during the 10141disassembly. Certain external method invocations cannot be disassembled 10142properly without the actual declaration of the method. Use the -e option 10143to 10144include the table where the external method(s) are actually declared. 10145Most 10146useful for disassembling SSDTs that make method calls back to the master 10147DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 10148-d 10149-e dsdt.aml ssdt1.aml 10150 10151iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 10152problem where the use of an alias within a namepath would result in a not 10153found error or cause the compiler to fault. Also now allows forward 10154references from the Alias operator itself. ACPICA BZ 738. 10155 10156---------------------------------------- 1015726 September 2008. Summary of changes for version 20080926: 10158 101591) ACPI CA Core Subsystem: 10160 10161Designed and implemented a mechanism to validate predefined ACPI methods 10162and 10163objects. This code validates the predefined ACPI objects (objects whose 10164names 10165start with underscore) that appear in the namespace, at the time they are 10166evaluated. The argument count and the type of the returned object are 10167validated against the ACPI specification. The purpose of this validation 10168is 10169to detect problems with the BIOS-implemented predefined ACPI objects 10170before 10171the results are returned to the ACPI-related drivers. Future enhancements 10172may 10173include actual repair of incorrect return objects where possible. Two new 10174files are nspredef.c and acpredef.h. 10175 10176Fixed a fault in the AML parser if a memory allocation fails during the 10177Op 10178completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 10179 10180Fixed an issue with implicit return compatibility. This change improves 10181the 10182implicit return mechanism to be more compatible with the MS interpreter. 10183Lin 10184Ming, ACPICA BZ 349. 10185 10186Implemented support for zero-length buffer-to-string conversions. Allow 10187zero 10188length strings during interpreter buffer-to-string conversions. For 10189example, 10190during the ToDecimalString and ToHexString operators, as well as implicit 10191conversions. Fiodor Suietov, ACPICA BZ 585. 10192 10193Fixed two possible memory leaks in the error exit paths of 10194AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 10195are 10196similar in that they use a stack of state objects in order to eliminate 10197recursion. The stack must be fully unwound and deallocated if an error 10198occurs. Lin Ming. ACPICA BZ 383. 10199 10200Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 10201global 10202ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 10203Moore ACPICA BZ 442. 10204 10205Removed the obsolete version number in module headers. Removed the 10206"$Revision" number that appeared in each module header. This version 10207number 10208was useful under SourceSafe and CVS, but has no meaning under git. It is 10209not 10210only incorrect, it could also be misleading. 10211 10212Example Code and Data Size: These are the sizes for the OS-independent 10213acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10214debug version of the code includes the debug output trace mechanism and 10215has a 10216much larger code and data size. 10217 10218 Previous Release: 10219 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10220 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 10221 Current Release: 10222 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 10223 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 10224 10225---------------------------------------- 1022629 August 2008. Summary of changes for version 20080829: 10227 102281) ACPI CA Core Subsystem: 10229 10230Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 10231Reference. Changes include the elimination of cheating on the Object 10232field 10233for the DdbHandle subtype, addition of a reference class field to 10234differentiate the various reference types (instead of an AML opcode), and 10235the 10236cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 10237 10238Reduce an error to a warning for an incorrect method argument count. 10239Previously aborted with an error if too few arguments were passed to a 10240control method via the external ACPICA interface. Now issue a warning 10241instead 10242and continue. Handles the case where the method inadvertently declares 10243too 10244many arguments, but does not actually use the extra ones. Applies mainly 10245to 10246the predefined methods. Lin Ming. Linux BZ 11032. 10247 10248Disallow the evaluation of named object types with no intrinsic value. 10249Return 10250AE_TYPE for objects that have no value and therefore evaluation is 10251undefined: 10252Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 10253of 10254these types were allowed, but an exception would be generated at some 10255point 10256during the evaluation. Now, the error is generated up front. 10257 10258Fixed a possible memory leak in the AcpiNsGetExternalPathname function 10259(nsnames.c). Fixes a leak in the error exit path. 10260 10261Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 10262debug 10263levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 10264ACPI_EXCEPTION 10265interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 10266ACPI_LV_EVENTS. 10267 10268Removed obsolete and/or unused exception codes from the acexcep.h header. 10269There is the possibility that certain device drivers may be affected if 10270they 10271use any of these exceptions. 10272 10273The ACPICA documentation has been added to the public git source tree, 10274under 10275acpica/documents. Included are the ACPICA programmer reference, the iASL 10276compiler reference, and the changes.txt release logfile. 10277 10278Example Code and Data Size: These are the sizes for the OS-independent 10279acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10280debug version of the code includes the debug output trace mechanism and 10281has a 10282much larger code and data size. 10283 10284 Previous Release: 10285 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10286 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 10287 Current Release: 10288 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10289 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 10290 102912) iASL Compiler/Disassembler and Tools: 10292 10293Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 10294defines _SCP with 3 arguments. Previous versions defined it with only 1 10295argument. iASL now allows both definitions. 10296 10297iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 10298zero- 10299length subtables when disassembling ACPI tables. Also fixed a couple of 10300errors where a full 16-bit table type field was not extracted from the 10301input 10302properly. 10303 10304acpisrc: Improve comment counting mechanism for generating source code 10305statistics. Count first and last lines of multi-line comments as 10306whitespace, 10307not comment lines. Handle Linux legal header in addition to standard 10308acpica 10309header. 10310 10311---------------------------------------- 10312 1031329 July 2008. Summary of changes for version 20080729: 10314 103151) ACPI CA Core Subsystem: 10316 10317Fix a possible deadlock in the GPE dispatch. Remove call to 10318AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 10319attempt 10320to acquire the GPE lock but can deadlock since the GPE lock is already 10321held 10322at dispatch time. This code was introduced in version 20060831 as a 10323response 10324to Linux BZ 6881 and has since been removed from Linux. 10325 10326Add a function to dereference returned reference objects. Examines the 10327return 10328object from a call to AcpiEvaluateObject. Any Index or RefOf references 10329are 10330automatically dereferenced in an attempt to return something useful 10331(these 10332reference types cannot be converted into an external ACPI_OBJECT.) 10333Provides 10334MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 10335 10336x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 10337subtables for the MADT and one new subtable for the SRAT. Includes 10338disassembler and AcpiSrc support. Data from the Intel 64 Architecture 10339x2APIC 10340Specification, June 2008. 10341 10342Additional error checking for pathname utilities. Add error check after 10343all 10344calls to AcpiNsGetPathnameLength. Add status return from 10345AcpiNsBuildExternalPath and check after all calls. Add parameter 10346validation 10347to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 10348 10349Return status from the global init function AcpiUtGlobalInitialize. This 10350is 10351used by both the kernel subsystem and the utilities such as iASL 10352compiler. 10353The function could possibly fail when the caches are initialized. Yang 10354Yi. 10355 10356Add a function to decode reference object types to strings. Created for 10357improved error messages. 10358 10359Improve object conversion error messages. Better error messages during 10360object 10361conversion from internal to the external ACPI_OBJECT. Used for external 10362calls 10363to AcpiEvaluateObject. 10364 10365Example Code and Data Size: These are the sizes for the OS-independent 10366acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10367debug version of the code includes the debug output trace mechanism and 10368has a 10369much larger code and data size. 10370 10371 Previous Release: 10372 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 10373 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 10374 Current Release: 10375 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10376 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 10377 103782) iASL Compiler/Disassembler and Tools: 10379 10380Debugger: fix a possible hang when evaluating non-methods. Fixes a 10381problem 10382introduced in version 20080701. If the object being evaluated (via 10383execute 10384command) is not a method, the debugger can hang while trying to obtain 10385non- 10386existent parameters. 10387 10388iASL: relax error for using reserved "_T_x" identifiers. These names can 10389appear in a disassembled ASL file if they were emitted by the original 10390compiler. Instead of issuing an error or warning and forcing the user to 10391manually change these names, issue a remark instead. 10392 10393iASL: error if named object created in while loop. Emit an error if any 10394named 10395object is created within a While loop. If allowed, this code will 10396generate 10397a 10398run-time error on the second iteration of the loop when an attempt is 10399made 10400to 10401create the same named object twice. ACPICA bugzilla 730. 10402 10403iASL: Support absolute pathnames for include files. Add support for 10404absolute 10405pathnames within the Include operator. previously, only relative 10406pathnames 10407were supported. 10408 10409iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 10410Descriptor. 10411The ACPI spec requires one interrupt minimum. BZ 423 10412 10413iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 10414Handles the case for the Interrupt Resource Descriptor where 10415the ResourceSource argument is omitted but ResourceSourceIndex 10416is present. Now leave room for the Index. BZ 426 10417 10418iASL: Prevent error message if CondRefOf target does not exist. Fixes 10419cases 10420where an error message is emitted if the target does not exist. BZ 516 10421 10422iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 10423(get ACPI tables on Windows). This was apparently broken in version 1042420070919. 10425 10426AcpiXtract: Handle EOF while extracting data. Correctly handle the case 10427where 10428the EOF happens immediately after the last table in the input file. Print 10429completion message. Previously, no message was displayed in this case. 10430 10431---------------------------------------- 1043201 July 2008. Summary of changes for version 20080701: 10433 104340) Git source tree / acpica.org 10435 10436Fixed a problem where a git-clone from http would not transfer the entire 10437source tree. 10438 104391) ACPI CA Core Subsystem: 10440 10441Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 10442enable bit. Now performs a read-change-write of the enable register 10443instead 10444of simply writing out the cached enable mask. This will prevent 10445inadvertent 10446enabling of GPEs if a rogue GPE is received during initialization (before 10447GPE 10448handlers are installed.) 10449 10450Implemented a copy for dynamically loaded tables. Previously, dynamically 10451loaded tables were simply mapped - but on some machines this memory is 10452corrupted after suspend. Now copy the table to a local buffer. For the 10453OpRegion case, added checksum verify. Use the table length from the table 10454header, not the region length. For the Buffer case, use the table length 10455also. Dennis Noordsij, Bob Moore. BZ 10734 10456 10457Fixed a problem where the same ACPI table could not be dynamically loaded 10458and 10459unloaded more than once. Without this change, a table cannot be loaded 10460again 10461once it has been loaded/unloaded one time. The current mechanism does not 10462unregister a table upon an unload. During a load, if the same table is 10463found, 10464this no longer returns an exception. BZ 722 10465 10466Fixed a problem where the wrong descriptor length was calculated for the 10467EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 10468EndTag 10469are calculated as 12 bytes long, but the actual length in the internal 10470descriptor is 16 because of the round-up to 8 on the 64-bit build. 10471Reported 10472by Linn Crosetto. BZ 728 10473 10474Fixed a possible memory leak in the Unload operator. The DdbHandle 10475returned 10476by Load() did not have its reference count decremented during unload, 10477leading 10478to a memory leak. Lin Ming. BZ 727 10479 10480Fixed a possible memory leak when deleting thermal/processor objects. Any 10481associated notify handlers (and objects) were not being deleted. Fiodor 10482Suietov. BZ 506 10483 10484Fixed the ordering of the ASCII names in the global mutex table to match 10485the 10486actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 10487only. 10488Vegard Nossum. BZ 726 10489 10490Enhanced the AcpiGetObjectInfo interface to return the number of required 10491arguments if the object is a control method. Added this call to the 10492debugger 10493so the proper number of default arguments are passed to a method. This 10494prevents a warning when executing methods from AcpiExec. 10495 10496Added a check for an invalid handle in AcpiGetObjectInfo. Return 10497AE_BAD_PARAMETER if input handle is invalid. BZ 474 10498 10499Fixed an extraneous warning from exconfig.c on the 64-bit build. 10500 10501Example Code and Data Size: These are the sizes for the OS-independent 10502acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10503debug version of the code includes the debug output trace mechanism and 10504has a 10505much larger code and data size. 10506 10507 Previous Release: 10508 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 10509 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 10510 Current Release: 10511 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 10512 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 10513 105142) iASL Compiler/Disassembler and Tools: 10515 10516iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 10517resource descriptor names. 10518 10519iASL: Detect invalid ASCII characters in input (windows version). Removed 10520the 10521"-CF" flag from the flex compile, enables correct detection of non-ASCII 10522characters in the input. BZ 441 10523 10524iASL: Eliminate warning when result of LoadTable is not used. Eliminate 10525the 10526"result of operation not used" warning when the DDB handle returned from 10527LoadTable is not used. The warning is not needed. BZ 590 10528 10529AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 10530method 10531to 10532pass address of table to the AML. Added option to disable OpRegion 10533simulation 10534to allow creation of an OpRegion with a real address that was passed to 10535_CFG. 10536All of this allows testing of the Load and Unload operators from 10537AcpiExec. 10538 10539Debugger: update tables command for unloaded tables. Handle unloaded 10540tables 10541and use the standard table header output routine. 10542 10543---------------------------------------- 1054409 June 2008. Summary of changes for version 20080609: 10545 105461) ACPI CA Core Subsystem: 10547 10548Implemented a workaround for reversed _PRT entries. A significant number 10549of 10550BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 10551change dynamically detects and repairs this problem. Provides 10552compatibility 10553with MS ACPI. BZ 6859 10554 10555Simplified the internal ACPI hardware interfaces to eliminate the locking 10556flag parameter from Register Read/Write. Added a new external interface, 10557AcpiGetRegisterUnlocked. 10558 10559Fixed a problem where the invocation of a GPE control method could hang. 10560This 10561was a regression introduced in 20080514. The new method argument count 10562validation mechanism can enter an infinite loop when a GPE method is 10563dispatched. Problem fixed by removing the obsolete code that passed GPE 10564block 10565information to the notify handler via the control method parameter 10566pointer. 10567 10568Fixed a problem where the _SST execution status was incorrectly returned 10569to 10570the caller of AcpiEnterSleepStatePrep. This was a regression introduced 10571in 1057220080514. _SST is optional and a NOT_FOUND exception should never be 10573returned. BZ 716 10574 10575Fixed a problem where a deleted object could be accessed from within the 10576AML 10577parser. This was a regression introduced in version 20080123 as a fix for 10578the 10579Unload operator. Lin Ming. BZ 10669 10580 10581Cleaned up the debug operand dump mechanism. Eliminated unnecessary 10582operands 10583and eliminated the use of a negative index in a loop. Operands are now 10584displayed in the correct order, not backwards. This also fixes a 10585regression 10586introduced in 20080514 on 64-bit systems where the elimination of 10587ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 10588715 10589 10590Fixed a possible memory leak in EvPciConfigRegionSetup where the error 10591exit 10592path did not delete a locally allocated structure. 10593 10594Updated definitions for the DMAR and SRAT tables to synchronize with the 10595current specifications. Includes disassembler support. 10596 10597Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 10598loop termination value was used. Loop terminated on iteration early, 10599missing 10600one mutex. Linn Crosetto 10601 10602Example Code and Data Size: These are the sizes for the OS-independent 10603acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10604debug version of the code includes the debug output trace mechanism and 10605has a 10606much larger code and data size. 10607 10608 Previous Release: 10609 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 10610 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 10611 Current Release: 10612 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 10613 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 10614 106152) iASL Compiler/Disassembler and Tools: 10616 10617Disassembler: Implemented support for EisaId() within _CID objects. Now 10618disassemble integer _CID objects back to EisaId invocations, including 10619multiple integers within _CID packages. Includes single-step support for 10620debugger also. 10621 10622Disassembler: Added support for DMAR and SRAT table definition changes. 10623 10624---------------------------------------- 1062514 May 2008. Summary of changes for version 20080514: 10626 106271) ACPI CA Core Subsystem: 10628 10629Fixed a problem where GPEs were enabled too early during the ACPICA 10630initialization. This could lead to "handler not installed" errors on some 10631machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 10632This 10633ensures that all operation regions and devices throughout the namespace 10634have 10635been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 10636 10637Implemented a change to the enter sleep code. Moved execution of the _GTS 10638method to just before setting sleep enable bit. The execution was moved 10639from 10640AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 10641immediately before the SLP_EN bit is set, as per the ACPI specification. 10642Luming Yu, BZ 1653. 10643 10644Implemented a fix to disable unknown GPEs (2nd version). Now always 10645disable 10646the GPE, even if ACPICA thinks that that it is already disabled. It is 10647possible that the AML or some other code has enabled the GPE unbeknownst 10648to 10649the ACPICA code. 10650 10651Fixed a problem with the Field operator where zero-length fields would 10652return 10653an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 10654ASL 10655field declarations in Field(), BankField(), and IndexField(). BZ 10606. 10656 10657Implemented a fix for the Load operator, now load the table at the 10658namespace 10659root. This reverts a change introduced in version 20071019. The table is 10660now 10661loaded at the namespace root even though this goes against the ACPI 10662specification. This provides compatibility with other ACPI 10663implementations. 10664The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 10665Ming. 10666 10667Fixed a problem where ACPICA would not Load() tables with unusual 10668signatures. 10669Now ignore ACPI table signature for Load() operator. Only "SSDT" is 10670acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 10671Therefore, signature validation is worthless. Apparently MS ACPI accepts 10672such 10673signatures, ACPICA must be compatible. BZ 10454. 10674 10675Fixed a possible negative array index in AcpiUtValidateException. Added 10676NULL 10677fields to the exception string arrays to eliminate a -1 subtraction on 10678the 10679SubStatus field. 10680 10681Updated the debug tracking macros to reduce overall code and data size. 10682Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 10683instead of pointers to static strings. Jan Beulich and Bob Moore. 10684 10685Implemented argument count checking in control method invocation via 10686AcpiEvaluateObject. Now emit an error if too few arguments, warning if 10687too 10688many. This applies only to extern programmatic control method execution, 10689not 10690method-to-method calls within the AML. Lin Ming. 10691 10692Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 10693no 10694longer needed, especially with the removal of 16-bit support. It was 10695replaced 10696mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 10697bit 10698on 1069932/64-bit platforms is required. 10700 10701Added the C const qualifier for appropriate string constants -- mostly 10702MODULE_NAME and printf format strings. Jan Beulich. 10703 10704Example Code and Data Size: These are the sizes for the OS-independent 10705acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10706debug version of the code includes the debug output trace mechanism and 10707has a 10708much larger code and data size. 10709 10710 Previous Release: 10711 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 10712 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 10713 Current Release: 10714 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 10715 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 10716 107172) iASL Compiler/Disassembler and Tools: 10718 10719Implemented ACPI table revision ID validation in the disassembler. Zero 10720is 10721always invalid. For DSDTs, the ID controls the interpreter integer width. 107221 10723means 32-bit and this is unusual. 2 or greater is 64-bit. 10724 10725---------------------------------------- 1072621 March 2008. Summary of changes for version 20080321: 10727 107281) ACPI CA Core Subsystem: 10729 10730Implemented an additional change to the GPE support in order to suppress 10731spurious or stray GPEs. The AcpiEvDisableGpe function will now 10732permanently 10733disable incoming GPEs that are neither enabled nor disabled -- meaning 10734that 10735the GPE is unknown to the system. This should prevent future interrupt 10736floods 10737from that GPE. BZ 6217 (Zhang Rui) 10738 10739Fixed a problem where NULL package elements were not returned to the 10740AcpiEvaluateObject interface correctly. The element was simply ignored 10741instead of returning a NULL ACPI_OBJECT package element, potentially 10742causing 10743a buffer overflow and/or confusing the caller who expected a fixed number 10744of 10745elements. BZ 10132 (Lin Ming, Bob Moore) 10746 10747Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 10748Dword, 10749Qword), Field, BankField, and IndexField operators when invoked from 10750inside 10751an executing control method. In this case, these operators created 10752namespace 10753nodes that were incorrectly left marked as permanent nodes instead of 10754temporary nodes. This could cause a problem if there is race condition 10755between an exiting control method and a running namespace walk. (Reported 10756by 10757Linn Crosetto) 10758 10759Fixed a problem where the CreateField and CreateXXXField operators would 10760incorrectly allow duplicate names (the name of the field) with no 10761exception 10762generated. 10763 10764Implemented several changes for Notify handling. Added support for new 10765Notify 10766values (ACPI 2.0+) and improved the Notify debug output. Notify on 10767PowerResource objects is no longer allowed, as per the ACPI 10768specification. 10769(Bob Moore, Zhang Rui) 10770 10771All Reference Objects returned via the AcpiEvaluateObject interface are 10772now 10773marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 10774for 10775NULL objects - either NULL package elements or unresolved named 10776references. 10777 10778Fixed a problem where an extraneous debug message was produced for 10779package 10780objects (when debugging enabled). The message "Package List length larger 10781than NumElements count" is now produced in the correct case, and is now 10782an 10783error message rather than a debug message. Added a debug message for the 10784opposite case, where NumElements is larger than the Package List (the 10785package 10786will be padded out with NULL elements as per the ACPI spec.) 10787 10788Implemented several improvements for the output of the ASL "Debug" object 10789to 10790clarify and keep all data for a given object on one output line. 10791 10792Fixed two size calculation issues with the variable-length Start 10793Dependent 10794resource descriptor. 10795 10796Example Code and Data Size: These are the sizes for the OS-independent 10797acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10798debug version of the code includes the debug output trace mechanism and 10799has 10800a much larger code and data size. 10801 10802 Previous Release: 10803 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10804 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10805 Current Release: 10806 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 10807 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 10808 108092) iASL Compiler/Disassembler and Tools: 10810 10811Fixed a problem with the use of the Switch operator where execution of 10812the 10813containing method by multiple concurrent threads could cause an 10814AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 10815actual Switch opcode, it must be simulated with local named temporary 10816variables and if/else pairs. The solution chosen was to mark any method 10817that 10818uses Switch as Serialized, thus preventing multiple thread entries. BZ 10819469. 10820 10821---------------------------------------- 1082213 February 2008. Summary of changes for version 20080213: 10823 108241) ACPI CA Core Subsystem: 10825 10826Implemented another MS compatibility design change for GPE/Notify 10827handling. 10828GPEs are now cleared/enabled asynchronously to allow all pending notifies 10829to 10830complete first. It is expected that the OSL will queue the enable request 10831behind all pending notify requests (may require changes to the local host 10832OSL 10833in AcpiOsExecute). Alexey Starikovskiy. 10834 10835Fixed a problem where buffer and package objects passed as arguments to a 10836control method via the external AcpiEvaluateObject interface could cause 10837an 10838AE_AML_INTERNAL exception depending on the order and type of operators 10839executed by the target control method. 10840 10841Fixed a problem where resource descriptor size optimization could cause a 10842problem when a _CRS resource template is passed to a _SRS method. The 10843_SRS 10844resource template must use the same descriptors (with the same size) as 10845returned from _CRS. This change affects the following resource 10846descriptors: 10847IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 108489487) 10849 10850Fixed a problem where a CopyObject to RegionField, BankField, and 10851IndexField 10852objects did not perform an implicit conversion as it should. These types 10853must 10854retain their initial type permanently as per the ACPI specification. 10855However, 10856a CopyObject to all other object types should not perform an implicit 10857conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 10858 10859Fixed a problem with the AcpiGetDevices interface where the mechanism to 10860match device CIDs did not examine the entire list of available CIDs, but 10861instead aborted on the first non-matching CID. Andrew Patterson. 10862 10863Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 10864was 10865inadvertently changed to return a 16-bit value instead of a 32-bit value, 10866truncating the upper dword of a 64-bit value. This macro is only used to 10867display debug output, so no incorrect calculations were made. Also, 10868reimplemented the macro so that a 64-bit shift is not performed by 10869inefficient compilers. 10870 10871Added missing va_end statements that should correspond with each va_start 10872statement. 10873 10874Example Code and Data Size: These are the sizes for the OS-independent 10875acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10876debug version of the code includes the debug output trace mechanism and 10877has 10878a much larger code and data size. 10879 10880 Previous Release: 10881 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10882 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10883 Current Release: 10884 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10885 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10886 108872) iASL Compiler/Disassembler and Tools: 10888 10889Implemented full disassembler support for the following new ACPI tables: 10890BERT, EINJ, and ERST. Implemented partial disassembler support for the 10891complicated HEST table. These tables support the Windows Hardware Error 10892Architecture (WHEA). 10893 10894---------------------------------------- 1089523 January 2008. Summary of changes for version 20080123: 10896 108971) ACPI CA Core Subsystem: 10898 10899Added the 2008 copyright to all module headers and signons. This affects 10900virtually every file in the ACPICA core subsystem, the iASL compiler, and 10901the tools/utilities. 10902 10903Fixed a problem with the SizeOf operator when used with Package and 10904Buffer 10905objects. These objects have deferred execution for some arguments, and 10906the 10907execution is now completed before the SizeOf is executed. This problem 10908caused 10909unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 10910BZ 109119558 10912 10913Implemented an enhancement to the interpreter "slack mode". In the 10914absence 10915of 10916an explicit return or an implicitly returned object from the last 10917executed 10918opcode, a control method will now implicitly return an integer of value 0 10919for 10920Microsoft compatibility. (Lin Ming) BZ 392 10921 10922Fixed a problem with the Load operator where an exception was not 10923returned 10924in 10925the case where the table is already loaded. (Lin Ming) BZ 463 10926 10927Implemented support for the use of DDBHandles as an Indexed Reference, as 10928per 10929the ACPI spec. (Lin Ming) BZ 486 10930 10931Implemented support for UserTerm (Method invocation) for the Unload 10932operator 10933as per the ACPI spec. (Lin Ming) BZ 580 10934 10935Fixed a problem with the LoadTable operator where the OemId and 10936OemTableId 10937input strings could cause unexpected failures if they were shorter than 10938the 10939maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 10940 10941Implemented support for UserTerm (Method invocation) for the Unload 10942operator 10943as per the ACPI spec. (Lin Ming) BZ 580 10944 10945Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 10946HEST, 10947IBFT, UEFI, WDAT. Disassembler support is forthcoming. 10948 10949Example Code and Data Size: These are the sizes for the OS-independent 10950acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10951debug version of the code includes the debug output trace mechanism and 10952has 10953a much larger code and data size. 10954 10955 Previous Release: 10956 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 10957 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 10958 Current Release: 10959 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10960 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10961 109622) iASL Compiler/Disassembler and Tools: 10963 10964Implemented support in the disassembler for checksum validation on 10965incoming 10966binary DSDTs and SSDTs. If incorrect, a message is displayed within the 10967table 10968header dump at the start of the disassembly. 10969 10970Implemented additional debugging information in the namespace listing 10971file 10972created during compilation. In addition to the namespace hierarchy, the 10973full 10974pathname to each namespace object is displayed. 10975 10976Fixed a problem with the disassembler where invalid ACPI tables could 10977cause 10978faults or infinite loops. 10979 10980Fixed an unexpected parse error when using the optional "parameter types" 10981list in a control method declaration. (Lin Ming) BZ 397 10982 10983Fixed a problem where two External declarations with the same name did 10984not 10985cause an error (Lin Ming) BZ 509 10986 10987Implemented support for full TermArgs (adding Argx, Localx and method 10988invocation) for the ParameterData parameter to the LoadTable operator. 10989(Lin 10990Ming) BZ 583,587 10991 10992---------------------------------------- 1099319 December 2007. Summary of changes for version 20071219: 10994 109951) ACPI CA Core Subsystem: 10996 10997Implemented full support for deferred execution for the TermArg string 10998arguments for DataTableRegion. This enables forward references and full 10999operand resolution for the three string arguments. Similar to 11000OperationRegion 11001deferred argument execution.) Lin Ming. BZ 430 11002 11003Implemented full argument resolution support for the BankValue argument 11004to 11005BankField. Previously, only constants were supported, now any TermArg may 11006be 11007used. Lin Ming BZ 387, 393 11008 11009Fixed a problem with AcpiGetDevices where the search of a branch of the 11010device tree could be terminated prematurely. In accordance with the ACPI 11011specification, the search down the current branch is terminated if a 11012device 11013is both not present and not functional (instead of just not present.) 11014Yakui 11015Zhao. 11016 11017Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 11018if 11019the underlying AML code changed the GPE enable registers. Now, any 11020unknown 11021incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 11022disabled 11023instead of simply ignored. Rui Zhang. 11024 11025Fixed a problem with Index Fields where the Index register was 11026incorrectly 11027limited to a maximum of 32 bits. Now any size may be used. 11028 11029Fixed a couple memory leaks associated with "implicit return" objects 11030when 11031the AML Interpreter slack mode is enabled. Lin Ming BZ 349 11032 11033Example Code and Data Size: These are the sizes for the OS-independent 11034acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11035debug version of the code includes the debug output trace mechanism and 11036has 11037a much larger code and data size. 11038 11039 Previous Release: 11040 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 11041 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 11042 Current Release: 11043 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 11044 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 11045 11046---------------------------------------- 1104714 November 2007. Summary of changes for version 20071114: 11048 110491) ACPI CA Core Subsystem: 11050 11051Implemented event counters for each of the Fixed Events, the ACPI SCI 11052(interrupt) itself, and control methods executed. Named 11053AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 11054These 11055should be useful for debugging and statistics. 11056 11057Implemented a new external interface, AcpiGetStatistics, to retrieve the 11058contents of the various event counters. Returns the current values for 11059AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 11060AcpiMethodCount. The interface can be expanded in the future if new 11061counters 11062are added. Device drivers should use this interface rather than access 11063the 11064counters directly. 11065 11066Fixed a problem with the FromBCD and ToBCD operators. With some 11067compilers, 11068the ShortDivide function worked incorrectly, causing problems with the 11069BCD 11070functions with large input values. A truncation from 64-bit to 32-bit 11071inadvertently occurred. Internal BZ 435. Lin Ming 11072 11073Fixed a problem with Index references passed as method arguments. 11074References 11075passed as arguments to control methods were dereferenced immediately 11076(before 11077control was passed to the called method). The references are now 11078correctly 11079passed directly to the called method. BZ 5389. Lin Ming 11080 11081Fixed a problem with CopyObject used in conjunction with the Index 11082operator. 11083The reference was incorrectly dereferenced before the copy. The reference 11084is 11085now correctly copied. BZ 5391. Lin Ming 11086 11087Fixed a problem with Control Method references within Package objects. 11088These 11089references are now correctly generated. This completes the package 11090construction overhaul that began in version 20071019. 11091 11092Example Code and Data Size: These are the sizes for the OS-independent 11093acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11094debug version of the code includes the debug output trace mechanism and 11095has 11096a much larger code and data size. 11097 11098 Previous Release: 11099 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 11100 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 11101 Current Release: 11102 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 11103 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 11104 11105 111062) iASL Compiler/Disassembler and Tools: 11107 11108The AcpiExec utility now installs handlers for all of the predefined 11109Operation Region types. New types supported are: PCI_Config, CMOS, and 11110PCIBARTarget. 11111 11112Fixed a problem with the 64-bit version of AcpiExec where the extended 11113(64- 11114bit) address fields for the DSDT and FACS within the FADT were not being 11115used, causing truncation of the upper 32-bits of these addresses. Lin 11116Ming 11117and Bob Moore 11118 11119---------------------------------------- 1112019 October 2007. Summary of changes for version 20071019: 11121 111221) ACPI CA Core Subsystem: 11123 11124Fixed a problem with the Alias operator when the target of the alias is a 11125named ASL operator that opens a new scope -- Scope, Device, 11126PowerResource, 11127Processor, and ThermalZone. In these cases, any children of the original 11128operator could not be accessed via the alias, potentially causing 11129unexpected 11130AE_NOT_FOUND exceptions. (BZ 9067) 11131 11132Fixed a problem with the Package operator where all named references were 11133created as object references and left otherwise unresolved. According to 11134the 11135ACPI specification, a Package can only contain Data Objects or references 11136to 11137control methods. The implication is that named references to Data Objects 11138(Integer, Buffer, String, Package, BufferField, Field) should be resolved 11139immediately upon package creation. This is the approach taken with this 11140change. References to all other named objects (Methods, Devices, Scopes, 11141etc.) are all now properly created as reference objects. (BZ 5328) 11142 11143Reverted a change to Notify handling that was introduced in version 1114420070508. This version changed the Notify handling from asynchronous to 11145fully synchronous (Device driver Notify handling with respect to the 11146Notify 11147ASL operator). It was found that this change caused more problems than it 11148solved and was removed by most users. 11149 11150Fixed a problem with the Increment and Decrement operators where the type 11151of 11152the target object could be unexpectedly and incorrectly changed. (BZ 353) 11153Lin Ming. 11154 11155Fixed a problem with the Load and LoadTable operators where the table 11156location within the namespace was ignored. Instead, the table was always 11157loaded into the root or current scope. Lin Ming. 11158 11159Fixed a problem with the Load operator when loading a table from a buffer 11160object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 11161 11162Fixed a problem with the Debug object where a store of a DdbHandle 11163reference 11164object to the Debug object could cause a fault. 11165 11166Added a table checksum verification for the Load operator, in the case 11167where 11168the load is from a buffer. (BZ 578). 11169 11170Implemented additional parameter validation for the LoadTable operator. 11171The 11172length of the input strings SignatureString, OemIdString, and OemTableId 11173are 11174now checked for maximum lengths. (BZ 582) Lin Ming. 11175 11176Example Code and Data Size: These are the sizes for the OS-independent 11177acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11178debug version of the code includes the debug output trace mechanism and 11179has 11180a much larger code and data size. 11181 11182 Previous Release: 11183 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 11184 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 11185 Current Release: 11186 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 11187 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 11188 11189 111902) iASL Compiler/Disassembler: 11191 11192Fixed a problem where if a single file was specified and the file did not 11193exist, no error message was emitted. (Introduced with wildcard support in 11194version 20070917.) 11195 11196---------------------------------------- 1119719 September 2007. Summary of changes for version 20070919: 11198 111991) ACPI CA Core Subsystem: 11200 11201Designed and implemented new external interfaces to install and remove 11202handlers for ACPI table-related events. Current events that are defined 11203are 11204LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 11205they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 11206AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 11207 11208Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 11209(acpi_serialized option on Linux) could cause some systems to hang during 11210initialization. (Bob Moore) BZ 8171 11211 11212Fixed a problem where objects of certain types (Device, ThermalZone, 11213Processor, PowerResource) can be not found if they are declared and 11214referenced from within the same control method (Lin Ming) BZ 341 11215 11216Example Code and Data Size: These are the sizes for the OS-independent 11217acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11218debug version of the code includes the debug output trace mechanism and 11219has 11220a much larger code and data size. 11221 11222 Previous Release: 11223 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 11224 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 11225 Current Release: 11226 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 11227 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 11228 11229 112302) iASL Compiler/Disassembler: 11231 11232Implemented support to allow multiple files to be compiled/disassembled 11233in 11234a 11235single invocation. This includes command line wildcard support for both 11236the 11237Windows and Unix versions of the compiler. This feature simplifies the 11238disassembly and compilation of multiple ACPI tables in a single 11239directory. 11240 11241---------------------------------------- 1124208 May 2007. Summary of changes for version 20070508: 11243 112441) ACPI CA Core Subsystem: 11245 11246Implemented a Microsoft compatibility design change for the handling of 11247the 11248Notify AML operator. Previously, notify handlers were dispatched and 11249executed completely asynchronously in a deferred thread. The new design 11250still executes the notify handlers in a different thread, but the 11251original 11252thread that executed the Notify() now waits at a synchronization point 11253for 11254the notify handler to complete. Some machines depend on a synchronous 11255Notify 11256operator in order to operate correctly. 11257 11258Implemented support to allow Package objects to be passed as method 11259arguments to the external AcpiEvaluateObject interface. Previously, this 11260would return the AE_NOT_IMPLEMENTED exception. This feature had not been 11261implemented since there were no reserved control methods that required it 11262until recently. 11263 11264Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 11265that 11266contained invalid non-zero values in reserved fields could cause later 11267failures because these fields have meaning in later revisions of the 11268FADT. 11269For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 11270fields 11271are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 11272 11273Fixed a problem where the Global Lock handle was not properly updated if 11274a 11275thread that acquired the Global Lock via executing AML code then 11276attempted 11277to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 11278Joe 11279Liu. 11280 11281Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 11282could be corrupted if the interrupt being removed was at the head of the 11283list. Reported by Linn Crosetto. 11284 11285Example Code and Data Size: These are the sizes for the OS-independent 11286acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11287debug version of the code includes the debug output trace mechanism and 11288has 11289a much larger code and data size. 11290 11291 Previous Release: 11292 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11293 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 11294 Current Release: 11295 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 11296 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 11297 11298---------------------------------------- 1129920 March 2007. Summary of changes for version 20070320: 11300 113011) ACPI CA Core Subsystem: 11302 11303Implemented a change to the order of interpretation and evaluation of AML 11304operand objects within the AML interpreter. The interpreter now evaluates 11305operands in the order that they appear in the AML stream (and the 11306corresponding ASL code), instead of in the reverse order (after the 11307entire 11308operand list has been parsed). The previous behavior caused several 11309subtle 11310incompatibilities with the Microsoft AML interpreter as well as being 11311somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 11312 11313Implemented a change to the ACPI Global Lock support. All interfaces to 11314the 11315global lock now allow the same thread to acquire the lock multiple times. 11316This affects the AcpiAcquireGlobalLock external interface to the global 11317lock 11318as well as the internal use of the global lock to support AML fields -- a 11319control method that is holding the global lock can now simultaneously 11320access 11321AML fields that require global lock protection. Previously, in both 11322cases, 11323this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 11324to 11325AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 11326Controller. There is no change to the behavior of the AML Acquire 11327operator, 11328as this can already be used to acquire a mutex multiple times by the same 11329thread. BZ 8066. With assistance from Alexey Starikovskiy. 11330 11331Fixed a problem where invalid objects could be referenced in the AML 11332Interpreter after error conditions. During operand evaluation, ensure 11333that 11334the internal "Return Object" field is cleared on error and only valid 11335pointers are stored there. Caused occasional access to deleted objects 11336that 11337resulted in "large reference count" warning messages. Valery Podrezov. 11338 11339Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 11340on 11341deeply nested control method invocations. BZ 7873, local BZ 487. Valery 11342Podrezov. 11343 11344Fixed an internal problem with the handling of result objects on the 11345interpreter result stack. BZ 7872. Valery Podrezov. 11346 11347Removed obsolete code that handled the case where AML_NAME_OP is the 11348target 11349of a reference (Reference.Opcode). This code was no longer necessary. BZ 113507874. Valery Podrezov. 11351 11352Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 11353was 11354a 11355remnant from the previously discontinued 16-bit support. 11356 11357Example Code and Data Size: These are the sizes for the OS-independent 11358acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11359debug version of the code includes the debug output trace mechanism and 11360has 11361a much larger code and data size. 11362 11363 Previous Release: 11364 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11365 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11366 Current Release: 11367 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11368 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 11369 11370---------------------------------------- 1137126 January 2007. Summary of changes for version 20070126: 11372 113731) ACPI CA Core Subsystem: 11374 11375Added the 2007 copyright to all module headers and signons. This affects 11376virtually every file in the ACPICA core subsystem, the iASL compiler, and 11377the utilities. 11378 11379Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 11380during a table load. A bad pointer was passed in the case where the DSDT 11381is 11382overridden, causing a fault in this case. 11383 11384Example Code and Data Size: These are the sizes for the OS-independent 11385acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11386debug version of the code includes the debug output trace mechanism and 11387has 11388a much larger code and data size. 11389 11390 Previous Release: 11391 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11392 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11393 Current Release: 11394 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11395 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11396 11397---------------------------------------- 1139815 December 2006. Summary of changes for version 20061215: 11399 114001) ACPI CA Core Subsystem: 11401 11402Support for 16-bit ACPICA has been completely removed since it is no 11403longer 11404necessary and it clutters the code. All 16-bit macros, types, and 11405conditional compiles have been removed, cleaning up and simplifying the 11406code 11407across the entire subsystem. DOS support is no longer needed since the 11408bootable Linux firmware kit is now available. 11409 11410The handler for the Global Lock is now removed during AcpiTerminate to 11411enable a clean subsystem restart, via the implementation of the 11412AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 11413HP) 11414 11415Implemented enhancements to the multithreading support within the 11416debugger 11417to enable improved multithreading debugging and evaluation of the 11418subsystem. 11419(Valery Podrezov) 11420 11421Debugger: Enhanced the Statistics/Memory command to emit the total 11422(maximum) 11423memory used during the execution, as well as the maximum memory consumed 11424by 11425each of the various object types. (Valery Podrezov) 11426 11427Example Code and Data Size: These are the sizes for the OS-independent 11428acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11429debug version of the code includes the debug output trace mechanism and 11430has 11431a much larger code and data size. 11432 11433 Previous Release: 11434 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 11435 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 11436 Current Release: 11437 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11438 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11439 11440 114412) iASL Compiler/Disassembler and Tools: 11442 11443AcpiExec: Implemented a new option (-m) to display full memory use 11444statistics upon subsystem/program termination. (Valery Podrezov) 11445 11446---------------------------------------- 1144709 November 2006. Summary of changes for version 20061109: 11448 114491) ACPI CA Core Subsystem: 11450 11451Optimized the Load ASL operator in the case where the source operand is 11452an 11453operation region. Simply map the operation region memory, instead of 11454performing a bytewise read. (Region must be of type SystemMemory, see 11455below.) 11456 11457Fixed the Load ASL operator for the case where the source operand is a 11458region field. A buffer object is also allowed as the source operand. BZ 11459480 11460 11461Fixed a problem where the Load ASL operator allowed the source operand to 11462be 11463an operation region of any type. It is now restricted to regions of type 11464SystemMemory, as per the ACPI specification. BZ 481 11465 11466Additional cleanup and optimizations for the new Table Manager code. 11467 11468AcpiEnable will now fail if all of the required ACPI tables are not 11469loaded 11470(FADT, FACS, DSDT). BZ 477 11471 11472Added #pragma pack(8/4) to acobject.h to ensure that the structures in 11473this 11474header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 11475manually optimized to be aligned and will not work if it is byte-packed. 11476 11477Example Code and Data Size: These are the sizes for the OS-independent 11478acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11479debug version of the code includes the debug output trace mechanism and 11480has 11481a much larger code and data size. 11482 11483 Previous Release: 11484 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 11485 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 11486 Current Release: 11487 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 11488 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 11489 11490 114912) iASL Compiler/Disassembler and Tools: 11492 11493Fixed a problem where the presence of the _OSI predefined control method 11494within complex expressions could cause an internal compiler error. 11495 11496AcpiExec: Implemented full region support for multiple address spaces. 11497SpaceId is now part of the REGION object. BZ 429 11498 11499---------------------------------------- 1150011 October 2006. Summary of changes for version 20061011: 11501 115021) ACPI CA Core Subsystem: 11503 11504Completed an AML interpreter performance enhancement for control method 11505execution. Previously a 2-pass parse/execution, control methods are now 11506completely parsed and executed in a single pass. This improves overall 11507interpreter performance by ~25%, reduces code size, and reduces CPU stack 11508use. (Valery Podrezov + interpreter changes in version 20051202 that 11509eliminated namespace loading during the pass one parse.) 11510 11511Implemented _CID support for PCI Root Bridge detection. If the _HID does 11512not 11513match the predefined PCI Root Bridge IDs, the _CID list (if present) is 11514now 11515obtained and also checked for an ID match. 11516 11517Implemented additional support for the PCI _ADR execution: upsearch until 11518a 11519device scope is found before executing _ADR. This allows PCI_Config 11520operation regions to be declared locally within control methods 11521underneath 11522PCI device objects. 11523 11524Fixed a problem with a possible race condition between threads executing 11525AcpiWalkNamespace and the AML interpreter. This condition was removed by 11526modifying AcpiWalkNamespace to (by default) ignore all temporary 11527namespace 11528entries created during any concurrent control method execution. An 11529additional namespace race condition is known to exist between 11530AcpiWalkNamespace and the Load/Unload ASL operators and is still under 11531investigation. 11532 11533Restructured the AML ParseLoop function, breaking it into several 11534subfunctions in order to reduce CPU stack use and improve 11535maintainability. 11536(Mikhail Kouzmich) 11537 11538AcpiGetHandle: Fix for parameter validation to detect invalid 11539combinations 11540of prefix handle and pathname. BZ 478 11541 11542Example Code and Data Size: These are the sizes for the OS-independent 11543acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11544debug version of the code includes the debug output trace mechanism and 11545has 11546a much larger code and data size. 11547 11548 Previous Release: 11549 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11550 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 11551 Current Release: 11552 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 11553 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 11554 115552) iASL Compiler/Disassembler and Tools: 11556 11557Ported the -g option (get local ACPI tables) to the new ACPICA Table 11558Manager 11559to restore original behavior. 11560 11561---------------------------------------- 1156227 September 2006. Summary of changes for version 20060927: 11563 115641) ACPI CA Core Subsystem: 11565 11566Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 11567These functions now use a spinlock for mutual exclusion and the interrupt 11568level indication flag is not needed. 11569 11570Fixed a problem with the Global Lock where the lock could appear to be 11571obtained before it is actually obtained. The global lock semaphore was 11572inadvertently created with one unit instead of zero units. (BZ 464) 11573Fiodor 11574Suietov. 11575 11576Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 11577during 11578a read from a buffer or region field. (BZ 458) Fiodor Suietov. 11579 11580Example Code and Data Size: These are the sizes for the OS-independent 11581acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11582debug version of the code includes the debug output trace mechanism and 11583has 11584a much larger code and data size. 11585 11586 Previous Release: 11587 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11588 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 11589 Current Release: 11590 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11591 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 11592 11593 115942) iASL Compiler/Disassembler and Tools: 11595 11596Fixed a compilation problem with the pre-defined Resource Descriptor 11597field 11598names where an "object does not exist" error could be incorrectly 11599generated 11600if the parent ResourceTemplate pathname places the template within a 11601different namespace scope than the current scope. (BZ 7212) 11602 11603Fixed a problem where the compiler could hang after syntax errors 11604detected 11605in an ElseIf construct. (BZ 453) 11606 11607Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 11608operator. An incorrect output filename was produced when this parameter 11609was 11610a null string (""). Now, the original input filename is used as the AML 11611output filename, with an ".aml" extension. 11612 11613Implemented a generic batch command mode for the AcpiExec utility 11614(execute 11615any AML debugger command) (Valery Podrezov). 11616 11617---------------------------------------- 1161812 September 2006. Summary of changes for version 20060912: 11619 116201) ACPI CA Core Subsystem: 11621 11622Enhanced the implementation of the "serialized mode" of the interpreter 11623(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 11624specified, instead of creating a serialization semaphore per control 11625method, 11626the interpreter lock is simply no longer released before a blocking 11627operation during control method execution. This effectively makes the AML 11628Interpreter single-threaded. The overhead of a semaphore per-method is 11629eliminated. 11630 11631Fixed a regression where an error was no longer emitted if a control 11632method 11633attempts to create 2 objects of the same name. This once again returns 11634AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 11635that 11636will dynamically serialize the control method to possible prevent future 11637errors. (BZ 440) 11638 11639Integrated a fix for a problem with PCI Express HID detection in the PCI 11640Config Space setup procedure. (BZ 7145) 11641 11642Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 11643AcpiHwInitialize function - the FADT registers are now validated when the 11644table is loaded. 11645 11646Added two new warnings during FADT verification - 1) if the FADT is 11647larger 11648than the largest known FADT version, and 2) if there is a mismatch 11649between 11650a 1165132-bit block address and the 64-bit X counterpart (when both are non- 11652zero.) 11653 11654Example Code and Data Size: These are the sizes for the OS-independent 11655acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11656debug version of the code includes the debug output trace mechanism and 11657has 11658a much larger code and data size. 11659 11660 Previous Release: 11661 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 11662 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 11663 Current Release: 11664 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11665 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 11666 11667 116682) iASL Compiler/Disassembler and Tools: 11669 11670Fixed a problem with the implementation of the Switch() operator where 11671the 11672temporary variable was declared too close to the actual Switch, instead 11673of 11674at method level. This could cause a problem if the Switch() operator is 11675within a while loop, causing an error on the second iteration. (BZ 460) 11676 11677Disassembler - fix for error emitted for unknown type for target of scope 11678operator. Now, ignore it and continue. 11679 11680Disassembly of an FADT now verifies the input FADT and reports any errors 11681found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 11682 11683Disassembly of raw data buffers with byte initialization data now 11684prefixes 11685each output line with the current buffer offset. 11686 11687Disassembly of ASF! table now includes all variable-length data fields at 11688the end of some of the subtables. 11689 11690The disassembler now emits a comment if a buffer appears to be a 11691ResourceTemplate, but cannot be disassembled as such because the EndTag 11692does 11693not appear at the very end of the buffer. 11694 11695AcpiExec - Added the "-t" command line option to enable the serialized 11696mode 11697of the AML interpreter. 11698 11699---------------------------------------- 1170031 August 2006. Summary of changes for version 20060831: 11701 117021) ACPI CA Core Subsystem: 11703 11704Miscellaneous fixes for the Table Manager: 11705- Correctly initialize internal common FADT for all 64-bit "X" fields 11706- Fixed a couple table mapping issues during table load 11707- Fixed a couple alignment issues for IA64 11708- Initialize input array to zero in AcpiInitializeTables 11709- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 11710AcpiGetTableByIndex 11711 11712Change for GPE support: when a "wake" GPE is received, all wake GPEs are 11713now 11714immediately disabled to prevent the waking GPE from firing again and to 11715prevent other wake GPEs from interrupting the wake process. 11716 11717Added the AcpiGpeCount global that tracks the number of processed GPEs, 11718to 11719be used for debugging systems with a large number of ACPI interrupts. 11720 11721Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 11722both the ACPICA headers and the disassembler. 11723 11724Example Code and Data Size: These are the sizes for the OS-independent 11725acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11726debug version of the code includes the debug output trace mechanism and 11727has 11728a much larger code and data size. 11729 11730 Previous Release: 11731 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 11732 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 11733 Current Release: 11734 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 11735 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 11736 11737 117382) iASL Compiler/Disassembler and Tools: 11739 11740Disassembler support for the DMAR ACPI table. 11741 11742---------------------------------------- 1174323 August 2006. Summary of changes for version 20060823: 11744 117451) ACPI CA Core Subsystem: 11746 11747The Table Manager component has been completely redesigned and 11748reimplemented. The new design is much simpler, and reduces the overall 11749code 11750and data size of the kernel-resident ACPICA by approximately 5%. Also, it 11751is 11752now possible to obtain the ACPI tables very early during kernel 11753initialization, even before dynamic memory management is initialized. 11754(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 11755 11756Obsolete ACPICA interfaces: 11757 11758- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 11759init 11760time). 11761- AcpiLoadTable: Not needed. 11762- AcpiUnloadTable: Not needed. 11763 11764New ACPICA interfaces: 11765 11766- AcpiInitializeTables: Must be called before the table manager can be 11767used. 11768- AcpiReallocateRootTable: Used to transfer the root table to dynamically 11769allocated memory after it becomes available. 11770- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 11771tables 11772in the RSDT/XSDT. 11773 11774Other ACPICA changes: 11775 11776- AcpiGetTableHeader returns the actual mapped table header, not a copy. 11777Use 11778AcpiOsUnmapMemory to free this mapping. 11779- AcpiGetTable returns the actual mapped table. The mapping is managed 11780internally and must not be deleted by the caller. Use of this interface 11781causes no additional dynamic memory allocation. 11782- AcpiFindRootPointer: Support for physical addressing has been 11783eliminated, 11784it appeared to be unused. 11785- The interface to AcpiOsMapMemory has changed to be consistent with the 11786other allocation interfaces. 11787- The interface to AcpiOsGetRootPointer has changed to eliminate 11788unnecessary 11789parameters. 11790- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 1179164- 11792bit platforms. Was previously 64 bits on all platforms. 11793- The interface to the ACPI Global Lock acquire/release macros have 11794changed 11795slightly since ACPICA no longer keeps a local copy of the FACS with a 11796constructed pointer to the actual global lock. 11797 11798Porting to the new table manager: 11799 11800- AcpiInitializeTables: Must be called once, and can be called anytime 11801during the OS initialization process. It allows the host to specify an 11802area 11803of memory to be used to store the internal version of the RSDT/XSDT (root 11804table). This allows the host to access ACPI tables before memory 11805management 11806is initialized and running. 11807- AcpiReallocateRootTable: Can be called after memory management is 11808running 11809to copy the root table to a dynamically allocated array, freeing up the 11810scratch memory specified in the call to AcpiInitializeTables. 11811- AcpiSubsystemInitialize: This existing interface is independent of the 11812Table Manager, and does not have to be called before the Table Manager 11813can 11814be used, it only must be called before the rest of ACPICA can be used. 11815- ACPI Tables: Some changes have been made to the names and structure of 11816the 11817actbl.h and actbl1.h header files and may require changes to existing 11818code. 11819For example, bitfields have been completely removed because of their lack 11820of 11821portability across C compilers. 11822- Update interfaces to the Global Lock acquire/release macros if local 11823versions are used. (see acwin.h) 11824 11825Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 11826 11827New files: tbfind.c 11828 11829Example Code and Data Size: These are the sizes for the OS-independent 11830acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11831debug version of the code includes the debug output trace mechanism and 11832has 11833a much larger code and data size. 11834 11835 Previous Release: 11836 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11837 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11838 Current Release: 11839 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 11840 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 11841 11842 118432) iASL Compiler/Disassembler and Tools: 11844 11845No changes for this release. 11846 11847---------------------------------------- 1184821 July 2006. Summary of changes for version 20060721: 11849 118501) ACPI CA Core Subsystem: 11851 11852The full source code for the ASL test suite used to validate the iASL 11853compiler and the ACPICA core subsystem is being released with the ACPICA 11854source for the first time. The source is contained in a separate package 11855and 11856consists of over 1100 files that exercise all ASL/AML operators. The 11857package 11858should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 11859Fiodor 11860Suietov) 11861 11862Completed a new design and implementation for support of the ACPI Global 11863Lock. On the OS side, the global lock is now treated as a standard AML 11864mutex. Previously, multiple OS threads could "acquire" the global lock 11865simultaneously. However, this could cause the BIOS to be starved out of 11866the 11867lock - especially in cases such as the Embedded Controller driver where 11868there is a tight coupling between the OS and the BIOS. 11869 11870Implemented an optimization for the ACPI Global Lock interrupt mechanism. 11871The Global Lock interrupt handler no longer queues the execution of a 11872separate thread to signal the global lock semaphore. Instead, the 11873semaphore 11874is signaled directly from the interrupt handler. 11875 11876Implemented support within the AML interpreter for package objects that 11877contain a larger AML length (package list length) than the package 11878element 11879count. In this case, the length of the package is truncated to match the 11880package element count. Some BIOS code apparently modifies the package 11881length 11882on the fly, and this change supports this behavior. Provides 11883compatibility 11884with the MS AML interpreter. (With assistance from Fiodor Suietov) 11885 11886Implemented a temporary fix for the BankValue parameter of a Bank Field 11887to 11888support all constant values, now including the Zero and One opcodes. 11889Evaluation of this parameter must eventually be converted to a full 11890TermArg 11891evaluation. A not-implemented error is now returned (temporarily) for 11892non- 11893constant values for this parameter. 11894 11895Fixed problem reports (Fiodor Suietov) integrated: 11896- Fix for premature object deletion after CopyObject on Operation Region 11897(BZ 11898350) 11899 11900Example Code and Data Size: These are the sizes for the OS-independent 11901acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11902debug version of the code includes the debug output trace mechanism and 11903has 11904a much larger code and data size. 11905 11906 Previous Release: 11907 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 11908 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 11909 Current Release: 11910 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11911 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11912 11913 119142) iASL Compiler/Disassembler and Tools: 11915 11916No changes for this release. 11917 11918---------------------------------------- 1191907 July 2006. Summary of changes for version 20060707: 11920 119211) ACPI CA Core Subsystem: 11922 11923Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 11924that do not allow the initialization of address pointers within packed 11925structures - even though the hardware itself may support misaligned 11926transfers. Some of the debug data structures are packed by default to 11927minimize size. 11928 11929Added an error message for the case where AcpiOsGetThreadId() returns 11930zero. 11931A non-zero value is required by the core ACPICA code to ensure the proper 11932operation of AML mutexes and recursive control methods. 11933 11934The DSDT is now the only ACPI table that determines whether the AML 11935interpreter is in 32-bit or 64-bit mode. Not really a functional change, 11936but 11937the hooks for per-table 32/64 switching have been removed from the code. 11938A 11939clarification to the ACPI specification is forthcoming in ACPI 3.0B. 11940 11941Fixed a possible leak of an OwnerID in the error path of 11942AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 11943deletion to a single place in AcpiTbUninstallTable to correct possible 11944leaks 11945when using the AcpiTbDeleteTablesByType interface (with assistance from 11946Lance Ortiz.) 11947 11948Fixed a problem with Serialized control methods where the semaphore 11949associated with the method could be over-signaled after multiple method 11950invocations. 11951 11952Fixed two issues with the locking of the internal namespace data 11953structure. 11954Both the Unload() operator and AcpiUnloadTable interface now lock the 11955namespace during the namespace deletion associated with the table unload 11956(with assistance from Linn Crosetto.) 11957 11958Fixed problem reports (Valery Podrezov) integrated: 11959- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 11960 11961Fixed problem reports (Fiodor Suietov) integrated: 11962- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 11963- On Address Space handler deletion, needless deactivation call (BZ 374) 11964- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 11965375) 11966- Possible memory leak, Notify sub-objects of Processor, Power, 11967ThermalZone 11968(BZ 376) 11969- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 11970- Minimum Length of RSDT should be validated (BZ 379) 11971- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 11972Handler (BZ (380) 11973- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 11974loaded 11975(BZ 381) 11976 11977Example Code and Data Size: These are the sizes for the OS-independent 11978acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11979debug version of the code includes the debug output trace mechanism and 11980has 11981a much larger code and data size. 11982 11983 Previous Release: 11984 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 11985 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 11986 Current Release: 11987 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11988 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11989 11990 119912) iASL Compiler/Disassembler and Tools: 11992 11993Fixed problem reports: 11994Compiler segfault when ASL contains a long (>1024) String declaration (BZ 11995436) 11996 11997---------------------------------------- 1199823 June 2006. Summary of changes for version 20060623: 11999 120001) ACPI CA Core Subsystem: 12001 12002Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 12003allows the type to be customized to the host OS for improved efficiency 12004(since a spinlock is usually a very small object.) 12005 12006Implemented support for "ignored" bits in the ACPI registers. According 12007to 12008the ACPI specification, these bits should be preserved when writing the 12009registers via a read/modify/write cycle. There are 3 bits preserved in 12010this 12011manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 12012 12013Implemented the initial deployment of new OSL mutex interfaces. Since 12014some 12015host operating systems have separate mutex and semaphore objects, this 12016feature was requested. The base code now uses mutexes (and the new mutex 12017interfaces) wherever a binary semaphore was used previously. However, for 12018the current release, the mutex interfaces are defined as macros to map 12019them 12020to the existing semaphore interfaces. Therefore, no OSL changes are 12021required 12022at this time. (See acpiosxf.h) 12023 12024Fixed several problems with the support for the control method SyncLevel 12025parameter. The SyncLevel now works according to the ACPI specification 12026and 12027in concert with the Mutex SyncLevel parameter, since the current 12028SyncLevel 12029is a property of the executing thread. Mutual exclusion for control 12030methods 12031is now implemented with a mutex instead of a semaphore. 12032 12033Fixed three instances of the use of the C shift operator in the bitfield 12034support code (exfldio.c) to avoid the use of a shift value larger than 12035the 12036target data width. The behavior of C compilers is undefined in this case 12037and 12038can cause unpredictable results, and therefore the case must be detected 12039and 12040avoided. (Fiodor Suietov) 12041 12042Added an info message whenever an SSDT or OEM table is loaded dynamically 12043via the Load() or LoadTable() ASL operators. This should improve 12044debugging 12045capability since it will show exactly what tables have been loaded 12046(beyond 12047the tables present in the RSDT/XSDT.) 12048 12049Example Code and Data Size: These are the sizes for the OS-independent 12050acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12051debug version of the code includes the debug output trace mechanism and 12052has 12053a much larger code and data size. 12054 12055 Previous Release: 12056 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 12057 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 12058 Current Release: 12059 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 12060 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 12061 12062 120632) iASL Compiler/Disassembler and Tools: 12064 12065No changes for this release. 12066 12067---------------------------------------- 1206808 June 2006. Summary of changes for version 20060608: 12069 120701) ACPI CA Core Subsystem: 12071 12072Converted the locking mutex used for the ACPI hardware to a spinlock. 12073This 12074change should eliminate all problems caused by attempting to acquire a 12075semaphore at interrupt level, and it means that all ACPICA external 12076interfaces that directly access the ACPI hardware can be safely called 12077from 12078interrupt level. OSL code that implements the semaphore interfaces should 12079be 12080able to eliminate any workarounds for being called at interrupt level. 12081 12082Fixed a regression introduced in 20060526 where the ACPI device 12083initialization could be prematurely aborted with an AE_NOT_FOUND if a 12084device 12085did not have an optional _INI method. 12086 12087Fixed an IndexField issue where a write to the Data Register should be 12088limited in size to the AccessSize (width) of the IndexField itself. (BZ 12089433, 12090Fiodor Suietov) 12091 12092Fixed problem reports (Valery Podrezov) integrated: 12093- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 12094 12095Fixed problem reports (Fiodor Suietov) integrated: 12096- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 12097 12098Removed four global mutexes that were obsolete and were no longer being 12099used. 12100 12101Example Code and Data Size: These are the sizes for the OS-independent 12102acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12103debug version of the code includes the debug output trace mechanism and 12104has 12105a much larger code and data size. 12106 12107 Previous Release: 12108 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 12109 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 12110 Current Release: 12111 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 12112 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 12113 12114 121152) iASL Compiler/Disassembler and Tools: 12116 12117Fixed a fault when using -g option (get tables from registry) on Windows 12118machines. 12119 12120Fixed problem reports integrated: 12121- Generate error if CreateField NumBits parameter is zero. (BZ 405) 12122- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 12123Suietov) 12124- Global table revision override (-r) is ignored (BZ 413) 12125 12126---------------------------------------- 1212726 May 2006. Summary of changes for version 20060526: 12128 121291) ACPI CA Core Subsystem: 12130 12131Restructured, flattened, and simplified the internal interfaces for 12132namespace object evaluation - resulting in smaller code, less CPU stack 12133use, 12134and fewer interfaces. (With assistance from Mikhail Kouzmich) 12135 12136Fixed a problem with the CopyObject operator where the first parameter 12137was 12138not typed correctly for the parser, interpreter, compiler, and 12139disassembler. 12140Caused various errors and unexpected behavior. 12141 12142Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 12143produced incorrect results with some C compilers. Since the behavior of C 12144compilers when the shift value is larger than the datatype width is 12145apparently not well defined, the interpreter now detects this condition 12146and 12147simply returns zero as expected in all such cases. (BZ 395) 12148 12149Fixed problem reports (Valery Podrezov) integrated: 12150- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 12151- Allow interpreter to handle nested method declarations (BZ 5361) 12152 12153Fixed problem reports (Fiodor Suietov) integrated: 12154- AcpiTerminate doesn't free debug memory allocation list objects (BZ 12155355) 12156- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 12157356) 12158- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 12159- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 12160- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 12161- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 12162- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 12163- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 12164- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 12165365) 12166- Status of the Global Initialization Handler call not used (BZ 366) 12167- Incorrect object parameter to Global Initialization Handler (BZ 367) 12168 12169Example Code and Data Size: These are the sizes for the OS-independent 12170acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12171debug version of the code includes the debug output trace mechanism and 12172has 12173a much larger code and data size. 12174 12175 Previous Release: 12176 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 12177 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 12178 Current Release: 12179 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 12180 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 12181 12182 121832) iASL Compiler/Disassembler and Tools: 12184 12185Modified the parser to allow the names IO, DMA, and IRQ to be used as 12186namespace identifiers with no collision with existing resource descriptor 12187macro names. This provides compatibility with other ASL compilers and is 12188most useful for disassembly/recompilation of existing tables without 12189parse 12190errors. (With assistance from Thomas Renninger) 12191 12192Disassembler: fixed an incorrect disassembly problem with the 12193DataTableRegion and CopyObject operators. Fixed a possible fault during 12194disassembly of some Alias operators. 12195 12196---------------------------------------- 1219712 May 2006. Summary of changes for version 20060512: 12198 121991) ACPI CA Core Subsystem: 12200 12201Replaced the AcpiOsQueueForExecution interface with a new interface named 12202AcpiOsExecute. The major difference is that the new interface does not 12203have 12204a Priority parameter, this appeared to be useless and has been replaced 12205by 12206a 12207Type parameter. The Type tells the host what type of execution is being 12208requested, such as global lock handler, notify handler, GPE handler, etc. 12209This allows the host to queue and execute the request as appropriate for 12210the 12211request type, possibly using different work queues and different 12212priorities 12213for the various request types. This enables fixes for multithreading 12214deadlock problems such as BZ #5534, and will require changes to all 12215existing 12216OS interface layers. (Alexey Starikovskiy and Bob Moore) 12217 12218Fixed a possible memory leak associated with the support for the so- 12219called 12220"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 12221Suietov) 12222 12223Fixed a problem with the Load() operator where a table load from an 12224operation region could overwrite an internal table buffer by up to 7 12225bytes 12226and cause alignment faults on IPF systems. (With assistance from Luming 12227Yu) 12228 12229Example Code and Data Size: These are the sizes for the OS-independent 12230acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12231debug version of the code includes the debug output trace mechanism and 12232has 12233a much larger code and data size. 12234 12235 Previous Release: 12236 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 12237 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 12238 Current Release: 12239 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 12240 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 12241 12242 12243 122442) iASL Compiler/Disassembler and Tools: 12245 12246Disassembler: Implemented support to cross reference the internal 12247namespace 12248and automatically generate ASL External() statements for symbols not 12249defined 12250within the current table being disassembled. This will simplify the 12251disassembly and recompilation of interdependent tables such as SSDTs 12252since 12253these statements will no longer have to be added manually. 12254 12255Disassembler: Implemented experimental support to automatically detect 12256invocations of external control methods and generate appropriate 12257External() 12258statements. This is problematic because the AML cannot be correctly 12259parsed 12260until the number of arguments for each control method is known. 12261Currently, 12262standalone method invocations and invocations as the source operand of a 12263Store() statement are supported. 12264 12265Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 12266LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 12267LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 12268more readable and likely closer to the original ASL source. 12269 12270---------------------------------------- 1227121 April 2006. Summary of changes for version 20060421: 12272 122731) ACPI CA Core Subsystem: 12274 12275Removed a device initialization optimization introduced in 20051216 where 12276the _STA method was not run unless an _INI was also present for the same 12277device. This optimization could cause problems because it could allow 12278_INI 12279methods to be run within a not-present device subtree. (If a not-present 12280device had no _INI, _STA would not be run, the not-present status would 12281not 12282be discovered, and the children of the device would be incorrectly 12283traversed.) 12284 12285Implemented a new _STA optimization where namespace subtrees that do not 12286contain _INI are identified and ignored during device initialization. 12287Selectively running _STA can significantly improve boot time on large 12288machines (with assistance from Len Brown.) 12289 12290Implemented support for the device initialization case where the returned 12291_STA flags indicate a device not-present but functioning. In this case, 12292_INI 12293is not run, but the device children are examined for presence, as per the 12294ACPI specification. 12295 12296Implemented an additional change to the IndexField support in order to 12297conform to MS behavior. The value written to the Index Register is not 12298simply a byte offset, it is a byte offset in units of the access width of 12299the parent Index Field. (Fiodor Suietov) 12300 12301Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 12302interface is called during the creation of all AML operation regions, and 12303allows the host OS to exert control over what addresses it will allow the 12304AML code to access. Operation Regions whose addresses are disallowed will 12305cause a runtime exception when they are actually accessed (will not 12306affect 12307or abort table loading.) See oswinxf or osunixxf for an example 12308implementation. 12309 12310Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 12311interface allows the host OS to match the various "optional" 12312interface/behavior strings for the _OSI predefined control method as 12313appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 12314for an example implementation. 12315 12316Restructured and corrected various problems in the exception handling 12317code 12318paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 12319(with assistance from Takayoshi Kochi.) 12320 12321Modified the Linux source converter to ignore quoted string literals 12322while 12323converting identifiers from mixed to lower case. This will correct 12324problems 12325with the disassembler and other areas where such strings must not be 12326modified. 12327 12328The ACPI_FUNCTION_* macros no longer require quotes around the function 12329name. This allows the Linux source converter to convert the names, now 12330that 12331the converter ignores quoted strings. 12332 12333Example Code and Data Size: These are the sizes for the OS-independent 12334acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12335debug version of the code includes the debug output trace mechanism and 12336has 12337a much larger code and data size. 12338 12339 Previous Release: 12340 12341 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 12342 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 12343 Current Release: 12344 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 12345 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 12346 12347 123482) iASL Compiler/Disassembler and Tools: 12349 12350Implemented 3 new warnings for iASL, and implemented multiple warning 12351levels 12352(w2 flag). 12353 123541) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 12355not 12356WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 12357check for the possible timeout, a warning is issued. 12358 123592) Useless operators: If an ASL operator does not specify an optional 12360target 12361operand and it also does not use the function return value from the 12362operator, a warning is issued since the operator effectively does 12363nothing. 12364 123653) Unreferenced objects: If a namespace object is created, but never 12366referenced, a warning is issued. This is a warning level 2 since there 12367are 12368cases where this is ok, such as when a secondary table is loaded that 12369uses 12370the unreferenced objects. Even so, care is taken to only flag objects 12371that 12372don't look like they will ever be used. For example, the reserved methods 12373(starting with an underscore) are usually not referenced because it is 12374expected that the OS will invoke them. 12375 12376---------------------------------------- 1237731 March 2006. Summary of changes for version 20060331: 12378 123791) ACPI CA Core Subsystem: 12380 12381Implemented header file support for the following additional ACPI tables: 12382ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 12383support, 12384all current and known ACPI tables are now defined in the ACPICA headers 12385and 12386are available for use by device drivers and other software. 12387 12388Implemented support to allow tables that contain ACPI names with invalid 12389characters to be loaded. Previously, this would cause the table load to 12390fail, but since there are several known cases of such tables on existing 12391machines, this change was made to enable ACPI support for them. Also, 12392this 12393matches the behavior of the Microsoft ACPI implementation. 12394 12395Fixed a couple regressions introduced during the memory optimization in 12396the 1239720060317 release. The namespace node definition required additional 12398reorganization and an internal datatype that had been changed to 8-bit 12399was 12400restored to 32-bit. (Valery Podrezov) 12401 12402Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 12403could be passed through to AcpiOsReleaseObject which is unexpected. Such 12404null pointers are now trapped and ignored, matching the behavior of the 12405previous implementation before the deployment of AcpiOsReleaseObject. 12406(Valery Podrezov, Fiodor Suietov) 12407 12408Fixed a memory mapping leak during the deletion of a SystemMemory 12409operation 12410region where a cached memory mapping was not deleted. This became a 12411noticeable problem for operation regions that are defined within 12412frequently 12413used control methods. (Dana Meyers) 12414 12415Reorganized the ACPI table header files into two main files: one for the 12416ACPI tables consumed by the ACPICA core, and another for the 12417miscellaneous 12418ACPI tables that are consumed by the drivers and other software. The 12419various 12420FADT definitions were merged into one common section and three different 12421tables (ACPI 1.0, 1.0+, and 2.0) 12422 12423Example Code and Data Size: These are the sizes for the OS-independent 12424acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12425debug version of the code includes the debug output trace mechanism and 12426has 12427a much larger code and data size. 12428 12429 Previous Release: 12430 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 12431 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 12432 Current Release: 12433 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 12434 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 12435 12436 124372) iASL Compiler/Disassembler and Tools: 12438 12439Disassembler: Implemented support to decode and format all non-AML ACPI 12440tables (tables other than DSDTs and SSDTs.) This includes the new tables 12441added to the ACPICA headers, therefore all current and known ACPI tables 12442are 12443supported. 12444 12445Disassembler: The change to allow ACPI names with invalid characters also 12446enables the disassembly of such tables. Invalid characters within names 12447are 12448changed to '*' to make the name printable; the iASL compiler will still 12449generate an error for such names, however, since this is an invalid ACPI 12450character. 12451 12452Implemented an option for AcpiXtract (-a) to extract all tables found in 12453the 12454input file. The default invocation extracts only the DSDTs and SSDTs. 12455 12456Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 12457makefile for the AcpiXtract utility. 12458 12459---------------------------------------- 1246017 March 2006. Summary of changes for version 20060317: 12461 124621) ACPI CA Core Subsystem: 12463 12464Implemented the use of a cache object for all internal namespace nodes. 12465Since there are about 1000 static nodes in a typical system, this will 12466decrease memory use for cache implementations that minimize per- 12467allocation 12468overhead (such as a slab allocator.) 12469 12470Removed the reference count mechanism for internal namespace nodes, since 12471it 12472was deemed unnecessary. This reduces the size of each namespace node by 12473about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 12474case, 12475and 32 bytes for the 64-bit case. 12476 12477Optimized several internal data structures to reduce object size on 64- 12478bit 12479platforms by packing data within the 64-bit alignment. This includes the 12480frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 12481instances corresponding to the namespace objects. 12482 12483Added two new strings for the predefined _OSI method: "Windows 2001.1 12484SP1" 12485and "Windows 2006". 12486 12487Split the allocation tracking mechanism out to a separate file, from 12488utalloc.c to uttrack.c. This mechanism appears to be only useful for 12489application-level code. Kernels may wish to not include uttrack.c in 12490distributions. 12491 12492Removed all remnants of the obsolete ACPI_REPORT_* macros and the 12493associated 12494code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 12495macros.) 12496 12497Code and Data Size: These are the sizes for the acpica.lib produced by 12498the 12499Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12500ACPI 12501driver or OSPM code. The debug version of the code includes the debug 12502output 12503trace mechanism and has a much larger code and data size. Note that these 12504values will vary depending on the efficiency of the compiler and the 12505compiler options used during generation. 12506 12507 Previous Release: 12508 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12509 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 12510 Current Release: 12511 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 12512 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 12513 12514 125152) iASL Compiler/Disassembler and Tools: 12516 12517Implemented an ANSI C version of the acpixtract utility. This version 12518will 12519automatically extract the DSDT and all SSDTs from the input acpidump text 12520file and dump the binary output to separate files. It can also display a 12521summary of the input file including the headers for each table found and 12522will extract any single ACPI table, with any signature. (See 12523source/tools/acpixtract) 12524 12525---------------------------------------- 1252610 March 2006. Summary of changes for version 20060310: 12527 125281) ACPI CA Core Subsystem: 12529 12530Tagged all external interfaces to the subsystem with the new 12531ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 12532assist 12533kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 12534macro. The default definition is NULL. 12535 12536Added the ACPI_THREAD_ID type for the return value from 12537AcpiOsGetThreadId. 12538This allows the host to define this as necessary to simplify kernel 12539integration. The default definition is ACPI_NATIVE_UINT. 12540 12541Fixed two interpreter problems related to error processing, the deletion 12542of 12543objects, and placing invalid pointers onto the internal operator result 12544stack. BZ 6028, 6151 (Valery Podrezov) 12545 12546Increased the reference count threshold where a warning is emitted for 12547large 12548reference counts in order to eliminate unnecessary warnings on systems 12549with 12550large namespaces (especially 64-bit.) Increased the value from 0x400 to 125510x800. 12552 12553Due to universal disagreement as to the meaning of the 'c' in the 12554calloc() 12555function, the ACPI_MEM_CALLOCATE macro has been renamed to 12556ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 12557ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 12558ACPI_FREE. 12559 12560Code and Data Size: These are the sizes for the acpica.lib produced by 12561the 12562Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12563ACPI 12564driver or OSPM code. The debug version of the code includes the debug 12565output 12566trace mechanism and has a much larger code and data size. Note that these 12567values will vary depending on the efficiency of the compiler and the 12568compiler options used during generation. 12569 12570 Previous Release: 12571 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 12572 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 12573 Current Release: 12574 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12575 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 12576 12577 125782) iASL Compiler/Disassembler: 12579 12580Disassembler: implemented support for symbolic resource descriptor 12581references. If a CreateXxxxField operator references a fixed offset 12582within 12583a 12584resource descriptor, a name is assigned to the descriptor and the offset 12585is 12586translated to the appropriate resource tag and pathname. The addition of 12587this support brings the disassembled code very close to the original ASL 12588source code and helps eliminate run-time errors when the disassembled 12589code 12590is modified (and recompiled) in such a way as to invalidate the original 12591fixed offsets. 12592 12593Implemented support for a Descriptor Name as the last parameter to the 12594ASL 12595Register() macro. This parameter was inadvertently left out of the ACPI 12596specification, and will be added for ACPI 3.0b. 12597 12598Fixed a problem where the use of the "_OSI" string (versus the full path 12599"\_OSI") caused an internal compiler error. ("No back ptr to op") 12600 12601Fixed a problem with the error message that occurs when an invalid string 12602is 12603used for a _HID object (such as one with an embedded asterisk: 12604"*PNP010A".) 12605The correct message is now displayed. 12606 12607---------------------------------------- 1260817 February 2006. Summary of changes for version 20060217: 12609 126101) ACPI CA Core Subsystem: 12611 12612Implemented a change to the IndexField support to match the behavior of 12613the 12614Microsoft AML interpreter. The value written to the Index register is now 12615a 12616byte offset, no longer an index based upon the width of the Data 12617register. 12618This should fix IndexField problems seen on some machines where the Data 12619register is not exactly one byte wide. The ACPI specification will be 12620clarified on this point. 12621 12622Fixed a problem where several resource descriptor types could overrun the 12623internal descriptor buffer due to size miscalculation: VendorShort, 12624VendorLong, and Interrupt. This was noticed on IA64 machines, but could 12625affect all platforms. 12626 12627Fixed a problem where individual resource descriptors were misaligned 12628within 12629the internal buffer, causing alignment faults on IA64 platforms. 12630 12631Code and Data Size: These are the sizes for the acpica.lib produced by 12632the 12633Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12634ACPI 12635driver or OSPM code. The debug version of the code includes the debug 12636output 12637trace mechanism and has a much larger code and data size. Note that these 12638values will vary depending on the efficiency of the compiler and the 12639compiler options used during generation. 12640 12641 Previous Release: 12642 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12643 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 12644 Current Release: 12645 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 12646 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 12647 12648 126492) iASL Compiler/Disassembler: 12650 12651Implemented support for new reserved names: _WDG and _WED are Microsoft 12652extensions for Windows Instrumentation Management, _TDL is a new ACPI- 12653defined method (Throttling Depth Limit.) 12654 12655Fixed a problem where a zero-length VendorShort or VendorLong resource 12656descriptor was incorrectly emitted as a descriptor of length one. 12657 12658---------------------------------------- 1265910 February 2006. Summary of changes for version 20060210: 12660 126611) ACPI CA Core Subsystem: 12662 12663Removed a couple of extraneous ACPI_ERROR messages that appeared during 12664normal execution. These became apparent after the conversion from 12665ACPI_DEBUG_PRINT. 12666 12667Fixed a problem where the CreateField operator could hang if the BitIndex 12668or 12669NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 12670 12671Fixed a problem where a DeRefOf operation on a buffer object incorrectly 12672failed with an exception. This also fixes a couple of related RefOf and 12673DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 12674 12675Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 12676of 12677AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 12678BZ 126795480) 12680 12681Implemented a memory cleanup at the end of the execution of each 12682iteration 12683of an AML While() loop, preventing the accumulation of outstanding 12684objects. 12685(Valery Podrezov, BZ 5427) 12686 12687Eliminated a chunk of duplicate code in the object resolution code. 12688(Valery 12689Podrezov, BZ 5336) 12690 12691Fixed several warnings during the 64-bit code generation. 12692 12693The AcpiSrc source code conversion tool now inserts one line of 12694whitespace 12695after an if() statement that is followed immediately by a comment, 12696improving 12697readability of the Linux code. 12698 12699Code and Data Size: The current and previous library sizes for the core 12700subsystem are shown below. These are the code and data sizes for the 12701acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12702These 12703values do not include any ACPI driver or OSPM code. The debug version of 12704the 12705code includes the debug output trace mechanism and has a much larger code 12706and data size. Note that these values will vary depending on the 12707efficiency 12708of the compiler and the compiler options used during generation. 12709 12710 Previous Release: 12711 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 12712 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 12713 Current Release: 12714 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12715 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 12716 12717 127182) iASL Compiler/Disassembler: 12719 12720Fixed a problem with the disassembly of a BankField operator with a 12721complex 12722expression for the BankValue parameter. 12723 12724---------------------------------------- 1272527 January 2006. Summary of changes for version 20060127: 12726 127271) ACPI CA Core Subsystem: 12728 12729Implemented support in the Resource Manager to allow unresolved 12730namestring 12731references within resource package objects for the _PRT method. This 12732support 12733is in addition to the previously implemented unresolved reference support 12734within the AML parser. If the interpreter slack mode is enabled, these 12735unresolved references will be passed through to the caller as a NULL 12736package 12737entry. 12738 12739Implemented and deployed new macros and functions for error and warning 12740messages across the subsystem. These macros are simpler and generate less 12741code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 12742ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 12743macros remain defined to allow ACPI drivers time to migrate to the new 12744macros. 12745 12746Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 12747the 12748Acquire/Release Lock OSL interfaces. 12749 12750Fixed a problem where Alias ASL operators are sometimes not correctly 12751resolved, in both the interpreter and the iASL compiler. 12752 12753Fixed several problems with the implementation of the 12754ConcatenateResTemplate 12755ASL operator. As per the ACPI specification, zero length buffers are now 12756treated as a single EndTag. One-length buffers always cause a fatal 12757exception. Non-zero length buffers that do not end with a full 2-byte 12758EndTag 12759cause a fatal exception. 12760 12761Fixed a possible structure overwrite in the AcpiGetObjectInfo external 12762interface. (With assistance from Thomas Renninger) 12763 12764Code and Data Size: The current and previous library sizes for the core 12765subsystem are shown below. These are the code and data sizes for the 12766acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12767These 12768values do not include any ACPI driver or OSPM code. The debug version of 12769the 12770code includes the debug output trace mechanism and has a much larger code 12771and data size. Note that these values will vary depending on the 12772efficiency 12773of the compiler and the compiler options used during generation. 12774 12775 Previous Release: 12776 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 12777 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 12778 Current Release: 12779 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 12780 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 12781 12782 127832) iASL Compiler/Disassembler: 12784 12785Fixed an internal error that was generated for any forward references to 12786ASL 12787Alias objects. 12788 12789---------------------------------------- 1279013 January 2006. Summary of changes for version 20060113: 12791 127921) ACPI CA Core Subsystem: 12793 12794Added 2006 copyright to all module headers and signons. This affects 12795virtually every file in the ACPICA core subsystem, iASL compiler, and the 12796utilities. 12797 12798Enhanced the ACPICA error reporting in order to simplify user migration 12799to 12800the non-debug version of ACPICA. Replaced all instances of the 12801ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 12802debug 12803levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 12804respectively. This preserves all error and warning messages in the non- 12805debug 12806version of the ACPICA code (this has been referred to as the "debug lite" 12807option.) Over 200 cases were converted to create a total of over 380 12808error/warning messages across the ACPICA code. This increases the code 12809and 12810data size of the default non-debug version of the code somewhat (about 1281113K), 12812but all error/warning reporting may be disabled if desired (and code 12813eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 12814configuration option. The size of the debug version of ACPICA remains 12815about 12816the same. 12817 12818Fixed a memory leak within the AML Debugger "Set" command. One object was 12819not properly deleted for every successful invocation of the command. 12820 12821Code and Data Size: The current and previous library sizes for the core 12822subsystem are shown below. These are the code and data sizes for the 12823acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12824These 12825values do not include any ACPI driver or OSPM code. The debug version of 12826the 12827code includes the debug output trace mechanism and has a much larger code 12828and data size. Note that these values will vary depending on the 12829efficiency 12830of the compiler and the compiler options used during generation. 12831 12832 Previous Release: 12833 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12834 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12835 Current Release: 12836 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 12837 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 12838 12839 128402) iASL Compiler/Disassembler: 12841 12842The compiler now officially supports the ACPI 3.0a specification that was 12843released on December 30, 2005. (Specification is available at 12844www.acpi.info) 12845 12846---------------------------------------- 1284716 December 2005. Summary of changes for version 20051216: 12848 128491) ACPI CA Core Subsystem: 12850 12851Implemented optional support to allow unresolved names within ASL Package 12852objects. A null object is inserted in the package when a named reference 12853cannot be located in the current namespace. Enabled via the interpreter 12854slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 12855machines 12856that contain such code. 12857 12858Implemented an optimization to the initialization sequence that can 12859improve 12860boot time. During ACPI device initialization, the _STA method is now run 12861if 12862and only if the _INI method exists. The _STA method is used to determine 12863if 12864the device is present; An _INI can only be run if _STA returns present, 12865but 12866it is a waste of time to run the _STA method if the _INI does not exist. 12867(Prototype and assistance from Dong Wei) 12868 12869Implemented use of the C99 uintptr_t for the pointer casting macros if it 12870is 12871available in the current compiler. Otherwise, the default (void *) cast 12872is 12873used as before. 12874 12875Fixed some possible memory leaks found within the execution path of the 12876Break, Continue, If, and CreateField operators. (Valery Podrezov) 12877 12878Fixed a problem introduced in the 20051202 release where an exception is 12879generated during method execution if a control method attempts to declare 12880another method. 12881 12882Moved resource descriptor string constants that are used by both the AML 12883disassembler and AML debugger to the common utilities directory so that 12884these components are independent. 12885 12886Implemented support in the AcpiExec utility (-e switch) to globally 12887ignore 12888exceptions during control method execution (method is not aborted.) 12889 12890Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 12891generation. 12892 12893Code and Data Size: The current and previous library sizes for the core 12894subsystem are shown below. These are the code and data sizes for the 12895acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12896These 12897values do not include any ACPI driver or OSPM code. The debug version of 12898the 12899code includes the debug output trace mechanism and has a much larger code 12900and data size. Note that these values will vary depending on the 12901efficiency 12902of the compiler and the compiler options used during generation. 12903 12904 Previous Release: 12905 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12906 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12907 Current Release: 12908 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12909 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12910 12911 129122) iASL Compiler/Disassembler: 12913 12914Fixed a problem where a CPU stack overflow fault could occur if a 12915recursive 12916method call was made from within a Return statement. 12917 12918---------------------------------------- 1291902 December 2005. Summary of changes for version 20051202: 12920 129211) ACPI CA Core Subsystem: 12922 12923Modified the parsing of control methods to no longer create namespace 12924objects during the first pass of the parse. Objects are now created only 12925during the execute phase, at the moment the namespace creation operator 12926is 12927encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 12928This 12929should eliminate ALREADY_EXISTS exceptions seen on some machines where 12930reentrant control methods are protected by an AML mutex. The mutex will 12931now 12932correctly block multiple threads from attempting to create the same 12933object 12934more than once. 12935 12936Increased the number of available Owner Ids for namespace object tracking 12937from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 12938on 12939some machines with a large number of ACPI tables (either static or 12940dynamic). 12941 12942Fixed a problem with the AcpiExec utility where a fault could occur when 12943the 12944-b switch (batch mode) is used. 12945 12946Enhanced the namespace dump routine to output the owner ID for each 12947namespace object. 12948 12949Code and Data Size: The current and previous library sizes for the core 12950subsystem are shown below. These are the code and data sizes for the 12951acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12952These 12953values do not include any ACPI driver or OSPM code. The debug version of 12954the 12955code includes the debug output trace mechanism and has a much larger code 12956and data size. Note that these values will vary depending on the 12957efficiency 12958of the compiler and the compiler options used during generation. 12959 12960 Previous Release: 12961 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12962 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12963 Current Release: 12964 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12965 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12966 12967 129682) iASL Compiler/Disassembler: 12969 12970Fixed a parse error during compilation of certain Switch/Case constructs. 12971To 12972simplify the parse, the grammar now allows for multiple Default 12973statements 12974and this error is now detected and flagged during the analysis phase. 12975 12976Disassembler: The disassembly now includes the contents of the original 12977table header within a comment at the start of the file. This includes the 12978name and version of the original ASL compiler. 12979 12980---------------------------------------- 1298117 November 2005. Summary of changes for version 20051117: 12982 129831) ACPI CA Core Subsystem: 12984 12985Fixed a problem in the AML parser where the method thread count could be 12986decremented below zero if any errors occurred during the method parse 12987phase. 12988This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 12989machines. 12990This also fixed a related regression with the mechanism that detects and 12991corrects methods that cannot properly handle reentrancy (related to the 12992deployment of the new OwnerId mechanism.) 12993 12994Eliminated the pre-parsing of control methods (to detect errors) during 12995table load. Related to the problem above, this was causing unwind issues 12996if 12997any errors occurred during the parse, and it seemed to be overkill. A 12998table 12999load should not be aborted if there are problems with any single control 13000method, thus rendering this feature rather pointless. 13001 13002Fixed a problem with the new table-driven resource manager where an 13003internal 13004buffer overflow could occur for small resource templates. 13005 13006Implemented a new external interface, AcpiGetVendorResource. This 13007interface 13008will find and return a vendor-defined resource descriptor within a _CRS 13009or 13010_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 13011Helgaas. 13012 13013Removed the length limit (200) on string objects as per the upcoming ACPI 130143.0A specification. This affects the following areas of the interpreter: 130151) 13016any implicit conversion of a Buffer to a String, 2) a String object 13017result 13018of the ASL Concatenate operator, 3) the String object result of the ASL 13019ToString operator. 13020 13021Fixed a problem in the Windows OS interface layer (OSL) where a 13022WAIT_FOREVER 13023on a semaphore object would incorrectly timeout. This allows the 13024multithreading features of the AcpiExec utility to work properly under 13025Windows. 13026 13027Updated the Linux makefiles for the iASL compiler and AcpiExec to include 13028the recently added file named "utresrc.c". 13029 13030Code and Data Size: The current and previous library sizes for the core 13031subsystem are shown below. These are the code and data sizes for the 13032acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13033These 13034values do not include any ACPI driver or OSPM code. The debug version of 13035the 13036code includes the debug output trace mechanism and has a much larger code 13037and data size. Note that these values will vary depending on the 13038efficiency 13039of the compiler and the compiler options used during generation. 13040 13041 Previous Release: 13042 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 13043 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13044 Current Release: 13045 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 13046 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13047 13048 130492) iASL Compiler/Disassembler: 13050 13051Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 13052specification. For the iASL compiler, this means that string literals 13053within 13054the source ASL can be of any length. 13055 13056Enhanced the listing output to dump the AML code for resource descriptors 13057immediately after the ASL code for each descriptor, instead of in a block 13058at 13059the end of the entire resource template. 13060 13061Enhanced the compiler debug output to dump the entire original parse tree 13062constructed during the parse phase, before any transforms are applied to 13063the 13064tree. The transformed tree is dumped also. 13065 13066---------------------------------------- 1306702 November 2005. Summary of changes for version 20051102: 13068 130691) ACPI CA Core Subsystem: 13070 13071Modified the subsystem initialization sequence to improve GPE support. 13072The 13073GPE initialization has been split into two parts in order to defer 13074execution 13075of the _PRW methods (Power Resources for Wake) until after the hardware 13076is 13077fully initialized and the SCI handler is installed. This allows the _PRW 13078methods to access fields protected by the Global Lock. This will fix 13079systems 13080where a NO_GLOBAL_LOCK exception has been seen during initialization. 13081 13082Converted the ACPI internal object disassemble and display code within 13083the 13084AML debugger to fully table-driven operation, reducing code size and 13085increasing maintainability. 13086 13087Fixed a regression with the ConcatenateResTemplate() ASL operator 13088introduced 13089in the 20051021 release. 13090 13091Implemented support for "local" internal ACPI object types within the 13092debugger "Object" command and the AcpiWalkNamespace external interfaces. 13093These local types include RegionFields, BankFields, IndexFields, Alias, 13094and 13095reference objects. 13096 13097Moved common AML resource handling code into a new file, "utresrc.c". 13098This 13099code is shared by both the Resource Manager and the AML Debugger. 13100 13101Code and Data Size: The current and previous library sizes for the core 13102subsystem are shown below. These are the code and data sizes for the 13103acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13104These 13105values do not include any ACPI driver or OSPM code. The debug version of 13106the 13107code includes the debug output trace mechanism and has a much larger code 13108and data size. Note that these values will vary depending on the 13109efficiency 13110of the compiler and the compiler options used during generation. 13111 13112 Previous Release: 13113 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 13114 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 13115 Current Release: 13116 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 13117 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13118 13119 131202) iASL Compiler/Disassembler: 13121 13122Fixed a problem with very large initializer lists (more than 4000 13123elements) 13124for both Buffer and Package objects where the parse stack could overflow. 13125 13126Enhanced the pre-compile source code scan for non-ASCII characters to 13127ignore 13128characters within comment fields. The scan is now always performed and is 13129no 13130longer optional, detecting invalid characters within a source file 13131immediately rather than during the parse phase or later. 13132 13133Enhanced the ASL grammar definition to force early reductions on all 13134list- 13135style grammar elements so that the overall parse stack usage is greatly 13136reduced. This should improve performance and reduce the possibility of 13137parse 13138stack overflow. 13139 13140Eliminated all reduce/reduce conflicts in the iASL parser generation. 13141Also, 13142with the addition of a %expected statement, the compiler generates from 13143source with no warnings. 13144 13145Fixed a possible segment fault in the disassembler if the input filename 13146does not contain a "dot" extension (Thomas Renninger). 13147 13148---------------------------------------- 1314921 October 2005. Summary of changes for version 20051021: 13150 131511) ACPI CA Core Subsystem: 13152 13153Implemented support for the EM64T and other x86-64 processors. This 13154essentially entails recognizing that these processors support non-aligned 13155memory transfers. Previously, all 64-bit processors were assumed to lack 13156hardware support for non-aligned transfers. 13157 13158Completed conversion of the Resource Manager to nearly full table-driven 13159operation. Specifically, the resource conversion code (convert AML to 13160internal format and the reverse) and the debug code to dump internal 13161resource descriptors are fully table-driven, reducing code and data size 13162and 13163improving maintainability. 13164 13165The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 13166word 13167on 64-bit processors instead of a fixed 32-bit word. (With assistance 13168from 13169Alexey Starikovskiy) 13170 13171Implemented support within the resource conversion code for the Type- 13172Specific byte within the various ACPI 3.0 *WordSpace macros. 13173 13174Fixed some issues within the resource conversion code for the type- 13175specific 13176flags for both Memory and I/O address resource descriptors. For Memory, 13177implemented support for the MTP and TTP flags. For I/O, split the TRS and 13178TTP flags into two separate fields. 13179 13180Code and Data Size: The current and previous library sizes for the core 13181subsystem are shown below. These are the code and data sizes for the 13182acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13183These 13184values do not include any ACPI driver or OSPM code. The debug version of 13185the 13186code includes the debug output trace mechanism and has a much larger code 13187and data size. Note that these values will vary depending on the 13188efficiency 13189of the compiler and the compiler options used during generation. 13190 13191 Previous Release: 13192 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 13193 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 13194 Current Release: 13195 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 13196 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 13197 13198 13199 132002) iASL Compiler/Disassembler: 13201 13202Relaxed a compiler restriction that disallowed a ResourceIndex byte if 13203the 13204corresponding ResourceSource string was not also present in a resource 13205descriptor declaration. This restriction caused problems with existing 13206AML/ASL code that includes the Index byte without the string. When such 13207AML 13208was disassembled, it could not be compiled without modification. Further, 13209the modified code created a resource template with a different size than 13210the 13211original, breaking code that used fixed offsets into the resource 13212template 13213buffer. 13214 13215Removed a recent feature of the disassembler to ignore a lone 13216ResourceIndex 13217byte. This byte is now emitted if present so that the exact AML can be 13218reproduced when the disassembled code is recompiled. 13219 13220Improved comments and text alignment for the resource descriptor code 13221emitted by the disassembler. 13222 13223Implemented disassembler support for the ACPI 3.0 AccessSize field within 13224a 13225Register() resource descriptor. 13226 13227---------------------------------------- 1322830 September 2005. Summary of changes for version 20050930: 13229 132301) ACPI CA Core Subsystem: 13231 13232Completed a major overhaul of the Resource Manager code - specifically, 13233optimizations in the area of the AML/internal resource conversion code. 13234The 13235code has been optimized to simplify and eliminate duplicated code, CPU 13236stack 13237use has been decreased by optimizing function parameters and local 13238variables, and naming conventions across the manager have been 13239standardized 13240for clarity and ease of maintenance (this includes function, parameter, 13241variable, and struct/typedef names.) The update may force changes in some 13242driver code, depending on how resources are handled by the host OS. 13243 13244All Resource Manager dispatch and information tables have been moved to a 13245single location for clarity and ease of maintenance. One new file was 13246created, named "rsinfo.c". 13247 13248The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 13249guarantee that the argument is not evaluated twice, making them less 13250prone 13251to macro side-effects. However, since there exists the possibility of 13252additional stack use if a particular compiler cannot optimize them (such 13253as 13254in the debug generation case), the original macros are optionally 13255available. 13256Note that some invocations of the return_VALUE macro may now cause size 13257mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 13258to 13259eliminate these. (From Randy Dunlap) 13260 13261Implemented a new mechanism to enable debug tracing for individual 13262control 13263methods. A new external interface, AcpiDebugTrace, is provided to enable 13264this mechanism. The intent is to allow the host OS to easily enable and 13265disable tracing for problematic control methods. This interface can be 13266easily exposed to a user or debugger interface if desired. See the file 13267psxface.c for details. 13268 13269AcpiUtCallocate will now return a valid pointer if a length of zero is 13270specified - a length of one is used and a warning is issued. This matches 13271the behavior of AcpiUtAllocate. 13272 13273Code and Data Size: The current and previous library sizes for the core 13274subsystem are shown below. These are the code and data sizes for the 13275acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13276These 13277values do not include any ACPI driver or OSPM code. The debug version of 13278the 13279code includes the debug output trace mechanism and has a much larger code 13280and data size. Note that these values will vary depending on the 13281efficiency 13282of the compiler and the compiler options used during generation. 13283 13284 Previous Release: 13285 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 13286 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 13287 Current Release: 13288 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 13289 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 13290 13291 132922) iASL Compiler/Disassembler: 13293 13294A remark is issued if the effective compile-time length of a package or 13295buffer is zero. Previously, this was a warning. 13296 13297---------------------------------------- 1329816 September 2005. Summary of changes for version 20050916: 13299 133001) ACPI CA Core Subsystem: 13301 13302Fixed a problem within the Resource Manager where support for the Generic 13303Register descriptor was not fully implemented. This descriptor is now 13304fully 13305recognized, parsed, disassembled, and displayed. 13306 13307Completely restructured the Resource Manager code to utilize table-driven 13308dispatch and lookup, eliminating many of the large switch() statements. 13309This 13310reduces overall subsystem code size and code complexity. Affects the 13311resource parsing and construction, disassembly, and debug dump output. 13312 13313Cleaned up and restructured the debug dump output for all resource 13314descriptors. Improved readability of the output and reduced code size. 13315 13316Fixed a problem where changes to internal data structures caused the 13317optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 13318 13319Code and Data Size: The current and previous library sizes for the core 13320subsystem are shown below. These are the code and data sizes for the 13321acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13322These 13323values do not include any ACPI driver or OSPM code. The debug version of 13324the 13325code includes the debug output trace mechanism and has a much larger code 13326and data size. Note that these values will vary depending on the 13327efficiency 13328of the compiler and the compiler options used during generation. 13329 13330 Previous Release: 13331 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 13332 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 13333 Current Release: 13334 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 13335 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 13336 13337 133382) iASL Compiler/Disassembler: 13339 13340Updated the disassembler to automatically insert an EndDependentFn() 13341macro 13342into the ASL stream if this macro is missing in the original AML code, 13343simplifying compilation of the resulting ASL module. 13344 13345Fixed a problem in the disassembler where a disassembled ResourceSource 13346string (within a large resource descriptor) was not surrounded by quotes 13347and 13348not followed by a comma, causing errors when the resulting ASL module was 13349compiled. Also, escape sequences within a ResourceSource string are now 13350handled correctly (especially "\\") 13351 13352---------------------------------------- 1335302 September 2005. Summary of changes for version 20050902: 13354 133551) ACPI CA Core Subsystem: 13356 13357Fixed a problem with the internal Owner ID allocation and deallocation 13358mechanisms for control method execution and recursive method invocation. 13359This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 13360messages seen on some systems. Recursive method invocation depth is 13361currently limited to 255. (Alexey Starikovskiy) 13362 13363Completely eliminated all vestiges of support for the "module-level 13364executable code" until this support is fully implemented and debugged. 13365This 13366should eliminate the NO_RETURN_VALUE exceptions seen during table load on 13367some systems that invoke this support. 13368 13369Fixed a problem within the resource manager code where the transaction 13370flags 13371for a 64-bit address descriptor were handled incorrectly in the type- 13372specific flag byte. 13373 13374Consolidated duplicate code within the address descriptor resource 13375manager 13376code, reducing overall subsystem code size. 13377 13378Fixed a fault when using the AML debugger "disassemble" command to 13379disassemble individual control methods. 13380 13381Removed references to the "release_current" directory within the Unix 13382release package. 13383 13384Code and Data Size: The current and previous core subsystem library sizes 13385are shown below. These are the code and data sizes for the acpica.lib 13386produced by the Microsoft Visual C++ 6.0 compiler. These values do not 13387include any ACPI driver or OSPM code. The debug version of the code 13388includes 13389the debug output trace mechanism and has a much larger code and data 13390size. 13391Note that these values will vary depending on the efficiency of the 13392compiler 13393and the compiler options used during generation. 13394 13395 Previous Release: 13396 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13397 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 13398 Current Release: 13399 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 13400 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 13401 13402 134032) iASL Compiler/Disassembler: 13404 13405Implemented an error check for illegal duplicate values in the interrupt 13406and 13407dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 13408Interrupt(). 13409 13410Implemented error checking for the Irq() and IrqNoFlags() macros to 13411detect 13412too many values in the interrupt list (16 max) and invalid values in the 13413list (range 0 - 15) 13414 13415The maximum length string literal within an ASL file is now restricted to 13416200 characters as per the ACPI specification. 13417 13418Fixed a fault when using the -ln option (generate namespace listing). 13419 13420Implemented an error check to determine if a DescriptorName within a 13421resource descriptor has already been used within the current scope. 13422 13423---------------------------------------- 1342415 August 2005. Summary of changes for version 20050815: 13425 134261) ACPI CA Core Subsystem: 13427 13428Implemented a full bytewise compare to determine if a table load request 13429is 13430attempting to load a duplicate table. The compare is performed if the 13431table 13432signatures and table lengths match. This will allow different tables with 13433the same OEM Table ID and revision to be loaded - probably against the 13434ACPI 13435specification, but discovered in the field nonetheless. 13436 13437Added the changes.txt logfile to each of the zipped release packages. 13438 13439Code and Data Size: Current and previous core subsystem library sizes are 13440shown below. These are the code and data sizes for the acpica.lib 13441produced 13442by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13443any ACPI driver or OSPM code. The debug version of the code includes the 13444debug output trace mechanism and has a much larger code and data size. 13445Note 13446that these values will vary depending on the efficiency of the compiler 13447and 13448the compiler options used during generation. 13449 13450 Previous Release: 13451 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13452 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 13453 Current Release: 13454 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13455 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 13456 13457 134582) iASL Compiler/Disassembler: 13459 13460Fixed a problem where incorrect AML code could be generated for Package 13461objects if optimization is disabled (via the -oa switch). 13462 13463Fixed a problem with where incorrect AML code is generated for variable- 13464length packages when the package length is not specified and the number 13465of 13466initializer values is greater than 255. 13467 13468 13469---------------------------------------- 1347029 July 2005. Summary of changes for version 20050729: 13471 134721) ACPI CA Core Subsystem: 13473 13474Implemented support to ignore an attempt to install/load a particular 13475ACPI 13476table more than once. Apparently there exists BIOS code that repeatedly 13477attempts to load the same SSDT upon certain events. With assistance from 13478Venkatesh Pallipadi. 13479 13480Restructured the main interface to the AML parser in order to correctly 13481handle all exceptional conditions. This will prevent leakage of the 13482OwnerId 13483resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 13484some 13485machines. With assistance from Alexey Starikovskiy. 13486 13487Support for "module level code" has been disabled in this version due to 13488a 13489number of issues that have appeared on various machines. The support can 13490be 13491enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 13492compilation. When the issues are fully resolved, the code will be enabled 13493by 13494default again. 13495 13496Modified the internal functions for debug print support to define the 13497FunctionName parameter as a (const char *) for compatibility with 13498compiler 13499built-in macros such as __FUNCTION__, etc. 13500 13501Linted the entire ACPICA source tree for both 32-bit and 64-bit. 13502 13503Implemented support to display an object count summary for the AML 13504Debugger 13505commands Object and Methods. 13506 13507Code and Data Size: Current and previous core subsystem library sizes are 13508shown below. These are the code and data sizes for the acpica.lib 13509produced 13510by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13511any ACPI driver or OSPM code. The debug version of the code includes the 13512debug output trace mechanism and has a much larger code and data size. 13513Note 13514that these values will vary depending on the efficiency of the compiler 13515and 13516the compiler options used during generation. 13517 13518 Previous Release: 13519 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 13520 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 13521 Current Release: 13522 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13523 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 13524 13525 135262) iASL Compiler/Disassembler: 13527 13528Fixed a regression that appeared in the 20050708 version of the compiler 13529where an error message was inadvertently emitted for invocations of the 13530_OSI 13531reserved control method. 13532 13533---------------------------------------- 1353408 July 2005. Summary of changes for version 20050708: 13535 135361) ACPI CA Core Subsystem: 13537 13538The use of the CPU stack in the debug version of the subsystem has been 13539considerably reduced. Previously, a debug structure was declared in every 13540function that used the debug macros. This structure has been removed in 13541favor of declaring the individual elements as parameters to the debug 13542functions. This reduces the cumulative stack use during nested execution 13543of 13544ACPI function calls at the cost of a small increase in the code size of 13545the 13546debug version of the subsystem. With assistance from Alexey Starikovskiy 13547and 13548Len Brown. 13549 13550Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 13551headers to define a macro that will return the current function name at 13552runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 13553by 13554the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 13555compiler-dependent header, the function name is saved on the CPU stack 13556(one 13557pointer per function.) This mechanism is used because apparently there 13558exists no standard ANSI-C defined macro that that returns the function 13559name. 13560 13561Redesigned and reimplemented the "Owner ID" mechanism used to track 13562namespace objects created/deleted by ACPI tables and control method 13563execution. A bitmap is now used to allocate and free the IDs, thus 13564solving 13565the wraparound problem present in the previous implementation. The size 13566of 13567the namespace node descriptor was reduced by 2 bytes as a result (Alexey 13568Starikovskiy). 13569 13570Removed the UINT32_BIT and UINT16_BIT types that were used for the 13571bitfield 13572flag definitions within the headers for the predefined ACPI tables. These 13573have been replaced by UINT8_BIT in order to increase the code portability 13574of 13575the subsystem. If the use of UINT8 remains a problem, we may be forced to 13576eliminate bitfields entirely because of a lack of portability. 13577 13578Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 13579This 13580is a frequently used function and this improvement increases the 13581performance 13582of the entire subsystem (Alexey Starikovskiy). 13583 13584Fixed several possible memory leaks and the inverse - premature object 13585deletion (Alexey Starikovskiy). 13586 13587Code and Data Size: Current and previous core subsystem library sizes are 13588shown below. These are the code and data sizes for the acpica.lib 13589produced 13590by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13591any ACPI driver or OSPM code. The debug version of the code includes the 13592debug output trace mechanism and has a much larger code and data size. 13593Note 13594that these values will vary depending on the efficiency of the compiler 13595and 13596the compiler options used during generation. 13597 13598 Previous Release: 13599 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 13600 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 13601 Current Release: 13602 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 13603 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 13604 13605---------------------------------------- 1360624 June 2005. Summary of changes for version 20050624: 13607 136081) ACPI CA Core Subsystem: 13609 13610Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 13611the host-defined cache object. This allows the OSL implementation to 13612define 13613and type this object in any manner desired, simplifying the OSL 13614implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 13615Linux, and should be defined in the OS-specific header file for other 13616operating systems as required. 13617 13618Changed the interface to AcpiOsAcquireObject to directly return the 13619requested object as the function return (instead of ACPI_STATUS.) This 13620change was made for performance reasons, since this is the purpose of the 13621interface in the first place. AcpiOsAcquireObject is now similar to the 13622AcpiOsAllocate interface. 13623 13624Implemented a new AML debugger command named Businfo. This command 13625displays 13626information about all devices that have an associate _PRT object. The 13627_ADR, 13628_HID, _UID, and _CID are displayed for these devices. 13629 13630Modified the initialization sequence in AcpiInitializeSubsystem to call 13631the 13632OSL interface AcpiOslInitialize first, before any local initialization. 13633This 13634change was required because the global initialization now calls OSL 13635interfaces. 13636 13637Enhanced the Dump command to display the entire contents of Package 13638objects 13639(including all sub-objects and their values.) 13640 13641Restructured the code base to split some files because of size and/or 13642because the code logically belonged in a separate file. New files are 13643listed 13644below. All makefiles and project files included in the ACPI CA release 13645have 13646been updated. 13647 utilities/utcache.c /* Local cache interfaces */ 13648 utilities/utmutex.c /* Local mutex support */ 13649 utilities/utstate.c /* State object support */ 13650 interpreter/parser/psloop.c /* Main AML parse loop */ 13651 13652Code and Data Size: Current and previous core subsystem library sizes are 13653shown below. These are the code and data sizes for the acpica.lib 13654produced 13655by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13656any ACPI driver or OSPM code. The debug version of the code includes the 13657debug output trace mechanism and has a much larger code and data size. 13658Note 13659that these values will vary depending on the efficiency of the compiler 13660and 13661the compiler options used during generation. 13662 13663 Previous Release: 13664 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 13665 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 13666 Current Release: 13667 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 13668 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 13669 13670 136712) iASL Compiler/Disassembler: 13672 13673Fixed a regression introduced in version 20050513 where the use of a 13674Package 13675object within a Case() statement caused a compile time exception. The 13676original behavior has been restored (a Match() operator is emitted.) 13677 13678---------------------------------------- 1367917 June 2005. Summary of changes for version 20050617: 13680 136811) ACPI CA Core Subsystem: 13682 13683Moved the object cache operations into the OS interface layer (OSL) to 13684allow 13685the host OS to handle these operations if desired (for example, the Linux 13686OSL will invoke the slab allocator). This support is optional; the 13687compile 13688time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 13689cache 13690code in the ACPI CA core. The new OSL interfaces are shown below. See 13691utalloc.c for an example implementation, and acpiosxf.h for the exact 13692interface definitions. With assistance from Alexey Starikovskiy. 13693 AcpiOsCreateCache 13694 AcpiOsDeleteCache 13695 AcpiOsPurgeCache 13696 AcpiOsAcquireObject 13697 AcpiOsReleaseObject 13698 13699Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 13700return 13701and restore a flags parameter. This fits better with many OS lock models. 13702Note: the current execution state (interrupt handler or not) is no longer 13703passed to these interfaces. If necessary, the OSL must determine this 13704state 13705by itself, a simple and fast operation. With assistance from Alexey 13706Starikovskiy. 13707 13708Fixed a problem in the ACPI table handling where a valid XSDT was assumed 13709present if the revision of the RSDP was 2 or greater. According to the 13710ACPI 13711specification, the XSDT is optional in all cases, and the table manager 13712therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 13713Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 13714contain 13715only the RSDT. 13716 13717Fixed an interpreter problem with the Mid() operator in the case of an 13718input 13719string where the resulting output string is of zero length. It now 13720correctly 13721returns a valid, null terminated string object instead of a string object 13722with a null pointer. 13723 13724Fixed a problem with the control method argument handling to allow a 13725store 13726to an Arg object that already contains an object of type Device. The 13727Device 13728object is now correctly overwritten. Previously, an error was returned. 13729 13730 13731Enhanced the debugger Find command to emit object values in addition to 13732the 13733found object pathnames. The output format is the same as the dump 13734namespace 13735command. 13736 13737Enhanced the debugger Set command. It now has the ability to set the 13738value 13739of any Named integer object in the namespace (Previously, only method 13740locals 13741and args could be set.) 13742 13743Code and Data Size: Current and previous core subsystem library sizes are 13744shown below. These are the code and data sizes for the acpica.lib 13745produced 13746by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13747any ACPI driver or OSPM code. The debug version of the code includes the 13748debug output trace mechanism and has a much larger code and data size. 13749Note 13750that these values will vary depending on the efficiency of the compiler 13751and 13752the compiler options used during generation. 13753 13754 Previous Release: 13755 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 13756 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 13757 Current Release: 13758 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 13759 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 13760 13761 137622) iASL Compiler/Disassembler: 13763 13764Fixed a regression in the disassembler where if/else/while constructs 13765were 13766output incorrectly. This problem was introduced in the previous release 13767(20050526). This problem also affected the single-step disassembly in the 13768debugger. 13769 13770Fixed a problem where compiling the reserved _OSI method would randomly 13771(but 13772rarely) produce compile errors. 13773 13774Enhanced the disassembler to emit compilable code in the face of 13775incorrect 13776AML resource descriptors. If the optional ResourceSourceIndex is present, 13777but the ResourceSource is not, do not emit the ResourceSourceIndex in the 13778disassembly. Otherwise, the resulting code cannot be compiled without 13779errors. 13780 13781---------------------------------------- 1378226 May 2005. Summary of changes for version 20050526: 13783 137841) ACPI CA Core Subsystem: 13785 13786Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 13787the module level (not within a control method.) These opcodes are 13788executed 13789exactly once at the time the table is loaded. This type of code was legal 13790up 13791until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 13792in 13793order to provide backwards compatibility with earlier BIOS 13794implementations. 13795This eliminates the "Encountered executable code at module level" warning 13796that was previously generated upon detection of such code. 13797 13798Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 13799inadvertently be generated during the lookup of namespace objects in the 13800second pass parse of ACPI tables and control methods. It appears that 13801this 13802problem could occur during the resolution of forward references to 13803namespace 13804objects. 13805 13806Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 13807corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 13808allows the deadlock detection debug code to be compiled out in the normal 13809case, improving mutex performance (and overall subsystem performance) 13810considerably. 13811 13812Implemented a handful of miscellaneous fixes for possible memory leaks on 13813error conditions and error handling control paths. These fixes were 13814suggested by FreeBSD and the Coverity Prevent source code analysis tool. 13815 13816Added a check for a null RSDT pointer in AcpiGetFirmwareTable 13817(tbxfroot.c) 13818to prevent a fault in this error case. 13819 13820Code and Data Size: Current and previous core subsystem library sizes are 13821shown below. These are the code and data sizes for the acpica.lib 13822produced 13823by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13824any ACPI driver or OSPM code. The debug version of the code includes the 13825debug output trace mechanism and has a much larger code and data size. 13826Note 13827that these values will vary depending on the efficiency of the compiler 13828and 13829the compiler options used during generation. 13830 13831 Previous Release: 13832 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13833 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13834 Current Release: 13835 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 13836 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 13837 13838 138392) iASL Compiler/Disassembler: 13840 13841Implemented support to allow Type 1 and Type 2 ASL operators to appear at 13842the module level (not within a control method.) These operators will be 13843executed once at the time the table is loaded. This type of code was 13844legal 13845up until the release of ACPI 2.0B (2002) and is now supported by the iASL 13846compiler in order to provide backwards compatibility with earlier BIOS 13847ASL 13848code. 13849 13850The ACPI integer width (specified via the table revision ID or the -r 13851override, 32 or 64 bits) is now used internally during compile-time 13852constant 13853folding to ensure that constants are truncated to 32 bits if necessary. 13854Previously, the revision ID value was only emitted in the AML table 13855header. 13856 13857An error message is now generated for the Mutex and Method operators if 13858the 13859SyncLevel parameter is outside the legal range of 0 through 15. 13860 13861Fixed a problem with the Method operator ParameterTypes list handling 13862(ACPI 138633.0). Previously, more than 2 types or 2 arguments generated a syntax 13864error. 13865The actual underlying implementation of method argument typechecking is 13866still under development, however. 13867 13868---------------------------------------- 1386913 May 2005. Summary of changes for version 20050513: 13870 138711) ACPI CA Core Subsystem: 13872 13873Implemented support for PCI Express root bridges -- added support for 13874device 13875PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 13876 13877The interpreter now automatically truncates incoming 64-bit constants to 1387832 13879bits if currently executing out of a 32-bit ACPI table (Revision < 2). 13880This 13881also affects the iASL compiler constant folding. (Note: as per below, the 13882iASL compiler no longer allows 64-bit constants within 32-bit tables.) 13883 13884Fixed a problem where string and buffer objects with "static" pointers 13885(pointers to initialization data within an ACPI table) were not handled 13886consistently. The internal object copy operation now always copies the 13887data 13888to a newly allocated buffer, regardless of whether the source object is 13889static or not. 13890 13891Fixed a problem with the FromBCD operator where an implicit result 13892conversion was improperly performed while storing the result to the 13893target 13894operand. Since this is an "explicit conversion" operator, the implicit 13895conversion should never be performed on the output. 13896 13897Fixed a problem with the CopyObject operator where a copy to an existing 13898named object did not always completely overwrite the existing object 13899stored 13900at name. Specifically, a buffer-to-buffer copy did not delete the 13901existing 13902buffer. 13903 13904Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 13905and 13906structs for consistency. 13907 13908Code and Data Size: Current and previous core subsystem library sizes are 13909shown below. These are the code and data sizes for the acpica.lib 13910produced 13911by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13912any ACPI driver or OSPM code. The debug version of the code includes the 13913debug output trace mechanism and has a much larger code and data size. 13914Note 13915that these values will vary depending on the efficiency of the compiler 13916and 13917the compiler options used during generation. 13918 13919 Previous Release: 13920 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13921 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13922 Current Release: (Same sizes) 13923 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13924 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13925 13926 139272) iASL Compiler/Disassembler: 13928 13929The compiler now emits a warning if an attempt is made to generate a 64- 13930bit 13931integer constant from within a 32-bit ACPI table (Revision < 2). The 13932integer 13933is truncated to 32 bits. 13934 13935Fixed a problem with large package objects: if the static length of the 13936package is greater than 255, the "variable length package" opcode is 13937emitted. Previously, this caused an error. This requires an update to the 13938ACPI spec, since it currently (incorrectly) states that packages larger 13939than 13940255 elements are not allowed. 13941 13942The disassembler now correctly handles variable length packages and 13943packages 13944larger than 255 elements. 13945 13946---------------------------------------- 1394708 April 2005. Summary of changes for version 20050408: 13948 139491) ACPI CA Core Subsystem: 13950 13951Fixed three cases in the interpreter where an "index" argument to an ASL 13952function was still (internally) 32 bits instead of the required 64 bits. 13953This was the Index argument to the Index, Mid, and Match operators. 13954 13955The "strupr" function is now permanently local (AcpiUtStrupr), since this 13956is 13957not a POSIX-defined function and not present in most kernel-level C 13958libraries. All references to the C library strupr function have been 13959removed 13960from the headers. 13961 13962Completed the deployment of static functions/prototypes. All prototypes 13963with 13964the static attribute have been moved from the headers to the owning C 13965file. 13966 13967Implemented an extract option (-e) for the AcpiBin utility (AML binary 13968utility). This option allows the utility to extract individual ACPI 13969tables 13970from the output of AcpiDmp. It provides the same functionality of the 13971acpixtract.pl perl script without the worry of setting the correct perl 13972options. AcpiBin runs on Windows and has not yet been generated/validated 13973in 13974the Linux/Unix environment (but should be soon). 13975 13976Updated and fixed the table dump option for AcpiBin (-d). This option 13977converts a single ACPI table to a hex/ascii file, similar to the output 13978of 13979AcpiDmp. 13980 13981Code and Data Size: Current and previous core subsystem library sizes are 13982shown below. These are the code and data sizes for the acpica.lib 13983produced 13984by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13985any ACPI driver or OSPM code. The debug version of the code includes the 13986debug output trace mechanism and has a much larger code and data size. 13987Note 13988that these values will vary depending on the efficiency of the compiler 13989and 13990the compiler options used during generation. 13991 13992 Previous Release: 13993 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 13994 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 13995 Current Release: 13996 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13997 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13998 13999 140002) iASL Compiler/Disassembler: 14001 14002Disassembler fix: Added a check to ensure that the table length found in 14003the 14004ACPI table header within the input file is not longer than the actual 14005input 14006file size. This indicates some kind of file or table corruption. 14007 14008---------------------------------------- 1400929 March 2005. Summary of changes for version 20050329: 14010 140111) ACPI CA Core Subsystem: 14012 14013An error is now generated if an attempt is made to create a Buffer Field 14014of 14015length zero (A CreateField with a length operand of zero.) 14016 14017The interpreter now issues a warning whenever executable code at the 14018module 14019level is detected during ACPI table load. This will give some idea of the 14020prevalence of this type of code. 14021 14022Implemented support for references to named objects (other than control 14023methods) within package objects. 14024 14025Enhanced package object output for the debug object. Package objects are 14026now 14027completely dumped, showing all elements. 14028 14029Enhanced miscellaneous object output for the debug object. Any object can 14030now be written to the debug object (for example, a device object can be 14031written, and the type of the object will be displayed.) 14032 14033The "static" qualifier has been added to all local functions across both 14034the 14035core subsystem and the iASL compiler. 14036 14037The number of "long" lines (> 80 chars) within the source has been 14038significantly reduced, by about 1/3. 14039 14040Cleaned up all header files to ensure that all CA/iASL functions are 14041prototyped (even static functions) and the formatting is consistent. 14042 14043Two new header files have been added, acopcode.h and acnames.h. 14044 14045Removed several obsolete functions that were no longer used. 14046 14047Code and Data Size: Current and previous core subsystem library sizes are 14048shown below. These are the code and data sizes for the acpica.lib 14049produced 14050by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14051any ACPI driver or OSPM code. The debug version of the code includes the 14052debug output trace mechanism and has a much larger code and data size. 14053Note 14054that these values will vary depending on the efficiency of the compiler 14055and 14056the compiler options used during generation. 14057 14058 Previous Release: 14059 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14060 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 14061 Current Release: 14062 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 14063 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 14064 14065 14066 140672) iASL Compiler/Disassembler: 14068 14069Fixed a problem with the resource descriptor generation/support. For the 14070ResourceSourceIndex and the ResourceSource fields, both must be present, 14071or 14072both must be not present - can't have one without the other. 14073 14074The compiler now returns non-zero from the main procedure if any errors 14075have 14076occurred during the compilation. 14077 14078 14079---------------------------------------- 1408009 March 2005. Summary of changes for version 20050309: 14081 140821) ACPI CA Core Subsystem: 14083 14084The string-to-buffer implicit conversion code has been modified again 14085after 14086a change to the ACPI specification. In order to match the behavior of 14087the 14088other major ACPI implementation, the target buffer is no longer truncated 14089if 14090the source string is smaller than an existing target buffer. This change 14091requires an update to the ACPI spec, and should eliminate the recent 14092AE_AML_BUFFER_LIMIT issues. 14093 14094The "implicit return" support was rewritten to a new algorithm that 14095solves 14096the general case. Rather than attempt to determine when a method is about 14097to 14098exit, the result of every ASL operator is saved momentarily until the 14099very 14100next ASL operator is executed. Therefore, no matter how the method exits, 14101there will always be a saved implicit return value. This feature is only 14102enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 14103eliminate 14104AE_AML_NO_RETURN_VALUE errors when enabled. 14105 14106Implemented implicit conversion support for the predicate (operand) of 14107the 14108If, Else, and While operators. String and Buffer arguments are 14109automatically 14110converted to Integers. 14111 14112Changed the string-to-integer conversion behavior to match the new ACPI 14113errata: "If no integer object exists, a new integer is created. The ASCII 14114string is interpreted as a hexadecimal constant. Each string character is 14115interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 14116with the first character as the most significant digit, and ending with 14117the 14118first non-hexadecimal character or end-of-string." This means that the 14119first 14120non-hex character terminates the conversion and this is the code that was 14121changed. 14122 14123Fixed a problem where the ObjectType operator would fail (fault) when 14124used 14125on an Index of a Package which pointed to a null package element. The 14126operator now properly returns zero (Uninitialized) in this case. 14127 14128Fixed a problem where the While operator used excessive memory by not 14129properly popping the result stack during execution. There was no memory 14130leak 14131after execution, however. (Code provided by Valery Podrezov.) 14132 14133Fixed a problem where references to control methods within Package 14134objects 14135caused the method to be invoked, instead of producing a reference object 14136pointing to the method. 14137 14138Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 14139to 14140improve performance and reduce code size. (Code provided by Alexey 14141Starikovskiy.) 14142 14143Code and Data Size: Current and previous core subsystem library sizes are 14144shown below. These are the code and data sizes for the acpica.lib 14145produced 14146by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14147any ACPI driver or OSPM code. The debug version of the code includes the 14148debug output trace mechanism and has a much larger code and data size. 14149Note 14150that these values will vary depending on the efficiency of the compiler 14151and 14152the compiler options used during generation. 14153 14154 Previous Release: 14155 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14156 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 14157 Current Release: 14158 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14159 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 14160 14161 141622) iASL Compiler/Disassembler: 14163 14164Fixed a problem with the Return operator with no arguments. Since the AML 14165grammar for the byte encoding requires an operand for the Return opcode, 14166the 14167compiler now emits a Return(Zero) for this case. An ACPI specification 14168update has been written for this case. 14169 14170For tables other than the DSDT, namepath optimization is automatically 14171disabled. This is because SSDTs can be loaded anywhere in the namespace, 14172the 14173compiler has no knowledge of where, and thus cannot optimize namepaths. 14174 14175Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 14176inadvertently omitted from the ACPI specification, and will require an 14177update to the spec. 14178 14179The source file scan for ASCII characters is now optional (-a). This 14180change 14181was made because some vendors place non-ascii characters within comments. 14182However, the scan is simply a brute-force byte compare to ensure all 14183characters in the file are in the range 0x00 to 0x7F. 14184 14185Fixed a problem with the CondRefOf operator where the compiler was 14186inappropriately checking for the existence of the target. Since the point 14187of 14188the operator is to check for the existence of the target at run-time, the 14189compiler no longer checks for the target existence. 14190 14191Fixed a problem where errors generated from the internal AML interpreter 14192during constant folding were not handled properly, causing a fault. 14193 14194Fixed a problem with overly aggressive range checking for the Stall 14195operator. The valid range (max 255) is now only checked if the operand is 14196of 14197type Integer. All other operand types cannot be statically checked. 14198 14199Fixed a problem where control method references within the RefOf, 14200DeRefOf, 14201and ObjectType operators were not treated properly. They are now treated 14202as 14203actual references, not method invocations. 14204 14205Fixed and enhanced the "list namespace" option (-ln). This option was 14206broken 14207a number of releases ago. 14208 14209Improved error handling for the Field, IndexField, and BankField 14210operators. 14211The compiler now cleanly reports and recovers from errors in the field 14212component (FieldUnit) list. 14213 14214Fixed a disassembler problem where the optional ResourceDescriptor fields 14215TRS and TTP were not always handled correctly. 14216 14217Disassembler - Comments in output now use "//" instead of "/*" 14218 14219---------------------------------------- 1422028 February 2005. Summary of changes for version 20050228: 14221 142221) ACPI CA Core Subsystem: 14223 14224Fixed a problem where the result of an Index() operator (an object 14225reference) must increment the reference count on the target object for 14226the 14227life of the object reference. 14228 14229Implemented AML Interpreter and Debugger support for the new ACPI 3.0 14230Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 14231WordSpace 14232resource descriptors. 14233 14234Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 14235Space Descriptor" string, indicating interpreter support for the 14236descriptors 14237above. 14238 14239Implemented header support for the new ACPI 3.0 FADT flag bits. 14240 14241Implemented header support for the new ACPI 3.0 PCI Express bits for the 14242PM1 14243status/enable registers. 14244 14245Updated header support for the MADT processor local Apic struct and MADT 14246platform interrupt source struct for new ACPI 3.0 fields. 14247 14248Implemented header support for the SRAT and SLIT ACPI tables. 14249 14250Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 14251flag 14252at runtime. 14253 14254Code and Data Size: Current and previous core subsystem library sizes are 14255shown below. These are the code and data sizes for the acpica.lib 14256produced 14257by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14258any ACPI driver or OSPM code. The debug version of the code includes the 14259debug output trace mechanism and has a much larger code and data size. 14260Note 14261that these values will vary depending on the efficiency of the compiler 14262and 14263the compiler options used during generation. 14264 14265 Previous Release: 14266 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 14267 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 14268 Current Release: 14269 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14270 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 14271 14272 142732) iASL Compiler/Disassembler: 14274 14275Fixed a problem with the internal 64-bit String-to-integer conversion 14276with 14277strings less than two characters long. 14278 14279Fixed a problem with constant folding where the result of the Index() 14280operator can not be considered a constant. This means that Index() cannot 14281be 14282a type3 opcode and this will require an update to the ACPI specification. 14283 14284Disassembler: Implemented support for the TTP, MTP, and TRS resource 14285descriptor fields. These fields were inadvertently ignored and not output 14286in 14287the disassembly of the resource descriptor. 14288 14289 14290 ---------------------------------------- 1429111 February 2005. Summary of changes for version 20050211: 14292 142931) ACPI CA Core Subsystem: 14294 14295Implemented ACPI 3.0 support for implicit conversion within the Match() 14296operator. MatchObjects can now be of type integer, buffer, or string 14297instead 14298of just type integer. Package elements are implicitly converted to the 14299type 14300of the MatchObject. This change aligns the behavior of Match() with the 14301behavior of the other logical operators (LLess(), etc.) It also requires 14302an 14303errata change to the ACPI specification as this support was intended for 14304ACPI 3.0, but was inadvertently omitted. 14305 14306Fixed a problem with the internal implicit "to buffer" conversion. 14307Strings 14308that are converted to buffers will cause buffer truncation if the string 14309is 14310smaller than the target buffer. Integers that are converted to buffers 14311will 14312not cause buffer truncation, only zero extension (both as per the ACPI 14313spec.) The problem was introduced when code was added to truncate the 14314buffer, but this should not be performed in all cases, only the string 14315case. 14316 14317Fixed a problem with the Buffer and Package operators where the 14318interpreter 14319would get confused if two such operators were used as operands to an ASL 14320operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 14321stack was not being popped after the execution of these operators, 14322resulting 14323in an AE_NO_RETURN_VALUE exception. 14324 14325Fixed a problem with constructs of the form Store(Index(...),...). The 14326reference object returned from Index was inadvertently resolved to an 14327actual 14328value. This problem was introduced in version 20050114 when the behavior 14329of 14330Store() was modified to restrict the object types that can be used as the 14331source operand (to match the ACPI specification.) 14332 14333Reduced excessive stack use within the AcpiGetObjectInfo procedure. 14334 14335Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 14336 14337Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 14338 14339Code and Data Size: Current and previous core subsystem library sizes are 14340shown below. These are the code and data sizes for the acpica.lib 14341produced 14342by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14343any ACPI driver or OSPM code. The debug version of the code includes the 14344debug output trace mechanism and has a much larger code and data size. 14345Note 14346that these values will vary depending on the efficiency of the compiler 14347and 14348the compiler options used during generation. 14349 14350 Previous Release: 14351 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 14352 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 14353 Current Release: 14354 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 14355 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 14356 14357 143582) iASL Compiler/Disassembler: 14359 14360Fixed a code generation problem in the constant folding optimization code 14361where incorrect code was generated if a constant was reduced to a buffer 14362object (i.e., a reduced type 5 opcode.) 14363 14364Fixed a typechecking problem for the ToBuffer operator. Caused by an 14365incorrect return type in the internal opcode information table. 14366 14367---------------------------------------- 1436825 January 2005. Summary of changes for version 20050125: 14369 143701) ACPI CA Core Subsystem: 14371 14372Fixed a recently introduced problem with the Global Lock where the 14373underlying semaphore was not created. This problem was introduced in 14374version 20050114, and caused an AE_AML_NO_OPERAND exception during an 14375Acquire() operation on _GL. 14376 14377The local object cache is now optional, and is disabled by default. Both 14378AcpiExec and the iASL compiler enable the cache because they run in user 14379mode and this enhances their performance. #define 14380ACPI_ENABLE_OBJECT_CACHE 14381to enable the local cache. 14382 14383Fixed an issue in the internal function AcpiUtEvaluateObject concerning 14384the 14385optional "implicit return" support where an error was returned if no 14386return 14387object was expected, but one was implicitly returned. AE_OK is now 14388returned 14389in this case and the implicitly returned object is deleted. 14390AcpiUtEvaluateObject is only occasionally used, and only to execute 14391reserved 14392methods such as _STA and _INI where the return type is known up front. 14393 14394Fixed a few issues with the internal convert-to-integer code. It now 14395returns 14396an error if an attempt is made to convert a null string, a string of only 14397blanks/tabs, or a zero-length buffer. This affects both implicit 14398conversion 14399and explicit conversion via the ToInteger() operator. 14400 14401The internal debug code in AcpiUtAcquireMutex has been commented out. It 14402is 14403not needed for normal operation and should increase the performance of 14404the 14405entire subsystem. The code remains in case it is needed for debug 14406purposes 14407again. 14408 14409The AcpiExec source and makefile are included in the Unix/Linux package 14410for 14411the first time. 14412 14413Code and Data Size: Current and previous core subsystem library sizes are 14414shown below. These are the code and data sizes for the acpica.lib 14415produced 14416by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14417any ACPI driver or OSPM code. The debug version of the code includes the 14418debug output trace mechanism and has a much larger code and data size. 14419Note 14420that these values will vary depending on the efficiency of the compiler 14421and 14422the compiler options used during generation. 14423 14424 Previous Release: 14425 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 14426 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 14427 Current Release: 14428 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 14429 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 14430 144312) iASL Compiler/Disassembler: 14432 14433Switch/Case support: A warning is now issued if the type of the Switch 14434value 14435cannot be determined at compile time. For example, Switch(Arg0) will 14436generate the warning, and the type is assumed to be an integer. As per 14437the 14438ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 14439the 14440warning. 14441 14442Switch/Case support: Implemented support for buffer and string objects as 14443the switch value. This is an ACPI 3.0 feature, now that LEqual supports 14444buffers and strings. 14445 14446Switch/Case support: The emitted code for the LEqual() comparisons now 14447uses 14448the switch value as the first operand, not the second. The case value is 14449now 14450the second operand, and this allows the case value to be implicitly 14451converted to the type of the switch value, not the other way around. 14452 14453Switch/Case support: Temporary variables are now emitted immediately 14454within 14455the control method, not at the global level. This means that there are 14456now 1445736 temps available per-method, not 36 temps per-module as was the case 14458with 14459the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 14460 14461---------------------------------------- 1446214 January 2005. Summary of changes for version 20050114: 14463 14464Added 2005 copyright to all module headers. This affects every module in 14465the core subsystem, iASL compiler, and the utilities. 14466 144671) ACPI CA Core Subsystem: 14468 14469Fixed an issue with the String-to-Buffer conversion code where the string 14470null terminator was not included in the buffer after conversion, but 14471there 14472is existing ASL that assumes the string null terminator is included. This 14473is 14474the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 14475introduced in the previous version when the code was updated to correctly 14476set the converted buffer size as per the ACPI specification. The ACPI 14477spec 14478is ambiguous and will be updated to specify that the null terminator must 14479be 14480included in the converted buffer. This also affects the ToBuffer() ASL 14481operator. 14482 14483Fixed a problem with the Mid() ASL/AML operator where it did not work 14484correctly on Buffer objects. Newly created sub-buffers were not being 14485marked 14486as initialized. 14487 14488 14489Fixed a problem in AcpiTbFindTable where incorrect string compares were 14490performed on the OemId and OemTableId table header fields. These fields 14491are 14492not null terminated, so strncmp is now used instead of strcmp. 14493 14494Implemented a restriction on the Store() ASL/AML operator to align the 14495behavior with the ACPI specification. Previously, any object could be 14496used 14497as the source operand. Now, the only objects that may be used are 14498Integers, 14499Buffers, Strings, Packages, Object References, and DDB Handles. If 14500necessary, the original behavior can be restored by enabling the 14501EnableInterpreterSlack flag. 14502 14503Enhanced the optional "implicit return" support to allow an implicit 14504return 14505value from methods that are invoked externally via the AcpiEvaluateObject 14506interface. This enables implicit returns from the _STA and _INI methods, 14507for example. 14508 14509Changed the Revision() ASL/AML operator to return the current version of 14510the 14511AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 14512returned 14513the supported ACPI version (This is the function of the _REV method). 14514 14515Updated the _REV predefined method to return the currently supported 14516version 14517of ACPI, now 3. 14518 14519Implemented batch mode option for the AcpiExec utility (-b). 14520 14521Code and Data Size: Current and previous core subsystem library sizes are 14522shown below. These are the code and data sizes for the acpica.lib 14523produced 14524by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14525any ACPI driver or OSPM code. The debug version of the code includes the 14526debug output trace mechanism and has a much larger code and data size. 14527Note 14528that these values will vary depending on the efficiency of the compiler 14529and 14530the compiler options used during generation. 14531 14532 Previous Release: 14533 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14534 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 14535 Current Release: 14536 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 14537 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 14538 14539---------------------------------------- 1454010 December 2004. Summary of changes for version 20041210: 14541 14542ACPI 3.0 support is nearing completion in both the iASL compiler and the 14543ACPI CA core subsystem. 14544 145451) ACPI CA Core Subsystem: 14546 14547Fixed a problem in the ToDecimalString operator where the resulting 14548string 14549length was incorrectly calculated. The length is now calculated exactly, 14550eliminating incorrect AE_STRING_LIMIT exceptions. 14551 14552Fixed a problem in the ToHexString operator to allow a maximum 200 14553character 14554string to be produced. 14555 14556Fixed a problem in the internal string-to-buffer and buffer-to-buffer 14557copy 14558routine where the length of the resulting buffer was not truncated to the 14559new size (if the target buffer already existed). 14560 14561Code and Data Size: Current and previous core subsystem library sizes are 14562shown below. These are the code and data sizes for the acpica.lib 14563produced 14564by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14565any ACPI driver or OSPM code. The debug version of the code includes the 14566debug output trace mechanism and has a much larger code and data size. 14567Note 14568that these values will vary depending on the efficiency of the compiler 14569and 14570the compiler options used during generation. 14571 14572 Previous Release: 14573 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14574 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 14575 Current Release: 14576 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14577 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 14578 14579 145802) iASL Compiler/Disassembler: 14581 14582Implemented the new ACPI 3.0 resource template macros - DWordSpace, 14583ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 14584Includes support in the disassembler. 14585 14586Implemented support for the new (ACPI 3.0) parameter to the Register 14587macro, 14588AccessSize. 14589 14590Fixed a problem where the _HE resource name for the Interrupt macro was 14591referencing bit 0 instead of bit 1. 14592 14593Implemented check for maximum 255 interrupts in the Interrupt macro. 14594 14595Fixed a problem with the predefined resource descriptor names where 14596incorrect AML code was generated if the offset within the resource buffer 14597was 0 or 1. The optimizer shortened the AML code to a single byte opcode 14598but did not update the surrounding package lengths. 14599 14600Changes to the Dma macro: All channels within the channel list must be 14601in 14602the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 14603optional (default is BusMaster). 14604 14605Implemented check for maximum 7 data bytes for the VendorShort macro. 14606 14607The ReadWrite parameter is now optional for the Memory32 and similar 14608macros. 14609 14610---------------------------------------- 1461103 December 2004. Summary of changes for version 20041203: 14612 146131) ACPI CA Core Subsystem: 14614 14615The low-level field insertion/extraction code (exfldio) has been 14616completely 14617rewritten to eliminate unnecessary complexity, bugs, and boundary 14618conditions. 14619 14620Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 14621ToDecimalString 14622operators where the input operand could be inadvertently deleted if no 14623conversion was necessary (e.g., if the input to ToInteger was an Integer 14624object.) 14625 14626Fixed a problem with the ToDecimalString and ToHexString where an 14627incorrect 14628exception code was returned if the resulting string would be > 200 chars. 14629AE_STRING_LIMIT is now returned. 14630 14631Fixed a problem with the Concatenate operator where AE_OK was always 14632returned, even if the operation failed. 14633 14634Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 14635semaphores to be allocated. 14636 14637Code and Data Size: Current and previous core subsystem library sizes are 14638shown below. These are the code and data sizes for the acpica.lib 14639produced 14640by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14641any ACPI driver or OSPM code. The debug version of the code includes the 14642debug output trace mechanism and has a much larger code and data size. 14643Note 14644that these values will vary depending on the efficiency of the compiler 14645and 14646the compiler options used during generation. 14647 14648 Previous Release: 14649 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14650 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14651 Current Release: 14652 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14653 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 14654 14655 146562) iASL Compiler/Disassembler: 14657 14658Fixed typechecking for the ObjectType and SizeOf operators. Problem was 14659recently introduced in 20041119. 14660 14661Fixed a problem with the ToUUID macro where the upper nybble of each 14662buffer 14663byte was inadvertently set to zero. 14664 14665---------------------------------------- 1466619 November 2004. Summary of changes for version 20041119: 14667 146681) ACPI CA Core Subsystem: 14669 14670Fixed a problem in the internal ConvertToInteger routine where new 14671integers 14672were not truncated to 32 bits for 32-bit ACPI tables. This routine 14673converts 14674buffers and strings to integers. 14675 14676Implemented support to store a value to an Index() on a String object. 14677This 14678is an ACPI 2.0 feature that had not yet been implemented. 14679 14680Implemented new behavior for storing objects to individual package 14681elements 14682(via the Index() operator). The previous behavior was to invoke the 14683implicit 14684conversion rules if an object was already present at the index. The new 14685behavior is to simply delete any existing object and directly store the 14686new 14687object. Although the ACPI specification seems unclear on this subject, 14688other 14689ACPI implementations behave in this manner. (This is the root of the 14690AE_BAD_HEX_CONSTANT issue.) 14691 14692Modified the RSDP memory scan mechanism to support the extended checksum 14693for 14694ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 14695RSDP signature is found with a valid checksum. 14696 14697Code and Data Size: Current and previous core subsystem library sizes are 14698shown below. These are the code and data sizes for the acpica.lib 14699produced 14700by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14701any ACPI driver or OSPM code. The debug version of the code includes the 14702debug output trace mechanism and has a much larger code and data size. 14703Note 14704that these values will vary depending on the efficiency of the compiler 14705and 14706the compiler options used during generation. 14707 14708 Previous Release: 14709 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14710 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14711 Current Release: 14712 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14713 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14714 14715 147162) iASL Compiler/Disassembler: 14717 14718Fixed a missing semicolon in the aslcompiler.y file. 14719 14720---------------------------------------- 1472105 November 2004. Summary of changes for version 20041105: 14722 147231) ACPI CA Core Subsystem: 14724 14725Implemented support for FADT revision 2. This was an interim table 14726(between 14727ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 14728 14729Implemented optional support to allow uninitialized LocalX and ArgX 14730variables in a control method. The variables are initialized to an 14731Integer 14732object with a value of zero. This support is enabled by setting the 14733AcpiGbl_EnableInterpreterSlack flag to TRUE. 14734 14735Implemented support for Integer objects for the SizeOf operator. Either 147364 14737or 8 is returned, depending on the current integer size (32-bit or 64- 14738bit, 14739depending on the parent table revision). 14740 14741Fixed a problem in the implementation of the SizeOf and ObjectType 14742operators 14743where the operand was resolved to a value too early, causing incorrect 14744return values for some objects. 14745 14746Fixed some possible memory leaks during exceptional conditions. 14747 14748Code and Data Size: Current and previous core subsystem library sizes are 14749shown below. These are the code and data sizes for the acpica.lib 14750produced 14751by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14752any ACPI driver or OSPM code. The debug version of the code includes the 14753debug output trace mechanism and has a much larger code and data size. 14754Note 14755that these values will vary depending on the efficiency of the compiler 14756and 14757the compiler options used during generation. 14758 14759 Previous Release: 14760 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14761 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 14762 Current Release: 14763 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14764 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14765 14766 147672) iASL Compiler/Disassembler: 14768 14769Implemented support for all ACPI 3.0 reserved names and methods. 14770 14771Implemented all ACPI 3.0 grammar elements in the front-end, including 14772support for semicolons. 14773 14774Implemented the ACPI 3.0 Function() and ToUUID() macros 14775 14776Fixed a problem in the disassembler where a Scope() operator would not be 14777emitted properly if the target of the scope was in another table. 14778 14779---------------------------------------- 1478015 October 2004. Summary of changes for version 20041015: 14781 14782Note: ACPI CA is currently undergoing an in-depth and complete formal 14783evaluation to test/verify the following areas. Other suggestions are 14784welcome. This will result in an increase in the frequency of releases and 14785the number of bug fixes in the next few months. 14786 - Functional tests for all ASL/AML operators 14787 - All implicit/explicit type conversions 14788 - Bit fields and operation regions 14789 - 64-bit math support and 32-bit-only "truncated" math support 14790 - Exceptional conditions, both compiler and interpreter 14791 - Dynamic object deletion and memory leaks 14792 - ACPI 3.0 support when implemented 14793 - External interfaces to the ACPI subsystem 14794 14795 147961) ACPI CA Core Subsystem: 14797 14798Fixed two alignment issues on 64-bit platforms - within debug statements 14799in 14800AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 14801Address 14802field within the non-aligned ACPI generic address structure. 14803 14804Fixed a problem in the Increment and Decrement operators where incorrect 14805operand resolution could result in the inadvertent modification of the 14806original integer when the integer is passed into another method as an 14807argument and the arg is then incremented/decremented. 14808 14809Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 14810bit 14811BCD number were truncated during conversion. 14812 14813Fixed a problem in the ToDecimal operator where the length of the 14814resulting 14815string could be set incorrectly too long if the input operand was a 14816Buffer 14817object. 14818 14819Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 14820(0) 14821within a buffer would prematurely terminate a compare between buffer 14822objects. 14823 14824Added a check for string overflow (>200 characters as per the ACPI 14825specification) during the Concatenate operator with two string operands. 14826 14827Code and Data Size: Current and previous core subsystem library sizes are 14828shown below. These are the code and data sizes for the acpica.lib 14829produced 14830by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14831any ACPI driver or OSPM code. The debug version of the code includes the 14832debug output trace mechanism and has a much larger code and data size. 14833Note 14834that these values will vary depending on the efficiency of the compiler 14835and 14836the compiler options used during generation. 14837 14838 Previous Release: 14839 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14840 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14841 Current Release: 14842 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14843 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 14844 14845 14846 148472) iASL Compiler/Disassembler: 14848 14849Allow the use of the ObjectType operator on uninitialized Locals and Args 14850(returns 0 as per the ACPI specification). 14851 14852Fixed a problem where the compiler would fault if there was a syntax 14853error 14854in the FieldName of all of the various CreateXXXField operators. 14855 14856Disallow the use of lower case letters within the EISAID macro, as per 14857the 14858ACPI specification. All EISAID strings must be of the form "UUUNNNN" 14859Where 14860U is an uppercase letter and N is a hex digit. 14861 14862 14863---------------------------------------- 1486406 October 2004. Summary of changes for version 20041006: 14865 148661) ACPI CA Core Subsystem: 14867 14868Implemented support for the ACPI 3.0 Timer operator. This ASL function 14869implements a 64-bit timer with 100 nanosecond granularity. 14870 14871Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 14872implement the ACPI 3.0 Timer operator. This allows the host OS to 14873implement 14874the timer with the best clock available. Also, it keeps the core 14875subsystem 14876out of the clock handling business, since the host OS (usually) performs 14877this function. 14878 14879Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 14880functions use a 64-bit address which is part of the packed ACPI Generic 14881Address Structure. Since the structure is non-aligned, the alignment 14882macros 14883are now used to extract the address to a local variable before use. 14884 14885Fixed a problem where the ToInteger operator assumed all input strings 14886were 14887hexadecimal. The operator now handles both decimal strings and hex 14888strings 14889(prefixed with "0x"). 14890 14891Fixed a problem where the string length in the string object created as a 14892result of the internal ConvertToString procedure could be incorrect. This 14893potentially affected all implicit conversions and also the 14894ToDecimalString 14895and ToHexString operators. 14896 14897Fixed two problems in the ToString operator. If the length parameter was 14898zero, an incorrect string object was created and the value of the input 14899length parameter was inadvertently changed from zero to Ones. 14900 14901Fixed a problem where the optional ResourceSource string in the 14902ExtendedIRQ 14903resource macro was ignored. 14904 14905Simplified the interfaces to the internal division functions, reducing 14906code 14907size and complexity. 14908 14909Code and Data Size: Current and previous core subsystem library sizes are 14910shown below. These are the code and data sizes for the acpica.lib 14911produced 14912by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14913any ACPI driver or OSPM code. The debug version of the code includes the 14914debug output trace mechanism and has a much larger code and data size. 14915Note 14916that these values will vary depending on the efficiency of the compiler 14917and 14918the compiler options used during generation. 14919 14920 Previous Release: 14921 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14922 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14923 Current Release: 14924 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14925 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14926 14927 149282) iASL Compiler/Disassembler: 14929 14930Implemented support for the ACPI 3.0 Timer operator. 14931 14932Fixed a problem where the Default() operator was inadvertently ignored in 14933a 14934Switch/Case block. This was a problem in the translation of the Switch 14935statement to If...Else pairs. 14936 14937Added support to allow a standalone Return operator, with no parentheses 14938(or 14939operands). 14940 14941Fixed a problem with code generation for the ElseIf operator where the 14942translated Else...If parse tree was improperly constructed leading to the 14943loss of some code. 14944 14945---------------------------------------- 1494622 September 2004. Summary of changes for version 20040922: 14947 149481) ACPI CA Core Subsystem: 14949 14950Fixed a problem with the implementation of the LNot() operator where 14951"Ones" 14952was not returned for the TRUE case. Changed the code to return Ones 14953instead 14954of (!Arg) which was usually 1. This change affects iASL constant folding 14955for 14956this operator also. 14957 14958Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 14959not 14960initialized properly -- Now zero the entire buffer in this case where the 14961buffer already exists. 14962 14963Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 14964Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 14965related code considerably. This will require changes/updates to all OS 14966interface layers (OSLs.) 14967 14968Implemented a new external interface, AcpiInstallExceptionHandler, to 14969allow 14970a system exception handler to be installed. This handler is invoked upon 14971any 14972run-time exception that occurs during control method execution. 14973 14974Added support for the DSDT in AcpiTbFindTable. This allows the 14975DataTableRegion() operator to access the local copy of the DSDT. 14976 14977Code and Data Size: Current and previous core subsystem library sizes are 14978shown below. These are the code and data sizes for the acpica.lib 14979produced 14980by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14981any ACPI driver or OSPM code. The debug version of the code includes the 14982debug output trace mechanism and has a much larger code and data size. 14983Note 14984that these values will vary depending on the efficiency of the compiler 14985and 14986the compiler options used during generation. 14987 14988 Previous Release: 14989 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 14990 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 14991 Current Release: 14992 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14993 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14994 14995 149962) iASL Compiler/Disassembler: 14997 14998Fixed a problem with constant folding and the LNot operator. LNot was 14999returning 1 in the TRUE case, not Ones as per the ACPI specification. 15000This 15001could result in the generation of an incorrect folded/reduced constant. 15002 15003End-Of-File is now allowed within a "//"-style comment. A parse error no 15004longer occurs if such a comment is at the very end of the input ASL 15005source 15006file. 15007 15008Implemented the "-r" option to override the Revision in the table header. 15009The initial use of this option will be to simplify the evaluation of the 15010AML 15011interpreter by allowing a single ASL source module to be compiled for 15012either 1501332-bit or 64-bit integers. 15014 15015 15016---------------------------------------- 1501727 August 2004. Summary of changes for version 20040827: 15018 150191) ACPI CA Core Subsystem: 15020 15021- Implemented support for implicit object conversion in the non-numeric 15022logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 15023and 15024LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 15025the second operand is implicitly converted on the fly to match the type 15026of 15027the first operand. For example: 15028 15029 LEqual (Source1, Source2) 15030 15031Source1 and Source2 must each evaluate to an integer, a string, or a 15032buffer. 15033The data type of Source1 dictates the required type of Source2. Source2 15034is 15035implicitly converted if necessary to match the type of Source1. 15036 15037- Updated and corrected the behavior of the string conversion support. 15038The 15039rules concerning conversion of buffers to strings (according to the ACPI 15040specification) are as follows: 15041 15042ToDecimalString - explicit byte-wise conversion of buffer to string of 15043decimal values (0-255) separated by commas. ToHexString - explicit byte- 15044wise 15045conversion of buffer to string of hex values (0-FF) separated by commas. 15046ToString - explicit byte-wise conversion of buffer to string. Byte-by- 15047byte 15048copy with no transform except NULL terminated. Any other implicit buffer- 15049to- 15050string conversion - byte-wise conversion of buffer to string of hex 15051values 15052(0-FF) separated by spaces. 15053 15054- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 15055 15056- Fixed a problem in AcpiNsGetPathnameLength where the returned length 15057was 15058one byte too short in the case of a node in the root scope. This could 15059cause a fault during debug output. 15060 15061- Code and Data Size: Current and previous core subsystem library sizes 15062are 15063shown below. These are the code and data sizes for the acpica.lib 15064produced 15065by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15066any ACPI driver or OSPM code. The debug version of the code includes the 15067debug output trace mechanism and has a much larger code and data size. 15068Note 15069that these values will vary depending on the efficiency of the compiler 15070and 15071the compiler options used during generation. 15072 15073 Previous Release: 15074 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 15075 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 15076 Current Release: 15077 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 15078 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 15079 15080 150812) iASL Compiler/Disassembler: 15082 15083- Fixed a Linux generation error. 15084 15085 15086---------------------------------------- 1508716 August 2004. Summary of changes for version 20040816: 15088 150891) ACPI CA Core Subsystem: 15090 15091Designed and implemented support within the AML interpreter for the so- 15092called "implicit return". This support returns the result of the last 15093ASL 15094operation within a control method, in the absence of an explicit Return() 15095operator. A few machines depend on this behavior, even though it is not 15096explicitly supported by the ASL language. It is optional support that 15097can 15098be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 15099 15100Removed support for the PCI_Config address space from the internal low 15101level 15102hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 15103support was not used internally, and would not work correctly anyway 15104because 15105the PCI bus number and segment number were not supported. There are 15106separate interfaces for PCI configuration space access because of the 15107unique 15108interface. 15109 15110Code and Data Size: Current and previous core subsystem library sizes are 15111shown below. These are the code and data sizes for the acpica.lib 15112produced 15113by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15114any ACPI driver or OSPM code. The debug version of the code includes the 15115debug output trace mechanism and has a much larger code and data size. 15116Note 15117that these values will vary depending on the efficiency of the compiler 15118and 15119the compiler options used during generation. 15120 15121 Previous Release: 15122 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 15123 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 15124 Current Release: 15125 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 15126 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 15127 15128 151292) iASL Compiler/Disassembler: 15130 15131Fixed a problem where constants in ASL expressions at the root level (not 15132within a control method) could be inadvertently truncated during code 15133generation. This problem was introduced in the 20040715 release. 15134 15135 15136---------------------------------------- 1513715 July 2004. Summary of changes for version 20040715: 15138 151391) ACPI CA Core Subsystem: 15140 15141Restructured the internal HW GPE interfaces to pass/track the current 15142state 15143of interrupts (enabled/disabled) in order to avoid possible deadlock and 15144increase flexibility of the interfaces. 15145 15146Implemented a "lexicographical compare" for String and Buffer objects 15147within 15148the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 15149- 15150as per further clarification to the ACPI specification. Behavior is 15151similar 15152to C library "strcmp". 15153 15154Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 15155external function. In the 32-bit non-debug case, the stack use has been 15156reduced from 168 bytes to 32 bytes. 15157 15158Deployed a new run-time configuration flag, 15159AcpiGbl_EnableInterpreterSlack, 15160whose purpose is to allow the AML interpreter to forgive certain bad AML 15161constructs. Default setting is FALSE. 15162 15163Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 15164IO 15165support code. If enabled, it allows field access to go beyond the end of 15166a 15167region definition if the field is within the region length rounded up to 15168the 15169next access width boundary (a common coding error.) 15170 15171Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 15172ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 15173these 15174symbols are lowercase by the latest version of the AcpiSrc tool. 15175 15176The prototypes for the PCI interfaces in acpiosxf.h have been updated to 15177rename "Register" to simply "Reg" to prevent certain compilers from 15178complaining. 15179 15180Code and Data Size: Current and previous core subsystem library sizes are 15181shown below. These are the code and data sizes for the acpica.lib 15182produced 15183by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15184any ACPI driver or OSPM code. The debug version of the code includes the 15185debug output trace mechanism and has a much larger code and data size. 15186Note 15187that these values will vary depending on the efficiency of the compiler 15188and 15189the compiler options used during generation. 15190 15191 Previous Release: 15192 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 15193 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 15194 Current Release: 15195 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 15196 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 15197 15198 151992) iASL Compiler/Disassembler: 15200 15201Implemented full support for Package objects within the Case() operator. 15202Note: The Break() operator is currently not supported within Case blocks 15203(TermLists) as there is some question about backward compatibility with 15204ACPI 152051.0 interpreters. 15206 15207 15208Fixed a problem where complex terms were not supported properly within 15209the 15210Switch() operator. 15211 15212Eliminated extraneous warning for compiler-emitted reserved names of the 15213form "_T_x". (Used in Switch/Case operators.) 15214 15215Eliminated optimization messages for "_T_x" objects and small constants 15216within the DefinitionBlock operator. 15217 15218 15219---------------------------------------- 1522015 June 2004. Summary of changes for version 20040615: 15221 152221) ACPI CA Core Subsystem: 15223 15224Implemented support for Buffer and String objects (as per ACPI 2.0) for 15225the 15226following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 15227LLessEqual. 15228 15229All directory names in the entire source package are lower case, as they 15230were in earlier releases. 15231 15232Implemented "Disassemble" command in the AML debugger that will 15233disassemble 15234a single control method. 15235 15236Code and Data Size: Current and previous core subsystem library sizes are 15237shown below. These are the code and data sizes for the acpica.lib 15238produced 15239by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15240any ACPI driver or OSPM code. The debug version of the code includes the 15241debug output trace mechanism and has a much larger code and data size. 15242Note 15243that these values will vary depending on the efficiency of the compiler 15244and 15245the compiler options used during generation. 15246 15247 Previous Release: 15248 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 15249 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 15250 15251 Current Release: 15252 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 15253 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 15254 15255 152562) iASL Compiler/Disassembler: 15257 15258Implemented support for Buffer and String objects (as per ACPI 2.0) for 15259the 15260following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 15261LLessEqual. 15262 15263All directory names in the entire source package are lower case, as they 15264were in earlier releases. 15265 15266Fixed a fault when using the -g or -d<nofilename> options if the FADT was 15267not found. 15268 15269Fixed an issue with the Windows version of the compiler where later 15270versions 15271of Windows place the FADT in the registry under the name "FADT" and not 15272"FACP" as earlier versions did. This applies when using the -g or - 15273d<nofilename> options. The compiler now looks for both strings as 15274necessary. 15275 15276Fixed a problem with compiler namepath optimization where a namepath 15277within 15278the Scope() operator could not be optimized if the namepath was a subpath 15279of 15280the current scope path. 15281 15282---------------------------------------- 1528327 May 2004. Summary of changes for version 20040527: 15284 152851) ACPI CA Core Subsystem: 15286 15287Completed a new design and implementation for EBDA (Extended BIOS Data 15288Area) 15289support in the RSDP scan code. The original code improperly scanned for 15290the 15291EBDA by simply scanning from memory location 0 to 0x400. The correct 15292method 15293is to first obtain the EBDA pointer from within the BIOS data area, then 15294scan 1K of memory starting at the EBDA pointer. There appear to be few 15295if 15296any machines that place the RSDP in the EBDA, however. 15297 15298Integrated a fix for a possible fault during evaluation of BufferField 15299arguments. Obsolete code that was causing the problem was removed. 15300 15301Found and fixed a problem in the Field Support Code where data could be 15302corrupted on a bit field read that starts on an aligned boundary but does 15303not end on an aligned boundary. Merged the read/write "datum length" 15304calculation code into a common procedure. 15305 15306Rolled in a couple of changes to the FreeBSD-specific header. 15307 15308 15309Code and Data Size: Current and previous core subsystem library sizes are 15310shown below. These are the code and data sizes for the acpica.lib 15311produced 15312by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15313any ACPI driver or OSPM code. The debug version of the code includes the 15314debug output trace mechanism and has a much larger code and data size. 15315Note 15316that these values will vary depending on the efficiency of the compiler 15317and 15318the compiler options used during generation. 15319 15320 Previous Release: 15321 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15322 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 15323 Current Release: 15324 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 15325 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 15326 15327 153282) iASL Compiler/Disassembler: 15329 15330Fixed a generation warning produced by some overly-verbose compilers for 15331a 1533264-bit constant. 15333 15334---------------------------------------- 1533514 May 2004. Summary of changes for version 20040514: 15336 153371) ACPI CA Core Subsystem: 15338 15339Fixed a problem where hardware GPE enable bits sometimes not set properly 15340during and after GPE method execution. Result of 04/27 changes. 15341 15342Removed extra "clear all GPEs" when sleeping/waking. 15343 15344Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 15345AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 15346to 15347the new AcpiEv* calls as appropriate. 15348 15349ACPI_OS_NAME was removed from the OS-specific headers. The default name 15350is 15351now "Microsoft Windows NT" for maximum compatibility. However this can 15352be 15353changed by modifying the acconfig.h file. 15354 15355Allow a single invocation of AcpiInstallNotifyHandler for a handler that 15356traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 15357 15358Run _INI methods on ThermalZone objects. This is against the ACPI 15359specification, but there is apparently ASL code in the field that has 15360these 15361_INI methods, and apparently "other" AML interpreters execute them. 15362 15363Performed a full 16/32/64 bit lint that resulted in some small changes. 15364 15365Added a sleep simulation command to the AML debugger to test sleep code. 15366 15367Code and Data Size: Current and previous core subsystem library sizes are 15368shown below. These are the code and data sizes for the acpica.lib 15369produced 15370by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15371any ACPI driver or OSPM code. The debug version of the code includes the 15372debug output trace mechanism and has a much larger code and data size. 15373Note 15374that these values will vary depending on the efficiency of the compiler 15375and 15376the compiler options used during generation. 15377 15378 Previous Release: 15379 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15380 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 15381 Current Release: 15382 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15383 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 15384 15385---------------------------------------- 1538627 April 2004. Summary of changes for version 20040427: 15387 153881) ACPI CA Core Subsystem: 15389 15390Completed a major overhaul of the GPE handling within ACPI CA. There are 15391now three types of GPEs: wake-only, runtime-only, and combination 15392wake/run. 15393The only GPEs allowed to be combination wake/run are for button-style 15394devices such as a control-method power button, control-method sleep 15395button, 15396or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 15397not 15398referenced by any _PRW methods are marked for "runtime" and hardware 15399enabled. Any GPE that is referenced by a _PRW method is marked for 15400"wake" 15401(and disabled at runtime). However, at sleep time, only those GPEs that 15402have been specifically enabled for wake via the AcpiEnableGpe interface 15403will 15404actually be hardware enabled. 15405 15406A new external interface has been added, AcpiSetGpeType(), that is meant 15407to 15408be used by device drivers to force a GPE to a particular type. It will 15409be 15410especially useful for the drivers for the button devices mentioned above. 15411 15412Completed restructuring of the ACPI CA initialization sequence so that 15413default operation region handlers are installed before GPEs are 15414initialized 15415and the _PRW methods are executed. This will prevent errors when the 15416_PRW 15417methods attempt to access system memory or I/O space. 15418 15419GPE enable/disable no longer reads the GPE enable register. We now keep 15420the 15421enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 15422thus no longer depend on the hardware to maintain these bits. 15423 15424Always clear the wake status and fixed/GPE status bits before sleep, even 15425for state S5. 15426 15427Improved the AML debugger output for displaying the GPE blocks and their 15428current status. 15429 15430Added new strings for the _OSI method, of the form "Windows 2001 SPx" 15431where 15432x = 0,1,2,3,4. 15433 15434Fixed a problem where the physical address was incorrectly calculated 15435when 15436the Load() operator was used to directly load from an Operation Region 15437(vs. 15438loading from a Field object.) Also added check for minimum table length 15439for 15440this case. 15441 15442Fix for multiple mutex acquisition. Restore original thread SyncLevel on 15443mutex release. 15444 15445Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 15446consistency with the other fields returned. 15447 15448Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 15449structure for each GPE in the system, so the size of this structure is 15450important. 15451 15452CPU stack requirement reduction: Cleaned up the method execution and 15453object 15454evaluation paths so that now a parameter structure is passed, instead of 15455copying the various method parameters over and over again. 15456 15457In evregion.c: Correctly exit and reenter the interpreter region if and 15458only if dispatching an operation region request to a user-installed 15459handler. 15460Do not exit/reenter when dispatching to a default handler (e.g., default 15461system memory or I/O handlers) 15462 15463 15464Notes for updating drivers for the new GPE support. The following 15465changes 15466must be made to ACPI-related device drivers that are attached to one or 15467more 15468GPEs: (This information will be added to the ACPI CA Programmer 15469Reference.) 15470 154711) AcpiInstallGpeHandler no longer automatically enables the GPE, you 15472must 15473explicitly call AcpiEnableGpe. 154742) There is a new interface called AcpiSetGpeType. This should be called 15475before enabling the GPE. Also, this interface will automatically disable 15476the GPE if it is currently enabled. 154773) AcpiEnableGpe no longer supports a GPE type flag. 15478 15479Specific drivers that must be changed: 154801) EC driver: 15481 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 15482AeGpeHandler, NULL); 15483 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 15484 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 15485 154862) Button Drivers (Power, Lid, Sleep): 15487Run _PRW method under parent device 15488If _PRW exists: /* This is a control-method button */ 15489 Extract GPE number and possibly GpeDevice 15490 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 15491 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 15492 15493For all other devices that have _PRWs, we automatically set the GPE type 15494to 15495ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 15496This 15497must be done on a selective basis, usually requiring some kind of user 15498app 15499to allow the user to pick the wake devices. 15500 15501 15502Code and Data Size: Current and previous core subsystem library sizes are 15503shown below. These are the code and data sizes for the acpica.lib 15504produced 15505by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15506any ACPI driver or OSPM code. The debug version of the code includes the 15507debug output trace mechanism and has a much larger code and data size. 15508Note 15509that these values will vary depending on the efficiency of the compiler 15510and 15511the compiler options used during generation. 15512 15513 Previous Release: 15514 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 15515 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 15516 Current Release: 15517 15518 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15519 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 15520 15521 15522 15523---------------------------------------- 1552402 April 2004. Summary of changes for version 20040402: 15525 155261) ACPI CA Core Subsystem: 15527 15528Fixed an interpreter problem where an indirect store through an ArgX 15529parameter was incorrectly applying the "implicit conversion rules" during 15530the store. From the ACPI specification: "If the target is a method local 15531or 15532argument (LocalX or ArgX), no conversion is performed and the result is 15533stored directly to the target". The new behavior is to disable implicit 15534conversion during ALL stores to an ArgX. 15535 15536Changed the behavior of the _PRW method scan to ignore any and all errors 15537returned by a given _PRW. This prevents the scan from aborting from the 15538failure of any single _PRW. 15539 15540Moved the runtime configuration parameters from the global init procedure 15541to 15542static variables in acglobal.h. This will allow the host to override the 15543default values easily. 15544 15545Code and Data Size: Current and previous core subsystem library sizes are 15546shown below. These are the code and data sizes for the acpica.lib 15547produced 15548by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15549any ACPI driver or OSPM code. The debug version of the code includes the 15550debug output trace mechanism and has a much larger code and data size. 15551Note 15552that these values will vary depending on the efficiency of the compiler 15553and 15554the compiler options used during generation. 15555 15556 Previous Release: 15557 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 15558 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 15559 Current Release: 15560 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 15561 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 15562 15563 155642) iASL Compiler/Disassembler: 15565 15566iASL now fully disassembles SSDTs. However, External() statements are 15567not 15568generated automatically for unresolved symbols at this time. This is a 15569planned feature for future implementation. 15570 15571Fixed a scoping problem in the disassembler that occurs when the type of 15572the 15573target of a Scope() operator is overridden. This problem caused an 15574incorrectly nested internal namespace to be constructed. 15575 15576Any warnings or errors that are emitted during disassembly are now 15577commented 15578out automatically so that the resulting file can be recompiled without 15579any 15580hand editing. 15581 15582---------------------------------------- 1558326 March 2004. Summary of changes for version 20040326: 15584 155851) ACPI CA Core Subsystem: 15586 15587Implemented support for "wake" GPEs via interaction between GPEs and the 15588_PRW methods. Every GPE that is pointed to by one or more _PRWs is 15589identified as a WAKE GPE and by default will no longer be enabled at 15590runtime. Previously, we were blindly enabling all GPEs with a 15591corresponding 15592_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 15593We 15594believe this has been the cause of thousands of "spurious" GPEs on some 15595systems. 15596 15597This new GPE behavior is can be reverted to the original behavior (enable 15598ALL GPEs at runtime) via a runtime flag. 15599 15600Fixed a problem where aliased control methods could not access objects 15601properly. The proper scope within the namespace was not initialized 15602(transferred to the target of the aliased method) before executing the 15603target method. 15604 15605Fixed a potential race condition on internal object deletion on the 15606return 15607object in AcpiEvaluateObject. 15608 15609Integrated a fix for resource descriptors where both _MEM and _MTP were 15610being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 15611wide, 0x0F instead of 0x03.) 15612 15613Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 15614preventing 15615a 15616fault in some cases. 15617 15618Updated Notify() values for debug statements in evmisc.c 15619 15620Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 15621 15622Code and Data Size: Current and previous core subsystem library sizes are 15623shown below. These are the code and data sizes for the acpica.lib 15624produced 15625by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15626any ACPI driver or OSPM code. The debug version of the code includes the 15627debug output trace mechanism and has a much larger code and data size. 15628Note 15629that these values will vary depending on the efficiency of the compiler 15630and 15631the compiler options used during generation. 15632 15633 Previous Release: 15634 15635 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 15636 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 15637 Current Release: 15638 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 15639 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 15640 15641---------------------------------------- 1564211 March 2004. Summary of changes for version 20040311: 15643 156441) ACPI CA Core Subsystem: 15645 15646Fixed a problem where errors occurring during the parse phase of control 15647method execution did not abort cleanly. For example, objects created and 15648installed in the namespace were not deleted. This caused all subsequent 15649invocations of the method to return the AE_ALREADY_EXISTS exception. 15650 15651Implemented a mechanism to force a control method to "Serialized" 15652execution 15653if the method attempts to create namespace objects. (The root of the 15654AE_ALREADY_EXISTS problem.) 15655 15656Implemented support for the predefined _OSI "internal" control method. 15657Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 15658and 15659"Windows 2001.1", and can be easily upgraded for new strings as 15660necessary. 15661This feature will allow "other" operating systems to execute the fully 15662tested, "Windows" code path through the ASL code 15663 15664Global Lock Support: Now allows multiple acquires and releases with any 15665internal thread. Removed concept of "owning thread" for this special 15666mutex. 15667 15668Fixed two functions that were inappropriately declaring large objects on 15669the 15670CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 15671during 15672method execution considerably. 15673 15674Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 15675S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 15676 15677Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 15678defined on the machine. 15679 15680Implemented two runtime options: One to force all control method 15681execution 15682to "Serialized" to mimic Windows behavior, another to disable _OSI 15683support 15684if it causes problems on a given machine. 15685 15686Code and Data Size: Current and previous core subsystem library sizes are 15687shown below. These are the code and data sizes for the acpica.lib 15688produced 15689by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15690any ACPI driver or OSPM code. The debug version of the code includes the 15691debug output trace mechanism and has a much larger code and data size. 15692Note 15693that these values will vary depending on the efficiency of the compiler 15694and 15695the compiler options used during generation. 15696 15697 Previous Release: 15698 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 15699 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 15700 Current Release: 15701 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 15702 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 15703 157042) iASL Compiler/Disassembler: 15705 15706Fixed an array size problem for FreeBSD that would cause the compiler to 15707fault. 15708 15709---------------------------------------- 1571020 February 2004. Summary of changes for version 20040220: 15711 15712 157131) ACPI CA Core Subsystem: 15714 15715Implemented execution of _SxD methods for Device objects in the 15716GetObjectInfo interface. 15717 15718Fixed calls to _SST method to pass the correct arguments. 15719 15720Added a call to _SST on wake to restore to "working" state. 15721 15722Check for End-Of-Buffer failure case in the WalkResources interface. 15723 15724Integrated fix for 64-bit alignment issue in acglobal.h by moving two 15725structures to the beginning of the file. 15726 15727After wake, clear GPE status register(s) before enabling GPEs. 15728 15729After wake, clear/enable power button. (Perhaps we should clear/enable 15730all 15731fixed events upon wake.) 15732 15733Fixed a couple of possible memory leaks in the Namespace manager. 15734 15735Integrated latest acnetbsd.h file. 15736 15737---------------------------------------- 1573811 February 2004. Summary of changes for version 20040211: 15739 15740 157411) ACPI CA Core Subsystem: 15742 15743Completed investigation and implementation of the call-by-reference 15744mechanism for control method arguments. 15745 15746Fixed a problem where a store of an object into an indexed package could 15747fail if the store occurs within a different method than the method that 15748created the package. 15749 15750Fixed a problem where the ToDecimal operator could return incorrect 15751results. 15752 15753Fixed a problem where the CopyObject operator could fail on some of the 15754more 15755obscure objects (e.g., Reference objects.) 15756 15757Improved the output of the Debug object to display buffer, package, and 15758index objects. 15759 15760Fixed a problem where constructs of the form "RefOf (ArgX)" did not 15761return 15762the expected result. 15763 15764Added permanent ACPI_REPORT_ERROR macros for all instances of the 15765ACPI_AML_INTERNAL exception. 15766 15767Integrated latest version of acfreebsd.h 15768 15769---------------------------------------- 1577016 January 2004. Summary of changes for version 20040116: 15771 15772The purpose of this release is primarily to update the copyright years in 15773each module, thus causing a huge number of diffs. There are a few small 15774functional changes, however. 15775 157761) ACPI CA Core Subsystem: 15777 15778Improved error messages when there is a problem finding one or more of 15779the 15780required base ACPI tables 15781 15782Reintroduced the definition of APIC_HEADER in actbl.h 15783 15784Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 15785 15786Removed extraneous reference to NewObj in dsmthdat.c 15787 157882) iASL compiler 15789 15790Fixed a problem introduced in December that disabled the correct 15791disassembly 15792of Resource Templates 15793 15794 15795---------------------------------------- 1579603 December 2003. Summary of changes for version 20031203: 15797 157981) ACPI CA Core Subsystem: 15799 15800Changed the initialization of Operation Regions during subsystem 15801init to perform two entire walks of the ACPI namespace; The first 15802to initialize the regions themselves, the second to execute the 15803_REG methods. This fixed some interdependencies across _REG 15804methods found on some machines. 15805 15806Fixed a problem where a Store(Local0, Local1) could simply update 15807the object reference count, and not create a new copy of the 15808object if the Local1 is uninitialized. 15809 15810Implemented support for the _SST reserved method during sleep 15811transitions. 15812 15813Implemented support to clear the SLP_TYP and SLP_EN bits when 15814waking up, this is apparently required by some machines. 15815 15816When sleeping, clear the wake status only if SleepState is not S5. 15817 15818Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 15819pointer arithmetic advanced a string pointer too far. 15820 15821Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 15822could be returned if the requested table has not been loaded. 15823 15824Within the support for IRQ resources, restructured the handling of 15825the active and edge/level bits. 15826 15827Fixed a few problems in AcpiPsxExecute() where memory could be 15828leaked under certain error conditions. 15829 15830Improved error messages for the cases where the ACPI mode could 15831not be entered. 15832 15833Code and Data Size: Current and previous core subsystem library 15834sizes are shown below. These are the code and data sizes for the 15835acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15836these values do not include any ACPI driver or OSPM code. The 15837debug version of the code includes the debug output trace 15838mechanism and has a much larger code and data size. Note that 15839these values will vary depending on the efficiency of the compiler 15840and the compiler options used during generation. 15841 15842 Previous Release (20031029): 15843 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15844 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15845 Current Release: 15846 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 15847 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 15848 158492) iASL Compiler/Disassembler: 15850 15851Implemented a fix for the iASL disassembler where a bad index was 15852generated. This was most noticeable on 64-bit platforms 15853 15854 15855---------------------------------------- 1585629 October 2003. Summary of changes for version 20031029: 15857 158581) ACPI CA Core Subsystem: 15859 15860 15861Fixed a problem where a level-triggered GPE with an associated 15862_Lxx control method was incorrectly cleared twice. 15863 15864Fixed a problem with the Field support code where an access can 15865occur beyond the end-of-region if the field is non-aligned but 15866extends to the very end of the parent region (resulted in an 15867AE_AML_REGION_LIMIT exception.) 15868 15869Fixed a problem with ACPI Fixed Events where an RT Clock handler 15870would not get invoked on an RTC event. The RTC event bitmasks for 15871the PM1 registers were not being initialized properly. 15872 15873Implemented support for executing _STA and _INI methods for 15874Processor objects. Although this is currently not part of the 15875ACPI specification, there is existing ASL code that depends on the 15876init-time execution of these methods. 15877 15878Implemented and deployed a GetDescriptorName function to decode 15879the various types of internal descriptors. Guards against null 15880descriptors during debug output also. 15881 15882Implemented and deployed a GetNodeName function to extract the 4- 15883character namespace node name. This function simplifies the debug 15884and error output, as well as guarding against null pointers during 15885output. 15886 15887Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 15888simplify the debug and error output of 64-bit integers. This 15889macro replaces the HIDWORD and LODWORD macros for dumping these 15890integers. 15891 15892Updated the implementation of the Stall() operator to only call 15893AcpiOsStall(), and also return an error if the operand is larger 15894than 255. This preserves the required behavior of not 15895relinquishing the processor, as would happen if AcpiOsSleep() was 15896called for "long stalls". 15897 15898Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 15899initialized are now treated as NOOPs. 15900 15901Cleaned up a handful of warnings during 64-bit generation. 15902 15903Fixed a reported error where and incorrect GPE number was passed 15904to the GPE dispatch handler. This value is only used for error 15905output, however. Used this opportunity to clean up and streamline 15906the GPE dispatch code. 15907 15908Code and Data Size: Current and previous core subsystem library 15909sizes are shown below. These are the code and data sizes for the 15910acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15911these values do not include any ACPI driver or OSPM code. The 15912 15913debug version of the code includes the debug output trace 15914mechanism and has a much larger code and data size. Note that 15915these values will vary depending on the efficiency of the compiler 15916and the compiler options used during generation. 15917 15918 Previous Release (20031002): 15919 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15920 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15921 Current Release: 15922 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15923 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15924 15925 159262) iASL Compiler/Disassembler: 15927 15928Updated the iASL compiler to return an error if the operand to the 15929Stall() operator is larger than 255. 15930 15931 15932---------------------------------------- 1593302 October 2003. Summary of changes for version 20031002: 15934 15935 159361) ACPI CA Core Subsystem: 15937 15938Fixed a problem with Index Fields where the index was not 15939incremented for fields that require multiple writes to the 15940index/data registers (Fields that are wider than the data 15941register.) 15942 15943Fixed a problem with all Field objects where a write could go 15944beyond the end-of-field if the field was larger than the access 15945granularity and therefore required multiple writes to complete the 15946request. An extra write beyond the end of the field could happen 15947inadvertently. 15948 15949Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 15950would incorrectly be returned if the width of the Data Register 15951was larger than the specified field access width. 15952 15953Completed fixes for LoadTable() and Unload() and verified their 15954operation. Implemented full support for the "DdbHandle" object 15955throughout the ACPI CA subsystem. 15956 15957Implemented full support for the MADT and ECDT tables in the ACPI 15958CA header files. Even though these tables are not directly 15959consumed by ACPI CA, the header definitions are useful for ACPI 15960device drivers. 15961 15962Integrated resource descriptor fixes posted to the Linux ACPI 15963list. This included checks for minimum descriptor length, and 15964support for trailing NULL strings within descriptors that have 15965optional string elements. 15966 15967Code and Data Size: Current and previous core subsystem library 15968sizes are shown below. These are the code and data sizes for the 15969acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15970these values do not include any ACPI driver or OSPM code. The 15971debug version of the code includes the debug output trace 15972mechanism and has a much larger code and data size. Note that 15973these values will vary depending on the efficiency of the compiler 15974and the compiler options used during generation. 15975 15976 Previous Release (20030918): 15977 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 15978 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 15979 Current Release: 15980 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15981 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15982 15983 159842) iASL Compiler: 15985 15986Implemented detection of non-ASCII characters within the input 15987source ASL file. This catches attempts to compile binary (AML) 15988files early in the compile, with an informative error message. 15989 15990Fixed a problem where the disassembler would fault if the output 15991filename could not be generated or if the output file could not be 15992opened. 15993 15994---------------------------------------- 1599518 September 2003. Summary of changes for version 20030918: 15996 15997 159981) ACPI CA Core Subsystem: 15999 16000Found and fixed a longstanding problem with the late execution of 16001the various deferred AML opcodes (such as Operation Regions, 16002Buffer Fields, Buffers, and Packages). If the name string 16003specified for the name of the new object placed the object in a 16004scope other than the current scope, the initialization/execution 16005of the opcode failed. The solution to this problem was to 16006implement a mechanism where the late execution of such opcodes 16007does not attempt to lookup/create the name a second time in an 16008incorrect scope. This fixes the "region size computed 16009incorrectly" problem. 16010 16011Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 16012Global Lock AE_BAD_PARAMETER error. 16013 16014Fixed several 64-bit issues with prototypes, casting and data 16015types. 16016 16017Removed duplicate prototype from acdisasm.h 16018 16019Fixed an issue involving EC Operation Region Detach (Shaohua Li) 16020 16021Code and Data Size: Current and previous core subsystem library 16022sizes are shown below. These are the code and data sizes for the 16023acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 16024these values do not include any ACPI driver or OSPM code. The 16025debug version of the code includes the debug output trace 16026mechanism and has a much larger code and data size. Note that 16027these values will vary depending on the efficiency of the compiler 16028and the compiler options used during generation. 16029 16030 Previous Release: 16031 16032 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 16033 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 16034 Current Release: 16035 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 16036 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 16037 16038 160392) Linux: 16040 16041Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 16042correct sleep time in seconds. 16043 16044---------------------------------------- 1604514 July 2003. Summary of changes for version 20030619: 16046 160471) ACPI CA Core Subsystem: 16048 16049Parse SSDTs in order discovered, as opposed to reverse order 16050(Hrvoje Habjanic) 16051 16052Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 16053Klausner, 16054 Nate Lawson) 16055 16056 160572) Linux: 16058 16059Dynamically allocate SDT list (suggested by Andi Kleen) 16060 16061proc function return value cleanups (Andi Kleen) 16062 16063Correctly handle NMI watchdog during long stalls (Andrew Morton) 16064 16065Make it so acpismp=force works (reported by Andrew Morton) 16066 16067 16068---------------------------------------- 1606919 June 2003. Summary of changes for version 20030619: 16070 160711) ACPI CA Core Subsystem: 16072 16073Fix To/FromBCD, eliminating the need for an arch-specific #define. 16074 16075Do not acquire a semaphore in the S5 shutdown path. 16076 16077Fix ex_digits_needed for 0. (Takayoshi Kochi) 16078 16079Fix sleep/stall code reversal. (Andi Kleen) 16080 16081Revert a change having to do with control method calling 16082semantics. 16083 160842) Linux: 16085 16086acpiphp update (Takayoshi Kochi) 16087 16088Export acpi_disabled for sonypi (Stelian Pop) 16089 16090Mention acpismp=force in config help 16091 16092Re-add acpitable.c and acpismp=force. This improves backwards 16093 16094compatibility and also cleans up the code to a significant degree. 16095 16096Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 16097 16098---------------------------------------- 1609922 May 2003. Summary of changes for version 20030522: 16100 161011) ACPI CA Core Subsystem: 16102 16103Found and fixed a reported problem where an AE_NOT_FOUND error 16104occurred occasionally during _BST evaluation. This turned out to 16105be an Owner ID allocation issue where a called method did not get 16106a new ID assigned to it. Eventually, (after 64k calls), the Owner 16107ID UINT16 would wraparound so that the ID would be the same as the 16108caller's and the called method would delete the caller's 16109namespace. 16110 16111Implemented extended error reporting for control methods that are 16112aborted due to a run-time exception. Output includes the exact 16113AML instruction that caused the method abort, a dump of the method 16114locals and arguments at the time of the abort, and a trace of all 16115nested control method calls. 16116 16117Modified the interpreter to allow the creation of buffers of zero 16118length from the AML code. Implemented new code to ensure that no 16119attempt is made to actually allocate a memory buffer (of length 16120zero) - instead, a simple buffer object with a NULL buffer pointer 16121and length zero is created. A warning is no longer issued when 16122the AML attempts to create a zero-length buffer. 16123 16124Implemented a workaround for the "leading asterisk issue" in 16125_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 16126asterisk is automatically removed if present in any HID, UID, or 16127CID strings. The iASL compiler will still flag this asterisk as 16128an error, however. 16129 16130Implemented full support for _CID methods that return a package of 16131multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 16132now additionally returns a device _CID list if present. This 16133required a change to the external interface in order to pass an 16134ACPI_BUFFER object as a parameter since the _CID list is of 16135variable length. 16136 16137Fixed a problem with the new AE_SAME_HANDLER exception where 16138handler initialization code did not know about this exception. 16139 16140Code and Data Size: Current and previous core subsystem library 16141sizes are shown below. These are the code and data sizes for the 16142acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 16143these values do not include any ACPI driver or OSPM code. The 16144debug version of the code includes the debug output trace 16145mechanism and has a much larger code and data size. Note that 16146these values will vary depending on the efficiency of the compiler 16147and the compiler options used during generation. 16148 16149 Previous Release (20030509): 16150 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 16151 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 16152 Current Release: 16153 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 16154 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 16155 16156 161572) Linux: 16158 16159Fixed a bug in which we would reinitialize the ACPI interrupt 16160after it was already working, thus disabling all ACPI and the IRQs 16161for any other device sharing the interrupt. (Thanks to Stian 16162Jordet) 16163 16164Toshiba driver update (John Belmonte) 16165 16166Return only 0 or 1 for our interrupt handler status (Andrew 16167Morton) 16168 16169 161703) iASL Compiler: 16171 16172Fixed a reported problem where multiple (nested) ElseIf() 16173statements were not handled correctly by the compiler, resulting 16174in incorrect warnings and incorrect AML code. This was a problem 16175in both the ASL parser and the code generator. 16176 16177 161784) Documentation: 16179 16180Added changes to existing interfaces, new exception codes, and new 16181text concerning reference count object management versus garbage 16182collection. 16183 16184---------------------------------------- 1618509 May 2003. Summary of changes for version 20030509. 16186 16187 161881) ACPI CA Core Subsystem: 16189 16190Changed the subsystem initialization sequence to hold off 16191installation of address space handlers until the hardware has been 16192initialized and the system has entered ACPI mode. This is because 16193the installation of space handlers can cause _REG methods to be 16194run. Previously, the _REG methods could potentially be run before 16195ACPI mode was enabled. 16196 16197Fixed some memory leak issues related to address space handler and 16198notify handler installation. There were some problems with the 16199reference count mechanism caused by the fact that the handler 16200objects are shared across several namespace objects. 16201 16202Fixed a reported problem where reference counts within the 16203namespace were not properly updated when named objects created by 16204method execution were deleted. 16205 16206Fixed a reported problem where multiple SSDTs caused a deletion 16207issue during subsystem termination. Restructured the table data 16208structures to simplify the linked lists and the related code. 16209 16210Fixed a problem where the table ID associated with secondary 16211tables (SSDTs) was not being propagated into the namespace objects 16212created by those tables. This would only present a problem for 16213tables that are unloaded at run-time, however. 16214 16215Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 16216type as the length parameter (instead of UINT32). 16217 16218Solved a long-standing problem where an ALREADY_EXISTS error 16219appears on various systems. This problem could happen when there 16220are multiple PCI_Config operation regions under a single PCI root 16221bus. This doesn't happen very frequently, but there are some 16222systems that do this in the ASL. 16223 16224Fixed a reported problem where the internal DeleteNode function 16225was incorrectly handling the case where a namespace node was the 16226first in the parent's child list, and had additional peers (not 16227the only child, but first in the list of children.) 16228 16229Code and Data Size: Current core subsystem library sizes are shown 16230below. These are the code and data sizes for the acpica.lib 16231produced by the Microsoft Visual C++ 6.0 compiler, and these 16232values do not include any ACPI driver or OSPM code. The debug 16233version of the code includes the debug output trace mechanism and 16234has a much larger code and data size. Note that these values will 16235vary depending on the efficiency of the compiler and the compiler 16236options used during generation. 16237 16238 Previous Release 16239 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 16240 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 16241 Current Release: 16242 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 16243 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 16244 16245 162462) Linux: 16247 16248Allow ":" in OS override string (Ducrot Bruno) 16249 16250Kobject fix (Greg KH) 16251 16252 162533 iASL Compiler/Disassembler: 16254 16255Fixed a problem in the generation of the C source code files (AML 16256is emitted in C source statements for BIOS inclusion) where the 16257Ascii dump that appears within a C comment at the end of each line 16258could cause a compile time error if the AML sequence happens to 16259have an open comment or close comment sequence embedded. 16260 16261 16262---------------------------------------- 1626324 April 2003. Summary of changes for version 20030424. 16264 16265 162661) ACPI CA Core Subsystem: 16267 16268Support for big-endian systems has been implemented. Most of the 16269support has been invisibly added behind big-endian versions of the 16270ACPI_MOVE_* macros. 16271 16272Fixed a problem in AcpiHwDisableGpeBlock() and 16273AcpiHwClearGpeBlock() where an incorrect offset was passed to the 16274low level hardware write routine. The offset parameter was 16275actually eliminated from the low level read/write routines because 16276they had become obsolete. 16277 16278Fixed a problem where a handler object was deleted twice during 16279the removal of a fixed event handler. 16280 16281 162822) Linux: 16283 16284A fix for SMP systems with link devices was contributed by 16285 16286Compaq's Dan Zink. 16287 16288(2.5) Return whether we handled the interrupt in our IRQ handler. 16289(Linux ISRs no longer return void, so we can propagate the handler 16290return value from the ACPI CA core back to the OS.) 16291 16292 16293 162943) Documentation: 16295 16296The ACPI CA Programmer Reference has been updated to reflect new 16297interfaces and changes to existing interfaces. 16298 16299---------------------------------------- 1630028 March 2003. Summary of changes for version 20030328. 16301 163021) ACPI CA Core Subsystem: 16303 16304The GPE Block Device support has been completed. New interfaces 16305are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 16306interfaces (enable, disable, clear, getstatus) have been split 16307into separate interfaces for Fixed Events and General Purpose 16308Events (GPEs) in order to support GPE Block Devices properly. 16309 16310Fixed a problem where the error message "Failed to acquire 16311semaphore" would appear during operations on the embedded 16312controller (EC). 16313 16314Code and Data Size: Current core subsystem library sizes are shown 16315below. These are the code and data sizes for the acpica.lib 16316produced by the Microsoft Visual C++ 6.0 compiler, and these 16317values do not include any ACPI driver or OSPM code. The debug 16318version of the code includes the debug output trace mechanism and 16319has a much larger code and data size. Note that these values will 16320vary depending on the efficiency of the compiler and the compiler 16321options used during generation. 16322 16323 Previous Release 16324 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 16325 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 16326 Current Release: 16327 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 16328 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 16329 16330 16331---------------------------------------- 1633228 February 2003. Summary of changes for version 20030228. 16333 16334 163351) ACPI CA Core Subsystem: 16336 16337The GPE handling and dispatch code has been completely overhauled 16338in preparation for support of GPE Block Devices (ID ACPI0006). 16339This affects internal data structures and code only; there should 16340be no differences visible externally. One new file has been 16341added, evgpeblk.c 16342 16343The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 16344fields that are used to determine the GPE block lengths. The 16345REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 16346structures are ignored. This is per the ACPI specification but it 16347isn't very clear. The full 256 Block 0/1 GPEs are now supported 16348(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 16349 16350In the SCI interrupt handler, removed the read of the PM1_CONTROL 16351register to look at the SCI_EN bit. On some machines, this read 16352causes an SMI event and greatly slows down SCI events. (This may 16353in fact be the cause of slow battery status response on some 16354systems.) 16355 16356Fixed a problem where a store of a NULL string to a package object 16357could cause the premature deletion of the object. This was seen 16358during execution of the battery _BIF method on some systems, 16359resulting in no battery data being returned. 16360 16361Added AcpiWalkResources interface to simplify parsing of resource 16362lists. 16363 16364Code and Data Size: Current core subsystem library sizes are shown 16365below. These are the code and data sizes for the acpica.lib 16366produced by the Microsoft Visual C++ 6.0 compiler, and these 16367values do not include any ACPI driver or OSPM code. The debug 16368version of the code includes the debug output trace mechanism and 16369has a much larger code and data size. Note that these values will 16370vary depending on the efficiency of the compiler and the compiler 16371options used during generation. 16372 16373 Previous Release 16374 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16375 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16376 Current Release: 16377 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 16378 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 16379 16380 163812) Linux 16382 16383S3 fixes (Ole Rohne) 16384 16385Update ACPI PHP driver with to use new acpi_walk_resource API 16386(Bjorn Helgaas) 16387 16388Add S4BIOS support (Pavel Machek) 16389 16390Map in entire table before performing checksum (John Stultz) 16391 16392Expand the mem= cmdline to allow the specification of reserved and 16393ACPI DATA blocks (Pavel Machek) 16394 16395Never use ACPI on VISWS 16396 16397Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 16398 16399Revert a change that allowed P_BLK lengths to be 4 or 5. This is 16400causing us to think that some systems support C2 when they really 16401don't. 16402 16403Do not count processor objects for non-present CPUs (Thanks to 16404Dominik Brodowski) 16405 16406 164073) iASL Compiler: 16408 16409Fixed a problem where ASL include files could not be found and 16410opened. 16411 16412Added support for the _PDC reserved name. 16413 16414 16415---------------------------------------- 1641622 January 2003. Summary of changes for version 20030122. 16417 16418 164191) ACPI CA Core Subsystem: 16420 16421Added a check for constructs of the form: Store (Local0, Local0) 16422where Local0 is not initialized. Apparently, some BIOS 16423programmers believe that this is a NOOP. Since this store doesn't 16424do anything anyway, the new prototype behavior will ignore this 16425error. This is a case where we can relax the strict checking in 16426the interpreter in the name of compatibility. 16427 16428 164292) Linux 16430 16431The AcpiSrc Source Conversion Utility has been released with the 16432Linux package for the first time. This is the utility that is 16433used to convert the ACPI CA base source code to the Linux version. 16434 16435(Both) Handle P_BLK lengths shorter than 6 more gracefully 16436 16437(Both) Move more headers to include/acpi, and delete an unused 16438header. 16439 16440(Both) Move drivers/acpi/include directory to include/acpi 16441 16442(Both) Boot functions don't use cmdline, so don't pass it around 16443 16444(Both) Remove include of unused header (Adrian Bunk) 16445 16446(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 16447the 16448former now also includes the latter, acpiphp.h only needs the one, 16449now. 16450 16451(2.5) Make it possible to select method of bios restoring after S3 16452resume. [=> no more ugly ifdefs] (Pavel Machek) 16453 16454(2.5) Make proc write interfaces work (Pavel Machek) 16455 16456(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 16457 16458(2.5) Break out ACPI Perf code into its own module, under cpufreq 16459(Dominik Brodowski) 16460 16461(2.4) S4BIOS support (Ducrot Bruno) 16462 16463(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 16464Visinoni) 16465 16466 164673) iASL Compiler: 16468 16469Added support to disassemble SSDT and PSDTs. 16470 16471Implemented support to obtain SSDTs from the Windows registry if 16472available. 16473 16474 16475---------------------------------------- 1647609 January 2003. Summary of changes for version 20030109. 16477 164781) ACPI CA Core Subsystem: 16479 16480Changed the behavior of the internal Buffer-to-String conversion 16481function. The current ACPI specification states that the contents 16482of the buffer are "converted to a string of two-character 16483hexadecimal numbers, each separated by a space". Unfortunately, 16484this definition is not backwards compatible with existing ACPI 1.0 16485implementations (although the behavior was not defined in the ACPI 164861.0 specification). The new behavior simply copies data from the 16487buffer to the string until a null character is found or the end of 16488the buffer is reached. The new String object is always null 16489terminated. This problem was seen during the generation of _BIF 16490battery data where incorrect strings were returned for battery 16491type, etc. This will also require an errata to the ACPI 16492specification. 16493 16494Renamed all instances of NATIVE_UINT and NATIVE_INT to 16495ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 16496 16497Copyright in all module headers (both Linux and non-Linux) has be 16498updated to 2003. 16499 16500Code and Data Size: Current core subsystem library sizes are shown 16501below. These are the code and data sizes for the acpica.lib 16502produced by the Microsoft Visual C++ 6.0 compiler, and these 16503values do not include any ACPI driver or OSPM code. The debug 16504version of the code includes the debug output trace mechanism and 16505has a much larger code and data size. Note that these values will 16506vary depending on the efficiency of the compiler and the compiler 16507options used during generation. 16508 16509 Previous Release 16510 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16511 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16512 Current Release: 16513 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16514 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16515 16516 165172) Linux 16518 16519Fixed an oops on module insertion/removal (Matthew Tippett) 16520 16521(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 16522 16523(2.5) Replace pr_debug (Randy Dunlap) 16524 16525(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 16526 16527(Both) Eliminate spawning of thread from timer callback, in favor 16528of schedule_work() 16529 16530(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 16531 16532(Both) Added define for Fixed Function HW region (Matthew Wilcox) 16533 16534(Both) Add missing statics to button.c (Pavel Machek) 16535 16536Several changes have been made to the source code translation 16537utility that generates the Linux Code in order to make the code 16538more "Linux-like": 16539 16540All typedefs on structs and unions have been removed in keeping 16541with the Linux coding style. 16542 16543Removed the non-Linux SourceSafe module revision number from each 16544module header. 16545 16546Completed major overhaul of symbols to be lowercase for linux. 16547Doubled the number of symbols that are lowercase. 16548 16549Fixed a problem where identifiers within procedure headers and 16550within quotes were not fully lower cased (they were left with a 16551starting capital.) 16552 16553Some C macros whose only purpose is to allow the generation of 16- 16554bit code are now completely removed in the Linux code, increasing 16555readability and maintainability. 16556 16557---------------------------------------- 16558 1655912 December 2002. Summary of changes for version 20021212. 16560 16561 165621) ACPI CA Core Subsystem: 16563 16564Fixed a problem where the creation of a zero-length AML Buffer 16565would cause a fault. 16566 16567Fixed a problem where a Buffer object that pointed to a static AML 16568buffer (in an ACPI table) could inadvertently be deleted, causing 16569memory corruption. 16570 16571Fixed a problem where a user buffer (passed in to the external 16572ACPI CA interfaces) could be overwritten if the buffer was too 16573small to complete the operation, causing memory corruption. 16574 16575Fixed a problem in the Buffer-to-String conversion code where a 16576string of length one was always returned, regardless of the size 16577of the input Buffer object. 16578 16579Removed the NATIVE_CHAR data type across the entire source due to 16580lack of need and lack of consistent use. 16581 16582Code and Data Size: Current core subsystem library sizes are shown 16583below. These are the code and data sizes for the acpica.lib 16584produced by the Microsoft Visual C++ 6.0 compiler, and these 16585values do not include any ACPI driver or OSPM code. The debug 16586version of the code includes the debug output trace mechanism and 16587has a much larger code and data size. Note that these values will 16588vary depending on the efficiency of the compiler and the compiler 16589options used during generation. 16590 16591 Previous Release 16592 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 16593 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 16594 Current Release: 16595 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16596 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16597 16598 16599---------------------------------------- 1660005 December 2002. Summary of changes for version 20021205. 16601 166021) ACPI CA Core Subsystem: 16603 16604Fixed a problem where a store to a String or Buffer object could 16605cause corruption of the DSDT if the object type being stored was 16606the same as the target object type and the length of the object 16607being stored was equal to or smaller than the original (existing) 16608target object. This was seen to cause corruption of battery _BIF 16609buffers if the _BIF method modified the buffer on the fly. 16610 16611Fixed a problem where an internal error was generated if a control 16612method invocation was used in an OperationRegion, Buffer, or 16613Package declaration. This was caused by the deferred parsing of 16614the control method and thus the deferred creation of the internal 16615method object. The solution to this problem was to create the 16616internal method object at the moment the method is encountered in 16617the first pass - so that subsequent references to the method will 16618able to obtain the required parameter count and thus properly 16619parse the method invocation. This problem presented itself as an 16620AE_AML_INTERNAL during the pass 1 parse phase during table load. 16621 16622Fixed a problem where the internal String object copy routine did 16623not always allocate sufficient memory for the target String object 16624and caused memory corruption. This problem was seen to cause 16625"Allocation already present in list!" errors as memory allocation 16626became corrupted. 16627 16628Implemented a new function for the evaluation of namespace objects 16629that allows the specification of the allowable return object 16630types. This simplifies a lot of code that checks for a return 16631object of one or more specific objects returned from the 16632evaluation (such as _STA, etc.) This may become and external 16633function if it would be useful to ACPI-related drivers. 16634 16635Completed another round of prefixing #defines with "ACPI_" for 16636clarity. 16637 16638Completed additional code restructuring to allow more modular 16639linking for iASL compiler and AcpiExec. Several files were split 16640creating new files. New files: nsparse.c dsinit.c evgpe.c 16641 16642Implemented an abort mechanism to terminate an executing control 16643method via the AML debugger. This feature is useful for debugging 16644control methods that depend (wait) for specific hardware 16645responses. 16646 16647Code and Data Size: Current core subsystem library sizes are shown 16648below. These are the code and data sizes for the acpica.lib 16649produced by the Microsoft Visual C++ 6.0 compiler, and these 16650values do not include any ACPI driver or OSPM code. The debug 16651version of the code includes the debug output trace mechanism and 16652has a much larger code and data size. Note that these values will 16653vary depending on the efficiency of the compiler and the compiler 16654options used during generation. 16655 16656 Previous Release 16657 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16658 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 16659 Current Release: 16660 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 16661 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 16662 16663 166642) iASL Compiler/Disassembler 16665 16666Fixed a compiler code generation problem for "Interrupt" Resource 16667Descriptors. If specified in the ASL, the optional "Resource 16668Source Index" and "Resource Source" fields were not inserted into 16669the correct location within the AML resource descriptor, creating 16670an invalid descriptor. 16671 16672Fixed a disassembler problem for "Interrupt" resource descriptors. 16673The optional "Resource Source Index" and "Resource Source" fields 16674were ignored. 16675 16676 16677---------------------------------------- 1667822 November 2002. Summary of changes for version 20021122. 16679 16680 166811) ACPI CA Core Subsystem: 16682 16683Fixed a reported problem where an object stored to a Method Local 16684or Arg was not copied to a new object during the store - the 16685object pointer was simply copied to the Local/Arg. This caused 16686all subsequent operations on the Local/Arg to also affect the 16687original source of the store operation. 16688 16689Fixed a problem where a store operation to a Method Local or Arg 16690was not completed properly if the Local/Arg contained a reference 16691(from RefOf) to a named field. The general-purpose store-to- 16692namespace-node code is now used so that this case is handled 16693automatically. 16694 16695Fixed a problem where the internal object copy routine would cause 16696a protection fault if the object being copied was a Package and 16697contained either 1) a NULL package element or 2) a nested sub- 16698package. 16699 16700Fixed a problem with the GPE initialization that resulted from an 16701ambiguity in the ACPI specification. One section of the 16702specification states that both the address and length of the GPE 16703block must be zero if the block is not supported. Another section 16704implies that only the address need be zero if the block is not 16705supported. The code has been changed so that both the address and 16706the length must be non-zero to indicate a valid GPE block (i.e., 16707if either the address or the length is zero, the GPE block is 16708invalid.) 16709 16710Code and Data Size: Current core subsystem library sizes are shown 16711below. These are the code and data sizes for the acpica.lib 16712produced by the Microsoft Visual C++ 6.0 compiler, and these 16713values do not include any ACPI driver or OSPM code. The debug 16714version of the code includes the debug output trace mechanism and 16715has a much larger code and data size. Note that these values will 16716vary depending on the efficiency of the compiler and the compiler 16717options used during generation. 16718 16719 Previous Release 16720 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 16721 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 16722 Current Release: 16723 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16724 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 16725 16726 167272) Linux 16728 16729Cleaned up EC driver. Exported an external EC read/write 16730interface. By going through this, other drivers (most notably 16731sonypi) will be able to serialize access to the EC. 16732 16733 167343) iASL Compiler/Disassembler 16735 16736Implemented support to optionally generate include files for both 16737ASM and C (the -i switch). This simplifies BIOS development by 16738automatically creating include files that contain external 16739declarations for the symbols that are created within the 16740 16741(optionally generated) ASM and C AML source files. 16742 16743 16744---------------------------------------- 1674515 November 2002. Summary of changes for version 20021115. 16746 167471) ACPI CA Core Subsystem: 16748 16749Fixed a memory leak problem where an error during resolution of 16750 16751method arguments during a method invocation from another method 16752failed to cleanup properly by deleting all successfully resolved 16753argument objects. 16754 16755Fixed a problem where the target of the Index() operator was not 16756correctly constructed if the source object was a package. This 16757problem has not been detected because the use of a target operand 16758with Index() is very rare. 16759 16760Fixed a problem with the Index() operator where an attempt was 16761made to delete the operand objects twice. 16762 16763Fixed a problem where an attempt was made to delete an operand 16764twice during execution of the CondRefOf() operator if the target 16765did not exist. 16766 16767Implemented the first of perhaps several internal create object 16768functions that create and initialize a specific object type. This 16769consolidates duplicated code wherever the object is created, thus 16770shrinking the size of the subsystem. 16771 16772Implemented improved debug/error messages for errors that occur 16773during nested method invocations. All executing method pathnames 16774are displayed (with the error) as the call stack is unwound - thus 16775simplifying debug. 16776 16777Fixed a problem introduced in the 10/02 release that caused 16778premature deletion of a buffer object if a buffer was used as an 16779ASL operand where an integer operand is required (Thus causing an 16780implicit object conversion from Buffer to Integer.) The change in 16781the 10/02 release was attempting to fix a memory leak (albeit 16782incorrectly.) 16783 16784Code and Data Size: Current core subsystem library sizes are shown 16785below. These are the code and data sizes for the acpica.lib 16786produced by the Microsoft Visual C++ 6.0 compiler, and these 16787values do not include any ACPI driver or OSPM code. The debug 16788version of the code includes the debug output trace mechanism and 16789has a much larger code and data size. Note that these values will 16790vary depending on the efficiency of the compiler and the compiler 16791options used during generation. 16792 16793 Previous Release 16794 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16795 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16796 Current Release: 16797 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 16798 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 16799 16800 168012) Linux 16802 16803Changed the implementation of the ACPI semaphores to use down() 16804instead of down_interruptable(). It is important that the 16805execution of ACPI control methods not be interrupted by signals. 16806Methods must run to completion, or the system may be left in an 16807unknown/unstable state. 16808 16809Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 16810(Shawn Starr) 16811 16812 168133) iASL Compiler/Disassembler 16814 16815 16816Changed the default location of output files. All output files 16817are now placed in the current directory by default instead of in 16818the directory of the source file. This change may affect some 16819existing makefiles, but it brings the behavior of the compiler in 16820line with other similar tools. The location of the output files 16821can be overridden with the -p command line switch. 16822 16823 16824---------------------------------------- 1682511 November 2002. Summary of changes for version 20021111. 16826 16827 168280) ACPI Specification 2.0B is released and is now available at: 16829http://www.acpi.info/index.html 16830 16831 168321) ACPI CA Core Subsystem: 16833 16834Implemented support for the ACPI 2.0 SMBus Operation Regions. 16835This includes the early detection and handoff of the request to 16836the SMBus region handler (avoiding all of the complex field 16837support code), and support for the bidirectional return packet 16838from an SMBus write operation. This paves the way for the 16839development of SMBus drivers in each host operating system. 16840 16841Fixed a problem where the semaphore WAIT_FOREVER constant was 16842defined as 32 bits, but must be 16 bits according to the ACPI 16843specification. This had the side effect of causing ASL 16844Mutex/Event timeouts even though the ASL code requested a wait 16845forever. Changed all internal references to the ACPI timeout 16846parameter to 16 bits to prevent future problems. Changed the name 16847of WAIT_FOREVER to ACPI_WAIT_FOREVER. 16848 16849Code and Data Size: Current core subsystem library sizes are shown 16850below. These are the code and data sizes for the acpica.lib 16851produced by the Microsoft Visual C++ 6.0 compiler, and these 16852values do not include any ACPI driver or OSPM code. The debug 16853version of the code includes the debug output trace mechanism and 16854has a much larger code and data size. Note that these values will 16855vary depending on the efficiency of the compiler and the compiler 16856options used during generation. 16857 16858 Previous Release 16859 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16860 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16861 Current Release: 16862 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16863 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16864 16865 168662) Linux 16867 16868Module loading/unloading fixes (John Cagle) 16869 16870 168713) iASL Compiler/Disassembler 16872 16873Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 16874 16875Implemented support for the disassembly of all SMBus protocol 16876keywords (SMBQuick, SMBWord, etc.) 16877 16878---------------------------------------- 1687901 November 2002. Summary of changes for version 20021101. 16880 16881 168821) ACPI CA Core Subsystem: 16883 16884Fixed a problem where platforms that have a GPE1 block but no GPE0 16885block were not handled correctly. This resulted in a "GPE 16886overlap" error message. GPE0 is no longer required. 16887 16888Removed code added in the previous release that inserted nodes 16889into the namespace in alphabetical order. This caused some side- 16890effects on various machines. The root cause of the problem is 16891still under investigation since in theory, the internal ordering 16892of the namespace nodes should not matter. 16893 16894 16895Enhanced error reporting for the case where a named object is not 16896found during control method execution. The full ACPI namepath 16897(name reference) of the object that was not found is displayed in 16898this case. 16899 16900Note: as a result of the overhaul of the namespace object types in 16901the previous release, the namespace nodes for the predefined 16902scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 16903instead of ACPI_TYPE_ANY. This simplifies the namespace 16904management code but may affect code that walks the namespace tree 16905looking for specific object types. 16906 16907Code and Data Size: Current core subsystem library sizes are shown 16908below. These are the code and data sizes for the acpica.lib 16909produced by the Microsoft Visual C++ 6.0 compiler, and these 16910values do not include any ACPI driver or OSPM code. The debug 16911version of the code includes the debug output trace mechanism and 16912has a much larger code and data size. Note that these values will 16913vary depending on the efficiency of the compiler and the compiler 16914options used during generation. 16915 16916 Previous Release 16917 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 16918 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 16919 Current Release: 16920 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16921 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16922 16923 169242) Linux 16925 16926Fixed a problem introduced in the previous release where the 16927Processor and Thermal objects were not recognized and installed in 16928/proc. This was related to the scope type change described above. 16929 16930 169313) iASL Compiler/Disassembler 16932 16933Implemented the -g option to get all of the required ACPI tables 16934from the registry and save them to files (Windows version of the 16935compiler only.) The required tables are the FADT, FACS, and DSDT. 16936 16937Added ACPI table checksum validation during table disassembly in 16938order to catch corrupted tables. 16939 16940 16941---------------------------------------- 1694222 October 2002. Summary of changes for version 20021022. 16943 169441) ACPI CA Core Subsystem: 16945 16946Implemented a restriction on the Scope operator that the target 16947must already exist in the namespace at the time the operator is 16948encountered (during table load or method execution). In other 16949words, forward references are not allowed and Scope() cannot 16950create a new object. This changes the previous behavior where the 16951interpreter would create the name if not found. This new behavior 16952correctly enables the search-to-root algorithm during namespace 16953lookup of the target name. Because of this upsearch, this fixes 16954the known Compaq _SB_.OKEC problem and makes both the AML 16955interpreter and iASL compiler compatible with other ACPI 16956implementations. 16957 16958Completed a major overhaul of the internal ACPI object types for 16959the ACPI Namespace and the associated operand objects. Many of 16960these types had become obsolete with the introduction of the two- 16961pass namespace load. This cleanup simplifies the code and makes 16962the entire namespace load mechanism much clearer and easier to 16963understand. 16964 16965Improved debug output for tracking scope opening/closing to help 16966diagnose scoping issues. The old scope name as well as the new 16967scope name are displayed. Also improved error messages for 16968problems with ASL Mutex objects and error messages for GPE 16969problems. 16970 16971Cleaned up the namespace dump code, removed obsolete code. 16972 16973All string output (for all namespace/object dumps) now uses the 16974common ACPI string output procedure which handles escapes properly 16975and does not emit non-printable characters. 16976 16977Fixed some issues with constants in the 64-bit version of the 16978local C library (utclib.c) 16979 16980 169812) Linux 16982 16983EC Driver: No longer attempts to acquire the Global Lock at 16984interrupt level. 16985 16986 169873) iASL Compiler/Disassembler 16988 16989Implemented ACPI 2.0B grammar change that disallows all Type 1 and 169902 opcodes outside of a control method. This means that the 16991"executable" operators (versus the "namespace" operators) cannot 16992be used at the table level; they can only be used within a control 16993method. 16994 16995Implemented the restriction on the Scope() operator where the 16996target must already exist in the namespace at the time the 16997operator is encountered (during ASL compilation). In other words, 16998forward references are not allowed and Scope() cannot create a new 16999object. This makes the iASL compiler compatible with other ACPI 17000implementations and makes the Scope() implementation adhere to the 17001ACPI specification. 17002 17003Fixed a problem where namepath optimization for the Alias operator 17004was optimizing the wrong path (of the two namepaths.) This caused 17005a "Missing alias link" error message. 17006 17007Fixed a problem where an "unknown reserved name" warning could be 17008incorrectly generated for names like "_SB" when the trailing 17009underscore is not used in the original ASL. 17010 17011Fixed a problem where the reserved name check did not handle 17012NamePaths with multiple NameSegs correctly. The first nameseg of 17013the NamePath was examined instead of the last NameSeg. 17014 17015 17016---------------------------------------- 17017 1701802 October 2002. Summary of changes for this release. 17019 17020 170211) ACPI CA Core Subsystem version 20021002: 17022 17023Fixed a problem where a store/copy of a string to an existing 17024string did not always set the string length properly in the String 17025object. 17026 17027Fixed a reported problem with the ToString operator where the 17028behavior was identical to the ToHexString operator instead of just 17029simply converting a raw buffer to a string data type. 17030 17031Fixed a problem where CopyObject and the other "explicit" 17032conversion operators were not updating the internal namespace node 17033type as part of the store operation. 17034 17035Fixed a memory leak during implicit source operand conversion 17036where the original object was not deleted if it was converted to a 17037new object of a different type. 17038 17039Enhanced error messages for all problems associated with namespace 17040lookups. Common procedure generates and prints the lookup name as 17041well as the formatted status. 17042 17043Completed implementation of a new design for the Alias support 17044within the namespace. The existing design did not handle the case 17045where a new object was assigned to one of the two names due to the 17046use of an explicit conversion operator, resulting in the two names 17047pointing to two different objects. The new design simply points 17048the Alias name to the original name node - not to the object. 17049This results in a level of indirection that must be handled in the 17050name resolution mechanism. 17051 17052Code and Data Size: Current core subsystem library sizes are shown 17053below. These are the code and data sizes for the acpica.lib 17054produced by the Microsoft Visual C++ 6.0 compiler, and these 17055values do not include any ACPI driver or OSPM code. The debug 17056version of the code includes the debug output trace mechanism and 17057has a larger code and data size. Note that these values will vary 17058depending on the efficiency of the compiler and the compiler 17059options used during generation. 17060 17061 Previous Release 17062 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 17063 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 17064 Current Release: 17065 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 17066 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 17067 17068 170692) Linux 17070 17071Initialize thermal driver's timer before it is used. (Knut 17072Neumann) 17073 17074Allow handling negative celsius values. (Kochi Takayoshi) 17075 17076Fix thermal management and make trip points. R/W (Pavel Machek) 17077 17078Fix /proc/acpi/sleep. (P. Christeas) 17079 17080IA64 fixes. (David Mosberger) 17081 17082Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 17083 17084Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 17085Brodowski) 17086 17087 170883) iASL Compiler/Disassembler 17089 17090Clarified some warning/error messages. 17091 17092 17093---------------------------------------- 1709418 September 2002. Summary of changes for this release. 17095 17096 170971) ACPI CA Core Subsystem version 20020918: 17098 17099Fixed a reported problem with reference chaining (via the Index() 17100and RefOf() operators) in the ObjectType() and SizeOf() operators. 17101The definition of these operators includes the dereferencing of 17102all chained references to return information on the base object. 17103 17104Fixed a problem with stores to indexed package elements - the 17105existing code would not complete the store if an "implicit 17106conversion" was not performed. In other words, if the existing 17107object (package element) was to be replaced completely, the code 17108didn't handle this case. 17109 17110Relaxed typechecking on the ASL "Scope" operator to allow the 17111target name to refer to an object of type Integer, String, or 17112Buffer, in addition to the scoping object types (Device, 17113predefined Scopes, Processor, PowerResource, and ThermalZone.) 17114This allows existing AML code that has workarounds for a bug in 17115Windows to function properly. A warning is issued, however. This 17116affects both the AML interpreter and the iASL compiler. Below is 17117an example of this type of ASL code: 17118 17119 Name(DEB,0x00) 17120 Scope(DEB) 17121 { 17122 17123Fixed some reported problems with 64-bit integer support in the 17124local implementation of C library functions (clib.c) 17125 17126 171272) Linux 17128 17129Use ACPI fix map region instead of IOAPIC region, since it is 17130undefined in non-SMP. 17131 17132Ensure that the SCI has the proper polarity and trigger, even on 17133systems that do not have an interrupt override entry in the MADT. 17134 171352.5 big driver reorganization (Pat Mochel) 17136 17137Use early table mapping code from acpitable.c (Andi Kleen) 17138 17139New blacklist entries (Andi Kleen) 17140 17141Blacklist improvements. Split blacklist code out into a separate 17142file. Move checking the blacklist to very early. Previously, we 17143would use ACPI tables, and then halfway through init, check the 17144blacklist -- too late. Now, it's early enough to completely fall- 17145back to non-ACPI. 17146 17147 171483) iASL Compiler/Disassembler version 20020918: 17149 17150Fixed a problem where the typechecking code didn't know that an 17151alias could point to a method. In other words, aliases were not 17152being dereferenced during typechecking. 17153 17154 17155---------------------------------------- 1715629 August 2002. Summary of changes for this release. 17157 171581) ACPI CA Core Subsystem Version 20020829: 17159 17160If the target of a Scope() operator already exists, it must be an 17161object type that actually opens a scope -- such as a Device, 17162Method, Scope, etc. This is a fatal runtime error. Similar error 17163check has been added to the iASL compiler also. 17164 17165Tightened up the namespace load to disallow multiple names in the 17166same scope. This previously was allowed if both objects were of 17167the same type. (i.e., a lookup was the same as entering a new 17168name). 17169 17170 171712) Linux 17172 17173Ensure that the ACPI interrupt has the proper trigger and 17174polarity. 17175 17176local_irq_disable is extraneous. (Matthew Wilcox) 17177 17178Make "acpi=off" actually do what it says, and not use the ACPI 17179interpreter *or* the tables. 17180 17181Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 17182Takayoshi) 17183 17184 171853) iASL Compiler/Disassembler Version 20020829: 17186 17187Implemented namepath optimization for name declarations. For 17188example, a declaration like "Method (\_SB_.ABCD)" would get 17189optimized to "Method (ABCD)" if the declaration is within the 17190\_SB_ scope. This optimization is in addition to the named 17191reference path optimization first released in the previous 17192version. This would seem to complete all possible optimizations 17193for namepaths within the ASL/AML. 17194 17195If the target of a Scope() operator already exists, it must be an 17196object type that actually opens a scope -- such as a Device, 17197Method, Scope, etc. 17198 17199Implemented a check and warning for unreachable code in the same 17200block below a Return() statement. 17201 17202Fixed a problem where the listing file was not generated if the 17203compiler aborted if the maximum error count was exceeded (200). 17204 17205Fixed a problem where the typechecking of method return values was 17206broken. This includes the check for a return value when the 17207method is invoked as a TermArg (a return value is expected.) 17208 17209Fixed a reported problem where EOF conditions during a quoted 17210string or comment caused a fault. 17211 17212 17213---------------------------------------- 1721415 August 2002. Summary of changes for this release. 17215 172161) ACPI CA Core Subsystem Version 20020815: 17217 17218Fixed a reported problem where a Store to a method argument that 17219contains a reference did not perform the indirect store correctly. 17220This problem was created during the conversion to the new 17221reference object model - the indirect store to a method argument 17222code was not updated to reflect the new model. 17223 17224Reworked the ACPI mode change code to better conform to ACPI 2.0, 17225handle corner cases, and improve code legibility (Kochi Takayoshi) 17226 17227Fixed a problem with the pathname parsing for the carat (^) 17228prefix. The heavy use of the carat operator by the new namepath 17229optimization in the iASL compiler uncovered a problem with the AML 17230interpreter handling of this prefix. In the case where one or 17231more carats precede a single nameseg, the nameseg was treated as 17232standalone and the search rule (to root) was inadvertently 17233applied. This could cause both the iASL compiler and the 17234interpreter to find the wrong object or to miss the error that 17235should occur if the object does not exist at that exact pathname. 17236 17237Found and fixed the problem where the HP Pavilion DSDT would not 17238load. This was a relatively minor tweak to the table loading code 17239(a problem caused by the unexpected encounter with a method 17240invocation not within a control method), but it does not solve the 17241overall issue of the execution of AML code at the table level. 17242This investigation is still ongoing. 17243 17244Code and Data Size: Current core subsystem library sizes are shown 17245below. These are the code and data sizes for the acpica.lib 17246produced by the Microsoft Visual C++ 6.0 compiler, and these 17247values do not include any ACPI driver or OSPM code. The debug 17248version of the code includes the debug output trace mechanism and 17249has a larger code and data size. Note that these values will vary 17250depending on the efficiency of the compiler and the compiler 17251options used during generation. 17252 17253 Previous Release 17254 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 17255 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 17256 Current Release: 17257 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 17258 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 17259 17260 172612) Linux 17262 17263Remove redundant slab.h include (Brad Hards) 17264 17265Fix several bugs in thermal.c (Herbert Nachtnebel) 17266 17267Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 17268 17269Change acpi_system_suspend to use updated irq functions (Pavel 17270Machek) 17271 17272Export acpi_get_firmware_table (Matthew Wilcox) 17273 17274Use proper root proc entry for ACPI (Kochi Takayoshi) 17275 17276Fix early-boot table parsing (Bjorn Helgaas) 17277 17278 172793) iASL Compiler/Disassembler 17280 17281Reworked the compiler options to make them more consistent and to 17282use two-letter options where appropriate. We were running out of 17283sensible letters. This may break some makefiles, so check the 17284current options list by invoking the compiler with no parameters. 17285 17286Completed the design and implementation of the ASL namepath 17287optimization option for the compiler. This option optimizes all 17288references to named objects to the shortest possible path. The 17289first attempt tries to utilize a single nameseg (4 characters) and 17290the "search-to-root" algorithm used by the interpreter. If that 17291cannot be used (because either the name is not in the search path 17292or there is a conflict with another object with the same name), 17293the pathname is optimized using the carat prefix (usually a 17294shorter string than specifying the entire path from the root.) 17295 17296Implemented support to obtain the DSDT from the Windows registry 17297(when the disassembly option is specified with no input file). 17298Added this code as the implementation for AcpiOsTableOverride in 17299the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 17300utility) to scan memory for the DSDT to the AcpiOsTableOverride 17301function in the DOS OSL to make the disassembler truly OS 17302independent. 17303 17304Implemented a new option to disassemble and compile in one step. 17305When used without an input filename, this option will grab the 17306DSDT from the local machine, disassemble it, and compile it in one 17307step. 17308 17309Added a warning message for invalid escapes (a backslash followed 17310by any character other than the allowable escapes). This catches 17311the quoted string error "\_SB_" (which should be "\\_SB_" ). 17312 17313Also, there are numerous instances in the ACPI specification where 17314this error occurs. 17315 17316Added a compiler option to disable all optimizations. This is 17317basically the "compatibility mode" because by using this option, 17318the AML code will come out exactly the same as other ASL 17319compilers. 17320 17321Added error messages for incorrectly ordered dependent resource 17322functions. This includes: missing EndDependentFn macro at end of 17323dependent resource list, nested dependent function macros (both 17324start and end), and missing StartDependentFn macro. These are 17325common errors that should be caught at compile time. 17326 17327Implemented _OSI support for the disassembler and compiler. _OSI 17328must be included in the namespace for proper disassembly (because 17329the disassembler must know the number of arguments.) 17330 17331Added an "optimization" message type that is optional (off by 17332default). This message is used for all optimizations - including 17333constant folding, integer optimization, and namepath optimization. 17334 17335---------------------------------------- 1733625 July 2002. Summary of changes for this release. 17337 17338 173391) ACPI CA Core Subsystem Version 20020725: 17340 17341The AML Disassembler has been enhanced to produce compilable ASL 17342code and has been integrated into the iASL compiler (see below) as 17343well as the single-step disassembly for the AML debugger and the 17344disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 17345resource templates and macros are fully supported. The 17346disassembler has been tested on over 30 different AML files, 17347producing identical AML when the resulting disassembled ASL file 17348is recompiled with the same ASL compiler. 17349 17350Modified the Resource Manager to allow zero interrupts and zero 17351dma channels during the GetCurrentResources call. This was 17352causing problems on some platforms. 17353 17354Added the AcpiOsRedirectOutput interface to the OSL to simplify 17355output redirection for the AcpiOsPrintf and AcpiOsVprintf 17356interfaces. 17357 17358Code and Data Size: Current core subsystem library sizes are shown 17359below. These are the code and data sizes for the acpica.lib 17360produced by the Microsoft Visual C++ 6.0 compiler, and these 17361values do not include any ACPI driver or OSPM code. The debug 17362version of the code includes the debug output trace mechanism and 17363has a larger code and data size. Note that these values will vary 17364depending on the efficiency of the compiler and the compiler 17365options used during generation. 17366 17367 Previous Release 17368 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 17369 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 17370 Current Release: 17371 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 17372 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 17373 17374 173752) Linux 17376 17377Fixed a panic in the EC driver (Dominik Brodowski) 17378 17379Implemented checksum of the R/XSDT itself during Linux table scan 17380(Richard Schaal) 17381 17382 173833) iASL compiler 17384 17385The AML disassembler is integrated into the compiler. The "-d" 17386option invokes the disassembler to completely disassemble an 17387input AML file, producing as output a text ASL file with the 17388extension ".dsl" (to avoid name collisions with existing .asl 17389source files.) A future enhancement will allow the disassembler 17390to obtain the BIOS DSDT from the registry under Windows. 17391 17392Fixed a problem with the VendorShort and VendorLong resource 17393descriptors where an invalid AML sequence was created. 17394 17395Implemented a fix for BufferData term in the ASL parser. It was 17396inadvertently defined twice, allowing invalid syntax to pass and 17397causing reduction conflicts. 17398 17399Fixed a problem where the Ones opcode could get converted to a 17400value of zero if "Ones" was used where a byte, word or dword value 17401was expected. The 64-bit value is now truncated to the correct 17402size with the correct value. 17403 17404 17405 17406---------------------------------------- 1740702 July 2002. Summary of changes for this release. 17408 17409 174101) ACPI CA Core Subsystem Version 20020702: 17411 17412The Table Manager code has been restructured to add several new 17413features. Tables that are not required by the core subsystem 17414(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 17415validated in any way and are returned from AcpiGetFirmwareTable if 17416requested. The AcpiOsTableOverride interface is now called for 17417each table that is loaded by the subsystem in order to allow the 17418host to override any table it chooses. Previously, only the DSDT 17419could be overridden. Added one new files, tbrsdt.c and 17420tbgetall.c. 17421 17422Fixed a problem with the conversion of internal package objects to 17423external objects (when a package is returned from a control 17424method.) The return buffer length was set to zero instead of the 17425proper length of the package object. 17426 17427Fixed a reported problem with the use of the RefOf and DeRefOf 17428operators when passing reference arguments to control methods. A 17429new type of Reference object is used internally for references 17430produced by the RefOf operator. 17431 17432Added additional error messages in the Resource Manager to explain 17433AE_BAD_DATA errors when they occur during resource parsing. 17434 17435Split the AcpiEnableSubsystem into two primitives to enable a 17436finer granularity initialization sequence. These two calls should 17437be called in this order: AcpiEnableSubsystem (flags), 17438AcpiInitializeObjects (flags). The flags parameter remains the 17439same. 17440 17441 174422) Linux 17443 17444Updated the ACPI utilities module to understand the new style of 17445fully resolved package objects that are now returned from the core 17446subsystem. This eliminates errors of the form: 17447 17448 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 17449 acpi_utils-0430 [145] acpi_evaluate_reference: 17450 Invalid element in package (not a device reference) 17451 17452The method evaluation utility uses the new buffer allocation 17453scheme instead of calling AcpiEvaluate Object twice. 17454 17455Added support for ECDT. This allows the use of the Embedded 17456 17457Controller before the namespace has been fully initialized, which 17458is necessary for ACPI 2.0 support, and for some laptops to 17459initialize properly. (Laptops using ECDT are still rare, so only 17460limited testing was performed of the added functionality.) 17461 17462Fixed memory leaks in the EC driver. 17463 17464Eliminated a brittle code structure in acpi_bus_init(). 17465 17466Eliminated the acpi_evaluate() helper function in utils.c. It is 17467no longer needed since acpi_evaluate_object can optionally 17468allocate memory for the return object. 17469 17470Implemented fix for keyboard hang when getting battery readings on 17471some systems (Stephen White) 17472 17473PCI IRQ routing update (Dominik Brodowski) 17474 17475Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 17476support 17477 17478---------------------------------------- 1747911 June 2002. Summary of changes for this release. 17480 17481 174821) ACPI CA Core Subsystem Version 20020611: 17483 17484Fixed a reported problem where constants such as Zero and One 17485appearing within _PRT packages were not handled correctly within 17486the resource manager code. Originally reported against the ASL 17487compiler because the code generator now optimizes integers to 17488their minimal AML representation (i.e. AML constants if possible.) 17489The _PRT code now handles all AML constant opcodes correctly 17490(Zero, One, Ones, Revision). 17491 17492Fixed a problem with the Concatenate operator in the AML 17493interpreter where a buffer result object was incorrectly marked as 17494not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 17495 17496All package sub-objects are now fully resolved before they are 17497returned from the external ACPI interfaces. This means that name 17498strings are resolved to object handles, and constant operators 17499(Zero, One, Ones, Revision) are resolved to Integers. 17500 17501Implemented immediate resolution of the AML Constant opcodes 17502(Zero, One, Ones, Revision) to Integer objects upon detection 17503within the AML stream. This has simplified and reduced the 17504generated code size of the subsystem by eliminating about 10 17505switch statements for these constants (which previously were 17506contained in Reference objects.) The complicating issues are that 17507the Zero opcode is used as a "placeholder" for unspecified 17508optional target operands and stores to constants are defined to be 17509no-ops. 17510 17511Code and Data Size: Current core subsystem library sizes are shown 17512below. These are the code and data sizes for the acpica.lib 17513produced by the Microsoft Visual C++ 6.0 compiler, and these 17514values do not include any ACPI driver or OSPM code. The debug 17515version of the code includes the debug output trace mechanism and 17516has a larger code and data size. Note that these values will vary 17517depending on the efficiency of the compiler and the compiler 17518options used during generation. 17519 17520 Previous Release 17521 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 17522 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 17523 Current Release: 17524 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 17525 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 17526 17527 175282) Linux 17529 17530 17531Added preliminary support for obtaining _TRA data for PCI root 17532bridges (Bjorn Helgaas). 17533 17534 175353) iASL Compiler Version X2046: 17536 17537Fixed a problem where the "_DDN" reserved name was defined to be a 17538control method with one argument. There are no arguments, and 17539_DDN does not have to be a control method. 17540 17541Fixed a problem with the Linux version of the compiler where the 17542source lines printed with error messages were the wrong lines. 17543This turned out to be the "LF versus CR/LF" difference between 17544Windows and Unix. This appears to be the longstanding issue 17545concerning listing output and error messages. 17546 17547Fixed a problem with the Linux version of compiler where opcode 17548names within error messages were wrong. This was caused by a 17549slight difference in the output of the Flex tool on Linux versus 17550Windows. 17551 17552Fixed a problem with the Linux compiler where the hex output files 17553contained some garbage data caused by an internal buffer overrun. 17554 17555 17556---------------------------------------- 1755717 May 2002. Summary of changes for this release. 17558 17559 175601) ACPI CA Core Subsystem Version 20020517: 17561 17562Implemented a workaround to an BIOS bug discovered on the HP 17563OmniBook where the FADT revision number and the table size are 17564inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 17565behavior is to fallback to using only the ACPI 1.0 fields of the 17566FADT if the table is too small to be a ACPI 2.0 table as claimed 17567by the revision number. Although this is a BIOS bug, this is a 17568case where the workaround is simple enough and with no side 17569effects, so it seemed prudent to add it. A warning message is 17570issued, however. 17571 17572Implemented minimum size checks for the fixed-length ACPI tables - 17573- the FADT and FACS, as well as consistency checks between the 17574revision number and the table size. 17575 17576Fixed a reported problem in the table override support where the 17577new table pointer was incorrectly treated as a physical address 17578instead of a logical address. 17579 17580Eliminated the use of the AE_AML_ERROR exception and replaced it 17581with more descriptive codes. 17582 17583Fixed a problem where an exception would occur if an ASL Field was 17584defined with no named Field Units underneath it (used by some 17585index fields). 17586 17587Code and Data Size: Current core subsystem library sizes are shown 17588below. These are the code and data sizes for the acpica.lib 17589produced by the Microsoft Visual C++ 6.0 compiler, and these 17590values do not include any ACPI driver or OSPM code. The debug 17591version of the code includes the debug output trace mechanism and 17592has a larger code and data size. Note that these values will vary 17593depending on the efficiency of the compiler and the compiler 17594options used during generation. 17595 17596 Previous Release 17597 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 17598 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 17599 Current Release: 17600 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 17601 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 17602 17603 17604 176052) Linux 17606 17607Much work done on ACPI init (MADT and PCI IRQ routing support). 17608(Paul D. and Dominik Brodowski) 17609 17610Fix PCI IRQ-related panic on boot (Sam Revitch) 17611 17612Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 17613 17614Fix "MHz" typo (Dominik Brodowski) 17615 17616Fix RTC year 2000 issue (Dominik Brodowski) 17617 17618Preclude multiple button proc entries (Eric Brunet) 17619 17620Moved arch-specific code out of include/platform/aclinux.h 17621 176223) iASL Compiler Version X2044: 17623 17624Implemented error checking for the string used in the EISAID macro 17625(Usually used in the definition of the _HID object.) The code now 17626strictly enforces the PnP format - exactly 7 characters, 3 17627uppercase letters and 4 hex digits. 17628 17629If a raw string is used in the definition of the _HID object 17630(instead of the EISAID macro), the string must contain all 17631alphanumeric characters (e.g., "*PNP0011" is not allowed because 17632of the asterisk.) 17633 17634Implemented checking for invalid use of ACPI reserved names for 17635most of the name creation operators (Name, Device, Event, Mutex, 17636OperationRegion, PowerResource, Processor, and ThermalZone.) 17637Previously, this check was only performed for control methods. 17638 17639Implemented an additional check on the Name operator to emit an 17640error if a reserved name that must be implemented in ASL as a 17641control method is used. We know that a reserved name must be a 17642method if it is defined with input arguments. 17643 17644The warning emitted when a namespace object reference is not found 17645during the cross reference phase has been changed into an error. 17646The "External" directive should be used for names defined in other 17647modules. 17648 17649 176504) Tools and Utilities 17651 17652The 16-bit tools (adump16 and aexec16) have been regenerated and 17653tested. 17654 17655Fixed a problem with the output of both acpidump and adump16 where 17656the indentation of closing parentheses and brackets was not 17657 17658aligned properly with the parent block. 17659 17660 17661---------------------------------------- 1766203 May 2002. Summary of changes for this release. 17663 17664 176651) ACPI CA Core Subsystem Version 20020503: 17666 17667Added support a new OSL interface that allows the host operating 17668 17669system software to override the DSDT found in the firmware - 17670AcpiOsTableOverride. With this interface, the OSL can examine the 17671version of the firmware DSDT and replace it with a different one 17672if desired. 17673 17674Added new external interfaces for accessing ACPI registers from 17675device drivers and other system software - AcpiGetRegister and 17676AcpiSetRegister. This was simply an externalization of the 17677existing AcpiHwBitRegister interfaces. 17678 17679Fixed a regression introduced in the previous build where the 17680ASL/AML CreateField operator always returned an error, 17681"destination must be a NS Node". 17682 17683Extended the maximum time (before failure) to successfully enable 17684ACPI mode to 3 seconds. 17685 17686Code and Data Size: Current core subsystem library sizes are shown 17687below. These are the code and data sizes for the acpica.lib 17688produced by the Microsoft Visual C++ 6.0 compiler, and these 17689values do not include any ACPI driver or OSPM code. The debug 17690version of the code includes the debug output trace mechanism and 17691has a larger code and data size. Note that these values will vary 17692depending on the efficiency of the compiler and the compiler 17693options used during generation. 17694 17695 Previous Release 17696 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 17697 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 17698 Current Release: 17699 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 17700 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 17701 17702 177032) Linux 17704 17705Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 17706free. While 3 out of 4 of our in-house systems work fine, the last 17707one still hangs when testing the LAPIC timer. 17708 17709Renamed many files in 2.5 kernel release to omit "acpi_" from the 17710name. 17711 17712Added warning on boot for Presario 711FR. 17713 17714Sleep improvements (Pavel Machek) 17715 17716ACPI can now be built without CONFIG_PCI enabled. 17717 17718IA64: Fixed memory map functions (JI Lee) 17719 17720 177213) iASL Compiler Version X2043: 17722 17723Added support to allow the compiler to be integrated into the MS 17724VC++ development environment for one-button compilation of single 17725files or entire projects -- with error-to-source-line mapping. 17726 17727Implemented support for compile-time constant folding for the 17728Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 17729specification. This allows the ASL writer to use expressions 17730instead of Integer/Buffer/String constants in terms that must 17731evaluate to constants at compile time and will also simplify the 17732emitted AML in any such sub-expressions that can be folded 17733(evaluated at compile-time.) This increases the size of the 17734compiler significantly because a portion of the ACPI CA AML 17735interpreter is included within the compiler in order to pre- 17736evaluate constant expressions. 17737 17738 17739Fixed a problem with the "Unicode" ASL macro that caused the 17740compiler to fault. (This macro is used in conjunction with the 17741_STR reserved name.) 17742 17743Implemented an AML opcode optimization to use the Zero, One, and 17744Ones opcodes where possible to further reduce the size of integer 17745constants and thus reduce the overall size of the generated AML 17746code. 17747 17748Implemented error checking for new reserved terms for ACPI version 177492.0A. 17750 17751Implemented the -qr option to display the current list of ACPI 17752reserved names known to the compiler. 17753 17754Implemented the -qc option to display the current list of ASL 17755operators that are allowed within constant expressions and can 17756therefore be folded at compile time if the operands are constants. 17757 17758 177594) Documentation 17760 17761Updated the Programmer's Reference for new interfaces, data types, 17762and memory allocation model options. 17763 17764Updated the iASL Compiler User Reference to apply new format and 17765add information about new features and options. 17766 17767---------------------------------------- 1776819 April 2002. Summary of changes for this release. 17769 177701) ACPI CA Core Subsystem Version 20020419: 17771 17772The source code base for the Core Subsystem has been completely 17773cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 17774versions. The Lint option files used are included in the 17775/acpi/generate/lint directory. 17776 17777Implemented enhanced status/error checking across the entire 17778Hardware manager subsystem. Any hardware errors (reported from 17779the OSL) are now bubbled up and will abort a running control 17780method. 17781 17782 17783Fixed a problem where the per-ACPI-table integer width (32 or 64) 17784was stored only with control method nodes, causing a fault when 17785non-control method code was executed during table loading. The 17786solution implemented uses a global variable to indicate table 17787width across the entire ACPI subsystem. Therefore, ACPI CA does 17788not support mixed integer widths across different ACPI tables 17789(DSDT, SSDT). 17790 17791Fixed a problem where NULL extended fields (X fields) in an ACPI 177922.0 ACPI FADT caused the table load to fail. Although the 17793existing ACPI specification is a bit fuzzy on this topic, the new 17794behavior is to fall back on a ACPI 1.0 field if the corresponding 17795ACPI 2.0 X field is zero (even though the table revision indicates 17796a full ACPI 2.0 table.) The ACPI specification will be updated to 17797clarify this issue. 17798 17799Fixed a problem with the SystemMemory operation region handler 17800where memory was always accessed byte-wise even if the AML- 17801specified access width was larger than a byte. This caused 17802problems on systems with memory-mapped I/O. Memory is now 17803accessed with the width specified. On systems that do not support 17804non-aligned transfers, a check is made to guarantee proper address 17805alignment before proceeding in order to avoid an AML-caused 17806alignment fault within the kernel. 17807 17808 17809Fixed a problem with the ExtendedIrq resource where only one byte 17810of the 4-byte Irq field was extracted. 17811 17812Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 17813function was out of date and required a rewrite. 17814 17815Code and Data Size: Current core subsystem library sizes are shown 17816below. These are the code and data sizes for the acpica.lib 17817produced by the Microsoft Visual C++ 6.0 compiler, and these 17818values do not include any ACPI driver or OSPM code. The debug 17819version of the code includes the debug output trace mechanism and 17820has a larger code and data size. Note that these values will vary 17821depending on the efficiency of the compiler and the compiler 17822options used during generation. 17823 17824 Previous Release 17825 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17826 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17827 Current Release: 17828 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 17829 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 17830 17831 178322) Linux 17833 17834PCI IRQ routing fixes (Dominik Brodowski) 17835 17836 178373) iASL Compiler Version X2042: 17838 17839Implemented an additional compile-time error check for a field 17840unit whose size + minimum access width would cause a run-time 17841access beyond the end-of-region. Previously, only the field size 17842itself was checked. 17843 17844The Core subsystem and iASL compiler now share a common parse 17845object in preparation for compile-time evaluation of the type 178463/4/5 ASL operators. 17847 17848 17849---------------------------------------- 17850Summary of changes for this release: 03_29_02 17851 178521) ACPI CA Core Subsystem Version 20020329: 17853 17854Implemented support for late evaluation of TermArg operands to 17855Buffer and Package objects. This allows complex expressions to be 17856used in the declarations of these object types. 17857 17858Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 178591.0, if the field was larger than 32 bits, it was returned as a 17860buffer - otherwise it was returned as an integer. In ACPI 2.0, 17861the field is returned as a buffer only if the field is larger than 1786264 bits. The TableRevision is now considered when making this 17863conversion to avoid incompatibility with existing ASL code. 17864 17865Implemented logical addressing for AcpiOsGetRootPointer. This 17866allows an RSDP with either a logical or physical address. With 17867this support, the host OS can now override all ACPI tables with 17868one logical RSDP. Includes implementation of "typed" pointer 17869support to allow a common data type for both physical and logical 17870pointers internally. This required a change to the 17871AcpiOsGetRootPointer interface. 17872 17873Implemented the use of ACPI 2.0 Generic Address Structures for all 17874GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 17875mapped I/O for these ACPI features. 17876 17877Initialization now ignores not only non-required tables (All 17878tables other than the FADT, FACS, DSDT, and SSDTs), but also does 17879not validate the table headers of unrecognized tables. 17880 17881Fixed a problem where a notify handler could only be 17882installed/removed on an object of type Device. All "notify" 17883 17884objects are now supported -- Devices, Processor, Power, and 17885Thermal. 17886 17887Removed most verbosity from the ACPI_DB_INFO debug level. Only 17888critical information is returned when this debug level is enabled. 17889 17890Code and Data Size: Current core subsystem library sizes are shown 17891below. These are the code and data sizes for the acpica.lib 17892produced by the Microsoft Visual C++ 6.0 compiler, and these 17893values do not include any ACPI driver or OSPM code. The debug 17894version of the code includes the debug output trace mechanism and 17895has a larger code and data size. Note that these values will vary 17896depending on the efficiency of the compiler and the compiler 17897options used during generation. 17898 17899 Previous Release 17900 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 17901 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 17902 Current Release: 17903 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17904 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17905 17906 179072) Linux: 17908 17909The processor driver (acpi_processor.c) now fully supports ACPI 179102.0-based processor performance control (e.g. Intel(R) 17911SpeedStep(TM) technology) Note that older laptops that only have 17912the Intel "applet" interface are not supported through this. The 17913'limit' and 'performance' interface (/proc) are fully functional. 17914[Note that basic policy for controlling performance state 17915transitions will be included in the next version of ospmd.] The 17916idle handler was modified to more aggressively use C2, and PIIX4 17917errata handling underwent a complete overhaul (big thanks to 17918Dominik Brodowski). 17919 17920Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 17921based devices in the ACPI namespace are now dynamically bound 17922(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 17923This allows, among other things, ACPI to resolve bus numbers for 17924subordinate PCI bridges. 17925 17926Enhanced PCI IRQ routing to get the proper bus number for _PRT 17927entries defined underneath PCI bridges. 17928 17929Added IBM 600E to bad bios list due to invalid _ADR value for 17930PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 17931 17932In the process of adding full MADT support (e.g. IOAPIC) for IA32 17933(acpi.c, mpparse.c) -- stay tuned. 17934 17935Added back visual differentiation between fixed-feature and 17936control-method buttons in dmesg. Buttons are also subtyped (e.g. 17937button/power/PWRF) to simplify button identification. 17938 17939We no longer use -Wno-unused when compiling debug. Please ignore 17940any "_THIS_MODULE defined but not used" messages. 17941 17942Can now shut down the system using "magic sysrq" key. 17943 17944 179453) iASL Compiler version 2041: 17946 17947Fixed a problem where conversion errors for hex/octal/decimal 17948constants were not reported. 17949 17950Implemented a fix for the General Register template Address field. 17951This field was 8 bits when it should be 64. 17952 17953Fixed a problem where errors/warnings were no longer being emitted 17954within the listing output file. 17955 17956Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 17957exactly 4 characters, alphanumeric only. 17958 17959 17960 17961 17962---------------------------------------- 17963Summary of changes for this release: 03_08_02 17964 17965 179661) ACPI CA Core Subsystem Version 20020308: 17967 17968Fixed a problem with AML Fields where the use of the "AccessAny" 17969keyword could cause an interpreter error due to attempting to read 17970or write beyond the end of the parent Operation Region. 17971 17972Fixed a problem in the SystemMemory Operation Region handler where 17973an attempt was made to map memory beyond the end of the region. 17974This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 17975errors on some Linux systems. 17976 17977Fixed a problem where the interpreter/namespace "search to root" 17978algorithm was not functioning for some object types. Relaxed the 17979internal restriction on the search to allow upsearches for all 17980external object types as well as most internal types. 17981 17982 179832) Linux: 17984 17985We now use safe_halt() macro versus individual calls to sti | hlt. 17986 17987Writing to the processor limit interface should now work. "echo 1" 17988will increase the limit, 2 will decrease, and 0 will reset to the 17989 17990default. 17991 17992 179933) ASL compiler: 17994 17995Fixed segfault on Linux version. 17996 17997 17998---------------------------------------- 17999Summary of changes for this release: 02_25_02 18000 180011) ACPI CA Core Subsystem: 18002 18003 18004Fixed a problem where the GPE bit masks were not initialized 18005properly, causing erratic GPE behavior. 18006 18007Implemented limited support for multiple calling conventions. The 18008code can be generated with either the VPL (variable parameter 18009list, or "C") convention, or the FPL (fixed parameter list, or 18010"Pascal") convention. The core subsystem is about 3.4% smaller 18011when generated with FPL. 18012 18013 180142) Linux 18015 18016Re-add some /proc/acpi/event functionality that was lost during 18017the rewrite 18018 18019Resolved issue with /proc events for fixed-feature buttons showing 18020up as the system device. 18021 18022Fixed checks on C2/C3 latencies to be inclusive of maximum values. 18023 18024Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 18025 18026Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 18027 18028Fixed limit interface & usage to fix bugs with passive cooling 18029hysterisis. 18030 18031Restructured PRT support. 18032 18033 18034---------------------------------------- 18035Summary of changes for this label: 02_14_02 18036 18037 180381) ACPI CA Core Subsystem: 18039 18040Implemented support in AcpiLoadTable to allow loading of FACS and 18041FADT tables. 18042 18043Support for the now-obsolete interim 0.71 64-bit ACPI tables has 18044been removed. All 64-bit platforms should be migrated to the ACPI 180452.0 tables. The actbl71.h header has been removed from the source 18046tree. 18047 18048All C macros defined within the subsystem have been prefixed with 18049"ACPI_" to avoid collision with other system include files. 18050 18051Removed the return value for the two AcpiOsPrint interfaces, since 18052it is never used and causes lint warnings for ignoring the return 18053value. 18054 18055Added error checking to all internal mutex acquire and release 18056calls. Although a failure from one of these interfaces is 18057probably a fatal system error, these checks will cause the 18058immediate abort of the currently executing method or interface. 18059 18060Fixed a problem where the AcpiSetCurrentResources interface could 18061fault. This was a side effect of the deployment of the new memory 18062allocation model. 18063 18064Fixed a couple of problems with the Global Lock support introduced 18065in the last major build. The "common" (1.0/2.0) internal FACS was 18066being overwritten with the FACS signature and clobbering the 18067Global Lock pointer. Also, the actual firmware FACS was being 18068unmapped after construction of the "common" FACS, preventing 18069access to the actual Global Lock field within it. The "common" 18070internal FACS is no longer installed as an actual ACPI table; it 18071is used simply as a global. 18072 18073Code and Data Size: Current core subsystem library sizes are shown 18074below. These are the code and data sizes for the acpica.lib 18075produced by the Microsoft Visual C++ 6.0 compiler, and these 18076values do not include any ACPI driver or OSPM code. The debug 18077version of the code includes the debug output trace mechanism and 18078has a larger code and data size. Note that these values will vary 18079depending on the efficiency of the compiler and the compiler 18080options used during generation. 18081 18082 Previous Release (02_07_01) 18083 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 18084 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 18085 Current Release: 18086 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 18087 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 18088 18089 180902) Linux 18091 18092Updated Linux-specific code for core macro and OSL interface 18093changes described above. 18094 18095Improved /proc/acpi/event. It now can be opened only once and has 18096proper poll functionality. 18097 18098Fixed and restructured power management (acpi_bus). 18099 18100Only create /proc "view by type" when devices of that class exist. 18101 18102Fixed "charging/discharging" bug (and others) in acpi_battery. 18103 18104Improved thermal zone code. 18105 18106 181073) ASL Compiler, version X2039: 18108 18109 18110Implemented the new compiler restriction on ASL String hex/octal 18111escapes to non-null, ASCII values. An error results if an invalid 18112value is used. (This will require an ACPI 2.0 specification 18113change.) 18114 18115AML object labels that are output to the optional C and ASM source 18116are now prefixed with both the ACPI table signature and table ID 18117to help guarantee uniqueness within a large BIOS project. 18118 18119 18120---------------------------------------- 18121Summary of changes for this label: 02_01_02 18122 181231) ACPI CA Core Subsystem: 18124 18125ACPI 2.0 support is complete in the entire Core Subsystem and the 18126ASL compiler. All new ACPI 2.0 operators are implemented and all 18127other changes for ACPI 2.0 support are complete. With 18128simultaneous code and data optimizations throughout the subsystem, 18129ACPI 2.0 support has been implemented with almost no additional 18130cost in terms of code and data size. 18131 18132Implemented a new mechanism for allocation of return buffers. If 18133the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 18134be allocated on behalf of the caller. Consolidated all return 18135buffer validation and allocation to a common procedure. Return 18136buffers will be allocated via the primary OSL allocation interface 18137since it appears that a separate pool is not needed by most users. 18138If a separate pool is required for these buffers, the caller can 18139still use the original mechanism and pre-allocate the buffer(s). 18140 18141Implemented support for string operands within the DerefOf 18142operator. 18143 18144Restructured the Hardware and Event managers to be table driven, 18145simplifying the source code and reducing the amount of generated 18146code. 18147 18148Split the common read/write low-level ACPI register bitfield 18149procedure into a separate read and write, simplifying the code 18150considerably. 18151 18152Obsoleted the AcpiOsCallocate OSL interface. This interface was 18153used only a handful of times and didn't have enough critical mass 18154for a separate interface. Replaced with a common calloc procedure 18155in the core. 18156 18157Fixed a reported problem with the GPE number mapping mechanism 18158that allows GPE1 numbers to be non-contiguous with GPE0. 18159Reorganized the GPE information and shrunk a large array that was 18160originally large enough to hold info for all possible GPEs (256) 18161to simply large enough to hold all GPEs up to the largest GPE 18162number on the machine. 18163 18164Fixed a reported problem with resource structure alignment on 64- 18165bit platforms. 18166 18167Changed the AcpiEnableEvent and AcpiDisableEvent external 18168interfaces to not require any flags for the common case of 18169enabling/disabling a GPE. 18170 18171Implemented support to allow a "Notify" on a Processor object. 18172 18173Most TBDs in comments within the source code have been resolved 18174and eliminated. 18175 18176 18177Fixed a problem in the interpreter where a standalone parent 18178prefix (^) was not handled correctly in the interpreter and 18179debugger. 18180 18181Removed obsolete and unnecessary GPE save/restore code. 18182 18183Implemented Field support in the ASL Load operator. This allows a 18184table to be loaded from a named field, in addition to loading a 18185table directly from an Operation Region. 18186 18187Implemented timeout and handle support in the external Global Lock 18188interfaces. 18189 18190Fixed a problem in the AcpiDump utility where pathnames were no 18191longer being generated correctly during the dump of named objects. 18192 18193Modified the AML debugger to give a full display of if/while 18194predicates instead of just one AML opcode at a time. (The 18195predicate can have several nested ASL statements.) The old method 18196was confusing during single stepping. 18197 18198Code and Data Size: Current core subsystem library sizes are shown 18199below. These are the code and data sizes for the acpica.lib 18200produced by the Microsoft Visual C++ 6.0 compiler, and these 18201values do not include any ACPI driver or OSPM code. The debug 18202version of the code includes the debug output trace mechanism and 18203has a larger code and data size. Note that these values will vary 18204depending on the efficiency of the compiler and the compiler 18205options used during generation. 18206 18207 Previous Release (12_18_01) 18208 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 18209 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 18210 Current Release: 18211 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 18212 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 18213 182142) Linux 18215 18216 Implemented fix for PIIX reverse throttling errata (Processor 18217driver) 18218 18219Added new Limit interface (Processor and Thermal drivers) 18220 18221New thermal policy (Thermal driver) 18222 18223Many updates to /proc 18224 18225Battery "low" event support (Battery driver) 18226 18227Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 18228 18229IA32 - IA64 initialization unification, no longer experimental 18230 18231Menuconfig options redesigned 18232 182333) ASL Compiler, version X2037: 18234 18235Implemented several new output features to simplify integration of 18236AML code into firmware: 1) Output the AML in C source code with 18237labels for each named ASL object. The original ASL source code 18238is interleaved as C comments. 2) Output the AML in ASM source code 18239with labels and interleaved ASL source. 3) Output the AML in 18240raw hex table form, in either C or ASM. 18241 18242Implemented support for optional string parameters to the 18243LoadTable operator. 18244 18245Completed support for embedded escape sequences within string 18246literals. The compiler now supports all single character escapes 18247as well as the Octal and Hex escapes. Note: the insertion of a 18248null byte into a string literal (via the hex/octal escape) causes 18249the string to be immediately terminated. A warning is issued. 18250 18251Fixed a problem where incorrect AML was generated for the case 18252where an ASL namepath consists of a single parent prefix ( 18253 18254) with no trailing name segments. 18255 18256The compiler has been successfully generated with a 64-bit C 18257compiler. 18258 18259 18260 18261 18262---------------------------------------- 18263Summary of changes for this label: 12_18_01 18264 182651) Linux 18266 18267Enhanced blacklist with reason and severity fields. Any table's 18268signature may now be used to identify a blacklisted system. 18269 18270Call _PIC control method to inform the firmware which interrupt 18271model the OS is using. Turn on any disabled link devices. 18272 18273Cleaned up busmgr /proc error handling (Andreas Dilger) 18274 18275 2) ACPI CA Core Subsystem: 18276 18277Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 18278while loop) 18279 18280Completed implementation of the ACPI 2.0 "Continue", 18281"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 18282operators. All new ACPI 2.0 operators are now implemented in both 18283the ASL compiler and the AML interpreter. The only remaining ACPI 182842.0 task is support for the String data type in the DerefOf 18285operator. Fixed a problem with AcquireMutex where the status code 18286was lost if the caller had to actually wait for the mutex. 18287 18288Increased the maximum ASL Field size from 64K bits to 4G bits. 18289 18290Completed implementation of the external Global Lock interfaces -- 18291AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 18292Handler parameters were added. 18293 18294Completed another pass at removing warnings and issues when 18295compiling with 64-bit compilers. The code now compiles cleanly 18296with the Intel 64-bit C/C++ compiler. Most notably, the pointer 18297add and subtract (diff) macros have changed considerably. 18298 18299 18300Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1830164-bit platforms, 32-bits on all others. This type is used 18302wherever memory allocation and/or the C sizeof() operator is used, 18303and affects the OSL memory allocation interfaces AcpiOsAllocate 18304and AcpiOsCallocate. 18305 18306Implemented sticky user breakpoints in the AML debugger. 18307 18308Code and Data Size: Current core subsystem library sizes are shown 18309below. These are the code and data sizes for the acpica.lib 18310produced by the Microsoft Visual C++ 6.0 compiler, and these 18311values do not include any ACPI driver or OSPM code. The debug 18312version of the code includes the debug output trace mechanism and 18313has a larger code and data size. Note that these values will vary 18314depending on the efficiency of the compiler and the compiler 18315options used during generation. 18316 18317 Previous Release (12_05_01) 18318 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 18319 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 18320 Current Release: 18321 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 18322 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 18323 18324 3) ASL Compiler, version X2034: 18325 18326Now checks for (and generates an error if detected) the use of a 18327Break or Continue statement without an enclosing While statement. 18328 18329 18330Successfully generated the compiler with the Intel 64-bit C 18331compiler. 18332 18333 ---------------------------------------- 18334Summary of changes for this label: 12_05_01 18335 18336 1) ACPI CA Core Subsystem: 18337 18338The ACPI 2.0 CopyObject operator is fully implemented. This 18339operator creates a new copy of an object (and is also used to 18340bypass the "implicit conversion" mechanism of the Store operator.) 18341 18342The ACPI 2.0 semantics for the SizeOf operator are fully 18343implemented. The change is that performing a SizeOf on a 18344reference object causes an automatic dereference of the object to 18345the actual value before the size is evaluated. This behavior was 18346undefined in ACPI 1.0. 18347 18348The ACPI 2.0 semantics for the Extended IRQ resource descriptor 18349have been implemented. The interrupt polarity and mode are now 18350independently set. 18351 18352Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 18353appearing in Package objects were not properly converted to 18354integers when the internal Package was converted to an external 18355object (via the AcpiEvaluateObject interface.) 18356 18357Fixed a problem with the namespace object deletion mechanism for 18358objects created by control methods. There were two parts to this 18359problem: 1) Objects created during the initialization phase method 18360parse were not being deleted, and 2) The object owner ID mechanism 18361to track objects was broken. 18362 18363Fixed a problem where the use of the ASL Scope operator within a 18364control method would result in an invalid opcode exception. 18365 18366Fixed a problem introduced in the previous label where the buffer 18367length required for the _PRT structure was not being returned 18368correctly. 18369 18370Code and Data Size: Current core subsystem library sizes are shown 18371below. These are the code and data sizes for the acpica.lib 18372produced by the Microsoft Visual C++ 6.0 compiler, and these 18373values do not include any ACPI driver or OSPM code. The debug 18374version of the code includes the debug output trace mechanism and 18375has a larger code and data size. Note that these values will vary 18376depending on the efficiency of the compiler and the compiler 18377options used during generation. 18378 18379 Previous Release (11_20_01) 18380 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 18381 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 18382 18383 Current Release: 18384 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 18385 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 18386 18387 2) Linux: 18388 18389Updated all files to apply cleanly against 2.4.16. 18390 18391Added basic PCI Interrupt Routing Table (PRT) support for IA32 18392(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 18393version supports both static and dynamic PRT entries, but dynamic 18394entries are treated as if they were static (not yet 18395reconfigurable). Architecture- specific code to use this data is 18396absent on IA32 but should be available shortly. 18397 18398Changed the initialization sequence to start the ACPI interpreter 18399(acpi_init) prior to initialization of the PCI driver (pci_init) 18400in init/main.c. This ordering is required to support PRT and 18401facilitate other (future) enhancement. A side effect is that the 18402ACPI bus driver and certain device drivers can no longer be loaded 18403as modules. 18404 18405Modified the 'make menuconfig' options to allow PCI Interrupt 18406Routing support to be included without the ACPI Bus and other 18407device drivers. 18408 18409 3) ASL Compiler, version X2033: 18410 18411Fixed some issues with the use of the new CopyObject and 18412DataTableRegion operators. Both are fully functional. 18413 18414 ---------------------------------------- 18415Summary of changes for this label: 11_20_01 18416 18417 20 November 2001. Summary of changes for this release. 18418 18419 1) ACPI CA Core Subsystem: 18420 18421Updated Index support to match ACPI 2.0 semantics. Storing a 18422Integer, String, or Buffer to an Index of a Buffer will store only 18423the least-significant byte of the source to the Indexed buffer 18424byte. Multiple writes are not performed. 18425 18426Fixed a problem where the access type used in an AccessAs ASL 18427operator was not recorded correctly into the field object. 18428 18429Fixed a problem where ASL Event objects were created in a 18430signalled state. Events are now created in an unsignalled state. 18431 18432The internal object cache is now purged after table loading and 18433initialization to reduce the use of dynamic kernel memory -- on 18434the assumption that object use is greatest during the parse phase 18435of the entire table (versus the run-time use of individual control 18436methods.) 18437 18438ACPI 2.0 variable-length packages are now fully operational. 18439 18440Code and Data Size: Code and Data optimizations have permitted new 18441feature development with an actual reduction in the library size. 18442Current core subsystem library sizes are shown below. These are 18443the code and data sizes for the acpica.lib produced by the 18444Microsoft Visual C++ 6.0 compiler, and these values do not include 18445any ACPI driver or OSPM code. The debug version of the code 18446includes the debug output trace mechanism and has a larger code 18447and data size. Note that these values will vary depending on the 18448efficiency of the compiler and the compiler options used during 18449generation. 18450 18451 Previous Release (11_09_01): 18452 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 18453 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 18454 18455 Current Release: 18456 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 18457 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 18458 18459 2) Linux: 18460 18461Enhanced the ACPI boot-time initialization code to allow the use 18462of Local APIC tables for processor enumeration on IA-32, and to 18463pave the way for a fully MPS-free boot (on SMP systems) in the 18464near future. This functionality replaces 18465arch/i386/kernel/acpitables.c, which was introduced in an earlier 184662.4.15-preX release. To enable this feature you must add 18467"acpi_boot=on" to the kernel command line -- see the help entry 18468for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 18469the works... 18470 18471Restructured the configuration options to allow boot-time table 18472parsing support without inclusion of the ACPI Interpreter (and 18473other) code. 18474 18475NOTE: This release does not include fixes for the reported events, 18476power-down, and thermal passive cooling issues (coming soon). 18477 18478 3) ASL Compiler: 18479 18480Added additional typechecking for Fields within restricted access 18481Operation Regions. All fields within EC and CMOS regions must be 18482declared with ByteAcc. All fields within SMBus regions must be 18483declared with the BufferAcc access type. 18484 18485Fixed a problem where the listing file output of control methods 18486no longer interleaved the actual AML code with the ASL source 18487code. 18488 18489 18490 18491 18492---------------------------------------- 18493Summary of changes for this label: 11_09_01 18494 184951) ACPI CA Core Subsystem: 18496 18497Implemented ACPI 2.0-defined support for writes to fields with a 18498Buffer, String, or Integer source operand that is smaller than the 18499target field. In these cases, the source operand is zero-extended 18500to fill the target field. 18501 18502Fixed a problem where a Field starting bit offset (within the 18503parent operation region) was calculated incorrectly if the 18504 18505alignment of the field differed from the access width. This 18506affected CreateWordField, CreateDwordField, CreateQwordField, and 18507possibly other fields that use the "AccessAny" keyword. 18508 18509Fixed a problem introduced in the 11_02_01 release where indirect 18510stores through method arguments did not operate correctly. 18511 185122) Linux: 18513 18514Implemented boot-time ACPI table parsing support 18515(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 18516facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 18517legacy BIOS interfaces (e.g. MPS) for the configuration of system 18518processors, memory, and interrupts during setup_arch(). Note that 18519this patch does not include the required architecture-specific 18520changes required to apply this information -- subsequent patches 18521will be posted for both IA32 and IA64 to achieve this. 18522 18523Added low-level sleep support for IA32 platforms, courtesy of Pat 18524Mochel. This allows IA32 systems to transition to/from various 18525sleeping states (e.g. S1, S3), although the lack of a centralized 18526driver model and power-manageable drivers will prevent its 18527(successful) use on most systems. 18528 18529Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 18530submenu, unified IA32 and IA64 options, added new "Boot using ACPI 18531tables" option, etc. 18532 18533Increased the default timeout for the EC driver from 1ms to 10ms 18534(1000 cycles of 10us) to try to address AE_TIME errors during EC 18535transactions. 18536 18537 ---------------------------------------- 18538Summary of changes for this label: 11_02_01 18539 185401) ACPI CA Core Subsystem: 18541 18542ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 18543(QWordAcc keyword). All ACPI 2.0 64-bit support is now 18544implemented. 18545 18546OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 18547changes to support ACPI 2.0 Qword field access. Read/Write 18548PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 18549accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 18550the value parameter for the address space handler interface is now 18551an ACPI_INTEGER. OSL implementations of these interfaces must now 18552handle the case where the Width parameter is 64. 18553 18554Index Fields: Fixed a problem where unaligned bit assembly and 18555disassembly for IndexFields was not supported correctly. 18556 18557Index and Bank Fields: Nested Index and Bank Fields are now 18558supported. During field access, a check is performed to ensure 18559that the value written to an Index or Bank register is not out of 18560the range of the register. The Index (or Bank) register is 18561written before each access to the field data. Future support will 18562include allowing individual IndexFields to be wider than the 18563DataRegister width. 18564 18565Fields: Fixed a problem where the AML interpreter was incorrectly 18566attempting to write beyond the end of a Field/OpRegion. This was 18567a boundary case that occurred when a DWORD field was written to a 18568BYTE access OpRegion, forcing multiple writes and causing the 18569interpreter to write one datum too many. 18570 18571Fields: Fixed a problem with Field/OpRegion access where the 18572starting bit address of a field was incorrectly calculated if the 18573current access type was wider than a byte (WordAcc, DwordAcc, or 18574QwordAcc). 18575 18576Fields: Fixed a problem where forward references to individual 18577FieldUnits (individual Field names within a Field definition) were 18578not resolved during the AML table load. 18579 18580Fields: Fixed a problem where forward references from a Field 18581definition to the parent Operation Region definition were not 18582resolved during the AML table load. 18583 18584Fields: Duplicate FieldUnit names within a scope are now detected 18585during AML table load. 18586 18587Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 18588returned an incorrect name for the root node. 18589 18590Code and Data Size: Code and Data optimizations have permitted new 18591feature development with an actual reduction in the library size. 18592Current core subsystem library sizes are shown below. These are 18593the code and data sizes for the acpica.lib produced by the 18594Microsoft Visual C++ 6.0 compiler, and these values do not include 18595any ACPI driver or OSPM code. The debug version of the code 18596includes the debug output trace mechanism and has a larger code 18597and data size. Note that these values will vary depending on the 18598efficiency of the compiler and the compiler options used during 18599generation. 18600 18601 Previous Release (10_18_01): 18602 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 18603 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 18604 18605 Current Release: 18606 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 18607 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 18608 18609 2) Linux: 18610 18611Improved /proc processor output (Pavel Machek) Re-added 18612MODULE_LICENSE("GPL") to all modules. 18613 18614 3) ASL Compiler version X2030: 18615 18616Duplicate FieldUnit names within a scope are now detected and 18617flagged as errors. 18618 18619 4) Documentation: 18620 18621Programmer Reference updated to reflect OSL and address space 18622handler interface changes described above. 18623 18624---------------------------------------- 18625Summary of changes for this label: 10_18_01 18626 18627ACPI CA Core Subsystem: 18628 18629Fixed a problem with the internal object reference count mechanism 18630that occasionally caused premature object deletion. This resolves 18631all of the outstanding problem reports where an object is deleted 18632in the middle of an interpreter evaluation. Although this problem 18633only showed up in rather obscure cases, the solution to the 18634problem involved an adjustment of all reference counts involving 18635objects attached to namespace nodes. 18636 18637Fixed a problem with Field support in the interpreter where 18638writing to an aligned field whose length is an exact multiple (2 18639or greater) of the field access granularity would cause an attempt 18640to write beyond the end of the field. 18641 18642The top level AML opcode execution functions within the 18643interpreter have been renamed with a more meaningful and 18644consistent naming convention. The modules exmonad.c and 18645exdyadic.c were eliminated. New modules are exoparg1.c, 18646exoparg2.c, exoparg3.c, and exoparg6.c. 18647 18648Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 18649 18650Fixed a problem where the AML debugger was causing some internal 18651objects to not be deleted during subsystem termination. 18652 18653Fixed a problem with the external AcpiEvaluateObject interface 18654where the subsystem would fault if the named object to be 18655evaluated referred to a constant such as Zero, Ones, etc. 18656 18657Fixed a problem with IndexFields and BankFields where the 18658subsystem would fault if the index, data, or bank registers were 18659not defined in the same scope as the field itself. 18660 18661Added printf format string checking for compilers that support 18662this feature. Corrected more than 50 instances of issues with 18663format specifiers within invocations of ACPI_DEBUG_PRINT 18664throughout the core subsystem code. 18665 18666The ASL "Revision" operator now returns the ACPI support level 18667implemented in the core - the value "2" since the ACPI 2.0 support 18668is more than 50% implemented. 18669 18670Enhanced the output of the AML debugger "dump namespace" command 18671to output in a more human-readable form. 18672 18673Current core subsystem library code sizes are shown below. These 18674 18675are the code and data sizes for the acpica.lib produced by the 18676Microsoft Visual C++ 6.0 compiler, and these values do not include 18677any ACPI driver or OSPM code. The debug version of the code 18678includes the full debug trace mechanism -- leading to a much 18679 18680larger code and data size. Note that these values will vary 18681depending on the efficiency of the compiler and the compiler 18682options used during generation. 18683 18684 Previous Label (09_20_01): 18685 Non-Debug Version: 65K Code, 5K Data, 70K Total 18686 Debug Version: 138K Code, 58K Data, 196K Total 18687 18688 This Label: 18689 18690 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 18691 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 18692 18693Linux: 18694 18695Implemented a "Bad BIOS Blacklist" to track machines that have 18696known ASL/AML problems. 18697 18698Enhanced the /proc interface for the thermal zone driver and added 18699support for _HOT (the critical suspend trip point). The 'info' 18700file now includes threshold/policy information, and allows setting 18701of _SCP (cooling preference) and _TZP (polling frequency) values 18702to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 18703frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 18704preference to the passive/quiet mode (if supported by the ASL). 18705 18706Implemented a workaround for a gcc bug that resuted in an OOPs 18707when loading the control method battery driver. 18708 18709 ---------------------------------------- 18710Summary of changes for this label: 09_20_01 18711 18712 ACPI CA Core Subsystem: 18713 18714The AcpiEnableEvent and AcpiDisableEvent interfaces have been 18715modified to allow individual GPE levels to be flagged as wake- 18716enabled (i.e., these GPEs are to remain enabled when the platform 18717sleeps.) 18718 18719The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 18720support wake-enabled GPEs. This means that upon entering the 18721sleep state, all GPEs that are not wake-enabled are disabled. 18722When leaving the sleep state, these GPEs are re-enabled. 18723 18724A local double-precision divide/modulo module has been added to 18725enhance portability to OS kernels where a 64-bit math library is 18726not available. The new module is "utmath.c". 18727 18728Several optimizations have been made to reduce the use of CPU 18729stack. Originally over 2K, the maximum stack usage is now below 187302K at 1860 bytes (1.82k) 18731 18732Fixed a problem with the AcpiGetFirmwareTable interface where the 18733root table pointer was not mapped into a logical address properly. 18734 18735Fixed a problem where a NULL pointer was being dereferenced in the 18736interpreter code for the ASL Notify operator. 18737 18738Fixed a problem where the use of the ASL Revision operator 18739returned an error. This operator now returns the current version 18740of the ACPI CA core subsystem. 18741 18742Fixed a problem where objects passed as control method parameters 18743to AcpiEvaluateObject were always deleted at method termination. 18744However, these objects may end up being stored into the namespace 18745by the called method. The object reference count mechanism was 18746applied to these objects instead of a force delete. 18747 18748Fixed a problem where static strings or buffers (contained in the 18749AML code) that are declared as package elements within the ASL 18750code could cause a fault because the interpreter would attempt to 18751delete them. These objects are now marked with the "static 18752object" flag to prevent any attempt to delete them. 18753 18754Implemented an interpreter optimization to use operands directly 18755from the state object instead of extracting the operands to local 18756variables. This reduces stack use and code size, and improves 18757performance. 18758 18759The module exxface.c was eliminated as it was an unnecessary extra 18760layer of code. 18761 18762Current core subsystem library code sizes are shown below. These 18763are the code and data sizes for the acpica.lib produced by the 18764Microsoft Visual C++ 6.0 compiler, and these values do not include 18765any ACPI driver or OSPM code. The debug version of the code 18766includes the full debug trace mechanism -- leading to a much 18767larger code and data size. Note that these values will vary 18768depending on the efficiency of the compiler and the compiler 18769options used during generation. 18770 18771 Non-Debug Version: 65K Code, 5K Data, 70K Total 18772(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 18773Total (Previously 195K) 18774 18775Linux: 18776 18777Support for ACPI 2.0 64-bit integers has been added. All ACPI 18778Integer objects are now 64 bits wide 18779 18780All Acpi data types and structures are now in lower case. Only 18781Acpi macros are upper case for differentiation. 18782 18783 Documentation: 18784 18785Changes to the external interfaces as described above. 18786 18787 ---------------------------------------- 18788Summary of changes for this label: 08_31_01 18789 18790 ACPI CA Core Subsystem: 18791 18792A bug with interpreter implementation of the ASL Divide operator 18793was found and fixed. The implicit function return value (not the 18794explicit store operands) was returning the remainder instead of 18795the quotient. This was a longstanding bug and it fixes several 18796known outstanding issues on various platforms. 18797 18798The ACPI_DEBUG_PRINT and function trace entry/exit macros have 18799been further optimized for size. There are 700 invocations of the 18800DEBUG_PRINT macro alone, so each optimization reduces the size of 18801the debug version of the subsystem significantly. 18802 18803A stack trace mechanism has been implemented. The maximum stack 18804usage is about 2K on 32-bit platforms. The debugger command "stat 18805stack" will display the current maximum stack usage. 18806 18807All public symbols and global variables within the subsystem are 18808now prefixed with the string "Acpi". This keeps all of the 18809symbols grouped together in a kernel map, and avoids conflicts 18810with other kernel subsystems. 18811 18812Most of the internal fixed lookup tables have been moved into the 18813code segment via the const operator. 18814 18815Several enhancements have been made to the interpreter to both 18816reduce the code size and improve performance. 18817 18818Current core subsystem library code sizes are shown below. These 18819are the code and data sizes for the acpica.lib produced by the 18820Microsoft Visual C++ 6.0 compiler, and these values do not include 18821any ACPI driver or OSPM code. The debug version of the code 18822includes the full debug trace mechanism which contains over 700 18823invocations of the DEBUG_PRINT macro, 500 function entry macro 18824invocations, and over 900 function exit macro invocations -- 18825leading to a much larger code and data size. Note that these 18826values will vary depending on the efficiency of the compiler and 18827the compiler options used during generation. 18828 18829 Non-Debug Version: 64K Code, 5K Data, 69K Total 18830Debug Version: 137K Code, 58K Data, 195K Total 18831 18832 Linux: 18833 18834Implemented wbinvd() macro, pending a kernel-wide definition. 18835 18836Fixed /proc/acpi/event to handle poll() and short reads. 18837 18838 ASL Compiler, version X2026: 18839 18840Fixed a problem introduced in the previous label where the AML 18841 18842code emitted for package objects produced packages with zero 18843length. 18844 18845 ---------------------------------------- 18846Summary of changes for this label: 08_16_01 18847 18848ACPI CA Core Subsystem: 18849 18850The following ACPI 2.0 ASL operators have been implemented in the 18851AML interpreter (These are already supported by the Intel ASL 18852compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 18853ToBuffer. Support for 64-bit AML constants is implemented in the 18854AML parser, debugger, and disassembler. 18855 18856The internal memory tracking mechanism (leak detection code) has 18857been upgraded to reduce the memory overhead (a separate tracking 18858block is no longer allocated for each memory allocation), and now 18859supports all of the internal object caches. 18860 18861The data structures and code for the internal object caches have 18862been coelesced and optimized so that there is a single cache and 18863memory list data structure and a single group of functions that 18864implement generic cache management. This has reduced the code 18865size in both the debug and release versions of the subsystem. 18866 18867The DEBUG_PRINT macro(s) have been optimized for size and replaced 18868by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 18869different, because it generates a single call to an internal 18870function. This results in a savings of about 90 bytes per 18871invocation, resulting in an overall code and data savings of about 1887216% in the debug version of the subsystem. 18873 18874 Linux: 18875 18876Fixed C3 disk corruption problems and re-enabled C3 on supporting 18877machines. 18878 18879Integrated low-level sleep code by Patrick Mochel. 18880 18881Further tweaked source code Linuxization. 18882 18883Other minor fixes. 18884 18885 ASL Compiler: 18886 18887Support for ACPI 2.0 variable length packages is fixed/completed. 18888 18889Fixed a problem where the optional length parameter for the ACPI 188902.0 ToString operator. 18891 18892Fixed multiple extraneous error messages when a syntax error is 18893detected within the declaration line of a control method. 18894 18895 ---------------------------------------- 18896Summary of changes for this label: 07_17_01 18897 18898ACPI CA Core Subsystem: 18899 18900Added a new interface named AcpiGetFirmwareTable to obtain any 18901ACPI table via the ACPI signature. The interface can be called at 18902any time during kernel initialization, even before the kernel 18903virtual memory manager is initialized and paging is enabled. This 18904allows kernel subsystems to obtain ACPI tables very early, even 18905before the ACPI CA subsystem is initialized. 18906 18907Fixed a problem where Fields defined with the AnyAcc attribute 18908could be resolved to the incorrect address under the following 18909conditions: 1) the field width is larger than 8 bits and 2) the 18910parent operation region is not defined on a DWORD boundary. 18911 18912Fixed a problem where the interpreter is not being locked during 18913namespace initialization (during execution of the _INI control 18914methods), causing an error when an attempt is made to release it 18915later. 18916 18917ACPI 2.0 support in the AML Interpreter has begun and will be 18918ongoing throughout the rest of this year. In this label, The Mod 18919operator is implemented. 18920 18921Added a new data type to contain full PCI addresses named 18922ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 18923and Function values. 18924 18925 Linux: 18926 18927Enhanced the Linux version of the source code to change most 18928capitalized ACPI type names to lowercase. For example, all 18929instances of ACPI_STATUS are changed to acpi_status. This will 18930result in a large diff, but the change is strictly cosmetic and 18931aligns the CA code closer to the Linux coding standard. 18932 18933OSL Interfaces: 18934 18935The interfaces to the PCI configuration space have been changed to 18936add the PCI Segment number and to split the single 32-bit combined 18937DeviceFunction field into two 16-bit fields. This was 18938accomplished by moving the four values that define an address in 18939PCI configuration space (segment, bus, device, and function) to 18940the new ACPI_PCI_ID structure. 18941 18942The changes to the PCI configuration space interfaces led to a 18943reexamination of the complete set of address space access 18944interfaces for PCI, I/O, and Memory. The previously existing 18 18945interfaces have proven difficult to maintain (any small change 18946must be propagated across at least 6 interfaces) and do not easily 18947allow for future expansion to 64 bits if necessary. Also, on some 18948systems, it would not be appropriate to demultiplex the access 18949width (8, 16, 32,or 64) before calling the OSL if the 18950corresponding native OS interfaces contain a similar access width 18951parameter. For these reasons, the 18 address space interfaces 18952have been replaced by these 6 new ones: 18953 18954AcpiOsReadPciConfiguration 18955AcpiOsWritePciConfiguration 18956AcpiOsReadMemory 18957AcpiOsWriteMemory 18958AcpiOsReadPort 18959AcpiOsWritePort 18960 18961Added a new interface named AcpiOsGetRootPointer to allow the OSL 18962to perform the platform and/or OS-specific actions necessary to 18963obtain the ACPI RSDP table pointer. On IA-32 platforms, this 18964interface will simply call down to the CA core to perform the low- 18965memory search for the table. On IA-64, the RSDP is obtained from 18966EFI. Migrating this interface to the OSL allows the CA core to 18967 18968remain OS and platform independent. 18969 18970Added a new interface named AcpiOsSignal to provide a generic 18971"function code and pointer" interface for various miscellaneous 18972signals and notifications that must be made to the host OS. The 18973first such signals are intended to support the ASL Fatal and 18974Breakpoint operators. In the latter case, the AcpiOsBreakpoint 18975interface has been obsoleted. 18976 18977The definition of the AcpiFormatException interface has been 18978changed to simplify its use. The caller no longer must supply a 18979buffer to the call; A pointer to a const string is now returned 18980directly. This allows the call to be easily used in printf 18981statements, etc. since the caller does not have to manage a local 18982buffer. 18983 18984 18985 ASL Compiler, Version X2025: 18986 18987The ACPI 2.0 Switch/Case/Default operators have been implemented 18988and are fully functional. They will work with all ACPI 1.0 18989interpreters, since the operators are simply translated to If/Else 18990pairs. 18991 18992The ACPI 2.0 ElseIf operator is implemented and will also work 18993with 1.0 interpreters, for the same reason. 18994 18995Implemented support for ACPI 2.0 variable-length packages. These 18996packages have a separate opcode, and their size is determined by 18997the interpreter at run-time. 18998 18999Documentation The ACPI CA Programmer Reference has been updated to 19000reflect the new interfaces and changes to existing interfaces. 19001 19002 ------------------------------------------ 19003Summary of changes for this label: 06_15_01 19004 19005 ACPI CA Core Subsystem: 19006 19007Fixed a problem where a DWORD-accessed field within a Buffer 19008object would get its byte address inadvertently rounded down to 19009the nearest DWORD. Buffers are always Byte-accessible. 19010 19011 ASL Compiler, version X2024: 19012 19013Fixed a problem where the Switch() operator would either fault or 19014hang the compiler. Note however, that the AML code for this ACPI 190152.0 operator is not yet implemented. 19016 19017Compiler uses the new AcpiOsGetTimer interface to obtain compile 19018timings. 19019 19020Implementation of the CreateField operator automatically converts 19021a reference to a named field within a resource descriptor from a 19022byte offset to a bit offset if required. 19023 19024Added some missing named fields from the resource descriptor 19025support. These are the names that are automatically created by the 19026compiler to reference fields within a descriptor. They are only 19027valid at compile time and are not passed through to the AML 19028interpreter. 19029 19030Resource descriptor named fields are now typed as Integers and 19031subject to compile-time typechecking when used in expressions. 19032 19033 ------------------------------------------ 19034Summary of changes for this label: 05_18_01 19035 19036 ACPI CA Core Subsystem: 19037 19038Fixed a couple of problems in the Field support code where bits 19039from adjacent fields could be returned along with the proper field 19040bits. Restructured the field support code to improve performance, 19041readability and maintainability. 19042 19043New DEBUG_PRINTP macro automatically inserts the procedure name 19044into the output, saving hundreds of copies of procedure name 19045strings within the source, shrinking the memory footprint of the 19046debug version of the core subsystem. 19047 19048 Source Code Structure: 19049 19050The source code directory tree was restructured to reflect the 19051current organization of the component architecture. Some files 19052and directories have been moved and/or renamed. 19053 19054 Linux: 19055 19056Fixed leaking kacpidpc processes. 19057 19058Fixed queueing event data even when /proc/acpi/event is not 19059opened. 19060 19061 ASL Compiler, version X2020: 19062 19063Memory allocation performance enhancement - over 24X compile time 19064improvement on large ASL files. Parse nodes and namestring 19065buffers are now allocated from a large internal compiler buffer. 19066 19067The temporary .SRC file is deleted unless the "-s" option is 19068specified 19069 19070The "-d" debug output option now sends all output to the .DBG file 19071instead of the console. 19072 19073"External" second parameter is now optional 19074 19075"ElseIf" syntax now properly allows the predicate 19076 19077Last operand to "Load" now recognized as a Target operand 19078 19079Debug object can now be used anywhere as a normal object. 19080 19081ResourceTemplate now returns an object of type BUFFER 19082 19083EISAID now returns an object of type INTEGER 19084 19085"Index" now works with a STRING operand 19086 19087"LoadTable" now accepts optional parameters 19088 19089"ToString" length parameter is now optional 19090 19091"Interrupt (ResourceType," parse error fixed. 19092 19093"Register" with a user-defined region space parse error fixed 19094 19095Escaped backslash at the end of a string ("\\") scan/parse error 19096fixed 19097 19098"Revision" is now an object of type INTEGER. 19099 19100 19101 19102------------------------------------------ 19103Summary of changes for this label: 05_02_01 19104 19105Linux: 19106 19107/proc/acpi/event now blocks properly. 19108 19109Removed /proc/sys/acpi. You can still dump your DSDT from 19110/proc/acpi/dsdt. 19111 19112 ACPI CA Core Subsystem: 19113 19114Fixed a problem introduced in the previous label where some of the 19115"small" resource descriptor types were not recognized. 19116 19117Improved error messages for the case where an ASL Field is outside 19118the range of the parent operation region. 19119 19120 ASL Compiler, version X2018: 19121 19122 19123Added error detection for ASL Fields that extend beyond the length 19124of the parent operation region (only if the length of the region 19125is known at compile time.) This includes fields that have a 19126minimum access width that is smaller than the parent region, and 19127individual field units that are partially or entirely beyond the 19128extent of the parent. 19129 19130 19131 19132------------------------------------------ 19133Summary of changes for this label: 04_27_01 19134 19135 ACPI CA Core Subsystem: 19136 19137Fixed a problem where the namespace mutex could be released at the 19138wrong time during execution of AcpiRemoveAddressSpaceHandler. 19139 19140Added optional thread ID output for debug traces, to simplify 19141debugging of multiple threads. Added context switch notification 19142when the debug code realizes that a different thread is now 19143executing ACPI code. 19144 19145Some additional external data types have been prefixed with the 19146string "ACPI_" for consistency. This may effect existing code. 19147The data types affected are the external callback typedefs - e.g., 19148 19149WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 19150 19151 Linux: 19152 19153Fixed an issue with the OSL semaphore implementation where a 19154thread was waking up with an error from receiving a SIGCHLD 19155signal. 19156 19157Linux version of ACPI CA now uses the system C library for string 19158manipulation routines instead of a local implementation. 19159 19160Cleaned up comments and removed TBDs. 19161 19162 ASL Compiler, version X2017: 19163 19164Enhanced error detection and reporting for all file I/O 19165operations. 19166 19167 Documentation: 19168 19169Programmer Reference updated to version 1.06. 19170 19171 19172 19173------------------------------------------ 19174Summary of changes for this label: 04_13_01 19175 19176 ACPI CA Core Subsystem: 19177 19178Restructured support for BufferFields and RegionFields. 19179BankFields support is now fully operational. All known 32-bit 19180limitations on field sizes have been removed. Both BufferFields 19181and (Operation) RegionFields are now supported by the same field 19182management code. 19183 19184Resource support now supports QWORD address and IO resources. The 1918516/32/64 bit address structures and the Extended IRQ structure 19186have been changed to properly handle Source Resource strings. 19187 19188A ThreadId of -1 is now used to indicate a "mutex not acquired" 19189condition internally and must never be returned by AcpiOsThreadId. 19190This reserved value was changed from 0 since Unix systems allow a 19191thread ID of 0. 19192 19193Linux: 19194 19195Driver code reorganized to enhance portability 19196 19197Added a kernel configuration option to control ACPI_DEBUG 19198 19199Fixed the EC driver to honor _GLK. 19200 19201ASL Compiler, version X2016: 19202 19203Fixed support for the "FixedHw" keyword. Previously, the FixedHw 19204address space was set to 0, not 0x7f as it should be. 19205 19206 ------------------------------------------ 19207Summary of changes for this label: 03_13_01 19208 19209 ACPI CA Core Subsystem: 19210 19211During ACPI initialization, the _SB_._INI method is now run if 19212present. 19213 19214Notify handler fix - notifies are deferred until the parent method 19215completes execution. This fixes the "mutex already acquired" 19216issue seen occasionally. 19217 19218Part of the "implicit conversion" rules in ACPI 2.0 have been 19219found to cause compatibility problems with existing ASL/AML. The 19220convert "result-to-target-type" implementation has been removed 19221for stores to method Args and Locals. Source operand conversion 19222is still fully implemented. Possible changes to ACPI 2.0 19223specification pending. 19224 19225Fix to AcpiRsCalculatePciRoutingTableLength to return correct 19226length. 19227 19228Fix for compiler warnings for 64-bit compiles. 19229 19230 Linux: 19231 19232/proc output aligned for easier parsing. 19233 19234Release-version compile problem fixed. 19235 19236New kernel configuration options documented in Configure.help. 19237 19238IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 19239context" message. 19240 19241 OSPM: 19242 19243Power resource driver integrated with bus manager. 19244 19245Fixed kernel fault during active cooling for thermal zones. 19246 19247Source Code: 19248 19249The source code tree has been restructured. 19250 19251 19252 19253------------------------------------------ 19254Summary of changes for this label: 03_02_01 19255 19256 Linux OS Services Layer (OSL): 19257 19258Major revision of all Linux-specific code. 19259 19260Modularized all ACPI-specific drivers. 19261 19262Added new thermal zone and power resource drivers. 19263 19264Revamped /proc interface (new functionality is under /proc/acpi). 19265 19266New kernel configuration options. 19267 19268 Linux known issues: 19269 19270New kernel configuration options not documented in Configure.help 19271yet. 19272 19273 19274Module dependencies not currently implemented. If used, they 19275should be loaded in this order: busmgr, power, ec, system, 19276processor, battery, ac_adapter, button, thermal. 19277 19278Modules will not load if CONFIG_MODVERSION is set. 19279 19280IBM 600E - entering S5 may reboot instead of shutting down. 19281 19282IBM 600E - Sleep button may generate "Invalid <NULL> context" 19283message. 19284 19285Some systems may fail with "execution mutex already acquired" 19286message. 19287 19288 ACPI CA Core Subsystem: 19289 19290Added a new OSL Interface, AcpiOsGetThreadId. This was required 19291for the deadlock detection code. Defined to return a non-zero, 32- 19292bit thread ID for the currently executing thread. May be a non- 19293zero constant integer on single-thread systems. 19294 19295Implemented deadlock detection for internal subsystem mutexes. We 19296may add conditional compilation for this code (debug only) later. 19297 19298ASL/AML Mutex object semantics are now fully supported. This 19299includes multiple acquires/releases by owner and support for the 19300 19301Mutex SyncLevel parameter. 19302 19303A new "Force Release" mechanism automatically frees all ASL 19304Mutexes that have been acquired but not released when a thread 19305exits the interpreter. This forces conformance to the ACPI spec 19306("All mutexes must be released when an invocation exits") and 19307prevents deadlocked ASL threads. This mechanism can be expanded 19308(later) to monitor other resource acquisitions if OEM ASL code 19309continues to misbehave (which it will). 19310 19311Several new ACPI exception codes have been added for the Mutex 19312support. 19313 19314Recursive method calls are now allowed and supported (the ACPI 19315spec does in fact allow recursive method calls.) The number of 19316recursive calls is subject to the restrictions imposed by the 19317SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 19318parameter. 19319 19320Implemented support for the SyncLevel parameter for control 19321methods (ACPI 2.0 feature) 19322 19323Fixed a deadlock problem when multiple threads attempted to use 19324the interpreter. 19325 19326Fixed a problem where the string length of a String package 19327element was not always set in a package returned from 19328AcpiEvaluateObject. 19329 19330Fixed a problem where the length of a String package element was 19331not always included in the length of the overall package returned 19332from AcpiEvaluateObject. 19333 19334Added external interfaces (Acpi*) to the ACPI debug memory 19335manager. This manager keeps a list of all outstanding 19336allocations, and can therefore detect memory leaks and attempts to 19337free memory blocks more than once. Useful for code such as the 19338power manager, etc. May not be appropriate for device drivers. 19339Performance with the debug code enabled is slow. 19340 19341The ACPI Global Lock is now an optional hardware element. 19342 19343 ASL Compiler Version X2015: 19344 19345Integrated changes to allow the compiler to be generated on 19346multiple platforms. 19347 19348Linux makefile added to generate the compiler on Linux 19349 19350 Source Code: 19351 19352All platform-specific headers have been moved to their own 19353subdirectory, Include/Platform. 19354 19355New source file added, Interpreter/ammutex.c 19356 19357New header file, Include/acstruct.h 19358 19359 Documentation: 19360 19361The programmer reference has been updated for the following new 19362interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 19363 19364 ------------------------------------------ 19365Summary of changes for this label: 02_08_01 19366 19367Core ACPI CA Subsystem: Fixed a problem where an error was 19368incorrectly returned if the return resource buffer was larger than 19369the actual data (in the resource interfaces). 19370 19371References to named objects within packages are resolved to the 19372 19373full pathname string before packages are returned directly (via 19374the AcpiEvaluateObject interface) or indirectly via the resource 19375interfaces. 19376 19377Linux OS Services Layer (OSL): 19378 19379Improved /proc battery interface. 19380 19381 19382Added C-state debugging output and other miscellaneous fixes. 19383 19384ASL Compiler Version X2014: 19385 19386All defined method arguments can now be used as local variables, 19387including the ones that are not actually passed in as parameters. 19388The compiler tracks initialization of the arguments and issues an 19389exception if they are used without prior assignment (just like 19390locals). 19391 19392The -o option now specifies a filename prefix that is used for all 19393output files, including the AML output file. Otherwise, the 19394default behavior is as follows: 1) the AML goes to the file 19395specified in the DSDT. 2) all other output files use the input 19396source filename as the base. 19397 19398 ------------------------------------------ 19399Summary of changes for this label: 01_25_01 19400 19401Core ACPI CA Subsystem: Restructured the implementation of object 19402store support within the interpreter. This includes support for 19403the Store operator as well as any ASL operators that include a 19404target operand. 19405 19406Partially implemented support for Implicit Result-to-Target 19407conversion. This is when a result object is converted on the fly 19408to the type of an existing target object. Completion of this 19409support is pending further analysis of the ACPI specification 19410concerning this matter. 19411 19412CPU-specific code has been removed from the subsystem (hardware 19413directory). 19414 19415New Power Management Timer functions added 19416 19417Linux OS Services Layer (OSL): Moved system state transition code 19418to the core, fixed it, and modified Linux OSL accordingly. 19419 19420Fixed C2 and C3 latency calculations. 19421 19422 19423We no longer use the compilation date for the version message on 19424initialization, but retrieve the version from AcpiGetSystemInfo(). 19425 19426Incorporated for fix Sony VAIO machines. 19427 19428Documentation: The Programmer Reference has been updated and 19429reformatted. 19430 19431 19432ASL Compiler: Version X2013: Fixed a problem where the line 19433numbering and error reporting could get out of sync in the 19434presence of multiple include files. 19435 19436 ------------------------------------------ 19437Summary of changes for this label: 01_15_01 19438 19439Core ACPI CA Subsystem: 19440 19441Implemented support for type conversions in the execution of the 19442ASL Concatenate operator (The second operand is converted to 19443match the type of the first operand before concatenation.) 19444 19445Support for implicit source operand conversion is partially 19446implemented. The ASL source operand types Integer, Buffer, and 19447String are freely interchangeable for most ASL operators and are 19448converted by the interpreter on the fly as required. Implicit 19449Target operand conversion (where the result is converted to the 19450target type before storing) is not yet implemented. 19451 19452Support for 32-bit and 64-bit BCD integers is implemented. 19453 19454Problem fixed where a field read on an aligned field could cause a 19455read past the end of the field. 19456 19457New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 19458does not return a value, but the caller expects one. (The ASL 19459compiler flags this as a warning.) 19460 19461ASL Compiler: 19462 19463Version X2011: 194641. Static typechecking of all operands is implemented. This 19465prevents the use of invalid objects (such as using a Package where 19466an Integer is required) at compile time instead of at interpreter 19467run-time. 194682. The ASL source line is printed with ALL errors and warnings. 194693. Bug fix for source EOF without final linefeed. 194704. Debug option is split into a parse trace and a namespace trace. 194715. Namespace output option (-n) includes initial values for 19472integers and strings. 194736. Parse-only option added for quick syntax checking. 194747. Compiler checks for duplicate ACPI name declarations 19475 19476Version X2012: 194771. Relaxed typechecking to allow interchangeability between 19478strings, integers, and buffers. These types are now converted by 19479the interpreter at runtime. 194802. Compiler reports time taken by each internal subsystem in the 19481debug output file. 19482 19483 19484 ------------------------------------------ 19485Summary of changes for this label: 12_14_00 19486 19487ASL Compiler: 19488 19489This is the first official release of the compiler. Since the 19490compiler requires elements of the Core Subsystem, this label 19491synchronizes everything. 19492 19493------------------------------------------ 19494Summary of changes for this label: 12_08_00 19495 19496 19497Fixed a problem where named references within the ASL definition 19498of both OperationRegions and CreateXXXFields did not work 19499properly. The symptom was an AE_AML_OPERAND_TYPE during 19500initialization of the region/field. This is similar (but not 19501related internally) to the problem that was fixed in the last 19502label. 19503 19504Implemented both 32-bit and 64-bit support for the BCD ASL 19505functions ToBCD and FromBCD. 19506 19507Updated all legal headers to include "2000" in the copyright 19508years. 19509 19510 ------------------------------------------ 19511Summary of changes for this label: 12_01_00 19512 19513Fixed a problem where method invocations within the ASL definition 19514of both OperationRegions and CreateXXXFields did not work 19515properly. The symptom was an AE_AML_OPERAND_TYPE during 19516initialization of the region/field: 19517 19518 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 19519[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 19520(0x3005) 19521 19522Fixed a problem where operators with more than one nested 19523subexpression would fail. The symptoms were varied, by mostly 19524AE_AML_OPERAND_TYPE errors. This was actually a rather serious 19525problem that has gone unnoticed until now. 19526 19527 Subtract (Add (1,2), Multiply (3,4)) 19528 19529Fixed a problem where AcpiGetHandle didn't quite get fixed in the 19530previous build (The prefix part of a relative path was handled 19531incorrectly). 19532 19533Fixed a problem where Operation Region initialization failed if 19534the operation region name was a "namepath" instead of a simple 19535"nameseg". Symptom was an AE_NO_OPERAND error. 19536 19537Fixed a problem where an assignment to a local variable via the 19538indirect RefOf mechanism only worked for the first such 19539assignment. Subsequent assignments were ignored. 19540 19541 ------------------------------------------ 19542Summary of changes for this label: 11_15_00 19543 19544ACPI 2.0 table support with backwards support for ACPI 1.0 and the 195450.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 19546the AML interpreter does NOT have support for the new 2.0 ASL 19547grammar terms at this time. 19548 19549All ACPI hardware access is via the GAS structures in the ACPI 2.0 19550FADT. 19551 19552All physical memory addresses across all platforms are now 64 bits 19553wide. Logical address width remains dependent on the platform 19554(i.e., "void *"). 19555 19556AcpiOsMapMemory interface changed to a 64-bit physical address. 19557 19558The AML interpreter integer size is now 64 bits, as per the ACPI 195592.0 specification. 19560 19561For backwards compatibility with ACPI 1.0, ACPI tables with a 19562revision number less than 2 use 32-bit integers only. 19563 19564Fixed a problem where the evaluation of OpRegion operands did not 19565always resolve them to numbers properly. 19566 19567------------------------------------------ 19568Summary of changes for this label: 10_20_00 19569 19570Fix for CBN_._STA issue. This fix will allow correct access to 19571CBN_ OpRegions when the _STA returns 0x8. 19572 19573Support to convert ACPI constants (Ones, Zeros, One) to actual 19574values before a package object is returned 19575 19576Fix for method call as predicate to if/while construct causing 19577incorrect if/while behavior 19578 19579Fix for Else block package lengths sometimes calculated wrong (if 19580block > 63 bytes) 19581 19582Fix for Processor object length field, was always zero 19583 19584Table load abort if FACP sanity check fails 19585 19586Fix for problem with Scope(name) if name already exists 19587 19588Warning emitted if a named object referenced cannot be found 19589(resolved) during method execution. 19590 19591 19592 19593 19594 19595------------------------------------------ 19596Summary of changes for this label: 9_29_00 19597 19598New table initialization interfaces: AcpiInitializeSubsystem no 19599longer has any parameters AcpiFindRootPointer - Find the RSDP (if 19600necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 19601>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 19602AcpiLoadTables 19603 19604Note: These interface changes require changes to all existing OSDs 19605 19606The PCI_Config default address space handler is always installed 19607at the root namespace object. 19608 19609------------------------------------------- 19610Summary of changes for this label: 09_15_00 19611 19612The new initialization architecture is implemented. New 19613interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 19614AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 19615 19616(Namespace is automatically loaded when a table is loaded) 19617 19618The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1961952 bytes to 32 bytes. There is usually one of these for every 19620namespace object, so the memory savings is significant. 19621 19622Implemented just-in-time evaluation of the CreateField operators. 19623 19624Bug fixes for IA-64 support have been integrated. 19625 19626Additional code review comments have been implemented 19627 19628The so-called "third pass parse" has been replaced by a final walk 19629through the namespace to initialize all operation regions (address 19630spaces) and fields that have not yet been initialized during the 19631execution of the various _INI and REG methods. 19632 19633New file - namespace/nsinit.c 19634 19635------------------------------------------- 19636Summary of changes for this label: 09_01_00 19637 19638Namespace manager data structures have been reworked to change the 19639primary object from a table to a single object. This has 19640resulted in dynamic memory savings of 3X within the namespace and 196412X overall in the ACPI CA subsystem. 19642 19643Fixed problem where the call to AcpiEvFindPciRootBuses was 19644inadvertently left commented out. 19645 19646Reduced the warning count when generating the source with the GCC 19647compiler. 19648 19649Revision numbers added to each module header showing the 19650SourceSafe version of the file. Please refer to this version 19651number when giving us feedback or comments on individual modules. 19652 19653The main object types within the subsystem have been renamed to 19654clarify their purpose: 19655 19656ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 19657ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 19658ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 19659 19660NOTE: no changes to the initialization sequence are included in 19661this label. 19662 19663------------------------------------------- 19664Summary of changes for this label: 08_23_00 19665 19666Fixed problem where TerminateControlMethod was being called 19667multiple times per method 19668 19669Fixed debugger problem where single stepping caused a semaphore to 19670be oversignalled 19671 19672Improved performance through additional parse object caching - 19673added ACPI_EXTENDED_OP type 19674 19675------------------------------------------- 19676Summary of changes for this label: 08_10_00 19677 19678Parser/Interpreter integration: Eliminated the creation of 19679complete parse trees for ACPI tables and control methods. 19680Instead, parse subtrees are created and then deleted as soon as 19681they are processed (Either entered into the namespace or executed 19682by the interpreter). This reduces the use of dynamic kernel 19683memory significantly. (about 10X) 19684 19685Exception codes broken into classes and renumbered. Be sure to 19686recompile all code that includes acexcep.h. Hopefully we won't 19687have to renumber the codes again now that they are split into 19688classes (environment, programmer, AML code, ACPI table, and 19689internal). 19690 19691Fixed some additional alignment issues in the Resource Manager 19692subcomponent 19693 19694Implemented semaphore tracking in the AcpiExec utility, and fixed 19695several places where mutexes/semaphores were being unlocked 19696without a corresponding lock operation. There are no known 19697semaphore or mutex "leaks" at this time. 19698 19699Fixed the case where an ASL Return operator is used to return an 19700unnamed package. 19701 19702------------------------------------------- 19703Summary of changes for this label: 07_28_00 19704 19705Fixed a problem with the way addresses were calculated in 19706AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 19707manifested itself when a Field was created with WordAccess or 19708DwordAccess, but the field unit defined within the Field was less 19709 19710than a Word or Dword. 19711 19712Fixed a problem in AmlDumpOperands() module's loop to pull 19713operands off of the operand stack to display information. The 19714problem manifested itself as a TLB error on 64-bit systems when 19715accessing an operand stack with two or more operands. 19716 19717Fixed a problem with the PCI configuration space handlers where 19718context was getting confused between accesses. This required a 19719change to the generic address space handler and address space 19720setup definitions. Handlers now get both a global handler context 19721(this is the one passed in by the user when executing 19722AcpiInstallAddressSpaceHandler() and a specific region context 19723that is unique to each region (For example, the _ADR, _SEG and 19724_BBN values associated with a specific region). The generic 19725function definitions have changed to the following: 19726 19727typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 19728UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 19729*HandlerContext, // This used to be void *Context void 19730*RegionContext); // This is an additional parameter 19731 19732typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 19733RegionHandle, UINT32 Function, void *HandlerContext, void 19734**RegionContext); // This used to be **ReturnContext 19735 19736------------------------------------------- 19737Summary of changes for this label: 07_21_00 19738 19739Major file consolidation and rename. All files within the 19740interpreter have been renamed as well as most header files. This 19741was done to prevent collisions with existing files in the host 19742OSs -- filenames such as "config.h" and "global.h" seem to be 19743quite common. The VC project files have been updated. All 19744makefiles will require modification. 19745 19746The parser/interpreter integration continues in Phase 5 with the 19747implementation of a complete 2-pass parse (the AML is parsed 19748twice) for each table; This avoids the construction of a huge 19749parse tree and therefore reduces the amount of dynamic memory 19750required by the subsystem. Greater use of the parse object cache 19751means that performance is unaffected. 19752 19753Many comments from the two code reviews have been rolled in. 19754 19755The 64-bit alignment support is complete. 19756 19757------------------------------------------- 19758Summary of changes for this label: 06_30_00 19759 19760With a nod and a tip of the hat to the technology of yesteryear, 19761we've added support in the source code for 80 column output 19762devices. The code is now mostly constrained to 80 columns or 19763less to support environments and editors that 1) cannot display 19764or print more than 80 characters on a single line, and 2) cannot 19765disable line wrapping. 19766 19767A major restructuring of the namespace data structure has been 19768completed. The result is 1) cleaner and more 19769understandable/maintainable code, and 2) a significant reduction 19770in the dynamic memory requirement for each named ACPI object 19771(almost half). 19772 19773------------------------------------------- 19774Summary of changes for this label: 06_23_00 19775 19776Linux support has been added. In order to obtain approval to get 19777the ACPI CA subsystem into the Linux kernel, we've had to make 19778quite a few changes to the base subsystem that will affect all 19779users (all the changes are generic and OS- independent). The 19780effects of these global changes have been somewhat far reaching. 19781Files have been merged and/or renamed and interfaces have been 19782renamed. The major changes are described below. 19783 19784Osd* interfaces renamed to AcpiOs* to eliminate namespace 19785pollution/confusion within our target kernels. All OSD 19786interfaces must be modified to match the new naming convention. 19787 19788Files merged across the subsystem. A number of the smaller source 19789and header files have been merged to reduce the file count and 19790increase the density of the existing files. There are too many 19791to list here. In general, makefiles that call out individual 19792files will require rebuilding. 19793 19794Interpreter files renamed. All interpreter files now have the 19795prefix am* instead of ie* and is*. 19796 19797Header files renamed: The acapi.h file is now acpixf.h. The 19798acpiosd.h file is now acpiosxf.h. We are removing references to 19799the acronym "API" since it is somewhat windowsy. The new name is 19800"external interface" or xface or xf in the filenames.j 19801 19802 19803All manifest constants have been forced to upper case (some were 19804mixed case.) Also, the string "ACPI_" has been prepended to many 19805(not all) of the constants, typedefs, and structs. 19806 19807The globals "DebugLevel" and "DebugLayer" have been renamed 19808"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 19809 19810All other globals within the subsystem are now prefixed with 19811"AcpiGbl_" Internal procedures within the subsystem are now 19812prefixed with "Acpi" (with only a few exceptions). The original 19813two-letter abbreviation for the subcomponent remains after "Acpi" 19814- for example, CmCallocate became AcpiCmCallocate. 19815 19816Added a source code translation/conversion utility. Used to 19817generate the Linux source code, it can be modified to generate 19818other types of source as well. Can also be used to cleanup 19819existing source by removing extraneous spaces and blank lines. 19820Found in tools/acpisrc/* 19821 19822OsdUnMapMemory was renamed to OsdUnmapMemory and then 19823AcpiOsUnmapMemory. (UnMap became Unmap). 19824 19825A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 19826When set to one, this indicates that the caller wants to use the 19827 19828semaphore as a mutex, not a counting semaphore. ACPI CA uses 19829both types. However, implementers of this call may want to use 19830different OS primitives depending on the type of semaphore 19831requested. For example, some operating systems provide separate 19832 19833"mutex" and "semaphore" interfaces - where the mutex interface is 19834much faster because it doesn't have all the overhead of a full 19835semaphore implementation. 19836 19837Fixed a deadlock problem where a method that accesses the PCI 19838address space can block forever if it is the first access to the 19839space. 19840 19841------------------------------------------- 19842Summary of changes for this label: 06_02_00 19843 19844Support for environments that cannot handle unaligned data 19845accesses (e.g. firmware and OS environments devoid of alignment 19846handler technology namely SAL/EFI and the IA-64 Linux kernel) has 19847been added (via configurable macros) in these three areas: - 19848Transfer of data from the raw AML byte stream is done via byte 19849moves instead of word/dword/qword moves. - External objects are 19850aligned within the user buffer, including package elements (sub- 19851objects). - Conversion of name strings to UINT32 Acpi Names is now 19852done byte-wise. 19853 19854The Store operator was modified to mimic Microsoft's 19855implementation when storing to a Buffer Field. 19856 19857Added a check of the BM_STS bit before entering C3. 19858 19859The methods subdirectory has been obsoleted and removed. A new 19860file, cmeval.c subsumes the functionality. 19861 19862A 16-bit (DOS) version of AcpiExec has been developed. The 19863makefile is under the acpiexec directory. 19864