1---------------------------------------- 227 August 2024. Summary of changes for version 20240827: 3 4Major changes: 5 6Fix 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> 7 8Fix the optional table 4-byte signature. Contributed by: Daniil Tatianin <99danilt@gmail.com> 9 10Correct the dumping of SLIC and DBG2 tables. Contributed by: Al Stone (Fedora) <ahs3@ahs3.net> 11 12Add support for QWordPCC and DWordPCC by Jose Marinho (ARM) 13 14Fix the integer to hex string conversions by Armin Wolf 15 16Detecting FACS in reduced HW mode and allowing setting waking vector thereby waking up from S3 state 17 18Fixing issues with crossing page boundaries when mapping operation regions by Raju Rangoju, Sanath S and Mario Limonciello (AMD) 19 20Update the support for IORT, HMAT, MPAM, AEST, CEDT, SPCR etc. tables 21 22Fix multiple issues with table parsing, compilation and disassembly by Myra DeMere (Google) 23 24Allow for more flexibility in _DSM usage. 25 26 27---------------------------------------- 2822 March 2024. Summary of changes for version 20240322: 29 30Major changes: 31 32Update all the license header year from 2023 to 2024. 33 34Fix table argument ordering to work properly with iasl. 35 36Get rid of the annoying repeated warning types in MSVC and Windows. 37 38Fix a test in ASLTS with edge case failure. 39 40Fix a couple of issues with how GPEs are counted and enabled. 41 42Add new tables for various architectures/OS, mainly RISC-V and also update many more. 43 44Add an option to either make the output deterministic or non-deterministic. 45 46Remove redundant checks, duplicated code and fix spellings in various files. 47 48Fix flex arrays for C++ compilers and also make ACPICA overall more compatible with different compilers which throw warnings related to memory sanitization etc. 49 50 51---------------------------------------- 5228 June 2023. Summary of changes for version 20230628: 53 540) Global changes: 55 56Fixed 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. 57 58Added 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. 59 60Added support for _DSC (Deepest State for Configuration) as per ACPI 6.5. 61 621) ACPICA kernel-resident subsystem: 63 64Added port definitions for CDAT SSLBIS. Add upstream port and any port definitions for SSLBIS. Reported by: Dave Jiang dave.jiang@intel.com. 65 66Fixed misspelled CDAT DSMAS define: ACPI_CEDT_DSMAS_NON_VOLATILE -> ACPI_CDAT_DSMAS_NON_VOLATILE. Reported by: Dave Jiang dave.jiang@intel.com. 67 681) ACPICA kernel-resident subsystem: 69 70Fix 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. 71 72Also, 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. 73 742) iASL Compiler/Disassembler and ACPICA tools:. 75 76IASL/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. 77 78AcpiExec: 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. 79 80AcpiExec: 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. 81---------------------------------------- 8231 March 2023. Summary of changes for version 20230331: 83 84This release is available at https://acpica.org/downloads 85 860) Global changes: 87 88 89Update all copyright notices to the year 2023. This effects all source 90modules, as well as utility signons. 91Add OS-specific support for Zephyr RTOS. 92Fix miscellaneous code that accesses various objects. 93Remove some dead code. 94Add C ?Flexible Array? support. 95Add support for 64 bit LoongArch compilation. 96Add first batch of RISC-V related definitions. 97Performed a global automated update to remove tabs, fix indentation 98issues, etc. 99 1001) ACPICA kernel-resident subsystem: 101 102hwvalid: Drop port I/O validation. 103 1042) ACPICA tools and utilities: 105 106iASL: Added full macro support in the preprocessor. Example: 107#define ABCD(a,b,c,d) a+b+c-d 108 109Known macro support limitations (at this time): 110 No support for multi-line #define macros (backslash continuation 111lines) 112 No support for the C-style ternary operator 113 No support for the stringizing operator (#) 114 No support for the concatenation (token pasting) operator (##) 115 No support for variable number of macro arguments 116 117Add support for AMD Secure Processor Table (ASPT) version 1. 118Add support for Arm's MPAM ACPI table version 2. 119ACPI 6.5: MADT: add support for trace buffer extension in GICC. 120Headers: Delete bogus NodeArray array of pointers from AEST table. 121PHAT table support is still ongoing. 122 123 124---------------------------------------- 12520 October 2022. Summary of changes for version 20221020: 126 127This release is available at https://acpica.org/downloads 128 1290) Global changes: 130 131Allow disabling of -Werror. For distro maintainers having `-Werror` can 132delay update of GCC. Since every GCC release might add new warnings that 133were not yet captured, it might break the build of packages. With this 134change, distros can now build with `NOWERROR=TRUE` instead of patching 135either the errors or the makefiles. The default behavior keeps on using 136`-Werror`. 137 1381) ACPICA kernel-resident subsystem: 139 140Added support for FFH Operation Region special context data. FFH(Fixed 141Function Hardware) Opregion is approved to be added in ACPI 6.5 via code 142first approach[1]. It requires special context data similar to GPIO and 143Generic Serial Bus as it needs to know platform specific offset and 144length. 145 146Reverted this commit "executer/exsystem: Warn about sleeps greater than 14710 ms." Due to user complaints about valid sleeps greater than 10ms seen 148in some existing machines -- generating lots of warnings. 149 150Do not touch VGA memory when EBDA < 1KiB. The ACPICA code assumes that 151EBDA region must be at least 1KiB in size. Because this is not 152guaranteed, it might happen that while scanning the memory for RSDP 153pointer, the kernel touches memory above 640KiB. This is unwanted as the 154VGA memory range may not be decoded or even present when running under 155virtualization. 156 157Check that EBDA pointer is in valid memory. If the memory at 0x40e is 158uninitialized, the retrieved physical memory address of EBDA may be 159beyond the low memory (i.e. above 640K). If so, the kernel may 160unintentionally access the VGA memory, that might not be decoded or even 161present in case of virtualization. 162 1632) iASL Compiler/Disassembler and ACPICA tools: 164 165Completed the existing partial support for the CDAT "table". Although 166this isn't technically an ACPI table (It doesn't go into the XSDT), it is 167possible to support this table in the Data Table compiler. Created one 168new file, "utilities/utcksum.c", used to centralize checksum 169generation/validation into one location. Includes changes to makefiles 170and MSVC project files. 171 172Updated support for the IORT table - update to version E.e 173 174Added CXL 3.0 structures (CXIMS & RDPAS) to the CEDT table 175 176iASL: Added CCEL table to both compiler/disassembler. 177 178iASL: NHLT table: Fixed compilation of optional undocumented fields 179 180iASL: Fix iASL compile error due to ACPI_TDEL_OFFSET. Commit # 10e4763 181("iASL: Add CCEL table to both compiler/disassembler") introduced the 182iASL build issue. The issue is due to using ACPI_TDEL_OFFSET for CCEL 183table member reference. To fix it, change ACPI_TDEL_OFFSET with 184ACPI_CCEL_OFFSET. 185 186---------------------------------------- 18731 March 2022. Summary of changes for version 20220331: 188 1890) Global changes: 190 191Update all copyright notices to the year 2022. This effects all source 192modules, as well as utility signons. 193 194 1951) ACPICA kernel-resident subsystem: 196 197For the ASL Sleep() operator, issue a warning if the sleep value is 198greater than 10 Milliseconds. Quick boottime is important, so warn about 199sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350 200ms, so excessive delays should be called out. 10 ms is chosen randomly, 201but three of such delays would already make up ten percent of the 202boottime. 203 204Namespace: Avoid attempting to walk the Namespace if the Namespace does 205not exist. 206 207AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the 208LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a 209pass/fail integer. Now load returns a pass/fail integer, as well as 210storing the return value in an optional 2nd argument. 211 212Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid 213"performing pointer subtraction with a null pointer has undefined 214behavior" compiler warnings, use uintptr_t and offsetof() that are always 215available during Linux kernel builds to define ACPI_UINTPTR_T and the 216ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code 217in the Linux kernel. 218 219Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted 220by superm1. 221 222executer/exsystem: Inform users about ACPI spec violation for the Stall() 223operator. Values greater than 100 microseconds violate the ACPI 224specification, so warn users about it. From the ACPI Specification 225version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*: 226> The implementation of Stall is OS-specific, but must not relinquish 227> control of the processor. Because of this, delays longer than 100 228> microseconds must use Sleep instead of Stall. 229 230 2312) iASL Compiler/Disassembler and ACPICA tools: 232 233Data Table Compiler/Disassembler: Add support for the APMT table - ARM 234Performance Monitoring Unit table. Submitted by @bwicaksononv. 235 236Data Table Compiler/Disassembler: For MADT, add support for the OEM- 237defined subtables (Types 0x80-0x7F). 238 239Data Table Compiler: Fixed a problem with support for the SDEV table, 240where a subtable Length was not computed correctly. 241 242Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT 243Acpi table support. 244 245Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and 246add template. Submitted by MasterDrogo. 247 248Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz: 249iASL/NHLT: Rename linux specific structures to DeviceInfo to improve 250readability of the code. 251iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint. 252Undocumented bytes at the end of Endpoint Descriptor can be present 253independently of Linux-specific structures. Their size can also vary. 254iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4 255bytes of size and then an amount of bytes specified by size. All of the 256terminators that I've seen had a size equal to 4, but theoretically it 257can vary. 258 259iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C). 260 261iASL: Remove a remark due to excessive output. Removed a remark for 262duplicate Offset() operators, due to a user complaint. 263 264---------------------------------------- 26517 December 2021. Summary of changes for version 20211217: 266 2671) ACPICA kernel-resident subsystem: 268 269Hardware: Do not flush CPU cache when entering S4 and S5. According to 270ACPI 6.4, Section 16.2, the CPU cache flushing is required on entering to 271S1, S2, and S3, but the ACPICA code flushes the CPU cache regardless of 272the sleep state. Blind cache flush on entering S5 causes problems for 273TDX. 274 275Avoid subobject buffer overflow when validating RSDP signature. Since the 276Signature member is accessed through an ACPI_TABLE_HEADER, the pointer to 277it is only to a 4-char array, and so trying to read past the 4th 278character, as will be done when it is an RSDP, reads beyond the bounds of 279the accessed member. Contributed by jrtc27. 280 281Add support for PCC Opregion special context data. PCC Opregion added in 282ACPIC 6.3 requires special context data similar to GPIO and Generic 283Serial Bus as it needs to know the internal PCC buffer and its length as 284well as the PCC channel index when the opregion handler is being executed 285by the OSPM. Adds support for the special context data needed by PCC 286Opregion. Submitted by Sudeep Holla <sudeep.holla@arm.com> 287 2882) iASL Compiler/Disassembler and ACPICA tools: 289 290iASL: Completed compiler support for the NHLT ACPI table. 291 292iASL/NHLT table: Fixed a reported problem where a fault would occur 293during disassembly of a "Linux-Specific" section if the "Specific Data" 294part was not present. 295 296iASL: Added full support (compiler and disassembler) for the AGDI ACPI 297table. Contributed by: Ilkka Koskinen <ilkka@os.amperecomputing.com>. 298 299iASL: Added full support for the TDEL ACPI table. 300 301iASL table compiler: FADT support updates: 3021) Allow the 32-bit DSDT address to be zero. 3032) Issue error if both the 32-bit and 64-bit DSDT addresses are zero. 304 305iASL: Fix unaligned accesses to local cache allocations. Contributed by 306jrtc27. 307 308iASL: Open binary input files in binary mode, not text mode Affects 309binary input AML files, as well as binary data table files, for 310disassembly. 311 312---------------------------------------- 31330 September 2021. Summary of changes for version 20210930: 314 315This release is available at https://acpica.org/downloads 316 3171) ACPICA kernel-resident subsystem: 318 319Hardware: Avoid evaluating methods too early during system resume. During 320wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called 321and it tries to get memory from the OS in order to evaluate a control 322method, but if KFENCE is enabled in the Linux kernel, the memory 323allocation attempt causes an IRQ work to be queued and a self-IPI to be 324sent to the CPU running the code which requires the memory controller to 325be ready, so if that happens too early in the wakeup path, it doesn't 326work. 327 328Prevent that from taking place by calling AcpiGetSleepTypeData() for S0 329upfront, when preparing to enter a given sleep state, and saving the data 330obtained by it for later use during system wakeup. 331 332Added a new _OSI string, "Windows 2020". Posted by superm1. 333 3342) iASL Compiler/Disassembler and ACPICA tools: 335 336iASL compiler: Updated the check for usage of _CRS, _DIS, _PRS, and _SRS 337objects: 338New/latest rules: Under a Device Object: 339 1) If _PRS is present, must have _CRS and _SRS 340 2) If _SRS is present, must have _PRS (_PRS requires _CRS and 341_SRS) 342 3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS 343requires _CRS and _SRS) 344 4) If _SRS is present, probably should have a _DIS (Remark only) 345 346iASL table disassembler: Added disassembly support for the NHLT ACPI 347table. Note: support for Vendor-defined microphone arrays and SNR 348extensions are not supported at this time -- mostly due to a lack of 349example tables. Actual compiler support for NHLT is forthcoming. 350 351Added a new subtable type for ACPI 6.4 SRAT Generic Port Affinity. It 352uses the same subtable structure as the existing Generic Initiator 353Affinity type. 354 355Added the flag for online capable in the MADT, introduced in ACPI 6.3. 356Posted by superm1. 357 3583) ACPICA documentation: Updated the legal info (that appears at the 359start of the Documents) to clarify distribution rights that are granted. 360 361 362---------------------------------------- 36330 July 2021. Summary of changes for version 20210730: 364 365This release is available at https://acpica.org/downloads 366 3671) ACPICA kernel-resident subsystem: 368 3692) iASL Compiler/Disassembler and ACPICA tools: 370 371iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021). 372 Under the Device Object: 373 1) If _DIS is present, must have a _CRS and _SRS 374 2) If _PRS is present, must have a _CRS, _DIS, and _SRS 375 3) If _SRS is present, must have a _CRS and _DIS 376A warning will be issued for each of these cases. 377Note: For existing ASL/projects, these warnings may be disabled by 378specifying this on the command line: 379"-vw 3141" 380 381iASL Table Disassembler/Table compiler: Fix for WPBT table with no 382command-line arguments. Handle the case where the Command-line 383Arguments table field does not exist (zero). 384 385Headers: Add new DBG2 Serial Port Subtypes 386The Microsoft Debug Port Table 2 (DBG2) specification revision 387September 21, 2020 comprises additional Serial Port Subtypes [1]. 388Reflect that in the actbl1.h header file. Submitted by: 389semihalf-wojtas-marcin 390 391iASL: Add full support for the AEST table (data compiler) 392Includes support in the table compiler and the disassembler. 393 394Add PRMT module header to facilitate parsing. 395This structure is used in to parse PRMT in other Operating Systems 396that relies on using subtable headers in order to parse ACPI tables. 397Although the PRMT doesn't have "subtables" it has a list of module 398information structures that act as subtables. 399 400iASL: Table disassembler: Add missing strings to decode subtable types. 401Includes the MADT and CEDT tables. 402 403 404---------------------------------------- 40504 June 2021. Summary of changes for version 20210604: 406 4071) ACPICA kernel-resident subsystem: 408 409Cleaned up (delete) the context mutex during local address handler object 410deletion. 411 412Fixed a memory leak caused by the _CID repair function. 413 414Added support for PlatformRtMechanism OperationRegion handler. Adds a new 415utility function, AcpiUtConvertUuidToString. Writing a buffer to a 416PlatformRtMechanism fieldunit invokes a bidirectional transaction. The 417input buffer contains 26 bytes containing 9 bytes of status, a command 418byte and a 16-byte UUID. This change will simply pass this incoming 419buffer to a handler registered by the OS. 420 4212) iASL Compiler/Disassembler and ACPICA tools: 422 423Added full support for the PRMT ACPI table (Platform Runtime Mechanism 424Table). Includes support in the iASL compiler, the disassembler, and the 425template generator. 426 427Added full support for the BDAT (BIOS Data ACPI Table) ACPI table. 428 429Added full support for the RGRT (Regulatory Graphics Resource Table) ACPI 430table. 431 432Added full support for the SVKL (Storage Volume Key Location Table) ACPI 433table. Header file support from Kuppuswamy Sathyanarayanan 434<sathyanarayanan.kuppuswamy@linux.intel.com>. 435 436Completed full support for the IVRS (I/O Virtualization Reporting 437Structure) ACPI table. Added compiler support for IVRS, updated 438disassembler support. Adds a new utility, UtIsIdInteger, to determine if 439a HID/CID is an integer or a string. 440 441Headers: Added more structs to the CEDT table: CXL fixed memory window 442structure. 443 444ACPI 6.4: MADT: added Multiprocessor Wakeup Mailbox Structure. 445 446---------------------------------------- 44731 March 2021. Summary of changes for version 20210331: 448 449This release is available at https://acpica.org/downloads, and includes 450all ACPI 6.4 support 451 4521) ACPICA kernel-resident subsystem: 453ACPI 6.4: iASL: deprecate DDBHandleObj keyword 454Always create namespace nodes using AcpiNsCreateNode(). ACPICA is 455allocating an object using kmalloc(), but then frees it 456using kmem_cache_free(<"Acpi-Namespace" kmem_cache>). This is wrong. 457Fixed a race condition in generic serial bus operation region handler. 458Fixed by Hans de Goede. 459 4602) iASL Compiler/Disassembler and ACPICA tools: 461 462ACPI 6.4: NFIT: add Location Cookie field 463ACPI 6.4: HMAT: add new fields/flags 464ACPI 6.4: Add new flags in SRAT 465ACPI 6.4: add SDEV secure access components 466ACPI 6.4: add Csi2Bus resource template 467ACPI 6.4: add support for PHAT table 468ACPI 6.4: add support for PMTT table 469Add disassembly support for the IVRS table. Compilation of the table is 470not yet complete. 471Fixed a potential infinite loop due to type mismatch. The for-loop is 472using a UINT8 counter and comparing the upper 473limit against a UINT32 AslGbl_ExpectedMessagesIndex maximum. In 474the case where AslGbl_ExpectedMessagesIndex is > 255 the counter i 475will wrap around to zero and the loop will never exit. I suspect 476the AslGbl_ExpectedMessagesIndex is never that high, but fixing 477this does future proof the code and cleans up static analysis 478warnings.Colin King. 479iASL/TableCompiler: update it with IORT table E.b revision changes. From 480shamiali2008. 481iASL/TableCompiler: Add compilation support for the VIOT table. Signed- 482off-by: Jean-Philippe Brucker. 483iASL/TableCompiler: Add compilation support for CEDT table. Also, update 484the CEDT template. 485 486---------------------------------------- 48705 January 2021. Summary of changes for version 20210105: 488 489This release is available at https://acpica.org/downloads 490 491 4921) ACPICA kernel-resident subsystem: 493 494Updated all copyrights to 2021. This affects all ACPICA source code 495modules. 496 4972) iASL Compiler/Disassembler and ACPICA tools: 498 499ASL test suite (ASLTS): Updated all copyrights to 2021. 500 501Tools and utilities: Updated all signon copyrights to 2021. 502 503iASL Table Compiler: Removed support for obsolete ACPI tables: VRTC, 504MTMR. Al Stone. 505 506 507---------------------------------------- 50817 December 2020. Summary of changes for version 20201217: 509 510This release is available at https://acpica.org/downloads 511 512 5131) ACPICA kernel-resident subsystem: 514 515Note: The implementation of ACPI 6.4 is underway, and is expected to be 516mostly finished next month, when ACPI 6.4 is released. 517 518From qzed:- fixed-ae-class-macros. Fix exception code class checks. Added 519several new macros, such as ACPI_CNTL_EXCEPTION(Status) in order to 520enable this. 521 522AcpiExec/iASL/AcpiHelp: Added a few changes for support of GCC 10.2.0. 523These included a few casts, as well as a null pointer check. 524 525Fix -Wfallthrough: GCC 7.1 gained -Wimplicit-fallthrough to warn on 526implicit fallthrough, as well as __attribute__((__fallthrough__)) and 527comments to explicitly denote that cases of fallthrough were intentional. 528Clang also supports this warning and statement attribute, but not the 529comment form. Added a new macro, ACPI_FALLTHROUGH to support this feature 530of GCC. With assistance from @nickdesaulniers. 531 5322) iASL Compiler/Disassembler and ACPICA tools: 533 534Added improvement to method call analysis by saving the return type and 535relaxing certain cases of type checking. 536 537iASL Table Compiler: Improved info messages. Added a message to the -T 538option for when the default template (DSDT) is used. 539Also added a note for when multiple SSDTs are created with a DSDT that 540the SSDTs are created in the same file as the DSDT. 541 542 543---------------------------------------- 544 54513 November 2020. Summary of changes for version 20201113: 546 547This release is available at https://acpica.org/downloads 548 549 5501) ACPICA kernel-resident subsystem: 551 552Interpreter: fixed a memory leak by using use existing buffer in _HID 553repair. There was a memory leak that occurred when a _CID object is 554defined as a package containing string objects. When _CID is checked for 555any possible repairs, it calls a helper function to repair _HID (because 556_CID basically contains multiple _HID entries). The _HID repair function 557assumes that string objects are standalone objects that are not contained 558inside of any packages. The _HID repair function replaced the string 559object with a brand new object and attempted to delete the old object by 560decrementing the reference count of the old object. Strings inside of 561packages have a reference count of 2 so the _HID repair function leaves 562this object in a dangling state and causes a memory leak. Instead of 563allocating a brand new object and removing the old object, use the 564existing object when repairing the _HID object. 565 566Added function trace macros to improve namespace debugging. The namespace 567repair mechanism does not have function tracing macros. Add several trace 568macros to improve debuggability. 569 570Handle "orphan" _REG methods for GPIO OpRegions. Before this change 571AcpiEvExecuteRegMethods() had special handling to handle "orphan" (no 572matching OpRegion declared) _REG methods for EC nodes. On Intel Cherry 573Trail devices there are 2 possible ACPI OpRegions for accessing GPIOs. 574The standard GeneralPurposeIo OpRegion and the Cherry Trail - specific 575UserDefined 0x9X OpRegions. Having 2 different types of OpRegions leads 576to potential issues with checks for OpRegion availability, or in other 577words checks if _REG has been called for the OpRegion which the ACPI code 578wants to use. Except for the "orphan" EC handling, ACPICA core does not 579call _REG on an ACPI node which does not define an OpRegion matching the 580type being registered; and the reference design DSDT, from which most 581Cherry Trail DSDTs are derived, does not define GeneralPurposeIo, nor 582UserDefined(0x93) OpRegions for the GPO2 (UID 3) device, because no pins 583were assigned ACPI controlled functions in the reference design. Together 584this leads to the perfect storm, at least on the Cherry Trail based 585Medion Akayo E1239T. This design does use a GPO2 pin from its ACPI code 586and has added the Cherry Trail specific UserDefined(0x93) opregion to its 587GPO2 ACPI node to access this pin. But it uses a "has _REG been called" 588availability check for the standard GeneralPurposeIo OpRegion. This 589clearly is a bug in the DSDT, but this does work under Windows. This 590issue leads to the intel vbtn driver reporting the device always being in 591tablet-mode at boot, even if it is in laptop mode. Which in turn causes 592userspace to ignore touchpad events. So in other words, this issue causes 593the touchpad to not work at boot. This change fixes this by extending the 594"orphan" _REG method handling to also apply to GPIO address-space 595handlers. 596 597 5982) iASL Compiler/Disassembler and ACPICA tools: 599 600iASL: Added more info to namespace dump file (-ln option). In a separate 601section of the dump file (after the main namespace dump), emit the full 602pathname for each namespace node, its type, and the ASL filename and line 603number where it is declared. 604 605AcpiHelp: Added an option to display/decode iASL exceptions. Option is: - 606x [Hex Value] where "Hex Value" is the iASL exception code. If Hex Value 607is omitted, all iASL exceptions are displayed. 608 609iASL: Use StringLiteral instead of StringData for some ASL macros. The 610use of the stringData rule allows for some "string" oriented opcodes 611(Such as ToString, ToHexString, etc.) None of which make sense with the 612macros in question. This change modifies the StringData part of the rule 613for these macros to a simple string literal - thus disallowing the use 614of ToString, ToHexString, etc. 615The following ASL operators (macros) are affected: 616EisaId 617Fprintf 618Printf 619ToUuid 620Unicode 621Note: The MS compiler requires the use of string literals for these 622operators also. 623 624iASL: Added a remark for an unknown UUID: ASL_MSG_UUID_NOT_FOUND. Search 625the list of "known" UUIDs for the input to the ToUUID macro. 626 627Added 5 new UUIDs to the known UUID table. All related to NVDIMM and the 628NFIT table. 629 630 631---------------------------------------- 632 63325 September 2020. Summary of changes for version 20200925: 634 635This release is available at https://acpica.org/downloads 636 637 6381) ACPICA kernel-resident subsystem: 639 640Preserve memory opregion mappings. The ACPICA's strategy with respect to 641the handling of memory mappings associated with memory operation regions 642is to avoid mapping the entire region at once which may be problematic at 643least in principle (for example, it may lead to conflicts with 644overlapping mappings having different attributes created by drivers). It 645may also be wasteful, because memory opregions on some systems take up 646vastchunks of address space while the fields in those regions actually 647accessed by AML are sparsely distributed. 648 649For this reason, a one-page "window" is mapped for a given opregion on 650the first memory access through it and if that "window" does not cover an 651address range accessed through that opregion subsequently, it is unmapped 652and a new "window" is mapped to replace it. Next, if the new "window" is 653not sufficient to access memory through the opregion in question in the 654future, it will be replaced with yet another "window" and so on. That 655may lead to a suboptimal sequence of memory mapping and unmapping 656operations, for example if two fields in one opregion separated from each 657other by a sufficiently wide chunk of unused address space are accessed 658in an alternating pattern. 659 660Added support for 64 bit risc-v compilation. Useful for acpica tools and 661incorporating ACPICA into the Firmware Test Suite. Colin Ian King 662<colin.king@canonical.com>. 663 664Added support for SMBus predefined names (from SMBus Control Method 665Interface Specification, Version 1.0, December 10, 1999. New predefined 666names: 667 _SBA 668 _SBI 669 _SBR 670 _SBT 671 _SBW 672 673AML Disassembler: Added a new command, "All <NameSeg>". This command will 674evaluate all objects in the current namespace whose NameString contains 675the input NameSeg as the last element of the NameString. Useful for 676debugging. 677 678 6792) iASL Compiler/Disassembler and ACPICA tools: 680 681iASL: fixed a crash that occurred when predefined objects return packages 682with lengths that exceed the initializer list. 683 684iASL: added more detail to external resolution error message when 685compiling multiple definition blocks. 686 687iASL: added a remark for an attempt to create a nameseg or namestring 688containing lower-case letters. This should prevent declaring multiple 689namesegs or namestrings in an attempt to refer to different objects (with 690different cases), but actually refer to the same object(s). 691 692iASL: improve alias analysis by saving object type. If the alias is a 693method type, the parameter count is also recorded. 694 695AcpiExec: Increase the default loop timeout value. Was 1 second, is now 69610 seconds. Prevents unnecessary timeouts when executing control methods 697from the command line. 698 699AcpiHelp/disassembler: Added a bunch of "known" UUIDs to the internal 700list. Includes: 701 Memory Device 702 Generic Buttons Device 703 NVDIMM Root Device 704 Control Method Battery 705 Device Graphs for _DSD method 706 Hierarchical Data Extension 707....ARM CoreSight Graph 708 709---------------------------------------- 710 711 71217 July 2020. Summary of changes for version 20200717: 713 714This release is available at https://acpica.org/downloads 715 716 7171) ACPICA kernel-resident subsystem: 718 719Do not increment OperationRegion reference counts for field units. Recent 720server firmware has revealed that this reference count can overflow on 721large servers that declare many field units (thousands) under the same 722OperationRegion. This occurs because each field unit declaration will add 723a reference count to the source OperationRegion. This release solves the 724reference count overflow for OperationRegion objects by preventing 725fieldUnits from incrementing their parent OperationRegion's reference 726count. 727 728Replaced one-element arrays with flexible-arrays, which were introduced 729in C99. 730 731Restored the readme file containing the directions for generation of 732ACPICA from source on MSVC 2017. Updated the file for MSVC 2017. File is 733located at: generate/msvc2017/readme.txt 734 7352) iASL Compiler/Disassembler and ACPICA tools: 736 737iASL: Fixed a regression found in version 20200214. Prevent iASL from 738emitting an extra byte of garbage data when control methods declared a 739single parameter type without using braces. This extra byte is known to 740cause a blue screen on the Windows AML interpreter. 741 742iASL: Made a change to allow external declarations to specify the type of 743a named object even when some name segments are not defined. 744This change allows the following ASL code to compile (When DEV0 is not 745defined or not defined yet): 746 747 External (\_SB.DEV0.OBJ1, IntObj) 748 External (\_SB.DEV0, DeviceObj) 749 750iASL: Fixed a problem where method names in "Alias ()" statement could be 751misinterpreted. They are now interpreted correctly as method invocations. 752 753iASL: capture a method parameter count (Within the Method info segment, 754as well as the argument node) when using parameter type lists. 755 756---------------------------------------- 757 758 75928 May 2020. Summary of changes for version 20200528: 760 761 7621) ACPICA kernel-resident subsystem: 763 764Removed old/obsolete Visual Studio files which were used to build the 765Windows versions of the ACPICA tools. Since we have moved to Visual 766Studio 2017, we are no longer supporting Visual Studio 2006 and 2009 767project files. The new subdirectory and solution file are located at: 768 769 acpica/generate/msvc2017/AcpiComponents.sln 770 771 7722) iASL Compiler/Disassembler and ACPICA tools: 773 774iASL: added support for a new OperationRegion Address Space (subtype): 775PlatformRtMechanism. Support for this new keyword is being released for 776early prototyping. It will appear in the next release of the ACPI 777specification. 778 779iASL: do not optimize the NameString parameter of the CondRefOf operator. 780In the previous iASL compiler release, the NameString parameter of the 781CondRefOf was optimized. There is evidence that some implementations of 782the AML interpreter do not perform the recursive search-to-parent search 783during the execution of the CondRefOf operator. Therefore, the CondRefOf 784operator behaves differently when the NameString parameter is a single 785name segment (a NameSeg) as opposed to a full NamePath (starting at the 786root scope) or a NameString containing parent prefixes. 787 788iASL: Prevent an inadvertent remark message. This change prevents a 789remark if within a control method the following exist: 7901) An Operation Region is defined, and 7912) A Field operator is defined that refers to the region. 792This happens because at the top level, the Field operator does not 793actually create a new named object, it simply references the operation 794region. 795 796Removed support for the acpinames utility. The acpinames was a simple 797utility used to populate and display the ACPI namespace without executing 798any AML code. However, ACPICA now supports executable opcodes outside of 799control methods. This means that executable AML opcodes such as If and 800Store opcodes need to be executed during table load. Therefore, acpinames 801would need to be updated to match the same behavior as the acpiexec 802utility and since acpiexec can already dump the entire namespace (via the 803'namespace' command), we no longer have the need to maintain acpinames. 804 805 In order to dump the contents of the ACPI namespace using acpiexec, 806execute the following command from the command line: 807 808 acpiexec -b "n" [aml files] 809 810---------------------------------------- 811 812 81330 April 2020. Summary of changes for version 20200430: 814 8151) ACPICA kernel-resident subsystem: 816 817Cleaned up the coding style of a couple of global variables 818(AcpiGbl_NextCmdNum and AcpiProtocolLengths) caught by static analyzers. 819AcpiProtocolLengths was made static, and the definition of 820AcpiGbl_NextCmdNum was moved to acglobal.h. 821 822 8232) iASL Compiler/Disassembler and ACPICA tools: 824 825iASL DataTable Compiler: Fixed a segfault on errors that aren't directly 826associated with a field. 827 828Disassembler: has been made more resilient so that it will continue to 829parse AML even if the AML generates ACPI namespace errors. This enables 830iASL to disassemble some AML that may have been compiled using older 831versions of iASL that no longer compile with newer versions of iASL. 832 833iASL: Fixed the required parameters for _NIH and _NIG. Previously, there 834was a mixup where _NIG required one parameter and _NIH required zero 835parameters. This change swaps these parameter requirements. Now it is 836required that _NIH must be called with one parameter and _NIG requires 837zero parameters. 838 839iASL: Allow use of undefined externals as long as they are protected by 840an if (CondRefOf (...)) block when compiling multiple definition blocks. 841 842iASL: Fixed the type override behavior of named objects that are declared 843as External. External declarations will no longer override the type of 844the actual definition if it already exists. 845 846AcpiNames: Added setargv.obj to the MSVC 2017 link sequence to enable 847command line wildcard support on Windows. Note: the AcpiNames utility is 848essentially redundant with the AcpiExec utility (using the "namespace" 849command) and is therefore deprecated. It will be removed in future 850releases of ACPICA. 851 852Disassembler: ignore AE_ALREADY_EXISTS status when parsing create* 853operators. The disassembler is intended to emit existing ASL code as-is. 854Therefore, error messages emitted during disassembly should be ignored or 855handled in a way such that the disassembler can continue to parse the 856AML. This change ignores AE_ALREADY_EXISTS errors during the deferred Op 857parsing for create operators in order to complete parsing ASL termlists. 858 859iASL DataTable Compiler: IVRS table: fix potentially uninitialized 860variable warning. Some compilers catch potential uninitialized variables. 861This is done by examining branches of if/else statements. This change 862replaces an "else if" with an "else" to fix the uninitialized variable 863warning. 864 865 866---------------------------------------- 86726 March 2020. Summary of changes for version 20200326: 868 869 8701) ACPICA kernel-resident subsystem: 871 872Performed a code clean-up to prevent build errors on early versions of 873GCC-10. 874 875Added the NHLT table signature. iASL data table compiler/disassembler 876support for this table is coming soon. 877 878 8792) iASL Compiler/Disassembler and ACPICA tools: 880 881AcpiExec: Fixed several problems with the namespace initialization file 882(-fi<filename> option). Includes fixes to prevent AE_ALREADY_EXISTS 883errors, several seg faults, and enhancements to line parsing within the 884init file. In addition, each object found in the init file and it's new 885value is displayed, as well as any such entries that do not have a 886corresponding name in the namespace. For reference, the syntax for the 887various supported data types are presented below: 888 PCHG 0x777788889999BBBB // Integer 889 \DEV1.STR1 "XYZ" // String 890 BUF1 (88 99 AA) // Buffer 891 PKG1 [0x1111 0x2222] // Package 892 \BF1 0x7980 // BufferField 893 RCRV 0x0123456789ABCDEF // Field Unit 894 895iASL: Added a custom iASL macro __EXPECT__(iASL-Error-Code). This macro 896can be used anywhere in a given ASL file to configure iASL to expect an 897iASL compiler error code on the line where this macro was placed. If the 898error code does not exist, an error is generated. This is intended to be 899used for ACPICA's ASL test suite, but can be used by ASL developers as 900well. 901 902iASL: table compiler: Implemented IVRS IVHD type 11h parsing. The AMD 903IVRS table parsing supported only IVHD type 10h structures. Parsing an 904IVHD type 11h caused the iasl to report unknown subtable type. Add 905necessary structure definition for IVHD type 11h and apply correct 906parsing method based on subtable type. Micha? ?ygowski. 907 908iASL: table compiler: Fixed IVRS table IVHD type 10h reserved field name 909According to AMD IOMMU Specification Revision 3.05 the reserved field 910should be IOMMU Feature Reporting. Change the name of the field to the 911correct one. Micha? ?ygowski. 912 913acpiexec: removed redeclaration of AcpiGbl_DbOpt_NoRegionSupport. Patch 914based on suggestions by David Seifert and Benjamin Berg. 915 916iASL: table compiler: removed an unused variable (DtCompilerParserResult) 917causing linking errors. Patch based on suggestions by David Seifert and 918Benjamin Berg. 919 920iASL: table compiler: make LexBuffer static to avoid linking errors in 921newer compilers. Patch based on suggestions by David Seifert and Benjamin 922Berg. 923 924iASL: fixed type matching between External and Named objects. External 925object types can only be expressed with ACPI object type values that are 926defined in the ACPI spec. However, iASL uses ACPI object type values that 927are local to ACPICA in addition to the values defined in the ACPI spec. 928This change implements type matching to map some object type values 929specific to ACPICA to ones that are defined in the ACPI spec. 930 931iASL: Dropped the type mismatch compiler error that can arise from 932External declarations to a warning. This warning can occur when there is 933a type difference between the external declaration and the actual object 934declaration (when compiling multiple files/modules simultaneously). 935 936iASL: removed an incorrect error message regarding externals. This change 937removes an incorrect error that is emitted when a duplicate external 938declaration does not contain a type that opens a scope. This is incorrect 939because the duplicate external with conflicting types are already caught 940by iASL and it doesn't make any sense to enforce what this conflicting 941type should be. 942 943AcpiXtract: fix AX_IS_TABLE_BLOCK_HEADER macro. This macro needs to be 944surrounded by parens. Otherwise, a logical statement that applies a 945logical not operator to this macro could result in a computation that 946applies the operator to the left side of the logical and but not the 947right. Reported-by: John Levon <john.levon@joyent.com> 948 949Fixed a problem with the local version of sprint(): On 32-bit, the 950provided sprintf() is non-functional: with a size of ACPI_UINT32_MAX, 951String + Size will wrap, meaning End < Start, and 952AcpiUtBoundStringOutput() will never output anything as a result. The 953symptom seen of this was acpixtract failing to output anything -- with a 954custom build that included utprint.c. Signed-off-by: John Levon 955<john.levon@joyent.com> 956 957iASL: Changed the "PlatformCommChannel" ASL keyword to "PCC", as per the 958ACPI specification. 959 960 961---------------------------------------- 96214 February 2020. Summary of changes for version 20200214: 963 964 9651) ACPICA kernel-resident subsystem: 966 967Enable sleep button on ACPI legacy wake: Hibernation (S4) is triggered 968in a guest when it receives a sleep trigger from the hypervisor. When the 969guest resumes from this power state, it does not see the SleepEnabled 970bit. In other words, the sleepHibernation (S4) is triggered in a guest 971when it receives a sleep trigger from the hypervisor. When the guest 972resumes from this power state, it does not see the SleepEnabled bit. In 973other words, the sleep button is not enabled on waking from an S4 state. 974This causes subsequent invocation of sleep state to fail since the 975guest.button is not enabled on waking from an S4 state. This causes 976subsequent invocation of sleep state to fail in the guest. Fix this 977problem by enabling the sleep button in ACPI legacy wake. From Anchal 978Agarwal <anchalag@amazon.com>. 979 980Implemented a new external interface, AcpiAnyGpeStatusSet (). To be used 981for checking the status bits of all enabled GPEs in one go. It is needed 982to distinguish spurious SCIs from genuine ones when deciding whether or 983not to wake up the system from suspend-to-idle. 984 985Generic Makefiles: replace HOST name with ACPI_HOST: Some machines may be 986using HOST in their environment to represent the host name for their 987machines. Avoid this problem by renaming this variable from HOST to 988ACPI_HOST. 989 990MSVC 2017 project files: Enable multiprocessor generation to improve 991build performance. 992 993Added a macro to get the byte width of a Generic Address structure. New 994ACPI_ACCESS_BYTE_WIDTH is in addition to the existing 995ACPI_ACCESS_BIT_WIDTH. From Mika Westerberg. 996 997 9982) iASL Compiler/Disassembler and ACPICA tools: 999 1000iASL: Implemented full support for the (optional, rarely used) ReturnType 1001and ParameterTypesList for the Method, Function, and External operators. 1002For Method declarations, the number of individual ParameterTypes must 1003match the declaration of the number of arguments (NumArgs). This also 1004Fixes a problem with the External operator where extra/extraneous bytes 1005were emitted in the AML code if the optional ReturnType/ParameterTypes 1006were specified for a MethodObj declaration. 1007New error message: 10081) Method NumArgs count does not match length of ParameterTypes list 1009 1010iASL: Implemented detection of type mismatches between External 1011declarations and named object declarations. Also, detect type mismatches 1012between multiple External declarations of the same Name. 1013New error messages: 10141) Type mismatch between external declaration and actual object 1015declaration detected 10162) Type mismatch between multiple external declarations detected 1017 1018iASL: Implemented new error messages for External operators that specify 1019a ReturnType and/or ParameterTypesList for any object type other than 1020control methods (MethodObj). 1021New error messages: 10221) Return type is only allowed for Externals declared as MethodObj 10232) Parameter type is only allowed for Externals declared as MethodObj 1024 1025iASL: Implemented two new remark/warning messages for ASL code that 1026creates named objects from within a control method. This is very 1027inefficient since the named object must be created and deleted each time 1028the method is executed. 1029New messages: 10301) Creation of named objects within a method is highly inefficient, use 1031globals or method local variables instead (remark) 10322) Static OperationRegion should be declared outside control method 1033(warning) 1034 1035iASL: Improved illegal forward reference detection by adding support to 1036detect forward-reference method invocations. 1037 1038iASL: Detect and issue an error message for NameStrings that contain too 1039many individual NameSegs (>255). This is an AML limitation that is 1040defined in the ACPI specification. 1041New message: 10421) NameString contains too many NameSegs (>255) 1043 1044acpidump: windows: use GetSystemFirmwareTable API for all tables except 1045SSDT. By using this API, acpidump is able to get all tables in the XSDT 1046 1047iASL: Removed unused parser file and updated msvc2017 project files. 1048Removed the obsolete AslCompiler.y from the repository. 1049 1050iASL: msvc2017: Fixed macros in the file dependency list to prevent 1051unnecessary rebuilds. Replace %(Directory) with %(RelativeDir). 1052 1053Disassembler: Prevent spilling error messages to the output file. All 1054errors are directed to the console instead. These error messages 1055prevented re-compilation of the resulting disassembled ASL output file 1056(.DSL). 1057 1058 1059---------------------------------------- 106010 January 2020. Summary of changes for version 20200110: 1061 1062 10631) ACPICA kernel-resident subsystem: 1064 1065Updated all copyrights to 2020. This affects all ACPICA source code 1066modules. 1067 1068 10692) iASL Compiler/Disassembler and ACPICA tools: 1070 1071ASL test suite (ASLTS): Updated all copyrights to 2020. 1072 1073Tools and utilities: Updated all signon copyrights to 2020. 1074 1075iASL: fix forward reference analysis for field declarations. Fixes 1076forward reference analysis for field declarations by searching the 1077parent scope for the named object when the object is not present in 1078the current scope. 1079 1080iASL: Improved the error output for ALREADY_EXISTS errors. Now, the 1081full pathname of the name that already exists is printed. 1082 1083iASL: Enhance duplicate Case() detection for buffers. Add check for 1084buffers with no initializer list (these buffers will be filled with 1085zeros at runtime.) 1086 1087 1088---------------------------------------- 108913 December 2019. Summary of changes for version 20191213: 1090 1091 10921) ACPICA kernel-resident subsystem: 1093 1094Return a Buffer object for all fields created via the CreateField 1095operator. Previously, an Integer would be returned if the size of 1096the field was less than or equal to the current size of an Integer. 1097Although this goes against the ACPI specification, it provides 1098compatibility with other ACPI implementations. Also updated the 1099ASLTS test suite to reflect this new behavior. 1100 11012) iASL Compiler/Disassembler and ACPICA tools: 1102 1103iASL: Implemented detection of (and throw an error for) duplicate 1104values for Case statements within a single Switch statement. Duplicate 1105Integers, Strings, and Buffers are supported. 1106 1107iASL: Fix error logging issue during multiple file compilation -- 1108Switch to the correct input file during error node creation. 1109 1110iASL: For duplicate named object creation, now emit an error instead 1111of a warning - since this will cause a runtime error. 1112 1113AcpiSrc: Add unix line-ending support for non-Windows builds. 1114 1115iASL: Add an error condition for an attempt to create a NameString 1116with > 255 NameSegs (the max allowable via the AML definition). 1117 1118 1119---------------------------------------- 112018 October 2019. Summary of changes for version 20191018: 1121 1122 11231) ACPICA kernel-resident subsystem: 1124 1125Debugger: added a new command: ?Fields [address space ID]?. This command 1126dumps the contents of all field units that are defined within the 1127namespace with a particular address space ID. 1128 1129Modified the external interface AcpiLoadTable() to return a table index. 1130This table index can be used for unloading a table for debugging. 1131 ACPI_STATUS 1132 AcpiLoadTable ( 1133 ACPI_TABLE_HEADER *Table, 1134 UINT32 *TableIndex)) 1135 1136Implemented a new external interface: AcpiUnloadTable() This new function 1137takes a table index as an argument and unloads the table. Useful for 1138debugging only. 1139 ACPI_STATUS 1140 AcpiUnloadTable ( 1141 UINT32 TableIndex)) 1142 1143Ported the AcpiNames utility to use the new table initialization 1144sequence. The utility was broken before this change. Also, it was 1145required to include most of the AML interpreter into the utility in order 1146to process table initialization (module-level code execution.) 1147 1148Update for results from running Clang V8.0.1. This fixes all "dead 1149assignment" warnings. There are still several "Dereference of NULL 1150pointer" warnings, but these have been found to be false positive 1151warnings. 1152 1153 11542) iASL Compiler/Disassembler and ACPICA tools: 1155 1156iASL: numerous table compiler changes to ensure that the usage of 1157yacc/bison syntax is POSIX-compliant. 1158 1159iASL/disassembler: several simple bug fixes in the data table 1160disassembler. 1161 1162Acpiexec: expanded the initialization file (the -fi option) to initialize 1163strings, buffers, packages, and field units. 1164 1165 1166---------------------------------------- 116716 August 2019. Summary of changes for version 20190816: 1168 1169This release is available at https://acpica.org/downloads 1170 1171 11721) ACPICA kernel-resident subsystem: 1173 1174Modified the OwnerId mechanism to allow for more Owner Ids. The previous 1175limit was 256 Ids, now it is 4096 Ids. This prevents OWNER_ID_LIMIT 1176exceptions on machines with a large number of initialization threads, 1177many CPU cores and nested initialization control methods. 1178 1179Introduced acpi_dispatch_gpe() as a wrapper around AcpiEvDetectGpe() for 1180checking if the given GPE (as represented by a GPE device handle and a 1181GPE number) is currently active and dispatching it (if that's the case) 1182outside of interrupt context. 1183 1184Table load: exit the interpreter before initializing objects within the 1185new table This prevents re-acquiring the interpreter lock when loading 1186tables 1187 1188Added the "Windows 2019" string to the _OSI support (version 1903). Jung- 1189uk Kim 1190 1191Macros: removed pointer math on a null pointer. Causes warnings on some 1192compilers and/or tools. Changed ACPI_TO_POINTER to use ACPI_CAST_PTR 1193instead of using arithmetic. 1194 1195Fully deployed the ACPI_PRINTF_LIKE macro. This macro was not being used 1196across all "printf-like" internal functions. Also, cleanup all calls to 1197such functions (both in 32-bit mode and 64-bit mode) now that they are 1198analyzed by the gcc compiler via ACPI_PRINTF_LIKE. 1199 1200 12012) iASL Compiler/Disassembler and ACPICA tools: 1202 1203iASL: implemented a new data table compiler flex/bison front-end. This 1204change is internal and is not intended to result in changes to the 1205compiled code. This new compiler front-end can be invoked using the -tp 1206option for now, until the old mechanism is removed. 1207 1208ASLTS: Implemented a new data table compiler test suite. This test suite 1209generates all table templates and compile/disassemble/re-compile/binary- 1210compare each file. 1211 1212iASL: return -1 if AML files were not generated due to compiler errors 1213 1214iASL: added a warning on use of the now-legacy ASL Processor () keyword. 1215 1216iASL: added an error on _UID object declaration that returns a String 1217within a Processor () declaration. A _UID for a processor must be an 1218Integer. 1219 1220iASL: added a null terminator to name strings that consist only of 1221multiple parent prefixes (^) 1222 1223iASL: added support to compile both ASL and data table files in a single 1224command. 1225 1226Updated the tool generation project files that were recently migrated to 1227MSVC 2017 to eliminate all new warnings. The new project files appear in 1228the directory \acpica\generate\msvc2017. This change effectively 1229deprecates the older project files in \acpica\generate\msvc9. 1230 1231 1232---------------------------------------- 123303 July 2019. Summary of changes for version 20190703: 1234 1235 12361) ACPICA kernel-resident subsystem: 1237 1238Remove legacy module-level support code. There were still some remnants 1239of the legacy module-level code executions. Since we no longer support 1240this option, this is essentially dead code and has been removed from the 1241ACPICA source. 1242 1243iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 1244scope. If these named objects are declared outside the root scope, they 1245will not be invoked by any host Operating System. 1246 1247Clear status of GPEs on first direct enable. ACPI GPEs (other than the EC 1248one) can be enabled in two situations. First, the GPEs with existing _Lxx 1249and _Exx methods are enabled implicitly by ACPICA during system 1250initialization. Second, the GPEs without these methods (like GPEs listed 1251by _PRW objects for wakeup devices) need to be enabled directly by the 1252code that is going to use them (e.g. ACPI power management or device 1253drivers). 1254 1255In the former case, if the status of a given GPE is set to start with, 1256its handler method (either _Lxx or _Exx) needs to be invoked to take care 1257of the events (possibly) signaled before the GPE was enabled. In the 1258latter case, however, the first caller of AcpiEnableGpe() for a given GPE 1259should not be expected to care about any events that might be signaled 1260through it earlier. In that case, it is better to clear the status of 1261the GPE before enabling it, to prevent stale events from triggering 1262unwanted actions (like spurious system resume, for example). 1263 1264For this reason, modify AcpiEvAddGpeReference() to take an additional 1265boolean argument indicating whether or not the GPE status needs to be 1266cleared when its reference counter changes from zero to one and make 1267AcpiEnableGpe() pass TRUE to it through that new argument. 1268 1269 12702) iASL Compiler/Disassembler and ACPICA tools: 1271 1272The tool generation process has been migrated to MSVC 2017, and all 1273project files have been upgraded. The new project files appear in the 1274directory \acpica\generate\msvc2017. This change effectively deprecates 1275the older project files in \acpica\generate\msvc9. 1276 1277iASL: ensure that _WAK, _PTS, _TTS, and _Sx are declared only at the root 1278scope. If these named objects are declared outside the root scope, they 1279will not be invoked by any host Operating System 1280 1281---------------------------------------- 128209 May 2019. Summary of changes for version 20190509: 1283 1284 12851) ACPICA kernel-resident subsystem: 1286 1287Revert commit 6c43e1a ("ACPICA: Clear status of GPEs before enabling 1288them") that causes problems with Thunderbolt controllers to occur if a 1289dock device is connected at init time (the xhci_hcd and thunderbolt 1290modules crash which prevents peripherals connected through them from 1291working). Commit 6c43e1a effectively causes commit ecc1165b8b74 ("ACPICA: 1292Dispatch active GPEs at init time") to get undone, so the problem 1293addressed by commit ecc1165b8b74 appears again as a result of it. 1294 1295 12962) iASL Compiler/Disassembler and ACPICA tools: 1297 1298Reverted iASL: Additional forward reference detection. This change 1299reverts forward reference detection for field declarations. The feature 1300unintentionally emitted AML bytecode with incorrect package lengths for 1301some ASL code related to Fields and OperationRegions. This malformed AML 1302can cause systems to crash 1303during boot. The malformed AML bytecode is emitted in iASL version 130420190329 and 20190405. 1305 1306iASL: improve forward reference detection. This change improves forward 1307reference detection for named objects inside of scopes. If a parse object 1308has the OP_NOT_FOUND_DURING_LOAD set, it means that Op is a reference to 1309a named object that is declared later in the AML bytecode. This is 1310allowed if the reference is inside of a method and the declaration is 1311outside of a method like so: 1312 1313DefinitionBlock(...) 1314{ 1315 Method (TEST) 1316 { 1317 Return (NUM0) 1318 } 1319 Name (NUM0,0) 1320} 1321 1322However, if the declaration and reference are both in the same method or 1323outside any methods, this is a forward reference and should be marked as 1324an error because it would result in runtime errors. 1325 1326DefinitionBlock(...) 1327{ 1328 Name (BUFF, Buffer (NUM0) {}) // Forward reference 1329 Name (NUM0, 0x0) 1330 1331 Method (TEST) 1332 { 1333 Local0 = NUM1 1334 Name (NUM1, 0x1) // Forward reference 1335 return (Local0) 1336 } 1337} 1338 1339iASL: Implemented additional buffer overflow analysis for BufferField 1340declarations. Check if a buffer index argument to a create buffer field 1341operation is beyond the end of the target buffer. 1342 1343This affects these AML operators: 1344 1345 AML_CREATE_FIELD_OP 1346 AML_CREATE_BIT_FIELD_OP 1347 AML_CREATE_BYTE_FIELD_OP 1348 AML_CREATE_WORD_FIELD_OP 1349 AML_CREATE_DWORD_FIELD_OP 1350 AML_CREATE_QWORD_FIELD_OP 1351 1352 There are three conditions that must be satisfied in order to allow this 1353validation at compile time: 1354 1355 1) The length of the target buffer must be an integer constant 1356 2) The index specified in the create* must be an integer constant 1357 3) For CreateField, the bit length argument must be non-zero. 1358 1359Example: 1360 Name (BUF1, Buffer() {1,2}) 1361 CreateField (BUF1, 7, 9, CF03) // 3: ERR 1362 1363dsdt.asl 14: CreateField (BUF1, 7, 9, CF03) // 3: ERR 1364Error 6165 - ^ Buffer index beyond end of 1365target buffer 1366 1367 1368---------------------------------------- 136905 April 2019. Summary of changes for version 20190405: 1370 1371 13721) ACPICA kernel-resident subsystem: 1373 1374Event Manager: History: Commit 18996f2db918 ("ACPICA: Events: Stop 1375unconditionally clearing ACPI IRQs during suspend/resume") was added 1376earlier to stop clearing of event status bits unconditionally on suspend 1377and resume paths. Though this change fixed an issue on suspend path, it 1378introduced regressions on several resume paths. In the case of S0ix, 1379events are enabled as part of device suspend path. If status bits for the 1380events are set when they are enabled, it could result in premature wake 1381from S0ix. If status is cleared for any event that is being enabled so 1382that any stale events are cleared out. In case of S0ix, events are 1383enabled as part of device suspend path. If status bits for the events are 1384set when they are enabled, it could result in premature wake from S0ix. 1385 1386This change ensures that status is cleared for any event that is being 1387enabled so that any stale events are cleared out. 1388 1389 13902) iASL Compiler/Disassembler and ACPICA tools: 1391 1392iASL: Implemented an enhanced multiple file compilation that combines 1393named objects from all input files to a single namespace. With this 1394feature, any unresolved external declarations as well as duplicate named 1395object declarations can be detected during compilation rather than 1396generating errors much later at runtime. The following commands are 1397examples that utilize this feature: 1398 iasl dsdt.asl ssdt.asl 1399 iasl dsdt.asl ssdt1.asl ssdt2.asl 1400 iasl dsdt.asl ssdt*.asl 1401 1402---------------------------------------- 140329 March 2019. Summary of changes for version 20190329: 1404 1405 14061) ACPICA kernel-resident subsystem: 1407 1408Namespace support: Remove the address nodes from global list after method 1409termination. The global address list contains pointers to namespace nodes 1410that represent Operation Regions. This change properly removes Operation 1411Region namespace nodes that are declared dynamically during method 1412execution. 1413 1414Linux: Use a different debug default than ACPICA. There was a divergence 1415between Linux and the ACPICA codebases. In order to resolve this 1416divergence, Linux now declares its own debug default in aclinux.h 1417 1418Renamed some internal macros to improve code understanding and 1419maintenance. The macros below all operate on single 4-character ACPI 1420NameSegs, not generic strings (old -> new): 1421 ACPI_NAME_SIZE -> ACPI_NAMESEG_SIZE 1422 ACPI_COMPARE_NAME -> ACPI_COMPARE_NAMESEG 1423 ACPI_MOVE_NAME -> ACPI_COPY_NAMESEG 1424 1425Fix for missing comma in array declaration for the AcpiGbl_GenericNotify 1426table. 1427 1428Test suite: Update makefiles, add PCC operation region support 1429 1430 14312) iASL Compiler/Disassembler and Tools: 1432 1433iASL: Implemented additional illegal forward reference detection. Now 1434detect and emit an error upon detection of a forward reference from a 1435Field to an Operation Region. This will fail at runtime if allowed to 1436pass the compiler. 1437 1438AcpiExec: Add an address list check for dynamic Operation Regions. This 1439feature performs a sanity test for each node the global address list. 1440This is done in order to ensure that all dynamic operation regions are 1441properly removed from the global address list and no dangling pointers 1442are left behind. 1443 1444Disassembler: Improved generation of resource pathnames. This change 1445improves the code that generates resource descriptor and resource tag 1446pathnames. The original code used a bunch of str* C library functions 1447that caused warnings on some compilers. 1448 1449iASL: Removed some uses of strncpy and replaced with memmove. The strncpy 1450function can overwrite buffers if the calling code is not very careful. 1451In the case of generating a module/table header, use of memmove is a 1452better implementation. 1453 1454 14553) Status of new features that have not been completed at this time: 1456 1457iASL: Implementing an enhanced multiple file compilation into a single 1458namespace feature (Status): This feature will be released soon, and 1459allows multiple ASL files to be compiled into the same single namespace. 1460By doing so, any unresolved external declarations as well as duplicate 1461named object declarations can be detected during compilation (rather than 1462later during runtime). The following commands are examples that utilize 1463this feature: 1464 iasl dsdt.asl ssdt.asl 1465 iasl dsdt.asl ssdt1.asl ssdt2.asl 1466 iasl dsdt.asl ssdt*.asl 1467 1468ASL tutorial status: Feedback is being gathered internally and the 1469current plan is to publish this tutorial on the ACPICA website after a 1470final review by a tech writer. 1471 1472---------------------------------------- 147315 February 2019. Summary of changes for version 20190215: 1474 1475 14760) Support for ACPI specification version 6.3: 1477 1478Add PCC operation region support for the AML interpreter. This adds PCC 1479operation region support in the AML interpreter and a default handler for 1480acpiexec. The change also renames the PCC region address space keyword to 1481PlatformCommChannel. 1482 1483Support for new predefined methods _NBS, _NCH, _NIC, _NIH, and _NIG. 1484These methods provide OSPM with health information and device boot 1485status. 1486 1487PDTT: Add TriggerOrder to the PCC Identifier structure. The field value 1488defines if the trigger needs to be invoked by OSPM before or at the end 1489of kernel crash dump processing/handling operation. 1490 1491SRAT: Add Generic Affinity Structure subtable. This subtable in the SRAT 1492is used for describing devices such as heterogeneous processors, 1493accelerators, GPUs, and IO devices with integrated compute or DMA 1494engines. 1495 1496MADT: Add support for statistical profiling in GICC. Statistical 1497profiling extension (SPE) is an architecture-specific feature for ARM. 1498 1499MADT: Add online capable flag. If this bit is set, system hardware 1500supports enabling this processor during OS runtime. 1501 1502New Error Disconnect Recover Notification value. There are a number of 1503scenarios where system Firmware in collaboration with hardware may 1504disconnect one or more devices from the rest of the system for purposes 1505of error containment. Firmware can use this new notification value to 1506alert OSPM of such a removal. 1507 1508PPTT: New additional fields in Processor Structure Flags. These flags 1509provide more information about processor topology. 1510 1511NFIT/Disassembler: Change a field name from "Address Range" to "Region 1512Type". 1513 1514HMAT updates: make several existing fields to be reserved as well as 1515rename subtable 0 to "memory proximity domain attributes". 1516 1517GTDT: Add support for new GTDT Revision 3. This revision adds information 1518for the EL2 timer. 1519 1520iASL: Update the HMAT example template for new fields. 1521 1522iASL: Add support for the new revision of the GTDT (Rev 3). 1523 1524 15251) ACPICA kernel-resident subsystem: 1526 1527AML Parser: fix the main AML parse loop to correctly skip erroneous 1528extended opcodes. AML opcodes come in two lengths: 1-byte opcodes and 2- 1529byte extended opcodes. If an error occurs during an AML table load, the 1530AML parser will continue loading the table by skipping the offending 1531opcode. This implements a "load table at any cost" philosophy. 1532 1533 15342) iASL Compiler/Disassembler and Tools: 1535 1536iASL: Add checks for illegal object references, such as a reference 1537outside of method to an object within a method. Such an object is only 1538temporary. 1539 1540iASL: Emit error for creation of a zero-length operation region. Such a 1541region is rather pointless. If encountered, a runtime error is also 1542implemented in the interpreter. 1543 1544Debugger: Fix a possible fault with the "test objects" command. 1545 1546iASL: Makefile: support parent directory filenames containing embedded 1547spaces. 1548 1549iASL: Update the TPM2 template to revision 4. 1550 1551iASL: Add the ability to report specific warnings or remarks as errors. 1552 1553Disassembler: Disassemble OEMx tables as actual AML byte code. 1554Previously, these tables were treated as "unknown table". 1555 1556iASL: Add definition and disassembly for TPM2 revision 3. 1557 1558iASL: Add support for TPM2 rev 3 compilation. 1559 1560 1561---------------------------------------- 156208 January 2019. Summary of changes for version 20190108: 1563 1564 15651) ACPICA kernel-resident subsystem: 1566 1567Updated all copyrights to 2019. This affects all source code modules. 1568 1569 15702) iASL Compiler/Disassembler and Tools: 1571 1572ASL test suite (ASLTS): Updated all copyrights to 2019. 1573 1574Tools: Updated all signon copyrights to 2019. 1575 1576AcpiExec: Added a new option to dump extra information concerning any 1577memory leaks detected by the internal object/cache tracking mechanism. - 1578va 1579 1580iASL: Updated the table template for the TPM2 table to the newest version 1581of the table (Revision 4) 1582 1583 1584---------------------------------------- 158513 December 2018. Summary of changes for version 20181213: 1586 1587 15881) ACPICA Kernel-resident Subsystem: 1589 1590Fixed some buffer length issues with the GenericSerialBus, related to two 1591of the bidirectional protocols: AttribRawProcessBytes and AttribRawBytes, 1592which are rarely seen in the field. For these, the LEN field of the ASL 1593buffer is now ignored. Hans de Goede 1594 1595Implemented a new object evaluation trace mechanism for control methods 1596and data objects. This includes nested control methods. It is 1597particularly useful for examining the ACPI execution during system 1598initialization since the output is relatively terse. The flag below 1599enables the output of the trace via the ACPI_DEBUG_PRINT_RAW interface: 1600 #define ACPI_LV_EVALUATION 0x00080000 1601 1602Examples: 1603 Enter evaluation : _SB.PCI0._INI (Method) 1604 Exit evaluation : _SB.PCI0._INI 1605 Enter evaluation : _OSI (Method) 1606 Exit evaluation : _OSI 1607 Enter evaluation : _SB.PCI0.TEST (Method) 1608 Nested method call : _SB.PCI0.NST1 1609 Exit nested method : _SB.PCI0.NST1 1610 Exit evaluation : _SB.PCI0.TEST 1611 1612Added two recently-defined _OSI strings. See 1613https://docs.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi- 1614osi. 1615 "Windows 2018" 1616 "Windows 2018.2" 1617 1618Update for buffer-to-string conversions via the ToHexString ASL operator. 1619A "0x" is now prepended to each of the hex values in the output string. 1620This provides compatibility with other ACPI implementations. The ACPI 1621specification is somewhat vague on this issue. 1622 Example output string after conversion: 1623"0x01,0x02,0x03,0x04,0x05,0x06" 1624 1625Return a run-time error for TermArg expressions within individual package 1626elements. Although this is technically supported by the ASL grammar, 1627other ACPI implementations do not support this either. Also, this fixes a 1628fault if this type of construct is ever encountered (it never has been). 1629 1630 16312) iASL Compiler/Disassembler and Tools: 1632 1633iASL: Implemented a new compile option (-ww) that will promote individual 1634warnings and remarks to errors. This is intended to enhance the firmware 1635build process. 1636 1637AcpiExec: Implemented a new command-line option (-eo) to support the new 1638object evaluation trace mechanism described above. 1639 1640Disassembler: Added support to disassemble OEMx tables as AML/ASL tables 1641instead of a "unknown table" message. 1642 1643AcpiHelp: Improved support for the "special" predefined names such as 1644_Lxx, _Exx, _EJx, _T_x, etc. For these, any legal hex value can now be 1645used for "xx" and "x". 1646 1647---------------------------------------- 164831 October 2018. Summary of changes for version 20181031: 1649 1650 1651An Operation Region regression was fixed by properly adding address 1652ranges to a global list during initialization. This allows OS to 1653accurately check for overlapping regions between native devices (such as 1654PCI) and Operation regions as well as checking for region conflicts 1655between two Operation Regions. 1656 1657Added support for the 2-byte extended opcodes in the code/feature that 1658attempts to continue parsing during the table load phase. Skip parsing 1659Device declarations (and other extended opcodes) when an error occurs 1660during parsing. Previously, only single-byte opcodes were supported. 1661 1662Cleanup: Simplified the module-level code support by eliminating a 1663useless global variable (AcpiGbl_GroupModuleLeveCode). 1664 1665 16662) iASL Compiler/Disassembler and Tools: 1667 1668iASL/Preprocessor: Fixed a regression where an incorrect use of ACPI_FREE 1669could cause a fault in the preprocessor. This was an inadvertent side- 1670effect from moving more allocations/frees to the local cache/memory 1671mechanism. 1672 1673iASL: Enhanced error detection by validating that all NameSeg elements 1674within a NamePatch actually exist. The previous behavior was spotty at 1675best, and such errors could be improperly ignored at compiler time (never 1676at runtime, however. There are two new error messages, as shown in the 1677examples below: 1678 1679dsdt.asl 33: CreateByteField (TTTT.BXXX, 1, CBF1) 1680Error 6161 - ^ One or more objects within 1681the Pathname do not exist (TTTT.BXXX) 1682 1683dsdt.asl 34: CreateByteField (BUF1, UUUU.INT1, BBBB.CBF1) 1684Error 6160 - One or more prefix Scopes do not exist ^ 1685(BBBB.CBF1) 1686 1687iASL: Disassembler/table-compiler: Added support for the static data 1688table TPM2 revision 3 (an older version of TPM2). The support has been 1689added for the compiler and the disassembler. 1690 1691Fixed compilation of DOS format data table file on Unix/Linux systems. 1692iASL now properly detects line continuations (\) for DOS format data 1693table definition language files on when executing on Unix/Linux. 1694 1695---------------------------------------- 169603 October 2018. Summary of changes for version 20181003: 1697 1698 16992) iASL Compiler/Disassembler and Tools: 1700 1701Fixed a regression introduced in version 20180927 that could cause the 1702compiler to fault, especially with NamePaths containing one or more 1703carats (^). Such as: ^^_SB_PCI0 1704 1705Added a new remark for the Sleep() operator when the sleep time operand 1706is larger than one second. This is a very long time for the ASL/BIOS code 1707and may not be what was intended by the ASL writer. 1708 1709---------------------------------------- 171027 September 2018. Summary of changes for version 20180927: 1711 1712 17131) ACPICA kernel-resident subsystem: 1714 1715Updated the GPE support to clear the status of all ACPI events when 1716entering any/all sleep states in order to avoid premature wakeups. In 1717theory, this may cause some wakeup events to be missed, but the 1718likelihood of this is small. This change restores the original behavior 1719of the ACPICA code in order to fix a regression seen from the previous 1720"Stop unconditionally clearing ACPI IRQs during suspend/resume" change. 1721This regression could cause some systems to incorrectly wake immediately. 1722 1723Updated the execution of the _REG methods during initialization and 1724namespace loading to bring the behavior into closer conformance to the 1725ACPI specification and other ACPI implementations: 1726 1727From the ACPI specification 6.2A, section 6.5.4 "_REG (Region): 1728 "Control methods must assume all operation regions are inaccessible 1729until the _REG(RegionSpace, 1) method is executed" 1730 1731 "The exceptions to this rule are: 17321. OSPM must guarantee that the following operation regions are always 1733accessible: 1734 SystemIO operation regions. 1735 SystemMemory operation regions when accessing memory returned by the 1736System Address Map reporting interfaces." 1737 1738Since the state of both the SystemIO and SystemMemory address spaces are 1739defined by the specification to never change, this ACPICA change ensures 1740that now _REG is never called on them. This solves some problems seen in 1741the field and provides compatibility with other ACPI implementations. An 1742update to the upcoming new version of the ACPI specification will help 1743clarify this behavior. 1744 1745Updated the implementation of support for the Generic Serial Bus. For the 1746"bidirectional" protocols, the internal implementation now automatically 1747creates a return data buffer of the maximum size (255). This handles the 1748worst-case for data that is returned from the serial bus handler, and 1749fixes some problems seen in the field. This new buffer is directly 1750returned to the ASL. As such, there is no true "bidirectional" buffer, 1751which matches the ACPI specification. This is the reason for the "double 1752store" seen in the example ASL code in the specification, shown below: 1753 1754Word Process Call (AttribProcessCall): 1755 OperationRegion(TOP1, GenericSerialBus, 0x00, 0x100) 1756 Field(TOP1, BufferAcc, NoLock, Preserve) 1757 { 1758 FLD1, 8, // Virtual register at command value 1. 1759 } 1760 1761 Name(BUFF, Buffer(20){}) // Create GenericSerialBus data buffer 1762 // as BUFF 1763 CreateWordField(BUFF, 0x02, DATA) // DATA = Data (Word) 1764 1765 Store(0x5416, DATA) // Save 0x5416 into the data buffer 1766 Store(Store(BUFF, FLD1), BUFF) // Invoke a write/read Process Call 1767transaction 1768 // This is the "double store". The write to 1769 // FLD1 returns a new buffer, which is stored 1770 // back into BUFF with the second Store. 1771 1772 17732) iASL Compiler/Disassembler and Tools: 1774 1775iASL: Implemented detection of extraneous/redundant uses of the Offset() 1776operator within a Field Unit list. A remark is now issued for these. For 1777example, the first two of the Offset() operators below are extraneous. 1778Because both the compiler and the interpreter track the offsets 1779automatically, these Offsets simply refer to the current offset and are 1780unnecessary. Note, when optimization is enabled, the iASL compiler will 1781in fact remove the redundant Offset operators and will not emit any AML 1782code for them. 1783 1784 OperationRegion (OPR1, SystemMemory, 0x100, 0x100) 1785 Field (OPR1) 1786 { 1787 Offset (0), // Never needed 1788 FLD1, 32, 1789 Offset (4), // Redundant, offset is already 4 (bytes) 1790 FLD2, 8, 1791 Offset (64), // OK use of Offset. 1792 FLD3, 16, 1793 } 1794dsdt.asl 14: Offset (0), 1795Remark 2158 - ^ Unnecessary/redundant use of Offset 1796operator 1797 1798dsdt.asl 16: Offset (4), 1799Remark 2158 - ^ Unnecessary/redundant use of Offset 1800operator 1801 1802---------------------------------------- 180310 August 2018. Summary of changes for version 20180810: 1804 1805 18061) ACPICA kernel-resident subsystem: 1807 1808Initial ACPI table loading: Attempt to continue loading ACPI tables 1809regardless of malformed AML. Since migrating table initialization to the 1810new module-level code support, the AML interpreter rejected tables upon 1811any ACPI error encountered during table load. This is a problem because 1812non-serious ACPI errors during table load do not necessarily mean that 1813the entire definition block (DSDT or SSDT) is invalid. This change 1814improves the table loading by ignoring some types of errors that can be 1815generated by incorrect AML. This can range from object type errors, scope 1816errors, and index errors. 1817 1818Suspend/Resume support: Update to stop unconditionally clearing ACPI IRQs 1819during suspend/resume. The status of ACPI events is no longer cleared 1820when entering the ACPI S5 system state (power off) which caused some 1821systems to power up immediately after turning off power in certain 1822situations. This was a functional regression. It was fixed by clearing 1823the status of all ACPI events again when entering S5 (for system-wide 1824suspend or hibernation the clearing of the status of all events is not 1825desirable, as it might cause the kernel to miss wakeup events sometimes). 1826Rafael Wysocki. 1827 1828 18292) iASL Compiler/Disassembler and Tools: 1830 1831AcpiExec: Enhanced the -fi option (Namespace initialization file). Field 1832elements listed in the initialization file were previously initialized 1833after the table load and before executing module-level code blocks. 1834Recent changes in the module-level code support means that the table load 1835becomes a large control method execution. If fields are used within 1836module-level code and we are executing with the -fi option, the 1837initialization values were used to initialize the namespace object(s) 1838only after the table was finished loading. This change Provides an early 1839initialization of objects specified in the initialization file so that 1840field unit values are populated during the table load (not after the 1841load). 1842 1843AcpiExec: Fixed a small memory leak regression that could result in 1844warnings during exit of the utility. These warnings were similar to 1845these: 1846 0002D690 Length 0x0006 nsnames-0502 [Not a Descriptor - too small] 1847 0002CD70 Length 0x002C utcache-0453 [Operand] Integer RefCount 0x0001 1848 1849---------------------------------------- 185029 June 2018. Summary of changes for version 20180629: 1851 1852 18531) iASL Compiler/Disassembler and Tools: 1854 1855iASL: Fixed a regression related to the use of the ASL External 1856statement. Error checking for the use of the External() statement has 1857been relaxed. Previously, a restriction on the use of External meant that 1858the referenced named object was required to be defined in a different 1859table (an SSDT). Thus it would be an error to declare an object as an 1860external and then define the same named object in the same table. For 1861example: 1862 DefinitionBlock (...) 1863 { 1864 External (DEV1) 1865 Device (DEV1){...} // This was an error 1866 } 1867However, this behavior has caused regressions in some existing ASL code, 1868because there is code that depends on named objects and externals (with 1869the same name) being declared in the same table. This change will allow 1870the ASL code above to compile without errors or warnings. 1871 1872iASL: Implemented ASL language extensions for four operators to make some 1873of their arguments optional instead of required: 1874 1) Field (RegionName, AccessType, LockRule, UpdateRule) 1875 2) BankField (RegionName, BankName, BankValue, 1876 AccessType, LockRule, UpdateRule) 1877 3) IndexField (IndexName, DataName, 1878 AccessType, LockRule, UpdateRule) 1879For the Field operators above, the AccessType, LockRule, and UpdateRule 1880are now optional arguments. The default values are: 1881 AccessType: AnyAcc 1882 LockRule: NoLock 1883 UpdateRule: Preserve 1884 4) Mutex (MutexName, SyncLevel) 1885For this operator, the SyncLevel argument is now optional. This argument 1886is rarely used in any meaningful way by ASL code, and thus it makes sense 1887to make it optional. The default value is: 1888 SyncLevel: 0 1889 1890iASL: Attempted use of the ASL Unload() operator now results in the 1891following warning: 1892 "Unload is not supported by all operating systems" 1893This is in fact very true, and the Unload operator may be completely 1894deprecated in the near future. 1895 1896AcpiExec: Fixed a regression for the -fi option (Namespace initialization 1897file. Recent changes in the ACPICA module-level code support altered the 1898table load/initialization sequence . This means that the table load has 1899become a large method execution of the table itself. If Operation Region 1900Fields are used within any module-level code and the -fi option was 1901specified, the initialization values were populated only after the table 1902had completely finished loading (and thus the module-level code had 1903already been executed). This change moves the initialization of objects 1904listed in the initialization file to before the table is executed as a 1905method. Field unit values are now initialized before the table execution 1906is performed. 1907 1908---------------------------------------- 190931 May 2018. Summary of changes for version 20180531: 1910 1911 19121) ACPICA kernel-resident Subsystem: 1913 1914Implemented additional support to help ensure that a DSDT or SSDT is 1915fully loaded even if errors are incurred during the load. The majority of 1916the problems that are seen is the failure of individual AML operators 1917that occur during execution of any module-level code (MLC) existing in 1918the table. This support adds a mechanism to abort the current ASL 1919statement (AML opcode), emit an error message, and to simply move on to 1920the next opcode -- instead of aborting the entire table load. This is 1921different than the execution of a control method where the entire method 1922is aborted upon any error. The goal is to perform a very "best effort" to 1923load the ACPI tables. The most common MLC errors that have been seen in 1924the field are direct references to unresolved ASL/AML symbols (referenced 1925directly without the use of the CondRefOf operator to validate the 1926symbol). This new ACPICA behavior is now compatible with other ACPI 1927implementations. 1928 1929Interpreter: The Unload AML operator is no longer supported for the 1930reasons below. An AE_NOT_IMPLEMENTED exception is returned. 19311) A correct implementation on at least some hosts may not be possible. 19322) Other ACPI implementations do not correctly/fully support it. 19333) It requires host device driver support which is not known to exist. 1934 (To properly support namespace unload out from underneath.) 19354) This AML operator has never been seen in the field. 1936 1937Parser: Added a debug option to dump AML parse sub-trees as they are 1938being executed. Used with ACPI_DEBUG_PRINT, the enabling debug level is 1939ACPI_DB_PARSE_TREES. 1940 1941Debugger: Reduced the verbosity for errors incurred during table load and 1942module-level code execution. 1943 1944Completed an investigation into adding a namespace node "owner list" 1945instead of the current "owner ID" associated with namespace nodes. This 1946list would link together all nodes that are owned by an individual 1947control method. The purpose would be to enhance control method execution 1948by speeding up cleanup during method exit (all namespace nodes created by 1949a method are deleted upon method termination.) Currently, the entire 1950namespace must be searched for matching owner IDs if (and only if) the 1951method creates named objects outside of the local scope. However, by far 1952the most common case is that methods create objects locally, not outside 1953the method scope. There is already an ACPICA optimization in place that 1954only searches the entire namespace in the rare case of a method creating 1955objects elsewhere in the namespace. Therefore, it is felt that the 1956overhead of adding an additional pointer to each namespace node to 1957implement the owner list makes this feature unnecessary. 1958 1959 19602) iASL Compiler/Disassembler and Tools: 1961 1962iASL, Disassembler, and Template generator: Implemented support for 1963Revision D of the IORT table. Adds a new subtable that is used to specify 1964SMMUv3 PMCGs. rmurphy-arm. 1965 1966Disassembler: Restored correct table header validation for the "special" 1967ACPI tables -- RSDP and FACS. These tables do not contain a standard ACPI 1968table header and must be special-cased. This was a regression that has 1969been present for apparently a long time. 1970 1971AcpiExec: Reduced verbosity of the local exception handler implemented 1972within acpiexec. This handler is invoked by ACPICA upon any exceptions 1973generated during control method execution. A new option was added: -vh 1974restores the original verbosity level if desired. 1975 1976AcpiExec: Changed the default base from decimal to hex for the -x option 1977(set debug level). This simplifies the use of this option and matches the 1978behavior of the corresponding iASL -x option. 1979 1980AcpiExec: Restored a force-exit on multiple control-c (sigint) 1981interrupts. This allows program termination even if other issues cause 1982the control-c to fail. 1983 1984ASL test suite (ASLTS): Added tests for the recently implemented package 1985element resolution mechanism that allows forward references to named 1986objects from individual package elements (this mechanism provides 1987compatibility with other ACPI implementations.) 1988 1989 1990---------------------------------------- 19918 May 2018. Summary of changes for version 20180508: 1992 1993 19941) ACPICA kernel-resident subsystem: 1995 1996Completed the new (recently deployed) package resolution mechanism for 1997the Load and LoadTable ASL/AML operators. This fixes a regression that 1998was introduced in version 20180209 that could result in an 1999AE_AML_INTERNAL exception during the loading of a dynamic ACPI/AML table 2000(SSDT) that contains package objects. 2001 2002 20032) iASL Compiler/Disassembler and Tools: 2004 2005AcpiDump and AcpiXtract: Implemented support for ACPI tables larger than 20061 MB. This change allows for table offsets within the acpidump file to be 2007up to 8 characters. These changes are backwards compatible with existing 2008acpidump files. 2009 2010 2011---------------------------------------- 201227 April 2018. Summary of changes for version 20180427: 2013 2014 20151) ACPICA kernel-resident subsystem: 2016 2017Debugger: Added support for Package objects in the "Test Objects" 2018command. This command walks the entire namespace and evaluates all named 2019data objects (Integers, Strings, Buffers, and now Packages). 2020 2021Improved error messages for the namespace root node. Originally, the root 2022was referred to by the confusing string "\___". This has been replaced by 2023"Namespace Root" for clarification. 2024 2025Fixed a potential infinite loop in the AcpiRsDumpByteList function. Colin 2026Ian King <colin.king@canonical.com>. 2027 2028 20292) iASL Compiler/Disassembler and Tools: 2030 2031iASL: Implemented support to detect and flag illegal forward references. 2032For compatibility with other ACPI implementations, these references are 2033now illegal at the root level of the DSDT or SSDTs. Forward references 2034have always been illegal within control methods. This change should not 2035affect existing ASL/AML code because of the fact that these references 2036have always been illegal in the other ACPI implementation. 2037 2038iASL: Added error messages for the case where a table OEM ID and OEM 2039TABLE ID strings are longer than the ACPI-defined length. Previously, 2040these strings were simply silently truncated. 2041 2042iASL: Enhanced the -tc option (which creates an AML hex file in C, 2043suitable for import into a firmware project): 2044 1) Create a unique name for the table, to simplify use of multiple 2045SSDTs. 2046 2) Add a protection #ifdef in the file, similar to a .h header file. 2047With assistance from Sami Mujawar, sami.mujawar@arm.com and Evan Lloyd, 2048evan.lloyd@arm.com 2049 2050AcpiExec: Added a new option, -df, to disable the local fault handler. 2051This is useful during debugging, where it may be desired to drop into a 2052debugger on a fault. 2053 2054---------------------------------------- 205513 March 2018. Summary of changes for version 20180313: 2056 2057 20581) ACPICA kernel-resident subsystem: 2059 2060Implemented various improvements to the GPE support: 2061 20621) Dispatch all active GPEs at initialization time so that no GPEs are 2063lost. 20642) Enable runtime GPEs earlier. Some systems expect GPEs to be enabled 2065before devices are enumerated. 20663) Don't unconditionally clear ACPI IRQs during suspend/resume, so that 2067IRQs are not lost. 20684) Add parallel GPE handling to eliminate the possibility of dispatching 2069the same GPE twice. 20705) Dispatch any pending GPEs after enabling for the first time. 2071 2072AcpiGetObjectInfo - removed support for the _STA method. This was causing 2073problems on some platforms. 2074 2075Added a new _OSI string, "Windows 2017.2". 2076 2077Cleaned up and simplified the module-level code support. These changes 2078are in preparation for the eventual removal of the legacy MLC support 2079(deferred execution), replaced by the new MLC architecture which executes 2080the MLC as a table is loaded (DSDT/SSDTs). 2081 2082Changed a compile-time option to a runtime option. Changes the option to 2083ignore ACPI table load-time package resolution errors into a runtime 2084option. Used only for platforms that generate many AE_NOT_FOUND errors 2085during boot. AcpiGbl_IgnorePackageResolutionErrors. 2086 2087Fixed the ACPI_ERROR_NAMESPACE macro. This change involves putting some 2088ACPI_ERROR_NAMESPACE parameters inside macros. By doing so, we avoid 2089compilation errors from unused variables (seen with some compilers). 2090 2091 20922) iASL Compiler/Disassembler and Tools: 2093 2094ASLTS: parallelized execution in order to achieve an (approximately) 2X 2095performance increase. 2096 2097ASLTS: Updated to use the iASL __LINE__ and __METHOD__ macros. Improves 2098error reporting. 2099 2100---------------------------------------- 210109 February 2018. Summary of changes for version 20180209: 2102 2103 21041) ACPICA kernel-resident subsystem: 2105 2106Completed the final integration of the recent changes to Package Object 2107handling and the module-level AML code support. This allows forward 2108references from individual package elements when the package object is 2109declared from within module-level code blocks. Provides compatibility 2110with other ACPI implementations. 2111 2112The new architecture for the AML module-level code has been completed and 2113is now the default for the ACPICA code. This new architecture executes 2114the module-level code in-line as the ACPI table is loaded/parsed instead 2115of the previous architecture which deferred this code until after the 2116table was fully loaded. This solves some ASL code ordering issues and 2117provides compatibility with other ACPI implementations. At this time, 2118there is an option to fallback to the earlier architecture, but this 2119support is deprecated and is planned to be completely removed later this 2120year. 2121 2122Added a compile-time option to ignore AE_NOT_FOUND exceptions during 2123resolution of named reference elements within Package objects. Although 2124this is potentially a serious problem, it can generate a lot of 2125noise/errors on platforms whose firmware carries around a bunch of unused 2126Package objects. To disable these errors, define 2127ACPI_IGNORE_PACKAGE_RESOLUTION_ERRORS in the OS-specific header. All 2128errors are always reported for ACPICA applications such as AcpiExec. 2129 2130Fixed a regression related to the explicit type-conversion AML operators 2131(ToXXXX). The regression was introduced early in 2017 but was not seen 2132until recently because these operators are not fully supported by other 2133ACPI implementations and are thus rarely used by firmware developers. The 2134operators are defined by the ACPI specification to not implement the 2135"implicit result object conversion". The regression incorrectly 2136introduced this object conversion for the following explicit conversion 2137operators: 2138 ToInteger 2139 ToString 2140 ToBuffer 2141 ToDecimalString 2142 ToHexString 2143 ToBCD 2144 FromBCD 2145 2146 21472) iASL Compiler/Disassembler and Tools: 2148 2149iASL: Fixed a problem with the compiler constant folding feature as 2150related to the ToXXXX explicit conversion operators. These operators do 2151not support the "implicit result object conversion" by definition. Thus, 2152ASL expressions that use these operators cannot be folded to a simple 2153Store operator because Store implements the implicit conversion. This 2154change uses the CopyObject operator for the ToXXXX operator folding 2155instead. CopyObject is defined to not implement implicit result 2156conversions and is thus appropriate for folding the ToXXXX operators. 2157 2158iASL: Changed the severity of an error condition to a simple warning for 2159the case where a symbol is declared both locally and as an external 2160symbol. This accommodates existing ASL code. 2161 2162AcpiExec: The -ep option to enable the new architecture for module-level 2163code has been removed. It is replaced by the -dp option which instead has 2164the opposite effect: it disables the new architecture (the default) and 2165enables the legacy architecture. When the legacy code is removed in the 2166future, the -dp option will be removed also. 2167 2168---------------------------------------- 216905 January 2018. Summary of changes for version 20180105: 2170 2171 21721) ACPICA kernel-resident subsystem: 2173 2174Updated all copyrights to 2018. This affects all source code modules. 2175 2176Fixed a possible build error caused by an unresolved reference to the 2177AcpiUtSafeStrncpy function. 2178 2179Removed NULL pointer arithmetic in the various pointer manipulation 2180macros. All "(void *) NULL" constructs are converted to "(void *) 0". 2181This eliminates warnings/errors in newer C compilers. Jung-uk Kim. 2182 2183Added support for A32 ABI compilation, which uses the ILP32 model. Anuj 2184Mittal. 2185 2186 21872) iASL Compiler/Disassembler and Tools: 2188 2189ASLTS: Updated all copyrights to 2018. 2190 2191Tools: Updated all signon copyrights to 2018. 2192 2193AcpiXtract: Fixed a regression related to ACPI table signatures where the 2194signature was truncated to 3 characters (instead of 4). 2195 2196AcpiExec: Restore the original terminal mode after the use of the -v and 2197-vd options. 2198 2199ASLTS: Deployed the iASL __METHOD__ macro across the test suite. 2200 2201---------------------------------------- 220214 December 2017. Summary of changes for version 20171214: 2203 2204 22051) ACPICA kernel-resident subsystem: 2206 2207Fixed a regression in the external (public) AcpiEvaluateObjectTyped 2208interface where the optional "pathname" argument had inadvertently become 2209a required argument returning an error if omitted (NULL pointer 2210argument). 2211 2212Fixed two possible memory leaks related to the recently developed "late 2213resolution" of reference objects within ASL Package Object definitions. 2214 2215Added two recently defined _OSI strings: "Windows 2016" and "Windows 22162017". Mario Limonciello. 2217 2218Implemented and deployed a safer version of the C library function 2219strncpy: AcpiUtSafeStrncpy. The intent is to at least prevent the 2220creation of unterminated strings as a possible result of a standard 2221strncpy. 2222 2223Cleaned up and restructured the global variable file (acglobal.h). There 2224are many changes, but no functional changes. 2225 2226 22272) iASL Compiler/Disassembler and Tools: 2228 2229iASL Table Compiler: Fixed a problem with the DBG2 ACPI table where the 2230optional OemData field at the end of the table was incorrectly required 2231for proper compilation. It is now correctly an optional field. 2232 2233ASLTS: The entire suite was converted from standard ASL to the ASL+ 2234language, using the ASL-to-ASL+ converter which is integrated into the 2235iASL compiler. A binary compare of all output files has verified the 2236correctness of the conversion. 2237 2238iASL: Fixed the source code build for platforms where "char" is unsigned. 2239This affected the iASL lexer only. Jung-uk Kim. 2240 2241---------------------------------------- 224210 November 2017. Summary of changes for version 20171110: 2243 2244 22451) ACPICA kernel-resident subsystem: 2246 2247This release implements full support for ACPI 6.2A: 2248 NFIT - Added a new subtable, "Platform Capabilities Structure" 2249No other changes to ACPICA were required, since ACPI 6.2A is primarily an 2250errata release of the specification. 2251 2252Other ACPI table changes: 2253 IORT: Added the SMMUv3 Device ID mapping index. Hanjun Guo 2254 PPTT: Added cache attribute flag definitions to actbl1.h. Jeremy 2255Linton 2256 2257Utilities: Modified the string/integer conversion functions to use 2258internal 64-bit divide support instead of a native divide. On 32-bit 2259platforms, a 64-bit divide typically requires a library function which 2260may not be present in the build (kernel or otherwise). 2261 2262Implemented a targeted error message for timeouts returned from the 2263Embedded Controller device driver. This is seen frequently enough to 2264special-case an AE_TIME returned from an EC operation region access: 2265 "Timeout from EC hardware or EC device driver" 2266 2267Changed the "ACPI Exception" message prefix to "ACPI Error" so that all 2268runtime error messages have the identical prefix. 2269 2270 22712) iASL Compiler/Disassembler and Tools: 2272 2273AcpiXtract: Fixed a problem with table header detection within the 2274acpidump file. Processing a table could be ended early if a 0x40 (@) 2275appears in the original binary table, resulting in the @ symbol appearing 2276in the decoded ASCII field at the end of the acpidump text line. The 2277symbol caused acpixtract to incorrectly think it had reached the end of 2278the current table and the beginning of a new table. 2279 2280AcpiXtract: Added an option (-f) to ignore some errors during table 2281extraction. This initial implementation ignores non-ASCII and non- 2282printable characters found in the acpidump text file. 2283 2284TestSuite(ASLTS)/AcpiExec: Fixed and restored the memory usage statistics 2285for ASLTS. This feature is used to track memory allocations from 2286different memory caches within the ACPICA code. At the end of an ASLTS 2287run, these memory statistics are recorded and stored in a log file. 2288 2289Debugger (user-space version): Implemented a simple "Background" command. 2290Creates a new thread to execute a control method in the background, while 2291control returns to the debugger prompt to allow additional commands. 2292 Syntax: Background <Namepath> [Arguments] 2293 2294---------------------------------------- 229529 September 2017. Summary of changes for version 20170929: 2296 2297 22981) ACPICA kernel-resident subsystem: 2299 2300Redesigned and implemented an improved ASL While() loop timeout 2301mechanism. This mechanism is used to prevent infinite loops in the kernel 2302AML interpreter caused by either non-responsive hardware or incorrect AML 2303code. The new implementation uses AcpiOsGetTimer instead of a simple 2304maximum loop count, and is thus more accurate and constant across 2305different machines. The default timeout is currently 30 seconds, but this 2306may be adjusted later. 2307 2308Renamed the ACPI_AML_INFINITE_LOOP exception to AE_AML_LOOP_TIMEOUT to 2309better reflect the new implementation of the loop timeout mechanism. 2310 2311Updated the AcpiGetTimerDuration interface to cleanup the 64-bit support 2312and to fix an off-by-one error. Jung-uk Kim. 2313 2314Fixed an EFI build problem by updating the makefiles to for a new file 2315that was added, utstrsuppt.c 2316 2317 23182) iASL Compiler/Disassembler and Tools: 2319 2320Implemented full support for the PDTT, SDEV, and TPM2 ACPI tables. This 2321includes support in the table disassembler, compiler, and template 2322generator. 2323 2324iASL: Added an exception for an illegal type of recursive method 2325invocation. If a method creates named objects, the first recursive call 2326will fail at runtime. This change adds an error detection at compile time 2327to catch the problem up front. Note: Marking such a method as 2328"serialized" will not help with this problem, because the same thread can 2329acquire the method mutex more than once. Example compiler and runtime 2330output: 2331 2332 Method (MTH1) 2333 { 2334 Name (INT1, 1) 2335 MTH1 () 2336 } 2337 2338 dsdt.asl 22: MTH1 () 2339 Error 6152 - ^ Illegal recursive call to method 2340 that creates named objects (MTH1) 2341 2342Previous runtime exception: 2343 ACPI Error: [INT1] Namespace lookup failure, 2344 AE_ALREADY_EXISTS (20170831/dswload2-465) 2345 2346iASL: Updated support for External() opcodes to improve namespace 2347management and error detection. These changes are related to issues seen 2348with multiple-segment namespace pathnames within External declarations, 2349such as below: 2350 2351 External(\_SB.PCI0.GFX0, DeviceObj) 2352 External(\_SB.PCI0.GFX0.ALSI) 2353 2354iASL: Implemented support for multi-line error/warning messages. This 2355enables more detailed and helpful error messages as below, from the 2356initial deployment for the duplicate names error: 2357 2358 DSDT.iiii 1692: Device(PEG2) { 2359 Error 6074 - ^ Name already exists in scope 2360(PEG2) 2361 2362 Original name creation/declaration below: 2363 DSDT.iiii 93: External(\_SB.PCI0.PEG2, DeviceObj) 2364 2365AcpiXtract: Added additional flexibility to support differing input hex 2366dump formats. Specifically, hex dumps that contain partial disassembly 2367and/or comments within the ACPI table data definition. There exist some 2368dump utilities seen in the field that create this type of hex dump (such 2369as Simics). For example: 2370 2371 DSDT @ 0xdfffd0c0 (10999 bytes) 2372 Signature DSDT 2373 Length 10999 2374 Revision 1 2375 Checksum 0xf3 (Ok) 2376 OEM_ID BXPC 2377 OEM_table_id BXDSDT 2378 OEM_revision 1 2379 Creator_id 1280593481 2380 Creator_revision 537399345 2381 0000: 44 53 44 54 f7 2a 00 00 01 f3 42 58 50 43 00 00 2382 ... 2383 2af0: 5f 4c 30 46 00 a4 01 2384 2385Test suite: Miscellaneous changes/fixes: 2386 More cleanup and simplification of makefiles 2387 Continue compilation of test cases after a compile failure 2388 Do not perform binary compare unless both files actually exist 2389 2390iASL: Performed some code/module restructuring. Moved all memory 2391allocation functions to new modules. Two new files, aslallocate.c and 2392aslcache.c 2393 2394---------------------------------------- 239531 August 2017. Summary of changes for version 20170831: 2396 2397 23981) ACPICA kernel-resident subsystem: 2399 2400Implemented internal support for full 64-bit addresses that appear in all 2401Generic Address Structure (GAS) structures. Previously, only the lower 32 2402bits were used. Affects the use of GAS structures in the FADT and other 2403tables, as well as the GAS structures passed to the AcpiRead and 2404AcpiWrite public external interfaces that are used by drivers. Lv Zheng. 2405 2406Added header support for the PDTT ACPI table (Processor Debug Trigger 2407Table). Full support in the iASL Data Table Compiler and disassembler is 2408forthcoming. 2409 2410 24112) iASL Compiler/Disassembler and Tools: 2412 2413iASL/Disassembler: Fixed a problem with the PPTT ACPI table (Processor 2414Properties Topology Table) where a flag bit was specified in the wrong 2415bit position ("Line Size Valid", bit 6). 2416 2417iASL: Implemented support for Octal integer constants as defined by the 2418ASL language grammar, per the ACPI specification. Any integer constant 2419that starts with a zero is an octal constant. For example, 2420 Store (037777, Local0) /* Octal constant */ 2421 Store (0x3FFF, Local0) /* Hex equivalent */ 2422 Store (16383, Local0) /* Decimal equivalent */ 2423 2424iASL: Improved overflow detection for 64-bit string conversions during 2425compilation of integer constants. "Overflow" in this case means a string 2426that represents an integer that is too large to fit into a 64-bit value. 2427Any 64-bit constants within a 32-bit DSDT or SSDT are still truncated to 2428the low-order 32 bits with a warning, as previously implemented. Several 2429new exceptions are defined that indicate a 64-bit overflow, as well as 2430the base (radix) that was used during the attempted conversion. Examples: 2431 Local0 = 0xAAAABBBBCCCCDDDDEEEEFFFF // AE_HEX_OVERFLOW 2432 Local0 = 01111222233334444555566667777 // AE_OCTAL_OVERFLOW 2433 Local0 = 11112222333344445555666677778888 // AE_DECIMAL_OVERFLOW 2434 2435iASL: Added a warning for the case where a ResourceTemplate is declared 2436with no ResourceDescriptor entries (coded as "ResourceTemplate(){}"). In 2437this case, the resulting template is created with a single END_TAG 2438descriptor, which is essentially useless. 2439 2440iASL: Expanded the -vw option (ignore specific warnings/remarks) to 2441include compilation error codes as well. 2442 2443---------------------------------------- 244428 July 2017. Summary of changes for version 20170728: 2445 2446 24471) ACPICA kernel-resident subsystem: 2448 2449Fixed a regression seen with small resource descriptors that could cause 2450an inadvertent AE_AML_NO_RESOURCE_END_TAG exception. 2451 2452AML interpreter: Implemented a new feature that allows forward references 2453from individual named references within package objects that are 2454contained within blocks of "module-level code". This provides 2455compatibility with other ACPI implementations and supports existing 2456firmware that depends on this feature. Example: 2457 2458 Name (ABCD, 1) 2459 If (ABCD) /* An If() at module-level */ 2460 { 2461 Name (PKG1, Package() 2462 { 2463 INT1 /* Forward reference to object INT1 2464*/ 2465 }) 2466 Name (INT1, 0x1234) 2467 } 2468 2469AML Interpreter: Fixed a problem with the Alias() operator where aliases 2470to some ASL objects were not handled properly. Objects affected are: 2471Mutex, Event, and OperationRegion. 2472 2473AML Debugger: Enhanced to properly handle AML Alias objects. These 2474objects have one level of indirection which was not fully supported by 2475the debugger. 2476 2477Table Manager: Added support to detect and ignore duplicate SSDTs within 2478the XSDT/RSDT. This error in the XSDT has been seen in the field. 2479 2480EFI and EDK2 support: 2481 Enabled /WX flag for MSVC builds 2482 Added support for AcpiOsStall, AcpiOsSleep, and AcpiOsGetTimer 2483 Added local support for 64-bit multiply and shift operations 2484 Added support to compile acpidump.efi on Windows 2485 Added OSL function stubs for interfaces not used under EFI 2486 2487Added additional support for the _DMA predefined name. _DMA returns a 2488buffer containing a resource template. This change add support within the 2489resource manager (AcpiWalkResourceBuffer) to walk and parse this list of 2490resource descriptors. Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> 2491 2492 24932) iASL Compiler/Disassembler and Tools: 2494 2495iASL: Fixed a problem where the internal input line buffer(s) could 2496overflow if there are very long lines in the input ASL source code file. 2497Implemented buffer management that automatically increases the size of 2498the buffers as necessary. 2499 2500iASL: Added an option (-vx) to "expect" particular remarks, warnings and 2501errors. If the specified exception is not raised during compilation, the 2502compiler emits an error. This is intended to support the ASL test suite, 2503but may be useful in other contexts. 2504 2505iASL: Implemented a new predefined macro, __METHOD__, which returns a 2506string containing the name of the current control method that is being 2507compiled. 2508 2509iASL: Implemented debugger and table compiler support for the SDEI ACPI 2510table (Software Delegated Exception Interface). James Morse 2511<james.morse@arm.com> 2512 2513Unix/Linux makefiles: Added an option to disable compile optimizations. 2514The disable occurs when the NOOPT flag is set to TRUE. 2515theracermaster@gmail.com 2516 2517Acpidump: Added support for multiple DSDT and FACS tables. This can occur 2518when there are different tables for 32-bit versus 64-bit. 2519 2520Enhanced error reporting for the ASL test suite (ASLTS) by removing 2521unnecessary/verbose text, and emit the actual line number where an error 2522has occurred. These changes are intended to improve the usefulness of the 2523test suite. 2524 2525---------------------------------------- 252629 June 2017. Summary of changes for version 20170629: 2527 2528 25291) ACPICA kernel-resident subsystem: 2530 2531Tables: Implemented a deferred ACPI table verification. This is useful 2532for operating systems where the tables cannot be verified in the early 2533initialization stage due to early memory mapping limitations on some 2534architectures. Lv Zheng. 2535 2536Tables: Removed the signature validation for dynamically loaded tables. 2537Provides compatibility with other ACPI implementations. Previously, only 2538SSDT tables were allowed, as per the ACPI specification. Now, any table 2539signature can be used via the Load() operator. Lv Zheng. 2540 2541Tables: Fixed several mutex issues that could cause errors during table 2542acquisition. Lv Zheng. 2543 2544Tables: Fixed a problem where an ACPI warning could be generated if a 2545null pointer was passed to the AcpiPutTable interface. Lv Zheng. 2546 2547Tables: Added a mechanism to handle imbalances for the AcpiGetTable and 2548AcpiPutTable interfaces. This applies to the "late stage" table loading 2549when the use of AcpiPutTable is no longer required (since the system 2550memory manager is fully running and available). Lv Zheng. 2551 2552Fixed/Reverted a regression during processing of resource descriptors 2553that contain only a single EndTag. Fixes an AE_AML_NO_RESOURCE_END_TAG 2554exception in this case. 2555 2556Headers: IORT/SMMU support: Updated the SMMU models for Revision C of the 2557I/O Remapping specification. Robin Murphy <robin.murphy@arm.com> 2558 2559Interpreter: Fixed a possible fault if an Alias operator with an invalid 2560or duplicate target is encountered during Alias creation in 2561AcpiExCreateAlias. Alex James <theracermaster@gmail.com> 2562 2563Added an option to use designated initializers for function pointers. 2564Kees Cook <keescook@google.com> 2565 2566 25672) iASL Compiler/Disassembler and Tools: 2568 2569iASL: Allow compilation of External declarations with target pathnames 2570that refer to existing named objects within the table. Erik Schmauss. 2571 2572iASL: Fixed a regression when compiling FieldUnits. Fixes an error if a 2573FieldUnit name also is declared via External in the same table. Erik 2574Schmauss. 2575 2576iASL: Allow existing scope names within pathnames used in External 2577statements. For example: 2578 External (ABCD.EFGH) // ABCD exists, but EFGH is truly external 2579 Device (ABCD) 2580 2581iASL: IORT ACPI table: Implemented changes required to decode the new 2582Proximity Domain for the SMMUv3 IORT. Disassembler and Data Table 2583compiler. Ganapatrao Kulkarni <ganapatrao.kulkarni@cavium.com> 2584 2585Disassembler: Don't abort disassembly on errors from External() 2586statements. Erik Schmauss. 2587 2588Disassembler: fixed a possible fault when one of the Create*Field 2589operators references a Resource Template. ACPICA Bugzilla 1396. 2590 2591iASL: In the source code, resolved some naming inconsistences across the 2592parsing support. Fixes confusion between "Parse Op" and "Parse Node". 2593Adds a new file, aslparseop.c 2594 2595---------------------------------------- 259631 May 2017. Summary of changes for version 20170531: 2597 2598 25990) ACPI 6.2 support: 2600 2601The ACPI specification version 6.2 has been released and is available at 2602http://uefi.org/specifications 2603 2604This version of ACPICA fully supports the ACPI 6.2 specification. Changes 2605are summarized below. 2606 2607New ACPI tables (Table Compiler/Disassembler/Templates): 2608 HMAT (Heterogeneous Memory Attributes Table) 2609 WSMT (Windows SMM Security Mitigation Table) 2610 PPTT (Processor Properties Topology Table) 2611 2612New subtables for existing ACPI tables: 2613 HEST (New subtable, Arch-deferred machine check) 2614 SRAT (New subtable, Arch-specific affinity structure) 2615 PCCT (New subtables, Extended PCC subspaces (types 3 and 4)) 2616 2617Simple updates for existing ACPI tables: 2618 BGRT (two new flag bits) 2619 HEST (New bit defined for several subtables, GHES_ASSIST) 2620 2621New Resource Descriptors and Resource macros (Compiler/Disassembler): 2622 PinConfig() 2623 PinFunction() 2624 PinGroup() 2625 PinGroupConfig() 2626 PinGroupFunction() 2627 New type for hardware error notification (section 18.3.2.9) 2628 2629New predefined names/methods (Compiler/Interpreter): 2630 _HMA (Heterogeneous Memory Attributes) 2631 _LSI (Label Storage Information) 2632 _LSR (Label Storage Read) 2633 _LSW (Label Storage Write) 2634 2635ASL grammar/macro changes (Compiler): 2636 For() ASL macro, implemented with the AML while operator 2637 Extensions to Concatenate operator 2638 Support for multiple definition blocks in same ASL file 2639 Clarification for Buffer operator 2640 Allow executable AML code underneath all scopes (Devices, etc.) 2641 Clarification/change for the _OSI return value 2642 ASL grammar update for reference operators 2643 Allow a zero-length string for AML filename in DefinitionBlock 2644 2645Miscellaneous: 2646 New device object notification value 2647 Remove a notify value (0x0C) for graceful shutdown 2648 New UUIDs for processor/cache properties and 2649 physical package property 2650 New _HID, ACPI0014 (Wireless Power Calibration Device) 2651 2652 26531) ACPICA kernel-resident subsystem: 2654 2655Added support to disable ACPI events on hardware-reduced platforms. 2656Eliminates error messages of the form "Could not enable fixed event". Lv 2657Zheng 2658 2659Fixed a problem using Device/Thermal objects with the ObjectType and 2660DerefOf ASL operators. This support had not been fully/properly 2661implemented. 2662 2663Fixed a problem where if a Buffer object containing a resource template 2664was longer than the actual resource template, an error was generated -- 2665even though the AML is legal. This case has been seen in the field. 2666 2667Fixed a problem with the header definition of the MADT PCAT_COMPAT flag. 2668The values for DUAL_PIC and MULTIPLE_APIC were reversed. 2669 2670Added header file changes for the TPM2 ACPI table. Update to new version 2671of the TCG specification. Adds a new TPM2 subtable for ARM SMC. 2672 2673Exported the external interfaces AcpiAcquireMutex and AcpiReleaseMutex. 2674These interfaces are intended to be used only in conjunction with the 2675predefined _DLM method (Device Lock Method). "This object appears in a 2676device scope when AML access to the device must be synchronized with the 2677OS environment". 2678 2679Example Code and Data Size: These are the sizes for the OS-independent 2680acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2681debug version of the code includes the debug output trace mechanism and 2682has a much larger code and data size. 2683 2684 Current Release: 2685 Non-Debug Version: 143.1K Code, 60.0K Data, 203.1K Total 2686 Debug Version: 204.0K Code, 84.3K Data, 288.3K Total 2687 Previous Release: 2688 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 2689 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2690 2691 26922) iASL Compiler/Disassembler and Tools: 2693 2694iASL: Fixed a problem where an External() declaration could not refer to 2695a Field Unit. Erik Schmauss. 2696 2697Disassembler: Improved support for the Switch/Case operators. This 2698feature will disassemble AML code back to the original Switch operators 2699when possible, instead of an If..Else sequence. David Box 2700 2701iASL and disassembler: Improved the handling of multiple extraneous 2702parentheses for both ASL input and disassembled ASL output. 2703 2704Improved the behavior of the iASL compiler and disassembler to detect 2705improper use of external declarations 2706 2707Disassembler: Now aborts immediately upon detection of an unknown AML 2708opcode. The AML parser has no real way to recover from this, and can 2709result in the creation of an ill-formed parse tree that causes errors 2710later during the disassembly. 2711 2712All tools: Fixed a problem where the Unix application OSL did not handle 2713control-c correctly. For example, a control-c could incorrectly wake the 2714debugger. 2715 2716AcpiExec: Improved the Control-C handling and added a handler for 2717segmentation faults (SIGSEGV). Supports both Windows and Unix-like 2718environments. 2719 2720Reduced the verbosity of the generic unix makefiles. Previously, each 2721compilation displayed the full set of compiler options. This has been 2722eliminated as the options are easily inspected within the makefiles. Each 2723compilation now results in a single line of output. 2724 2725---------------------------------------- 272603 March 2017. Summary of changes for version 20170303: 2727 2728 27290) ACPICA licensing: 2730 2731The licensing information at the start of each source code module has 2732been updated. In addition to the Intel license, the dual GPLv2/BSD 2733license has been added for completeness. Now, a single version of the 2734source code should be suitable for all ACPICA customers. This is the 2735major change for this release since it affects all source code modules. 2736 2737 27381) ACPICA kernel-resident subsystem: 2739 2740Fixed two issues with the common asltypes.h header that could cause 2741problems in some environments: (Kim Jung-uk) 2742 Removed typedef for YY_BUFFER_STATE ? 2743 Fixes an error with earlier versions of Flex. 2744 Removed use of FILE typedef (which is only defined in stdio.h) 2745 2746 27472) iASL Compiler/Disassembler and Tools: 2748 2749Disassembler: fixed a regression introduced in 20170224. A fix for a 2750memory leak related to resource descriptor tags (names) could fault when 2751the disassembler was generated with 64-bit compilers. 2752 2753The ASLTS test suite has been updated to implement a new testing 2754architecture. During generation of the suite from ASL source, both the 2755ASL and ASL+ compilers are now validated, as well as the disassembler 2756itself (Erik Schmauss). The architecture executes as follows: 2757 2758 For every ASL source module: 2759 Compile (legacy ASL compilation) 2760 Disassemble the resulting AML to ASL+ source code 2761 Compile the new ASL+ module 2762 Perform a binary compare on the legacy AML and the new ASL+ AML 2763 The ASLTS suite then executes normally using the AML binaries. 2764 2765---------------------------------------- 276624 February 2017. Summary of changes for version 20170224: 2767 2768 27691) ACPICA kernel-resident subsystem: 2770 2771Interpreter: Fixed two issues with the control method return value auto- 2772repair feature, where an attempt to double-delete an internal object 2773could result in an ACPICA warning (for _CID repair and others). No fault 2774occurs, however, because the attempted deletion (actually a release to an 2775internal cache) is detected and ignored via object poisoning. 2776 2777Debugger: Fixed an AML interpreter mutex issue during the single stepping 2778of control methods. If certain debugger commands are executed during 2779stepping, a mutex acquire/release error could occur. Lv Zheng. 2780 2781Fixed some issues generating ACPICA with the Intel C compiler by 2782restoring the original behavior and compiler-specific include file in 2783acenv.h. Lv Zheng. 2784 2785Example Code and Data Size: These are the sizes for the OS-independent 2786acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2787debug version of the code includes the debug output trace mechanism and 2788has a much larger code and data size. 2789 2790 Current Release: 2791 Non-Debug Version: 141.7K Code, 58.5K Data, 200.2K Total 2792 Debug Version: 207.5K Code, 82.7K Data, 290.2K Total 2793 Previous Release: 2794 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 2795 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 2796 2797 27982) iASL Compiler/Disassembler and Tools: 2799 2800iASL/Disassembler: A preliminary version of a new ASL-to-ASL+ conversion 2801tool has been designed, implemented, and included in this release. The 2802key feature of this utility is that the original comments within the 2803input ASL file are preserved during the conversion process, and included 2804within the converted ASL+ file -- thus creating a transparent conversion 2805of existing ASL files to ASL+ (ASL 2.0). Erik Schmauss. 2806 2807 Usage: iasl -ca <ASL-filename> // Output is a .dsl file with 2808converted code 2809 2810iASL/Disassembler: Improved the detection and correct disassembly of 2811Switch/Case operators. This feature detects sequences of if/elseif/else 2812operators that originated from ASL Switch/Case/Default operators and 2813emits the original operators. David Box. 2814 2815iASL: Improved the IORT ACPI table support in the following areas. Lv 2816Zheng: 2817 Clear MappingOffset if the MappingCount is zero. 2818 Fix the disassembly of the SMMU GSU interrupt offset. 2819 Update the template file for the IORT table. 2820 2821Disassembler: Enhanced the detection and disassembly of resource 2822template/descriptor within a Buffer object. An EndTag descriptor is now 2823required to have a zero second byte, since all known ASL compilers emit 2824this. This helps eliminate incorrect decisions when a buffer is 2825disassembled (false positives on resource templates). 2826 2827---------------------------------------- 282819 January 2017. Summary of changes for version 20170119: 2829 2830 28311) General ACPICA software: 2832 2833Entire source code base: Added the 2017 copyright to all source code 2834legal/licensing module headers and utility/tool signons. This includes 2835the standard Linux dual-license header. This affects virtually every file 2836in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and 2837the ACPICA test suite. 2838 2839 28402) iASL Compiler/Disassembler and Tools: 2841 2842iASL: Removed/fixed an inadvertent remark when a method argument 2843containing a reference is used as a target operand within the method (and 2844never used as a simple argument), as in the example below. Jeffrey Hugo. 2845 2846 dsdt.asl 1507: Store(0x1, Arg0) 2847 Remark 2146 - ^ Method Argument is never used (Arg0) 2848 2849All tools: Removed the bit width of the compiler that generated the tool 2850from the common signon for all user space tools. This proved to be 2851confusing and unnecessary. This includes similar removal of HARDWARE_NAME 2852from the generic makefiles (Thomas Petazzoni). Example below. 2853 2854 Old: 2855 ASL+ Optimizing Compiler version 20170119-32 2856 ASL+ Optimizing Compiler version 20170119-64 2857 2858 New: 2859 ASL+ Optimizing Compiler version 20170119 2860 2861---------------------------------------- 286222 December 2016. Summary of changes for version 20161222: 2863 2864 28651) ACPICA kernel-resident subsystem: 2866 2867AML Debugger: Implemented a new mechanism to simplify and enhance 2868debugger integration into all environments, including kernel debuggers 2869and user-space utilities, as well as remote debug services. This 2870mechanism essentially consists of new OSL interfaces to support debugger 2871initialization/termination, as well as wait/notify interfaces to perform 2872the debugger handshake with the host. Lv Zheng. 2873 2874 New OSL interfaces: 2875 AcpiOsInitializeDebugger (void) 2876 AcpiOsTerminateDebugger (void) 2877 AcpiOsWaitCommandReady (void) 2878 AcpiOsNotifyCommandComplete (void) 2879 2880 New OS services layer: 2881 osgendbg.c -- Example implementation, and used for AcpiExec 2882 2883Update for Generic Address Space (GAS) support: Although the AccessWidth 2884and/or BitOffset fields of the GAS are not often used, this change now 2885fully supports these fields. This affects the internal support for FADT 2886registers, registers in other ACPI data tables, and the AcpiRead and 2887AcpiWrite public interfaces. Lv Zheng. 2888 2889Sleep support: In order to simplify integration of ACPI sleep for the 2890various host operating systems, a new OSL interface has been introduced. 2891AcpiOsEnterSleep allows the host to perform any required operations 2892before the final write to the sleep control register(s) is performed by 2893ACPICA. Lv Zheng. 2894 2895 New OSL interface: 2896 AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue) 2897 2898 Called from these internal interfaces: 2899 AcpiHwLegacySleep 2900 AcpiHwExtendedSleep 2901 2902EFI support: Added a very small EFI/ACPICA example application. Provides 2903a simple demo for EFI integration, as well as assisting with resolution 2904of issues related to customer ACPICA/EFI integration. Lv Zheng. See: 2905 2906 source/tools/efihello/efihello.c 2907 2908Local C library: Implemented several new functions to enhance ACPICA 2909portability, for environments where these clib functions are not 2910available (such as EFI). Lv Zheng: 2911 putchar 2912 getchar 2913 strpbrk 2914 strtok 2915 memmove 2916 2917Fixed a regression where occasionally a valid resource descriptor was 2918incorrectly detected as invalid at runtime, and a 2919AE_AML_NO_RESOURCE_END_TAG was returned. 2920 2921Fixed a problem with the recently implemented support that enables 2922control method invocations as Target operands to many ASL operators. 2923Warnings of this form: "Needed type [Reference], found [Processor]" were 2924seen at runtime for some method invocations. 2925 2926Example Code and Data Size: These are the sizes for the OS-independent 2927acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2928debug version of the code includes the debug output trace mechanism and 2929has a much larger code and data size. 2930 2931 Current Release: 2932 Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total 2933 Debug Version: 201.7K Code, 82.7K Data, 284.4K Total 2934 Previous Release: 2935 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 2936 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2937 2938 29392) iASL Compiler/Disassembler and Tools: 2940 2941Disassembler: Enhanced output by adding the capability to detect and 2942disassemble ASL Switch/Case statements back to the original ASL source 2943code instead of if/else blocks. David Box. 2944 2945AcpiHelp: Split a large file into separate files based upon 2946functionality/purpose. New files are: 2947 ahaml.c 2948 ahasl.c 2949 2950---------------------------------------- 295117 November 2016. Summary of changes for version 20161117: 2952 2953 29541) ACPICA kernel-resident subsystem: 2955 2956Table Manager: Fixed a regression introduced in 20160729, "FADT support 2957cleanup". This was an attempt to remove all references in the source to 2958the FADT version 2, which never was a legal version number. It was 2959skipped because it was an early version of 64-bit support that was 2960eventually abandoned for the current 64-bit support. 2961 2962Interpreter: Fixed a problem where runtime implicit conversion was 2963incorrectly disabled for the ASL operators below. This brings the 2964behavior into compliance with the ACPI specification: 2965 FromBCD 2966 ToBCD 2967 ToDecimalString 2968 ToHexString 2969 ToInteger 2970 ToBuffer 2971 2972Table Manager: Added a new public interface, AcpiPutTable, used to 2973release and free an ACPI table returned by AcpiGetTable and related 2974interfaces. Lv Zheng. 2975 2976Example Code and Data Size: These are the sizes for the OS-independent 2977acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 2978debug version of the code includes the debug output trace mechanism and 2979has a much larger code and data size. 2980 2981 Current Release: 2982 Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total 2983 Debug Version: 201.3K Code, 82.7K Data, 284.0K Total 2984 Previous Release: 2985 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 2986 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 2987 2988 29892) iASL Compiler/Disassembler and Tools: 2990 2991Disassembler: Fixed a regression for disassembly of Resource Template. 2992Detection of templates in the AML stream missed some types of templates. 2993 2994iASL: Fixed a problem where an Access Size error was returned for the PCC 2995address space when the AccessSize of the GAS register is greater than a 2996DWORD. Hoan Tran. 2997 2998iASL: Implemented several grammar changes for the operators below. These 2999changes are slated for the next version of the ACPI specification: 3000 RefOf - Disallow method invocation as an operand 3001 CondRefOf - Disallow method invocation as an operand 3002 DerefOf - Disallow operands that use the result from operators 3003that 3004 do not return a reference (Changed TermArg to 3005SuperName). 3006 3007iASL: Control method invocations are now allowed for Target operands, as 3008per the ACPI specification. Removed error for using a control method 3009invocation as a Target operand. 3010 3011Disassembler: Improved detection of Resource Templates, Unicode, and 3012Strings within Buffer objects. These subtypes do not contain a specific 3013opcode to indicate the originating ASL code, and they must be detected by 3014other means within the disassembler. 3015 3016iASL: Implemented an optimization improvement for 32-bit ACPI tables 3017(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode 3018only after 64-bit to 32-bit truncation. A truncation warning message is 3019still emitted, however. 3020 3021AcpiXtract: Implemented handling for both types of line terminators (LF 3022or CR/LF) so that it can accept AcpiDump output files from any system. 3023Peter Wu. 3024 3025AcpiBin: Added two new options for comparing AML files: 3026 -a: compare and display ALL mismatches 3027 -o: start compare at this offset into the second file 3028 3029---------------------------------------- 303030 September 2016. Summary of changes for version 20160930: 3031 3032 30331) ACPICA kernel-resident subsystem: 3034 3035Fixed a regression in the internal AcpiTbFindTable function where a non 3036AE_OK exception could inadvertently be returned even if the function did 3037not fail. This problem affects the following operators: 3038 DataTableRegion 3039 LoadTable 3040 3041Fixed a regression in the LoadTable operator where a load to any 3042namespace location other than the root no longer worked properly. 3043 3044Increased the maximum loop count value that will result in the 3045AE_AML_INFINITE_LOOP exception. This is a mechanism that is intended to 3046prevent infinite loops within the AML interpreter and thus the host OS 3047kernel. The value is increased from 0xFFFF to 0xFFFFF loops (65,535 to 30481,048,575). 3049 3050Moved the AcpiGbl_MaxLoopIterations configuration variable to the public 3051acpixf.h file. This allows hosts to easily configure the maximum loop 3052count at runtime. 3053 3054Removed an illegal character in the strtoul64.c file. This character 3055caused errors with some C compilers. 3056 3057Example Code and Data Size: These are the sizes for the OS-independent 3058acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3059debug version of the code includes the debug output trace mechanism and 3060has a much larger code and data size. 3061 3062 Current Release: 3063 Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total 3064 Debug Version: 200.7K Code, 82.1K Data, 282.8K Total 3065 Previous Release: 3066 Non-Debug Version: 140.0K Code, 58.1K Data, 198.1K Total 3067 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 3068 3069 30702) iASL Compiler/Disassembler and Tools: 3071 3072Disassembler: Fixed a problem with the conversion of Else{If{ blocks into 3073the simpler ASL ElseIf keyword. During the conversion, a trailing If 3074block could be lost and missing from the disassembled output. 3075 3076iASL: Fixed a missing parser rule for the ObjectType operator. For ASL+, 3077the missing rule caused a parse error when using the Index operator as an 3078operand to ObjectType. This construct now compiles properly. Example: 3079 ObjectType(PKG1[4]). 3080 3081iASL: Correctly handle unresolved symbols in the hardware map file (-lm 3082option). Previously, unresolved symbols could cause a protection fault. 3083Such symbols are now marked as unresolved in the map file. 3084 3085iASL: Implemented support to allow control method invocations as an 3086operand to the ASL DeRefOf operator. Example: 3087 DeRefOf(MTH1(Local0)) 3088 3089Disassembler: Improved support for the ToPLD ASL macro. Detection of a 3090possible _PLD buffer now includes examination of both the normal buffer 3091length (16 or 20) as well as the surrounding AML package length. 3092 3093Disassembler: Fixed a problem with the decoding of complex expressions 3094within the Divide operator for ASL+. For the case where both the quotient 3095and remainder targets are specified, the entire statement cannot be 3096disassembled. Previously, the output incorrectly contained a mix of ASL- 3097and ASL+ operators. This mixed statement causes a syntax error when 3098compiled. Example: 3099 Divide (Add (INT1, 6), 128, RSLT, QUOT) // was incorrectly 3100disassembled to: 3101 Divide (INT1 + 6, 128, RSLT, QUOT) 3102 3103iASL/Tools: Added support to process AML and non-AML ACPI tables 3104consistently. For the disassembler and AcpiExec, allow all types of ACPI 3105tables (AML and data tables). For the iASL -e option, allow only AML 3106tables (DSDT/SSDT). 3107 3108---------------------------------------- 310931 August 2016. Summary of changes for version 20160831: 3110 3111 31121) ACPICA kernel-resident subsystem: 3113 3114Improve support for the so-called "module-level code", which is defined 3115to be math, logical and control AML opcodes that appear outside of any 3116control method. This change improves the support by adding more opcodes 3117that can be executed in the manner. Some other issues have been solved, 3118and the ASL grammar changes to support such code under all scope 3119operators (Device, etc.) are complete. Lv Zheng. 3120 3121UEFI support: these OSL functions have been implemented. This is an 3122additional step toward supporting the AcpiExec utility natively (with 3123full hardware access) under UEFI. Marcelo Ferreira. 3124 AcpiOsReadPciConfiguration 3125 AcpiOsWritePciConfiguration 3126 3127Fixed a possible mutex error during control method auto-serialization. Lv 3128Zheng. 3129 3130Updated support for the Generic Address Structure by fully implementing 3131all GAS fields when a 32-bit address is expanded to a 64-bit GAS. Lv 3132Zheng. 3133 3134Updated the return value for the internal _OSI method. Instead of 31350xFFFFFFFF, the "Ones" value is now returned, which is 0xFFFFFFFFFFFFFFFF 3136for 64-bit ACPI tables. This fixes an incompatibility with other ACPI 3137implementations, and will be reflected and clarified in the next version 3138of the ACPI specification. 3139 3140Implemented two new table events that can be passed to an ACPICA table 3141handler. These events are used to indicate a table installation or 3142uninstallation. These events are used in addition to existed table load 3143and unload events. Lv Zheng. 3144 3145Implemented a cleanup for all internal string-to-integer conversions. 3146Consolidate multiple versions of this functionality and limit possible 3147bases to either 10 or 16 to simplify the code. Adds a new file, 3148utstrtoul64. 3149 3150Cleanup the inclusion order of the various compiler-specific headers. 3151This simplifies build configuration management. The compiler-specific 3152headers are now split out from the host-specific headers. Lv Zheng. 3153 3154Example Code and Data Size: These are the sizes for the OS-independent 3155acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3156debug version of the code includes the debug output trace mechanism and 3157has a much larger code and data size. 3158 3159 Current Release: 3160 Non-Debug Version: 140.1K Code, 58.1K Data, 198.1K Total 3161 Debug Version: 200.3K Code, 82.1K Data, 282.4K Total 3162 3163 31642) iASL Compiler/Disassembler and Tools: 3165 3166iASL/AcpiExec: Added a command line option to display the build date/time 3167of the tool (-vd). This can be useful to verify that the correct version 3168of the tools are being used. 3169 3170AML Debugger: Implemented a new subcommand ("execute predef") to execute 3171all predefined control methods and names within the current namespace. 3172This can be useful for debugging problems with ACPI tables and the ACPI 3173namespace. 3174 3175---------------------------------------- 317629 July 2016. Summary of changes for version 20160729: 3177 3178 31791) ACPICA kernel-resident subsystem: 3180 3181Implemented basic UEFI support for the various ACPICA tools. This 3182includes: 31831) An OSL to implement the various AcpiOs* interfaces on UEFI. 31842) Support to obtain the ACPI tables on UEFI. 31853) Local implementation of required C library functions not available on 3186UEFI. 31874) A front-end (main) function for the tools for UEFI-related 3188initialization. 3189 3190The initial deployment of this support is the AcpiDump utility executing 3191as an UEFI application via EDK2 (EDKII, "UEFI Firmware Development Kit"). 3192Current environments supported are Linux/Unix. MSVC generation is not 3193supported at this time. See the generate/efi/README file for build 3194instructions. Lv Zheng. 3195 3196Future plans include porting the AcpiExec utility to execute natively on 3197the platform with I/O and memory access. This will allow viewing/dump of 3198the platform namespace and native execution of ACPI control methods that 3199access the actual hardware. To fully implement this support, the OSL 3200functions below must be implemented with UEFI interfaces. Any community 3201help in the implementation of these functions would be appreciated: 3202 AcpiOsReadPort 3203 AcpiOsWritePort 3204 AcpiOsReadMemory 3205 AcpiOsWriteMemory 3206 AcpiOsReadPciConfiguration 3207 AcpiOsWritePciConfiguration 3208 3209Restructured and standardized the C library configuration for ACPICA, 3210resulting in the various configuration options below. This includes a 3211global restructuring of the compiler-dependent and platform-dependent 3212include files. These changes may affect the existing platform-dependent 3213configuration files on some hosts. Lv Zheng. 3214 3215The current C library configuration options appear below. For any issues, 3216it may be helpful to examine the existing compiler-dependent and 3217platform-dependent files as examples. Lv Zheng. 3218 32191) Linux kernel: 3220 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 3221library. 3222 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 32232) Unix/Windows/BSD applications: 3224 ACPI_USE_STANDARD_HEADERS=y in order to use system-provided C 3225library. 3226 ACPI_USE_SYSTEM_CLIBRARY=y in order not to use ACPICA mini C library. 32273) UEFI applications: 3228 ACPI_USE_STANDARD_HEADERS=n in order not to use system-provided C 3229library. 3230 ACPI_USE_SYSTEM_CLIBRARY=n in order to use ACPICA mini C library. 32314) UEFI applications (EDK2/StdLib): 3232 ACPI_USE_STANDARD_HEADERS=y in order to use EDK2 StdLib C library. 3233 ACPI_USE_SYSTEM_CLIBRARY=y in order to use EDK2 StdLib C library. 3234 3235 3236AML interpreter: "module-level code" support. Allows for execution of so- 3237called "executable" AML code (math/logical operations, etc.) outside of 3238control methods not just at the module level (top level) but also within 3239any scope declared outside of a control method - Scope{}, Device{}, 3240Processor{}, PowerResource{}, and ThermalZone{}. Lv Zheng. 3241 3242Simplified the configuration of the "maximum AML loops" global option by 3243adding a global public variable, "AcpiGbl_MaxLoopIterations" which can be 3244modified at runtime. 3245 3246 3247Example Code and Data Size: These are the sizes for the OS-independent 3248acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3249debug version of the code includes the debug output trace mechanism and 3250has a much larger code and data size. 3251 3252 Current Release: 3253 Non-Debug Version: 139.1K Code, 22.9K Data, 162.0K Total 3254 Debug Version: 199.0K Code, 81.8K Data, 280.8K Total 3255 3256 32572) iASL Compiler/Disassembler and Tools: 3258 3259iASL: Add full support for the RASF ACPI table (RAS Features Table). 3260Includes disassembler, data table compiler, and header support. 3261 3262iASL Expand "module-level code" support. Allows for 3263compilation/disassembly of so-called "executable" AML code (math/logical 3264operations, etc.) outside of control methods not just at the module level 3265(top level) but also within any scope declared outside of a control 3266method - Scope{}, Device{}, Processor{}, PowerResource{}, and 3267ThermalZone{}. 3268 3269AcpiDump: Added support for dumping all SSDTs on newer versions of 3270Windows. These tables are now easily available -- SSDTs are not available 3271through the registry on older versions. 3272 3273---------------------------------------- 327427 May 2016. Summary of changes for version 20160527: 3275 3276 32771) ACPICA kernel-resident subsystem: 3278 3279Temporarily reverted the new arbitrary bit length/alignment support in 3280AcpiHwRead/AcpiHwWrite for the Generic Address Structure. There have been 3281a number of regressions with the new code that need to be fully resolved 3282and tested before this support can be finally integrated into ACPICA. 3283Apologies for any inconveniences these issues may have caused. 3284 3285The ACPI message macros are not configurable (ACPI_MSG_ERROR, 3286ACPI_MSG_EXCEPTION, ACPI_MSG_WARNING, ACPI_MSG_INFO, ACPI_MSG_BIOS_ERROR, 3287and ACPI_MSG_BIOS_WARNING). Lv Zheng. 3288 3289Fixed a couple of GCC warnings associated with the use of the -Wcast-qual 3290option. Adds a new return macro, return_STR. Junk-uk Kim. 3291 3292Example Code and Data Size: These are the sizes for the OS-independent 3293acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3294debug version of the code includes the debug output trace mechanism and 3295has a much larger code and data size. 3296 3297 Current Release: 3298 Non-Debug Version: 136.8K Code, 51.6K Data, 188.4K Total 3299 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 3300 Previous Release: 3301 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 3302 Debug Version: 200.9K Code, 82.2K Data, 283.1K Total 3303 3304---------------------------------------- 330522 April 2016. Summary of changes for version 20160422: 3306 33071) ACPICA kernel-resident subsystem: 3308 3309Fixed a regression in the GAS (generic address structure) arbitrary bit 3310support in AcpiHwRead/AcpiHwWrite. Problem could cause incorrect behavior 3311and incorrect return values. Lv Zheng. ACPICA BZ 1270. 3312 3313ACPI 6.0: Added support for new/renamed resource macros. One new argument 3314was added to each of these macros, and the original name has been 3315deprecated. The AML disassembler will always disassemble to the new 3316names. Support for the new macros was added to iASL, disassembler, 3317resource manager, and the acpihelp utility. ACPICA BZ 1274. 3318 3319 I2cSerialBus -> I2cSerialBusV2 3320 SpiSerialBus -> SpiSerialBusV2 3321 UartSerialBus -> UartSerialBusV2 3322 3323ACPI 6.0: Added support for a new integer field that was appended to the 3324package object returned by the _BIX method. This adds iASL compile-time 3325and AML runtime error checking. ACPICA BZ 1273. 3326 3327ACPI 6.1: Added support for a new PCCT subtable, "HW-Reduced Comm 3328Subspace Type2" (Headers, Disassembler, and data table compiler). 3329 3330Example Code and Data Size: These are the sizes for the OS-independent 3331acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3332debug version of the code includes the debug output trace mechanism and 3333has a much larger code and data size. 3334 3335 Current Release: 3336 Non-Debug Version: 137.4K Code, 52.6K Data, 190.0K Total 3337 Debug Version: 201.5K Code, 82.2K Data, 283.7K Total 3338 Previous Release: 3339 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 3340 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 3341 3342 33432) iASL Compiler/Disassembler and Tools: 3344 3345iASL: Implemented an ASL grammar extension to allow/enable executable 3346"module-level code" to be created and executed under the various 3347operators that create new scopes. This type of AML code is already 3348supported in all known AML interpreters, and the grammar change will 3349appear in the next version of the ACPI specification. Simplifies the 3350conditional runtime creation of named objects under these object types: 3351 3352 Device 3353 PowerResource 3354 Processor 3355 Scope 3356 ThermalZone 3357 3358iASL: Implemented a new ASL extension, a "For" loop macro to add greater 3359ease-of-use to the ASL language. The syntax is similar to the 3360corresponding C operator, and is implemented with the existing AML While 3361opcode -- thus requiring no changes to existing AML interpreters. 3362 3363 For (Initialize, Predicate, Update) {TermList} 3364 3365Grammar: 3366 ForTerm := 3367 For ( 3368 Initializer // Nothing | TermArg => ComputationalData 3369 Predicate // Nothing | TermArg => ComputationalData 3370 Update // Nothing | TermArg => ComputationalData 3371 ) {TermList} 3372 3373 3374iASL: The _HID/_ADR detection and validation has been enhanced to search 3375under conditionals in order to allow these objects to be conditionally 3376created at runtime. 3377 3378iASL: Fixed several issues with the constant folding feature. The 3379improvement allows better detection and resolution of statements that can 3380be folded at compile time. ACPICA BZ 1266. 3381 3382iASL/Disassembler: Fixed a couple issues with the Else{If{}...} 3383conversion to the ASL ElseIf operator where incorrect ASL code could be 3384generated. 3385 3386iASL/Disassembler: Fixed a problem with the ASL+ code disassembly where 3387sometimes an extra (and extraneous) set of parentheses were emitted for 3388some combinations of operators. Although this did not cause any problems 3389with recompilation of the disassembled code, it made the code more 3390difficult to read. David Box. ACPICA BZ 1231. 3391 3392iASL: Changed to ignore the unreferenced detection for predefined names 3393of resource descriptor elements, when the resource descriptor is 3394created/defined within a control method. 3395 3396iASL: Disassembler: Fix a possible fault with externally declared Buffer 3397objects. 3398 3399---------------------------------------- 340018 March 2016. Summary of changes for version 20160318: 3401 34021) ACPICA kernel-resident subsystem: 3403 3404Added support for arbitrary bit lengths and bit offsets for registers 3405defined by the Generic Address Structure. Previously, only aligned bit 3406lengths of 8/16/32/64 were supported. This was sufficient for many years, 3407but recently some machines have been seen that require arbitrary bit- 3408level support. ACPICA BZ 1240. Lv Zheng. 3409 3410Fixed an issue where the \_SB._INI method sometimes must be evaluated 3411before any _REG methods are evaluated. Lv Zheng. 3412 3413Implemented several changes related to ACPI table support 3414(Headers/Disassembler/TableCompiler): 3415NFIT: For ACPI 6.1, updated to add some additional new fields and 3416constants. 3417FADT: Updated a warning message and set compliance to ACPI 6.1 (Version 34186). 3419DMAR: Added new constants per the 10/2014 DMAR spec. 3420IORT: Added new subtable per the 10/2015 IORT spec. 3421HEST: For ACPI 6.1, added new constants and new subtable. 3422DBG2: Added new constants per the 12/2015 DBG2 spec. 3423FPDT: Fixed several incorrect fields, add the FPDT boot record structure. 3424ACPICA BZ 1249. 3425ERST/EINJ: Updated disassembler with new "Execute Timings" actions. 3426 3427Updated header support for the DMAR table to match the current version of 3428the related spec. 3429 3430Added extensions to the ASL Concatenate operator to allow any ACPI object 3431to be passed as an operand. Any object other than Integer/String/Buffer 3432simply returns a string containing the object type. This extends the 3433usefulness of the Printf macros. Previously, Concatenate would abort the 3434control method if a non-data object was encountered. 3435 3436ACPICA source code: Deployed the C "const" keyword across the source code 3437where appropriate. ACPICA BZ 732. Joerg Sonnenberger (NetBSD). 3438 3439Example Code and Data Size: These are the sizes for the OS-independent 3440acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3441debug version of the code includes the debug output trace mechanism and 3442has a much larger code and data size. 3443 3444 Current Release: 3445 Non-Debug Version: 137.1K Code, 51.5K Data, 188.6K Total 3446 Debug Version: 201.0K Code, 82.0K Data, 283.0K Total 3447 Previous Release: 3448 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 3449 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 3450 3451 34522) iASL Compiler/Disassembler and Tools: 3453 3454iASL/Disassembler: Improved the heuristic used to determine the number of 3455arguments for an externally defined control method (a method in another 3456table). Although this is an improvement, there is no deterministic way to 3457"guess" the number of method arguments. Only the ACPI 6.0 External opcode 3458will completely solve this problem as it is deployed (automatically) in 3459newer BIOS code. 3460 3461iASL/Disassembler: Fixed an ordering issue for emitted External() ASL 3462statements that could cause errors when the disassembled file is 3463compiled. ACPICA BZ 1243. David Box. 3464 3465iASL: Fixed a regression caused by the merger of the two versions of the 3466local strtoul64. Because of a dependency on a global variable, strtoul64 3467could return an error for integers greater than a 32-bit value. ACPICA BZ 34681260. 3469 3470iASL: Fixed a regression where a fault could occur for an ASL Return 3471statement if it invokes a control method that is not resolved. ACPICA BZ 34721264. 3473 3474AcpiXtract: Improved input file validation: detection of binary files and 3475non-acpidump text files. 3476 3477---------------------------------------- 347812 February 2016. Summary of changes for version 20160212: 3479 34801) ACPICA kernel-resident subsystem: 3481 3482Implemented full support for the ACPI 6.1 specification (released in 3483January). This version of the specification is available at: 3484http://www.uefi.org/specifications 3485 3486Only a relatively small number of changes were required in ACPICA to 3487support ACPI 6.1, in these areas: 3488- New predefined names 3489- New _HID values 3490- A new subtable for HEST 3491- A few other header changes for new values 3492 3493Ensure \_SB_._INI is executed before any _REG methods are executed. There 3494appears to be existing BIOS code that relies on this behavior. Lv Zheng. 3495 3496Reverted a change made in version 20151218 which enabled method 3497invocations to be targets of various ASL operators (SuperName and Target 3498grammar elements). While the new behavior is supported by the ACPI 3499specification, other AML interpreters do not support this behavior and 3500never will. The ACPI specification will be updated for ACPI 6.2 to remove 3501this support. Therefore, the change was reverted to the original ACPICA 3502behavior. 3503 3504ACPICA now supports the GCC 6 compiler. 3505 3506Current Release: (Note: build changes increased sizes) 3507 Non-Debug Version: 136.2K Code, 51.5K Data, 187.7K Total 3508 Debug Version: 200.4K Code, 82.0K Data, 282.4K Total 3509Previous Release: 3510 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 3511 Debug Version: 200.4K Code, 81.9K Data, 282.3K Total 3512 3513 35142) iASL Compiler/Disassembler and Tools: 3515 3516Completed full support for the ACPI 6.0 External() AML opcode. The 3517compiler emits an external AML opcode for each ASL External statement. 3518This opcode is used by the disassembler to assist with the disassembly of 3519external control methods by specifying the required number of arguments 3520for the method. AML interpreters do not use this opcode. To ensure that 3521interpreters do not even see the opcode, a block of one or more external 3522opcodes is surrounded by an "If(0)" construct. As this feature becomes 3523commonly deployed in BIOS code, the ability of disassemblers to correctly 3524disassemble AML code will be greatly improved. David Box. 3525 3526iASL: Implemented support for an optional cross-reference output file. 3527The -lx option will create a the cross-reference file with the suffix 3528"xrf". Three different types of cross-reference are created in this file: 3529- List of object references made from within each control method 3530- Invocation (caller) list for each user-defined control method 3531- List of references to each non-method object in the namespace 3532 3533iASL: Method invocations as ASL Target operands are now disallowed and 3534flagged as errors in preparation for ACPI 6.2 (see the description of the 3535problem above). 3536 3537---------------------------------------- 35388 January 2016. Summary of changes for version 20160108: 3539 35401) ACPICA kernel-resident subsystem: 3541 3542Updated all ACPICA copyrights and signons to 2016: Added the 2016 3543copyright to all source code module headers and utility/tool signons. 3544This includes the standard Linux dual-license header. This affects 3545virtually every file in the ACPICA core subsystem, iASL compiler, all 3546ACPICA utilities, and the ACPICA test suite. 3547 3548Fixed a regression introduced in version 20151218 concerning the 3549execution of so-called module-level ASL/AML code. Namespace objects 3550created under a module-level If() construct were not properly/fully 3551entered into the namespace and could cause an interpreter fault when 3552accessed. 3553 3554Example Code and Data Size: These are the sizes for the OS-independent 3555acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3556debug version of the code includes the debug output trace mechanism and 3557has a much larger code and data size. 3558 3559Current Release: 3560 Non-Debug Version: 102.7K Code, 28.4K Data, 131.1K Total 3561 Debug Version: 200.4K Code, 81.9K Data, 282.4K Total 3562 Previous Release: 3563 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 3564 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 3565 3566 35672) iASL Compiler/Disassembler and Tools: 3568 3569Fixed a problem with the compilation of the GpioIo and GpioInt resource 3570descriptors. The _PIN field name was incorrectly defined to be an array 3571of 32-bit values, but the _PIN values are in fact 16 bits each. This 3572would cause incorrect bit width warnings when using Word (16-bit) fields 3573to access the descriptors. 3574 3575 3576---------------------------------------- 357718 December 2015. Summary of changes for version 20151218: 3578 35791) ACPICA kernel-resident subsystem: 3580 3581Implemented per-AML-table execution of "module-level code" as individual 3582ACPI tables are loaded into the namespace during ACPICA initialization. 3583In other words, any module-level code within an AML table is executed 3584immediately after the table is loaded, instead of batched and executed 3585after all of the tables have been loaded. This provides compatibility 3586with other ACPI implementations. ACPICA BZ 1219. Bob Moore, Lv Zheng, 3587David Box. 3588 3589To fully support the feature above, the default operation region handlers 3590for the SystemMemory, SystemIO, and PCI_Config address spaces are now 3591installed before any ACPI tables are loaded. This enables module-level 3592code to access these address spaces during the table load and module- 3593level code execution phase. ACPICA BZ 1220. Bob Moore, Lv Zheng, David 3594Box. 3595 3596Implemented several changes to the internal _REG support in conjunction 3597with the changes above. Also, changes to the AcpiExec/AcpiNames/Examples 3598utilities for the changes above. Although these tools were changed, host 3599operating systems that simply use the default handlers for SystemMemory, 3600SystemIO, and PCI_Config spaces should not require any update. Lv Zheng. 3601 3602For example, in the code below, DEV1 is conditionally added to the 3603namespace by the DSDT via module-level code that accesses an operation 3604region. The SSDT references DEV1 via the Scope operator. DEV1 must be 3605created immediately after the DSDT is loaded in order for the SSDT to 3606successfully reference DEV1. Previously, this code would cause an 3607AE_NOT_EXIST exception during the load of the SSDT. Now, this code is 3608fully supported by ACPICA. 3609 3610 DefinitionBlock ("", "DSDT", 2, "Intel", "DSDT1", 1) 3611 { 3612 OperationRegion (OPR1, SystemMemory, 0x400, 32) 3613 Field (OPR1, AnyAcc, NoLock, Preserve) 3614 { 3615 FLD1, 1 3616 } 3617 If (FLD1) 3618 { 3619 Device (\DEV1) 3620 { 3621 } 3622 } 3623 } 3624 DefinitionBlock ("", "SSDT", 2, "Intel", "SSDT1", 1) 3625 { 3626 External (\DEV1, DeviceObj) 3627 Scope (\DEV1) 3628 { 3629 } 3630 } 3631 3632Fixed an AML interpreter problem where control method invocations were 3633not handled correctly when the invocation was itself a SuperName argument 3634to another ASL operator. In these cases, the method was not invoked. 3635ACPICA BZ 1002. Affects the following ASL operators that have a SuperName 3636argument: 3637 Store 3638 Acquire, Wait 3639 CondRefOf, RefOf 3640 Decrement, Increment 3641 Load, Unload 3642 Notify 3643 Signal, Release, Reset 3644 SizeOf 3645 3646Implemented automatic String-to-ObjectReference conversion support for 3647packages returned by predefined names (such as _DEP). A common BIOS error 3648is to add double quotes around an ObjectReference namepath, which turns 3649the reference into an unexpected string object. This support detects the 3650problem and corrects it before the package is returned to the caller that 3651invoked the method. Lv Zheng. 3652 3653Implemented extensions to the Concatenate operator. Concatenate now 3654accepts any type of object, it is not restricted to simply 3655Integer/String/Buffer. For objects other than these 3 basic data types, 3656the argument is treated as a string containing the name of the object 3657type. This expands the utility of Concatenate and the Printf/Fprintf 3658macros. ACPICA BZ 1222. 3659 3660Cleaned up the output of the ASL Debug object. The timer() value is now 3661optional and no longer emitted by default. Also, the basic data types of 3662Integer/String/Buffer are simply emitted as their values, without a data 3663type string -- since the data type is obvious from the output. ACPICA BZ 36641221. 3665 3666Example Code and Data Size: These are the sizes for the OS-independent 3667acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3668debug version of the code includes the debug output trace mechanism and 3669has a much larger code and data size. 3670 3671 Current Release: 3672 Non-Debug Version: 102.6K Code, 28.4K Data, 131.0K Total 3673 Debug Version: 200.3K Code, 81.9K Data, 282.3K Total 3674 Previous Release: 3675 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 3676 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 3677 3678 36792) iASL Compiler/Disassembler and Tools: 3680 3681iASL: Fixed some issues with the ASL Include() operator. This operator 3682was incorrectly defined in the iASL parser rules, causing a new scope to 3683be opened for the code within the include file. This could lead to 3684several issues, including allowing ASL code that is technically illegal 3685and not supported by AML interpreters. Note, this does not affect the 3686related #include preprocessor operator. ACPICA BZ 1212. 3687 3688iASL/Disassembler: Implemented support for the ASL ElseIf operator. This 3689operator is essentially an ASL macro since there is no AML opcode 3690associated with it. The code emitted by the iASL compiler for ElseIf is 3691an Else opcode followed immediately by an If opcode. The disassembler 3692will now emit an ElseIf if it finds an Else immediately followed by an 3693If. This simplifies the decoded ASL, especially for deeply nested 3694If..Else and large Switch constructs. Thus, the disassembled code more 3695closely follows the original source ASL. ACPICA BZ 1211. Example: 3696 3697 Old disassembly: 3698 Else 3699 { 3700 If (Arg0 == 0x02) 3701 { 3702 Local0 = 0x05 3703 } 3704 } 3705 3706 New disassembly: 3707 ElseIf (Arg0 == 0x02) 3708 { 3709 Local0 = 0x05 3710 } 3711 3712AcpiExec: Added support for the new module level code behavior and the 3713early region installation. This required a small change to the 3714initialization, since AcpiExec must install its own operation region 3715handlers. 3716 3717AcpiExec: Added support to make the debug object timer optional. Default 3718is timer disabled. This cleans up the debug object output -- the timer 3719data is rarely used. 3720 3721AcpiExec: Multiple ACPI tables are now loaded in the order that they 3722appear on the command line. This can be important when there are 3723interdependencies/references between the tables. 3724 3725iASL/Templates. Add support to generate template files with multiple 3726SSDTs within a single output file. Also added ommand line support to 3727specify the number of SSDTs (in addition to a single DSDT). ACPICA BZ 37281223, 1225. 3729 3730 3731---------------------------------------- 373224 November 2015. Summary of changes for version 20151124: 3733 37341) ACPICA kernel-resident subsystem: 3735 3736Fixed a possible regression for a previous update to FADT handling. The 3737FADT no longer has a fixed table ID, causing some issues with code that 3738was hardwired to a specific ID. Lv Zheng. 3739 3740Fixed a problem where the method auto-serialization could interfere with 3741the current SyncLevel. This change makes the auto-serialization support 3742transparent to the SyncLevel support and management. 3743 3744Removed support for the _SUB predefined name in AcpiGetObjectInfo. This 3745interface is intended for early access to the namespace during the 3746initial namespace device discovery walk. The _SUB method has been seen to 3747access operation regions in some cases, causing errors because the 3748operation regions are not fully initialized. 3749 3750AML Debugger: Fixed some issues with the terminate/quit/exit commands 3751that can cause faults. Lv Zheng. 3752 3753AML Debugger: Add thread ID support so that single-step mode only applies 3754to the AML Debugger thread. This prevents runtime errors within some 3755kernels. Lv Zheng. 3756 3757Eliminated extraneous warnings from AcpiGetSleepTypeData. Since the _Sx 3758methods that are invoked by this interface are optional, removed warnings 3759emitted for the case where one or more of these methods do not exist. 3760ACPICA BZ 1208, original change by Prarit Bhargava. 3761 3762Made a major pass through the entire ACPICA source code base to 3763standardize formatting that has diverged a bit over time. There are no 3764functional changes, but this will of course cause quite a few code 3765differences from the previous ACPICA release. 3766 3767Example Code and Data Size: These are the sizes for the OS-independent 3768acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3769debug version of the code includes the debug output trace mechanism and 3770has a much larger code and data size. 3771 3772 Current Release: 3773 Non-Debug Version: 102.0K Code, 28.3K Data, 130.3K Total 3774 Debug Version: 199.6K Code, 81.8K Data, 281.4K Total 3775 Previous Release: 3776 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3777 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3778 3779 37802) iASL Compiler/Disassembler and Tools: 3781 3782iASL/acpiexec/acpixtract/disassembler: Added support to allow multiple 3783definition blocks within a single ASL file and the resulting AML file. 3784Support for this type of file was also added to the various tools that 3785use binary AML files: acpiexec, acpixtract, and the AML disassembler. The 3786example code below shows two definition blocks within the same file: 3787 3788 DefinitionBlock ("dsdt.aml", "DSDT", 2, "Intel", "Template", 37890x12345678) 3790 { 3791 } 3792 DefinitionBlock ("", "SSDT", 2, "Intel", "Template", 0xABCDEF01) 3793 { 3794 } 3795 3796iASL: Enhanced typechecking for the Name() operator. All expressions for 3797the value of the named object must be reduced/folded to a single constant 3798at compile time, as per the ACPI specification (the AML definition of 3799Name()). 3800 3801iASL: Fixed some code indentation issues for the -ic and -ia options (C 3802and assembly headers). Now all emitted code correctly begins in column 1. 3803 3804iASL: Added an error message for an attempt to open a Scope() on an 3805object defined in an SSDT. The DSDT is always loaded into the namespace 3806first, so any attempt to open a Scope on an SSDT object will fail at 3807runtime. 3808 3809 3810---------------------------------------- 381130 September 2015. Summary of changes for version 20150930: 3812 38131) ACPICA kernel-resident subsystem: 3814 3815Debugger: Implemented several changes and bug fixes to assist support for 3816the in-kernel version of the AML debugger. Lv Zheng. 3817- Fix the "predefined" command for in-kernel debugger. 3818- Do not enter debug command loop for the help and version commands. 3819- Disallow "execute" command during execution/single-step of a method. 3820 3821Interpreter: Updated runtime typechecking for all operators that have 3822target operands. The operand is resolved and validated that it is legal. 3823For example, the target cannot be a non-data object such as a Device, 3824Mutex, ThermalZone, etc., as per the ACPI specification. 3825 3826Debugger: Fixed the double-mutex user I/O handshake to work when local 3827deadlock detection is enabled. 3828 3829Debugger: limited display of method locals and arguments (LocalX and 3830ArgX) to only those that have actually been initialized. This prevents 3831lines of extraneous output. 3832 3833Updated the definition of the NFIT table to correct the bit polarity of 3834one flag: ACPI_NFIT_MEM_ARMED --> ACPI_NFIT_MEM_NOT_ARMED 3835 3836Example Code and Data Size: These are the sizes for the OS-independent 3837acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3838debug version of the code includes the debug output trace mechanism and 3839has a much larger code and data size. 3840 3841 Current Release: 3842 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 3843 Debug Version: 199.3K Code, 81.4K Data, 280.7K Total 3844 Previous Release: 3845 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3846 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3847 3848 38492) iASL Compiler/Disassembler and Tools: 3850 3851iASL: Improved the compile-time typechecking for operands of many of the 3852ASL operators: 3853 3854-- Added an option to disable compiler operand/operator typechecking (- 3855ot). 3856 3857-- For the following operators, the TermArg operands are now validated 3858when possible to be Integer data objects: BankField, OperationRegion, 3859DataTableRegion, Buffer, and Package. 3860 3861-- Store (Source, Target): Both the source and target operands are 3862resolved and checked that the operands are both legal. For example, 3863neither operand can be a non-data object such as a Device, Mutex, 3864ThermalZone, etc. Note, as per the ACPI specification, the CopyObject 3865operator can be used to store an object to any type of target object. 3866 3867-- Store (Source, Target): If the source is a Package object, the target 3868must be a Package object, LocalX, ArgX, or Debug. Likewise, if the target 3869is a Package, the source must also be a Package. 3870 3871-- Store (Source, Target): A warning is issued if the source and target 3872resolve to the identical named object. 3873 3874-- Store (Source, <method invocation>): An error is generated for the 3875target method invocation, as this construct is not supported by the AML 3876interpreter. 3877 3878-- For all ASL math and logic operators, the target operand must be a 3879data object (Integer, String, Buffer, LocalX, ArgX, or Debug). This 3880includes the function return value also. 3881 3882-- External declarations are also included in the typechecking where 3883possible. External objects defined using the UnknownObj keyword cannot be 3884typechecked, however. 3885 3886iASL and Disassembler: Added symbolic (ASL+) support for the ASL Index 3887operator: 3888- Legacy code: Index(PKG1, 3) 3889- New ASL+ code: PKG1[3] 3890This completes the ACPI 6.0 ASL+ support as it was the only operator not 3891supported. 3892 3893iASL: Fixed the file suffix for the preprocessor output file (.i). Two 3894spaces were inadvertently appended to the filename, causing file access 3895and deletion problems on some systems. 3896 3897ASL Test Suite (ASLTS): Updated the master makefile to generate all 3898possible compiler output files when building the test suite -- thus 3899exercising these features of the compiler. These files are automatically 3900deleted when the test suite exits. 3901 3902 3903---------------------------------------- 390418 August 2015. Summary of changes for version 20150818: 3905 39061) ACPICA kernel-resident subsystem: 3907 3908Fix a regression for AcpiGetTableByIndex interface causing it to fail. Lv 3909Zheng. ACPICA BZ 1186. 3910 3911Completed development to ensure that the ACPICA Disassembler and Debugger 3912are fully standalone components of ACPICA. Removed cross-component 3913dependences. Lv Zheng. 3914 3915The max-number-of-AML-loops is now runtime configurable (previously was 3916compile-time only). This is essentially a loop timeout to force-abort 3917infinite AML loops. ACPCIA BZ 1192. 3918 3919Debugger: Cleanup output to dump ACPI names and namepaths without any 3920trailing underscores. Lv Zheng. ACPICA BZ 1135. 3921 3922Removed unnecessary conditional compilations across the Debugger and 3923Disassembler components where entire modules could be left uncompiled. 3924 3925The aapits test is deprecated and has been removed from the ACPICA git 3926tree. The test has never been completed and has not been maintained, thus 3927becoming rather useless. ACPICA BZ 1015, 794. 3928 3929A batch of small changes to close bugzilla and other reports: 3930- Remove duplicate code for _PLD processing. ACPICA BZ 1176. 3931- Correctly cleanup after a ACPI table load failure. ACPICA BZ 1185. 3932- iASL: Support POSIX yacc again in makefile. Jung-uk Kim. 3933- ACPI table support: general cleanup and simplification. Lv Zheng, Bob 3934Moore. 3935- ACPI table support: fix for a buffer read overrun in AcpiTbFindTable. 3936ACPICA BZ 1184. 3937- Enhance parameter validation for DataTableRegion and LoadTable ASL/AML 3938operators. 3939- Debugger: Split debugger initialization/termination interfaces. Lv 3940Zheng. 3941- AcpiExec: Emit OemTableId for SSDTs during the load phase for table 3942identification. 3943- AcpiExec: Add debug message during _REG method phase during table 3944load/init. 3945- AcpiNames: Fix a regression where some output was missing and no longer 3946emitted. 3947- Debugger: General cleanup and simplification. Lv Zheng. 3948- Disassembler: Cleanup use of several global option variables. Lv Zheng. 3949 3950Example Code and Data Size: These are the sizes for the OS-independent 3951acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 3952debug version of the code includes the debug output trace mechanism and 3953has a much larger code and data size. 3954 3955 Current Release: 3956 Non-Debug Version: 101.3K Code, 27.7K Data, 129.0K Total 3957 Debug Version: 198.6K Code, 80.9K Data, 279.5K Total 3958 Previous Release: 3959 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 3960 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 3961 3962 39632) iASL Compiler/Disassembler and Tools: 3964 3965AcpiExec: Fixed a problem where any more than 32 ACPI tables in the XSDT 3966were not handled properly and caused load errors. Now, properly invoke 3967and use the ACPICA auto-reallocate mechanism for ACPI table data 3968structures. ACPICA BZ 1188 3969 3970AcpiNames: Add command-line wildcard support for ACPI table files. ACPICA 3971BZ 1190. 3972 3973AcpiExec and AcpiNames: Add -l option to load ACPI tables only. For 3974AcpiExec, this means that no control methods (like _REG/_INI/_STA) are 3975executed during initialization. ACPICA BZ 1187, 1189. 3976 3977iASL/Disassembler: Implemented a prototype "listing" mode that emits AML 3978that corresponds to each disassembled ASL statement, to simplify 3979debugging. ACPICA BZ 1191. 3980 3981Debugger: Add option to the "objects" command to display a summary of the 3982current namespace objects (Object type and count). This is displayed if 3983the command is entered with no arguments. 3984 3985AcpiNames: Add -x option to specify debug level, similar to AcpiExec. 3986 3987 3988---------------------------------------- 398917 July 2015. Summary of changes for version 20150717: 3990 39911) ACPICA kernel-resident subsystem: 3992 3993Improved the partitioning between the Debugger and Disassembler 3994components. This allows the Debugger to be used standalone within kernel 3995code without the Disassembler (which is used for single stepping also). 3996This renames and moves one file, dmobject.c to dbobject.c. Lv Zheng. 3997 3998Debugger: Implemented a new command to trace the execution of control 3999methods (Trace). This is especially useful for the in-kernel version of 4000the debugger when file I/O may not be available for method trace output. 4001See the ACPICA reference for more information. Lv Zheng. 4002 4003Moved all C library prototypes (used for the local versions of these 4004functions when requested) to a new header, acclib.h 4005Cleaned up the use of non-ANSI C library functions. These functions are 4006implemented locally in ACPICA. Moved all such functions to a common 4007source file, utnonansi.c 4008 4009Debugger: Fixed a problem with the "!!" command (get last command 4010executed) where the debugger could enter an infinite loop and eventually 4011crash. 4012 4013Removed the use of local macros that were used for some of the standard C 4014library functions to automatically cast input parameters. This mostly 4015affected the is* functions where the input parameter is defined to be an 4016int. This required a few modifications to the main ACPICA source code to 4017provide casting for these functions and eliminate possible compiler 4018warnings for these parameters. 4019 4020Across the source code, added additional status/error checking to resolve 4021issues discovered by static source code analysis tools such as Coverity. 4022 4023Example Code and Data Size: These are the sizes for the OS-independent 4024acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4025debug version of the code includes the debug output trace mechanism and 4026has a much larger code and data size. 4027 4028 Current Release: 4029 Non-Debug Version: 100.9K Code, 24.5K Data, 125.4K Total 4030 Debug Version: 197.8K Code, 81.5K Data, 279.3K Total 4031 Previous Release: 4032 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 4033 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 4034 4035 40362) iASL Compiler/Disassembler and Tools: 4037 4038iASL: Fixed a regression where the device map file feature no longer 4039worked properly when used in conjunction with the disassembler. It only 4040worked properly with the compiler itself. 4041 4042iASL: Implemented a new warning for method LocalX variables that are set 4043but never used (similar to a C compiler such as gcc). This also applies 4044to ArgX variables that are not defined by the parent method, and are 4045instead (legally) used as local variables. 4046 4047iASL/Preprocessor: Finished the pass-through of line numbers from the 4048preprocessor to the compiler. This ensures that compiler errors/warnings 4049have the correct original line numbers and filenames, regardless of any 4050#include files. 4051 4052iASL/Preprocessor: Fixed a couple of issues with comment handling and the 4053pass-through of comments to the preprocessor output file (which becomes 4054the compiler input file). Also fixed a problem with // comments that 4055appear after a math expression. 4056 4057iASL: Added support for the TCPA server table to the table compiler and 4058template generator. (The client table was already previously supported) 4059 4060iASL/Preprocessor: Added a permanent #define of the symbol "__IASL__" to 4061identify the iASL compiler. 4062 4063Cleaned up the use of the macros NEGATIVE and POSITIVE which were defined 4064multiple times. The new names are ACPI_SIGN_NEGATIVE and 4065ACPI_SIGN_POSITIVE. 4066 4067AcpiHelp: Update to expand help messages for the iASL preprocessor 4068directives. 4069 4070 4071---------------------------------------- 407219 June 2015. Summary of changes for version 20150619: 4073 4074Two regressions in version 20150616 have been addressed: 4075 4076Fixes some problems/issues with the C library macro removal (ACPI_STRLEN, 4077etc.) This update changes ACPICA to only use the standard headers for 4078functions, or the prototypes for the local versions of the C library 4079functions. Across the source code, this required some additional casts 4080for some Clib invocations for portability. Moved all local prototypes to 4081a new file, acclib.h 4082 4083Fixes several problems with recent changes to the handling of the FACS 4084table that could cause some systems not to boot. 4085 4086 4087---------------------------------------- 408816 June 2015. Summary of changes for version 20150616: 4089 4090 40911) ACPICA kernel-resident subsystem: 4092 4093Across the entire ACPICA source code base, the various macros for the C 4094library functions (such as ACPI_STRLEN, etc.) have been removed and 4095replaced by the standard C library names (strlen, etc.) The original 4096purpose for these macros is no longer applicable. This simplification 4097reduces the number of macros used in the ACPICA source code 4098significantly, improving readability and maintainability. 4099 4100Implemented support for a new ACPI table, the OSDT. This table, the 4101"override" SDT, can be loaded directly by the host OS at boot time. It 4102enables the replacement of existing namespace objects that were installed 4103via the DSDT and/or SSDTs. The primary purpose for this is to replace 4104buggy or incorrect ASL/AML code obtained via the BIOS. The OSDT is slated 4105for inclusion in a future version of the ACPI Specification. Lv Zheng/Bob 4106Moore. 4107 4108Added support for systems with (improperly) two FACS tables -- a "32-bit" 4109table (via FADT 32-bit legacy field) and a "64-bit" table (via the 64-bit 4110X field). This change will support both automatically. There continues to 4111be systems found with this issue. This support requires a change to the 4112AcpiSetFirmwareWakingVector interface. Also, a public global variable has 4113been added to allow the host to select which FACS is desired 4114(AcpiGbl_Use32BitFacsAddresses). See the ACPICA reference for more 4115details Lv Zheng. 4116 4117Added a new feature to allow for systems that do not contain an FACS. 4118Although this is already supported on hardware-reduced platforms, the 4119feature has been extended for all platforms. The reasoning is that we do 4120not want to abort the entire ACPICA initialization just because the 4121system is seriously buggy and has no FACS. 4122 4123Fixed a problem where the GUID strings for NFIT tables (in acuuid.h) were 4124not correctly transcribed from the ACPI specification in ACPICA version 412520150515. 4126 4127Implemented support for the _CLS object in the AcpiGetObjectInfo external 4128interface. 4129 4130Updated the definitions of the TCPA and TPM2 ACPI tables to the more 4131recent TCG ACPI Specification, December 14, 2014. Table disassembler and 4132compiler also updated. Note: The TCPA "server" table is not supported by 4133the disassembler/table-compiler at this time. 4134 4135ACPI 6.0: Added definitions for the new GIC version field in the MADT. 4136 4137Example Code and Data Size: These are the sizes for the OS-independent 4138acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4139debug version of the code includes the debug output trace mechanism and 4140has a much larger code and data size. 4141 4142 Current Release: 4143 Non-Debug Version: 100.6K Code, 27.6K Data, 128.2K Total 4144 Debug Version: 196.2K Code, 81.0K Data, 277.2K Total 4145 Previous Release: 4146 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 4147 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 4148 4149 41502) iASL Compiler/Disassembler and Tools: 4151 4152Disassembler: Fixed a problem with the new symbolic operator disassembler 4153where incorrect ASL code could be emitted in some cases for the "non- 4154commutative" operators -- Subtract, Divide, Modulo, ShiftLeft, and 4155ShiftRight. The actual problem cases seem to be rather unusual in common 4156ASL code, however. David Box. 4157 4158Modified the linux version of acpidump to obtain ACPI tables from not 4159just /dev/mem (which may not exist) and /sys/firmware/acpi/tables. Lv 4160Zheng. 4161 4162iASL: Fixed a problem where the user preprocessor output file (.i) 4163contained extra data that was not expected. The compiler was using this 4164file as a temporary file and passed through #line directives in order to 4165keep compiler error messages in sync with the input file and line number 4166across multiple include files. The (.i) is no longer a temporary file as 4167the compiler uses a new, different file for the original purpose. 4168 4169iASL: Fixed a problem where comments within the original ASL source code 4170file were not passed through to the preprocessor output file, nor any 4171listing files. 4172 4173iASL: Fixed some issues for the handling of the "#include" preprocessor 4174directive and the similar (but not the same) "Include" ASL operator. 4175 4176iASL: Add support for the new OSDT in both the disassembler and compiler. 4177 4178iASL: Fixed a problem with the constant folding support where a Buffer 4179object could be incorrectly generated (incorrectly formed) during a 4180conversion to a Store() operator. 4181 4182AcpiHelp: Updated for new NFIT GUIDs, "External" AML opcode, and new 4183description text for the _REV predefined name. _REV now permanently 4184returns 2, as per the ACPI 6.0 specification. 4185 4186Debugger: Enhanced the output of the Debug ASL object for references 4187produced by the Index operator. For Buffers and strings, only output the 4188actual byte pointed to by the index. For packages, only print the single 4189package element decoded by the index. Previously, the entire 4190buffer/string/package was emitted. 4191 4192iASL/Table-compiler: Fixed a regression where the "generic" data types 4193were no longer recognized, causing errors. 4194 4195 4196---------------------------------------- 419715 May 2015. Summary of changes for version 20150515: 4198 4199This release implements most of ACPI 6.0 as described below. 4200 42011) ACPICA kernel-resident subsystem: 4202 4203Implemented runtime argument checking and return value checking for all 4204new ACPI 6.0 predefined names. This includes: _BTH, _CR3, _DSD, _LPI, 4205_MTL, _PRR, _RDI, _RST, _TFP, _TSN. 4206 4207Example Code and Data Size: These are the sizes for the OS-independent 4208acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4209debug version of the code includes the debug output trace mechanism and 4210has a much larger code and data size. 4211 4212 Current Release: 4213 Non-Debug Version: 99.9K Code, 27.5K Data, 127.4K Total 4214 Debug Version: 195.2K Code, 80.8K Data, 276.0K Total 4215 Previous Release: 4216 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 4217 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 4218 4219 42202) iASL Compiler/Disassembler and Tools: 4221 4222iASL compiler: Added compile-time support for all new ACPI 6.0 predefined 4223names (argument count validation and return value typechecking.) 4224 4225iASL disassembler and table compiler: implemented support for all new 4226ACPI 6.0 tables. This includes: DRTM, IORT, LPIT, NFIT, STAO, WPBT, XENV. 4227 4228iASL disassembler and table compiler: Added ACPI 6.0 changes to existing 4229tables: FADT, MADT. 4230 4231iASL preprocessor: Added a new directive to enable inclusion of binary 4232blobs into ASL code. The new directive is #includebuffer. It takes a 4233binary file as input and emits a named ascii buffer object into the ASL 4234code. 4235 4236AcpiHelp: Added support for all new ACPI 6.0 predefined names. 4237 4238AcpiHelp: Added a new option, -d, to display all iASL preprocessor 4239directives. 4240 4241AcpiHelp: Added a new option, -t, to display all known/supported ACPI 4242tables. 4243 4244 4245---------------------------------------- 424610 April 2015. Summary of changes for version 20150410: 4247 4248Reverted a change introduced in version 20150408 that caused 4249a regression in the disassembler where incorrect operator 4250symbols could be emitted. 4251 4252 4253---------------------------------------- 425408 April 2015. Summary of changes for version 20150408: 4255 4256 42571) ACPICA kernel-resident subsystem: 4258 4259Permanently set the return value for the _REV predefined name. It now 4260returns 2 (was 5). This matches other ACPI implementations. _REV will be 4261deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 4262for ACPI 2.0 and later. It should never be used to differentiate or 4263identify operating systems. 4264 4265Added the "Windows 2015" string to the _OSI support. ACPICA will now 4266return TRUE to a query with this string. 4267 4268Fixed several issues with the local version of the printf function. 4269 4270Added the C99 compiler option (-std=c99) to the Unix makefiles. 4271 4272 Current Release: 4273 Non-Debug Version: 99.9K Code, 27.4K Data, 127.3K Total 4274 Debug Version: 195.2K Code, 80.7K Data, 275.9K Total 4275 Previous Release: 4276 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4277 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4278 4279 42802) iASL Compiler/Disassembler and Tools: 4281 4282iASL: Implemented an enhancement to the constant folding feature to 4283transform the parse tree to a simple Store operation whenever possible: 4284 Add (2, 3, X) ==> is converted to: Store (5, X) 4285 X = 2 + 3 ==> is converted to: Store (5, X) 4286 4287Updated support for the SLIC table (Software Licensing Description Table) 4288in both the Data Table compiler and the disassembler. The SLIC table 4289support now conforms to "Microsoft Software Licensing Tables (SLIC and 4290MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: Any SLIC data 4291following the ACPI header is now defined to be "Proprietary Data", and as 4292such, can only be entered or displayed as a hex data block. 4293 4294Implemented full support for the MSDM table as described in the document 4295above. Note: The format of MSDM is similar to SLIC. Any MSDM data 4296following the ACPI header is defined to be "Proprietary Data", and can 4297only be entered or displayed as a hex data block. 4298 4299Implemented the -Pn option for the iASL Table Compiler (was only 4300implemented for the ASL compiler). This option disables the iASL 4301preprocessor. 4302 4303Disassembler: For disassembly of Data Tables, added a comment field 4304around the Ascii equivalent data that is emitted as part of the "Raw 4305Table Data" block. This prevents the iASL Preprocessor from possible 4306confusion if/when the table is compiled. 4307 4308Disassembler: Added an option (-df) to force the disassembler to assume 4309that the table being disassembled contains valid AML. This feature is 4310useful for disassembling AML files that contain ACPI signatures other 4311than DSDT or SSDT (such as OEMx or other signatures). 4312 4313Changes for the EFI version of the tools: 43141) Fixed a build error/issue 43152) Fixed a cast warning 4316 4317iASL: Fixed a path issue with the __FILE__ operator by making the 4318directory prefix optional within the internal SplitInputFilename 4319function. 4320 4321Debugger: Removed some unused global variables. 4322 4323Tests: Updated the makefile for proper generation of the AAPITS suite. 4324 4325 4326---------------------------------------- 432704 February 2015. Summary of changes for version 20150204: 4328 4329ACPICA kernel-resident subsystem: 4330 4331Updated all ACPICA copyrights and signons to 2014. Added the 2014 4332copyright to all module headers and signons, including the standard Linux 4333header. This affects virtually every file in the ACPICA core subsystem, 4334iASL compiler, all ACPICA utilities, and the test suites. 4335 4336Events: Introduce ACPI_GPE_DISPATCH_RAW_HANDLER to fix GPE storm issues. 4337A raw gpe handling mechanism was created to allow better handling of GPE 4338storms that aren't easily managed by the normal handler. The raw handler 4339allows disabling/renabling of the GPE so that interrupt storms can be 4340avoided in cases where events cannot be timely serviced. In this 4341scenario, handlers should use the AcpiSetGpe() API to disable/enable the 4342GPE. This API will leave the reference counts undisturbed, thereby 4343preventing unintentional clearing of the GPE when the intent in only to 4344temporarily disable it. Raw handlers allow enabling and disabling of a 4345GPE by removing GPE register locking. As such, raw handlers much provide 4346their own locks while using GPE API's to protect access to GPE data 4347structures. 4348Lv Zheng 4349 4350Events: Always modify GPE registers under the GPE lock. 4351Applies GPE lock around AcpiFinishGpe() to protect access to GPE register 4352values. Reported as bug by joe.liu@apple.com. 4353 4354Unix makefiles: Separate option to disable optimizations and 4355_FORTIFY_SOURCE. This change removes the _FORTIFY_SOURCE flag from the 4356NOOPT disable option and creates a separate flag (NOFORTIFY) for this 4357purpose. Some toolchains may define _FORTIFY_SOURCE which leads redefined 4358errors when building ACPICA. This allows disabling the option without 4359also having to disable optimazations. 4360David Box 4361 4362 Current Release: 4363 Non-Debug Version: 101.7K Code, 27.9K Data, 129.6K Total 4364 Debug Version: 199.2K Code, 82.4K Data, 281.6K Total 4365 4366-- 4367-------------------------------------- 436807 November 2014. Summary of changes for version 20141107: 4369 4370This release is available at https://acpica.org/downloads 4371 4372This release introduces and implements language extensions to ASL that 4373provide support for symbolic ("C-style") operators and expressions. These 4374language extensions are known collectively as ASL+. 4375 4376 43771) iASL Compiler/Disassembler and Tools: 4378 4379Disassembler: Fixed a problem with disassembly of the UartSerialBus 4380macro. Changed "StopBitsNone" to the correct "StopBitsZero". David E. 4381Box. 4382 4383Disassembler: Fixed the Unicode macro support to add escape sequences. 4384All non-printable ASCII values are emitted as escape sequences, as well 4385as the standard escapes for quote and backslash. Ensures that the 4386disassembled macro can be correctly recompiled. 4387 4388iASL: Added Printf/Fprintf macros for formatted output. These macros are 4389translated to existing AML Concatenate and Store operations. Printf 4390writes to the ASL Debug object. Fprintf allows the specification of an 4391ASL name as the target. Only a single format specifier is required, %o, 4392since the AML interpreter dynamically converts objects to the required 4393type. David E. Box. 4394 4395 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 4396 (Concatenate (Concatenate (Concatenate ("", Arg0), 4397 ": Unexpected value for "), Arg1), ", "), Arg2), 4398 " at line "), Arg3), Debug) 4399 4400 (new) Printf ("%o: Unexpected value for %o, %o at line %o", 4401 Arg0, Arg1, Arg2, Arg3) 4402 4403 (old) Store (Concatenate (Concatenate (Concatenate (Concatenate 4404 ("", Arg1), ": "), Arg0), " Successful"), STR1) 4405 4406 (new) Fprintf (STR1, "%o: %o Successful", Arg1, Arg0) 4407 4408iASL: Added debug options (-bp, -bt) to dynamically prune levels of the 4409ASL parse tree before the AML code is generated. This allows blocks of 4410ASL code to be removed in order to help locate and identify problem 4411devices and/or code. David E. Box. 4412 4413AcpiExec: Added support (-fi) for an optional namespace object 4414initialization file. This file specifies initial values for namespace 4415objects as necessary for debugging and testing different ASL code paths 4416that may be taken as a result of BIOS options. 4417 4418 44192) Overview of symbolic operator support for ASL (ASL+) 4420------------------------------------------------------- 4421 4422As an extension to the ASL language, iASL implements support for symbolic 4423(C-style) operators for math and logical expressions. This can greatly 4424simplify ASL code as well as improve both readability and 4425maintainability. These language extensions can exist concurrently with 4426all legacy ASL code and expressions. 4427 4428The symbolic extensions are 100% compatible with existing AML 4429interpreters, since no new AML opcodes are created. To implement the 4430extensions, the iASL compiler transforms the symbolic expressions into 4431the legacy ASL/AML equivalents at compile time. 4432 4433Full symbolic expressions are supported, along with the standard C 4434precedence and associativity rules. 4435 4436Full disassembler support for the symbolic expressions is provided, and 4437creates an automatic migration path for existing ASL code to ASL+ code 4438via the disassembly process. By default, the disassembler now emits ASL+ 4439code with symbolic expressions. An option (-dl) is provided to force the 4440disassembler to emit legacy ASL code if desired. 4441 4442Below is the complete list of the currently supported symbolic operators 4443with examples. See the iASL User Guide for additional information. 4444 4445 4446ASL+ Syntax Legacy ASL Equivalent 4447----------- --------------------- 4448 4449 // Math operators 4450 4451Z = X + Y Add (X, Y, Z) 4452Z = X - Y Subtract (X, Y, Z) 4453Z = X * Y Multiply (X, Y, Z) 4454Z = X / Y Divide (X, Y, , Z) 4455Z = X % Y Mod (X, Y, Z) 4456Z = X << Y ShiftLeft (X, Y, Z) 4457Z = X >> Y ShiftRight (X, Y, Z) 4458Z = X & Y And (X, Y, Z) 4459Z = X | Y Or (X, Y, Z) 4460Z = X ^ Y Xor (X, Y, Z) 4461Z = ~X Not (X, Z) 4462X++ Increment (X) 4463X-- Decrement (X) 4464 4465 // Logical operators 4466 4467(X == Y) LEqual (X, Y) 4468(X != Y) LNotEqual (X, Y) 4469(X < Y) LLess (X, Y) 4470(X > Y) LGreater (X, Y) 4471(X <= Y) LLessEqual (X, Y) 4472(X >= Y) LGreaterEqual (X, Y) 4473(X && Y) LAnd (X, Y) 4474(X || Y) LOr (X, Y) 4475(!X) LNot (X) 4476 4477 // Assignment and compound assignment operations 4478 4479X = Y Store (Y, X) 4480X += Y Add (X, Y, X) 4481X -= Y Subtract (X, Y, X) 4482X *= Y Multiply (X, Y, X) 4483X /= Y Divide (X, Y, , X) 4484X %= Y Mod (X, Y, X) 4485X <<= Y ShiftLeft (X, Y, X) 4486X >>= Y ShiftRight (X, Y, X) 4487X &= Y And (X, Y, X) 4488X |= Y Or (X, Y, X) 4489X ^= Y Xor (X, Y, X) 4490 4491 44923) ASL+ Examples: 4493----------------- 4494 4495Legacy ASL: 4496 If (LOr (LOr (LEqual (And (R510, 0x03FB), 0x02E0), LEqual ( 4497 And (R520, 0x03FB), 0x02E0)), LOr (LEqual (And (R530, 44980x03FB), 4499 0x02E0), LEqual (And (R540, 0x03FB), 0x02E0)))) 4500 { 4501 And (MEMB, 0xFFFFFFF0, SRMB) 4502 Store (MEMB, Local2) 4503 Store (PDBM, Local1) 4504 And (PDBM, 0xFFFFFFFFFFFFFFF9, PDBM) 4505 Store (SRMB, MEMB) 4506 Or (PDBM, 0x02, PDBM) 4507 } 4508 4509ASL+ version: 4510 If (((R510 & 0x03FB) == 0x02E0) || 4511 ((R520 & 0x03FB) == 0x02E0) || 4512 ((R530 & 0x03FB) == 0x02E0) || 4513 ((R540 & 0x03FB) == 0x02E0)) 4514 { 4515 SRMB = (MEMB & 0xFFFFFFF0) 4516 Local2 = MEMB 4517 Local1 = PDBM 4518 PDBM &= 0xFFFFFFFFFFFFFFF9 4519 MEMB = SRMB 4520 PDBM |= 0x02 4521 } 4522 4523Legacy ASL: 4524 Store (0x1234, Local1) 4525 Multiply (Add (Add (Local1, TEST), 0x20), Local2, Local3) 4526 Multiply (Local2, Add (Add (Local1, TEST), 0x20), Local3) 4527 Add (Local1, Add (TEST, Multiply (0x20, Local2)), Local3) 4528 Store (Index (PKG1, 0x03), Local6) 4529 Store (Add (Local3, Local2), Debug) 4530 Add (Local1, 0x0F, Local2) 4531 Add (Local1, Multiply (Local2, Local3), Local2) 4532 Multiply (Add (Add (Local1, TEST), 0x20), ToBCD (Local1), Local3) 4533 4534ASL+ version: 4535 Local1 = 0x1234 4536 Local3 = (((Local1 + TEST) + 0x20) * Local2) 4537 Local3 = (Local2 * ((Local1 + TEST) + 0x20)) 4538 Local3 = (Local1 + (TEST + (0x20 * Local2))) 4539 Local6 = Index (PKG1, 0x03) 4540 Debug = (Local3 + Local2) 4541 Local2 = (Local1 + 0x0F) 4542 Local2 = (Local1 + (Local2 * Local3)) 4543 Local3 = (((Local1 + TEST) + 0x20) * ToBCD (Local1)) 4544 4545 4546---------------------------------------- 454726 September 2014. Summary of changes for version 20140926: 4548 45491) ACPICA kernel-resident subsystem: 4550 4551Updated the GPIO operation region handler interface (GeneralPurposeIo). 4552In order to support GPIO Connection objects with multiple pins, along 4553with the related Field objects, the following changes to the interface 4554have been made: The Address is now defined to be the offset in bits of 4555the field unit from the previous invocation of a Connection. It can be 4556viewed as a "Pin Number Index" into the connection resource descriptor. 4557The BitWidth is the exact bit width of the field. It is usually one bit, 4558but not always. See the ACPICA reference guide (section 8.8.6.2.1) for 4559additional information and examples. 4560 4561GPE support: During ACPICA/GPE initialization, ensure that all GPEs with 4562corresponding _Lxx/_Exx methods are disabled (they may have been enabled 4563by the firmware), so that they cannot fire until they are enabled via 4564AcpiUpdateAllGpes. Rafael J. Wysocki. 4565 4566Added a new return flag for the Event/GPE status interfaces -- 4567AcpiGetEventStatus and AcpiGetGpeStatus. The new 4568ACPI_EVENT_FLAGS_HAS_HANDLER flag is used to indicate that the event or 4569GPE currently has a handler associated with it, and can thus actually 4570affect the system. Lv Zheng. 4571 4572Example Code and Data Size: These are the sizes for the OS-independent 4573acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4574debug version of the code includes the debug output trace mechanism and 4575has a much larger code and data size. 4576 4577 Current Release: 4578 Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total 4579 Debug Version: 192.8K Code, 79.9K Data, 272.7K Total 4580 Previous Release: 4581 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4582 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4583 45842) iASL Compiler/Disassembler and Tools: 4585 4586iASL: Fixed a memory allocation/free regression introduced in 20140828 4587that could cause the compiler to crash. This was introduced inadvertently 4588during the effort to eliminate compiler memory leaks. ACPICA BZ 1111, 45891113. 4590 4591iASL: Removed two error messages that have been found to create false 4592positives, until they can be fixed and fully validated (ACPICA BZ 1112): 45931) Illegal forward reference within a method 45942) Illegal reference across two methods 4595 4596iASL: Implemented a new option (-lm) to create a hardware mapping file 4597that summarizes all GPIO, I2C, SPI, and UART connections. This option 4598works for both the compiler and disassembler. See the iASL compiler user 4599guide for additional information and examples (section 6.4.6). 4600 4601AcpiDump: Added support for the version 1 (ACPI 1.0) RSDP in addition to 4602version 2. This corrects the AE_BAD_HEADER exception seen on systems with 4603a version 1 RSDP. Lv Zheng ACPICA BZ 1097. 4604 4605AcpiExec: For Unix versions, don't attempt to put STDIN into raw mode 4606unless STDIN is actually a terminal. Assists with batch-mode processing. 4607ACPICA BZ 1114. 4608 4609Disassembler/AcpiHelp: Added another large group of recognized _HID 4610values. 4611 4612 4613---------------------------------------- 461428 August 2014. Summary of changes for version 20140828: 4615 46161) ACPICA kernel-resident subsystem: 4617 4618Fixed a problem related to the internal use of the Timer() operator where 4619a 64-bit divide could cause an attempted link to a double-precision math 4620library. This divide is not actually necessary, so the code was 4621restructured to eliminate it. Lv Zheng. 4622 4623ACPI 5.1: Added support for the runtime validation of the _DSD package 4624(similar to the iASL support). 4625 4626ACPI 5.1/Headers: Added support for the GICC affinity subtable to the 4627SRAT table. Hanjun Guo <hanjun.guo@linaro.org>. 4628 4629Example Code and Data Size: These are the sizes for the OS-independent 4630acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4631debug version of the code includes the debug output trace mechanism and 4632has a much larger code and data size. 4633 4634 Current Release: 4635 Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total 4636 Debug Version: 192.1K Code, 79.8K Data, 271.9K Total 4637 Previous Release: 4638 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total1 4639 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 4640 46412) iASL Compiler/Disassembler and Tools: 4642 4643AcpiExec: Fixed a problem on unix systems where the original terminal 4644state was not always properly restored upon exit. Seen when using the -v 4645option. ACPICA BZ 1104. 4646 4647iASL: Fixed a problem with the validation of the ranges/length within the 4648Memory24 resource descriptor. There was a boundary condition when the 4649range was equal to the (length -1) caused by the fact that these values 4650are defined in 256-byte blocks, not bytes. ACPICA BZ 1098 4651 4652Disassembler: Fixed a problem with the GpioInt descriptor interrupt 4653polarity 4654flags. The flags are actually 2 bits, not 1, and the "ActiveBoth" keyword 4655is 4656now supported properly. 4657 4658ACPI 5.1: Added the GICC affinity subtable to the SRAT table. Supported 4659in the disassembler, data table compiler, and table template generator. 4660 4661iASL: Added a requirement for Device() objects that one of either a _HID 4662or _ADR must exist within the scope of a Device, as per the ACPI 4663specification. Remove a similar requirement that was incorrectly in place 4664for the _DSD object. 4665 4666iASL: Added error detection for illegal named references within control 4667methods that would cause runtime failures. Now trapped as errors are: 1) 4668References to objects within a non-parent control method. 2) Forward 4669references (within a method) -- for control methods, AML interpreters use 4670a one-pass parse of control methods. ACPICA BZ 1008. 4671 4672iASL: Added error checking for dependencies related to the _PSx power 4673methods. ACPICA BZ 1029. 46741) For _PS0, one of these must exist within the same scope: _PS1, _PS2, 4675_PS3. 46762) For _PS1, _PS2, and PS3: A _PS0 object must exist within the same 4677scope. 4678 4679iASL and table compiler: Cleanup miscellaneous memory leaks by fully 4680deploying the existing object and string caches and adding new caches for 4681the table compiler. 4682 4683iASL: Split the huge parser source file into multiple subfiles to improve 4684manageability. Generation now requires the M4 macro preprocessor, which 4685is part of the Bison distribution on both unix and windows platforms. 4686 4687AcpiSrc: Fixed and removed all extraneous warnings generated during 4688entire ACPICA source code scan and/or conversion. 4689 4690 4691---------------------------------------- 4692 469324 July 2014. Summary of changes for version 20140724: 4694 4695The ACPI 5.1 specification has been released and is available at: 4696http://uefi.org/specs/access 4697 4698 46990) ACPI 5.1 support in ACPICA: 4700 4701ACPI 5.1 is fully supported in ACPICA as of this release. 4702 4703New predefined names. Support includes iASL and runtime ACPICA 4704validation. 4705 _CCA (Cache Coherency Attribute). 4706 _DSD (Device-Specific Data). David Box. 4707 4708Modifications to existing ACPI tables. Support includes headers, iASL 4709Data Table compiler, disassembler, and the template generator. 4710 FADT - New fields and flags. Graeme Gregory. 4711 GTDT - One new subtable and new fields. Tomasz Nowicki. 4712 MADT - Two new subtables. Tomasz Nowicki. 4713 PCCT - One new subtable. 4714 4715Miscellaneous. 4716 New notification type for System Resource Affinity change events. 4717 4718 47191) ACPICA kernel-resident subsystem: 4720 4721Fixed a regression introduced in 20140627 where a fault can happen during 4722the deletion of Alias AML namespace objects. The problem affected both 4723the core ACPICA and the ACPICA tools including iASL and AcpiExec. 4724 4725Implemented a new GPE public interface, AcpiMarkGpeForWake. Provides a 4726simple mechanism to enable wake GPEs that have no associated handler or 4727control method. Rafael Wysocki. 4728 4729Updated the AcpiEnableGpe interface to disallow the enable if there is no 4730handler or control method associated with the particular GPE. This will 4731help avoid meaningless GPEs and even GPE floods. Rafael Wysocki. 4732 4733Updated GPE handling and dispatch by disabling the GPE before clearing 4734the status bit for edge-triggered GPEs. Lv Zheng. 4735 4736Added Timer() support to the AML Debug object. The current timer value is 4737now displayed with each invocation of (Store to) the debug object to 4738enable simple generation of execution times for AML code (method 4739execution for example.) ACPICA BZ 1093. 4740 4741Example Code and Data Size: These are the sizes for the OS-independent 4742acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4743debug version of the code includes the debug output trace mechanism and 4744has a much larger code and data size. 4745 4746 Current Release: 4747 Non-Debug Version: 98.7K Code, 27.3K Data, 126.0K Total 4748 Debug Version: 192.0K Code, 79.7K Data, 271.7K Total 4749 Previous Release: 4750 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 4751 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 4752 4753 47542) iASL Compiler/Disassembler and Tools: 4755 4756Fixed an issue with the recently added local printf implementation, 4757concerning width/precision specifiers that could cause incorrect output. 4758Lv Zheng. ACPICA BZ 1094. 4759 4760Disassembler: Added support to detect buffers that contain UUIDs and 4761disassemble them to an invocation of the ToUUID operator. Also emit 4762commented descriptions of known ACPI-related UUIDs. 4763 4764AcpiHelp: Added support to display known ACPI-related UUIDs. New option, 4765-u. Adds three new files. 4766 4767iASL: Update table compiler and disassembler for DMAR table changes that 4768were introduced in September 2013. With assistance by David Woodhouse. 4769 4770---------------------------------------- 477127 June 2014. Summary of changes for version 20140627: 4772 47731) ACPICA kernel-resident subsystem: 4774 4775Formatted Output: Implemented local versions of standard formatted output 4776utilities such as printf, etc. Over time, it has been discovered that 4777there are in fact many portability issues with printf, and the addition 4778of this feature will fix/prevent these issues once and for all. Some 4779known issues are summarized below: 4780 47811) Output of 64-bit values is not portable. For example, UINT64 is %ull 4782for the Linux kernel and is %uI64 for some MSVC versions. 47832) Invoking printf consistently in a manner that is portable across both 478432-bit and 64-bit platforms is difficult at best in many situations. 47853) The output format for pointers varies from system to system (leading 4786zeros especially), and leads to inconsistent output from ACPICA across 4787platforms. 47884) Certain platform-specific printf formats may conflict with ACPICA use. 47895) If there is no local C library available, ACPICA now has local support 4790for printf. 4791 4792-- To address these printf issues in a complete manner, ACPICA now 4793directly implements a small subset of printf format specifiers, only 4794those that it requires. Adds a new file, utilities/utprint.c. Lv Zheng. 4795 4796Implemented support for ACPICA generation within the EFI environment. 4797Initially, the AcpiDump utility is supported in the UEFI shell 4798environment. Lv Zheng. 4799 4800Added a new external interface, AcpiLogError, to improve ACPICA 4801portability. This allows the host to redirect error messages from the 4802ACPICA utilities. Lv Zheng. 4803 4804Added and deployed new OSL file I/O interfaces to improve ACPICA 4805portability: 4806 AcpiOsOpenFile 4807 AcpiOsCloseFile 4808 AcpiOsReadFile 4809 AcpiOsWriteFile 4810 AcpiOsGetFileOffset 4811 AcpiOsSetFileOffset 4812There are C library implementations of these functions in the new file 4813service_layers/oslibcfs.c -- however, the functions can be implemented by 4814the local host in any way necessary. Lv Zheng. 4815 4816Implemented a mechanism to disable/enable ACPI table checksum validation 4817at runtime. This can be useful when loading tables very early during OS 4818initialization when it may not be possible to map the entire table in 4819order to compute the checksum. Lv Zheng. 4820 4821Fixed a buffer allocation issue for the Generic Serial Bus support. 4822Originally, a fixed buffer length was used. This change allows for 4823variable-length buffers based upon the protocol indicated by the field 4824access attributes. Reported by Lan Tianyu. Lv Zheng. 4825 4826Fixed a problem where an object detached from a namespace node was not 4827properly terminated/cleared and could cause a circular list problem if 4828reattached. ACPICA BZ 1063. David Box. 4829 4830Fixed a possible recursive lock acquisition in hwregs.c. Rakib Mullick. 4831 4832Fixed a possible memory leak in an error return path within the function 4833AcpiUtCopyIobjectToIobject. ACPICA BZ 1087. Colin Ian King. 4834 4835Example Code and Data Size: These are the sizes for the OS-independent 4836acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4837debug version of the code includes the debug output trace mechanism and 4838has a much larger code and data size. 4839 4840 Current Release: 4841 Non-Debug Version: 98.7K Code, 27.2K Data, 125.9K Total 4842 Debug Version: 191.7K Code, 79.6K Data, 271.3K Total 4843 Previous Release: 4844 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4845 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4846 4847 48482) iASL Compiler/Disassembler and Tools: 4849 4850Disassembler: Add dump of ASCII equivalent text within a comment at the 4851end of each line of the output for the Buffer() ASL operator. 4852 4853AcpiDump: Miscellaneous changes: 4854 Fixed repetitive table dump in -n mode. 4855 For older EFI platforms, use the ACPI 1.0 GUID during RSDP search if 4856the ACPI 2.0 GUID fails. 4857 4858iASL: Fixed a problem where the compiler could fault if incorrectly given 4859an acpidump output file as input. ACPICA BZ 1088. David Box. 4860 4861AcpiExec/AcpiNames: Fixed a problem where these utilities could fault if 4862they are invoked without any arguments. 4863 4864Debugger: Fixed a possible memory leak in an error return path. ACPICA BZ 48651086. Colin Ian King. 4866 4867Disassembler: Cleaned up a block of code that extracts a parent Op 4868object. Added a comment that explains that the parent is guaranteed to be 4869valid in this case. ACPICA BZ 1069. 4870 4871 4872---------------------------------------- 487324 April 2014. Summary of changes for version 20140424: 4874 48751) ACPICA kernel-resident subsystem: 4876 4877Implemented support to skip/ignore NULL address entries in the RSDT/XSDT. 4878Some of these tables are known to contain a trailing NULL entry. Lv 4879Zheng. 4880 4881Removed an extraneous error message for the case where there are a large 4882number of system GPEs (> 124). This was the "32-bit FADT register is too 4883long to convert to GAS struct" message, which is irrelevant for GPEs 4884since the GPEx_BLK_LEN fields of the FADT are always used instead of the 4885(limited capacity) GAS bit length. Also, several changes to ensure proper 4886support for GPE numbers > 255, where some "GPE number" fields were 8-bits 4887internally. 4888 4889Implemented and deployed additional configuration support for the public 4890ACPICA external interfaces. Entire classes of interfaces can now be 4891easily modified or configured out, replaced by stubbed inline functions 4892by default. Lv Zheng. 4893 4894Moved all public ACPICA runtime configuration globals to the public 4895ACPICA external interface file for convenience. Also, removed some 4896obsolete/unused globals. See the file acpixf.h. Lv Zheng. 4897 4898Documentation: Added a new section to the ACPICA reference describing the 4899maximum number of GPEs that can be supported by the FADT-defined GPEs in 4900block zero and one. About 1200 total. See section 4.4.1 of the ACPICA 4901reference. 4902 4903Example Code and Data Size: These are the sizes for the OS-independent 4904acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4905debug version of the code includes the debug output trace mechanism and 4906has a much larger code and data size. 4907 4908 Current Release: 4909 Non-Debug Version: 96.8K Code, 27.2K Data, 124.0K Total 4910 Debug Version: 189.5K Code, 79.7K Data, 269.2K Total 4911 Previous Release: 4912 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 4913 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 4914 4915 49162) iASL Compiler/Disassembler and Tools: 4917 4918iASL and disassembler: Add full support for the LPIT table (Low Power 4919Idle Table). Includes support in the disassembler, data table compiler, 4920and template generator. 4921 4922AcpiDump utility: 49231) Add option to force the use of the RSDT (over the XSDT). 49242) Improve validation of the RSDP signature (use 8 chars instead of 4). 4925 4926iASL: Add check for predefined packages that are too large. For 4927predefined names that contain subpackages, check if each subpackage is 4928too large. (Check for too small already exists.) 4929 4930Debugger: Updated the GPE command (which simulates a GPE by executing the 4931GPE code paths in ACPICA). The GPE device is now optional, and defaults 4932to the GPE 0/1 FADT-defined blocks. 4933 4934Unix application OSL: Update line-editing support. Add additional error 4935checking and take care not to reset terminal attributes on exit if they 4936were never set. This should help guarantee that the terminal is always 4937left in the previous state on program exit. 4938 4939 4940---------------------------------------- 494125 March 2014. Summary of changes for version 20140325: 4942 49431) ACPICA kernel-resident subsystem: 4944 4945Updated the auto-serialize feature for control methods. This feature 4946automatically serializes all methods that create named objects in order 4947to prevent runtime errors. The update adds support to ignore the 4948currently executing AML SyncLevel when invoking such a method, in order 4949to prevent disruption of any existing SyncLevel priorities that may exist 4950in the AML code. Although the use of SyncLevels is relatively rare, this 4951change fixes a regression where an AE_AML_MUTEX_ORDER exception can 4952appear on some machines starting with the 20140214 release. 4953 4954Added a new external interface to allow the host to install ACPI tables 4955very early, before the namespace is even created. AcpiInstallTable gives 4956the host additional flexibility for ACPI table management. Tables can be 4957installed directly by the host as if they had originally appeared in the 4958XSDT/RSDT. Installed tables can be SSDTs or other ACPI data tables 4959(anything except the DSDT and FACS). Adds a new file, tbdata.c, along 4960with additional internal restructuring and cleanup. See the ACPICA 4961Reference for interface details. Lv Zheng. 4962 4963Added validation of the checksum for all incoming dynamically loaded 4964tables (via external interfaces or via AML Load/LoadTable operators). Lv 4965Zheng. 4966 4967Updated the use of the AcpiOsWaitEventsComplete interface during Notify 4968and GPE handler removal. Restructured calls to eliminate possible race 4969conditions. Lv Zheng. 4970 4971Added a warning for the use/execution of the ASL/AML Unload (table) 4972operator. This will help detect and identify machines that use this 4973operator if and when it is ever used. This operator has never been seen 4974in the field and the usage model and possible side-effects of the drastic 4975runtime action of a full table removal are unknown. 4976 4977Reverted the use of #pragma push/pop which was introduced in the 20140214 4978release. It appears that push and pop are not implemented by enough 4979compilers to make the use of this feature feasible for ACPICA at this 4980time. However, these operators may be deployed in a future ACPICA 4981release. 4982 4983Added the missing EXPORT_SYMBOL macros for the install and remove SCI 4984handler interfaces. 4985 4986Source code generation: 49871) Disabled the use of the "strchr" macro for the gcc-specific 4988generation. For some versions of gcc, this macro can periodically expose 4989a compiler bug which in turn causes compile-time error(s). 49902) Added support for PPC64 compilation. Colin Ian King. 4991 4992Example Code and Data Size: These are the sizes for the OS-independent 4993acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 4994debug version of the code includes the debug output trace mechanism and 4995has a much larger code and data size. 4996 4997 Current Release: 4998 Non-Debug Version: 97.0K Code, 27.2K Data, 124.2K Total 4999 Debug Version: 189.7K Code, 79.5K Data, 269.2K Total 5000 Previous Release: 5001 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 5002 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 5003 5004 50052) iASL Compiler/Disassembler and Tools: 5006 5007Disassembler: Added several new features to improve the readability of 5008the resulting ASL code. Extra information is emitted within comment 5009fields in the ASL code: 50101) Known _HID/_CID values are decoded to descriptive text. 50112) Standard values for the Notify() operator are decoded to descriptive 5012text. 50133) Target operands are expanded to full pathnames (in a comment) when 5014possible. 5015 5016Disassembler: Miscellaneous updates for extern() handling: 50171) Abort compiler if file specified by -fe option does not exist. 50182) Silence unnecessary warnings about argument count mismatches. 50193) Update warning messages concerning unresolved method externals. 50204) Emit "UnknownObj" keyword for externals whose type cannot be 5021determined. 5022 5023AcpiHelp utility: 50241) Added the -a option to display both the ASL syntax and the AML 5025encoding for an input ASL operator. This effectively displays all known 5026information about an ASL operator with one AcpiHelp invocation. 50272) Added substring match support (similar to a wildcard) for the -i 5028(_HID/PNP IDs) option. 5029 5030iASL/Disassembler: Since this tool does not yet support execution on big- 5031endian machines, added detection of endianness and an error message if 5032execution is attempted on big-endian. Support for big-endian within iASL 5033is a feature that is on the ACPICA to-be-done list. 5034 5035AcpiBin utility: 50361) Remove option to extract binary files from an acpidump; this function 5037is made obsolete by the AcpiXtract utility. 50382) General cleanup of open files and allocated buffers. 5039 5040 5041---------------------------------------- 504214 February 2014. Summary of changes for version 20140214: 5043 50441) ACPICA kernel-resident subsystem: 5045 5046Implemented a new mechanism to proactively prevent problems with ill- 5047behaved reentrant control methods that create named ACPI objects. This 5048behavior is illegal as per the ACPI specification, but is nonetheless 5049frequently seen in the field. Previously, this could lead to an 5050AE_ALREADY_EXISTS exception if the method was actually entered by more 5051than one thread. This new mechanism detects such methods at table load 5052time and marks them "serialized" to prevent reentrancy. A new global 5053option, AcpiGbl_AutoSerializeMethods, has been added to disable this 5054feature if desired. This mechanism and global option obsoletes and 5055supersedes the previous AcpiGbl_SerializeAllMethods option. 5056 5057Added the "Windows 2013" string to the _OSI support. ACPICA will now 5058respond TRUE to _OSI queries with this string. It is the stated policy of 5059ACPICA to add new strings to the _OSI support as soon as possible after 5060they are defined. See the full ACPICA _OSI policy which has been added to 5061the utilities/utosi.c file. 5062 5063Hardened/updated the _PRT return value auto-repair code: 50641) Do not abort the repair on a single subpackage failure, continue to 5065check all subpackages. 50662) Add check for the minimum subpackage length (4). 50673) Properly handle extraneous NULL package elements. 5068 5069Added support to avoid the possibility of infinite loops when traversing 5070object linked lists. Never allow an infinite loop, even in the face of 5071corrupted object lists. 5072 5073ACPICA headers: Deployed the use of #pragma pack(push) and #pragma 5074pack(pop) directives to ensure that the ACPICA headers are independent of 5075compiler settings or other host headers. 5076 5077Example Code and Data Size: These are the sizes for the OS-independent 5078acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5079debug version of the code includes the debug output trace mechanism and 5080has a much larger code and data size. 5081 5082 Current Release: 5083 Non-Debug Version: 96.5K Code, 27.2K Data, 123.7K Total 5084 Debug Version: 188.6K Code, 79.0K Data, 267.6K Total 5085 Previous Release: 5086 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 5087 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 5088 5089 50902) iASL Compiler/Disassembler and Tools: 5091 5092iASL/Table-compiler: Fixed a problem with support for the SPMI table. The 5093first reserved field was incorrectly forced to have a value of zero. This 5094change correctly forces the field to have a value of one. ACPICA BZ 1081. 5095 5096Debugger: Added missing support for the "Extra" and "Data" subobjects 5097when displaying object data. 5098 5099Debugger: Added support to display entire object linked lists when 5100displaying object data. 5101 5102iASL: Removed the obsolete -g option to obtain ACPI tables from the 5103Windows registry. This feature has been superseded by the acpidump 5104utility. 5105 5106 5107---------------------------------------- 510814 January 2014. Summary of changes for version 20140114: 5109 51101) ACPICA kernel-resident subsystem: 5111 5112Updated all ACPICA copyrights and signons to 2014. Added the 2014 5113copyright to all module headers and signons, including the standard Linux 5114header. This affects virtually every file in the ACPICA core subsystem, 5115iASL compiler, all ACPICA utilities, and the test suites. 5116 5117Improved parameter validation for AcpiInstallGpeBlock. Added the 5118following checks: 51191) The incoming device handle refers to type ACPI_TYPE_DEVICE. 51202) There is not already a GPE block attached to the device. 5121Likewise, with AcpiRemoveGpeBlock, ensure that the incoming object is a 5122device. 5123 5124Correctly support "references" in the ACPI_OBJECT. This change fixes the 5125support to allow references (namespace nodes) to be passed as arguments 5126to control methods via the evaluate object interface. This is probably 5127most useful for testing purposes, however. 5128 5129Improved support for 32/64 bit physical addresses in printf()-like 5130output. This change improves the support for physical addresses in printf 5131debug statements and other output on both 32-bit and 64-bit hosts. It 5132consistently outputs the appropriate number of bytes for each host. The 5133%p specifier is unsatisfactory since it does not emit uniform output on 5134all hosts/clib implementations (on some, leading zeros are not supported, 5135leading to difficult-to-read output). 5136 5137Example Code and Data Size: These are the sizes for the OS-independent 5138acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5139debug version of the code includes the debug output trace mechanism and 5140has a much larger code and data size. 5141 5142 Current Release: 5143 Non-Debug Version: 96.2K Code, 27.0K Data, 123.2K Total 5144 Debug Version: 187.5K Code, 78.3K Data, 265.8K Total 5145 Previous Release: 5146 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 5147 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 5148 5149 51502) iASL Compiler/Disassembler and Tools: 5151 5152iASL: Fix a possible fault when using the Connection() operator. Fixes a 5153problem if the parent Field definition for the Connection operator refers 5154to an operation region that does not exist. ACPICA BZ 1064. 5155 5156AcpiExec: Load of local test tables is now optional. The utility has the 5157capability to load some various tables to test features of ACPICA. 5158However, there are enough of them that the output of the utility became 5159confusing. With this change, only the required local tables are displayed 5160(RSDP, XSDT, etc.) along with the actual tables loaded via the command 5161line specification. This makes the default output simler and easier to 5162understand. The -el command line option restores the original behavior 5163for testing purposes. 5164 5165AcpiExec: Added support for overlapping operation regions. This change 5166expands the simulation of operation regions by supporting regions that 5167overlap within the given address space. Supports SystemMemory and 5168SystemIO. ASLTS test suite updated also. David Box. ACPICA BZ 1031. 5169 5170AcpiExec: Added region handler support for PCI_Config and EC spaces. This 5171allows AcpiExec to simulate these address spaces, similar to the current 5172support for SystemMemory and SystemIO. 5173 5174Debugger: Added new command to read/write/compare all namespace objects. 5175The command "test objects" will exercise the entire namespace by writing 5176new values to each data object, and ensuring that the write was 5177successful. The original value is then restored and verified. 5178 5179Debugger: Added the "test predefined" command. This change makes this 5180test public and puts it under the new "test" command. The test executes 5181each and every predefined name within the current namespace. 5182 5183 5184---------------------------------------- 518518 December 2013. Summary of changes for version 20131218: 5186 5187Global note: The ACPI 5.0A specification was released this month. There 5188are no changes needed for ACPICA since this release of ACPI is an 5189errata/clarification release. The specification is available at 5190acpi.info. 5191 5192 51931) ACPICA kernel-resident subsystem: 5194 5195Added validation of the XSDT root table if it is present. Some older 5196platforms contain an XSDT that is ill-formed or otherwise invalid (such 5197as containing some or all entries that are NULL pointers). This change 5198adds a new function to validate the XSDT before actually using it. If the 5199XSDT is found to be invalid, ACPICA will now automatically fall back to 5200using the RSDT instead. Original implementation by Zhao Yakui. Ported to 5201ACPICA and enhanced by Lv Zheng and Bob Moore. 5202 5203Added a runtime option to ignore the XSDT and force the use of the RSDT. 5204This change adds a runtime option that will force ACPICA to use the RSDT 5205instead of the XSDT (AcpiGbl_DoNotUseXsdt). Although the ACPI spec 5206requires that an XSDT be used instead of the RSDT, the XSDT has been 5207found to be corrupt or ill-formed on some machines. Lv Zheng. 5208 5209Added a runtime option to favor 32-bit FADT register addresses over the 521064-bit addresses. This change adds an option to favor 32-bit FADT 5211addresses when there is a conflict between the 32-bit and 64-bit versions 5212of the same register. The default behavior is to use the 64-bit version 5213in accordance with the ACPI specification. This can now be overridden via 5214the AcpiGbl_Use32BitFadtAddresses flag. ACPICA BZ 885. Lv Zheng. 5215 5216During the change above, the internal "Convert FADT" and "Verify FADT" 5217functions have been merged to simplify the code, making it easier to 5218understand and maintain. ACPICA BZ 933. 5219 5220Improve exception reporting and handling for GPE block installation. 5221Return an actual status from AcpiEvGetGpeXruptBlock and don't clobber the 5222status when exiting AcpiEvInstallGpeBlock. ACPICA BZ 1019. 5223 5224Added helper macros to extract bus/segment numbers from the HEST table. 5225This change adds two macros to extract the encoded bus and segment 5226numbers from the HEST Bus field - ACPI_HEST_BUS and ACPI_HEST_SEGMENT. 5227Betty Dall <betty.dall@hp.com> 5228 5229Removed the unused ACPI_FREE_BUFFER macro. This macro is no longer used 5230by ACPICA. It is not a public macro, so it should have no effect on 5231existing OSV code. Lv Zheng. 5232 5233Example Code and Data Size: These are the sizes for the OS-independent 5234acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5235debug version of the code includes the debug output trace mechanism and 5236has a much larger code and data size. 5237 5238 Current Release: 5239 Non-Debug Version: 96.1K Code, 27.0K Data, 123.1K Total 5240 Debug Version: 185.6K Code, 77.3K Data, 262.9K Total 5241 Previous Release: 5242 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 5243 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 5244 5245 52462) iASL Compiler/Disassembler and Tools: 5247 5248Disassembler: Improved pathname support for emitted External() 5249statements. This change adds full pathname support for external names 5250that have been resolved internally by the inclusion of additional ACPI 5251tables (via the iASL -e option). Without this change, the disassembler 5252can emit multiple externals for the same object, or it become confused 5253when the Scope() operator is used on an external object. Overall, greatly 5254improves the ability to actually recompile the emitted ASL code when 5255objects a referenced across multiple ACPI tables. Reported by Michael 5256Tsirkin (mst@redhat.com). 5257 5258Tests/ASLTS: Updated functional control suite to execute with no errors. 5259David Box. Fixed several errors related to the testing of the interpreter 5260slack mode. Lv Zheng. 5261 5262iASL: Added support to detect names that are declared within a control 5263method, but are unused (these are temporary names that are only valid 5264during the time the method is executing). A remark is issued for these 5265cases. ACPICA BZ 1022. 5266 5267iASL: Added full support for the DBG2 table. Adds full disassembler, 5268table compiler, and template generator support for the DBG2 table (Debug 5269Port 2 table). 5270 5271iASL: Added full support for the PCCT table, update the table definition. 5272Updates the PCCT table definition in the actbl3.h header and adds table 5273compiler and template generator support. 5274 5275iASL: Added an option to emit only error messages (no warnings/remarks). 5276The -ve option will enable only error messages, warnings and remarks are 5277suppressed. This can simplify debugging when only the errors are 5278important, such as when an ACPI table is disassembled and there are many 5279warnings and remarks -- but only the actual errors are of real interest. 5280 5281Example ACPICA code (source/tools/examples): Updated the example code so 5282that it builds to an actual working program, not just example code. Added 5283ACPI tables and execution of an example control method in the DSDT. Added 5284makefile support for Unix generation. 5285 5286 5287---------------------------------------- 528815 November 2013. Summary of changes for version 20131115: 5289 5290This release is available at https://acpica.org/downloads 5291 5292 52931) ACPICA kernel-resident subsystem: 5294 5295Resource Manager: Fixed loop termination for the "get AML length" 5296function. The loop previously had an error termination on a NULL resource 5297pointer, which can never happen since the loop simply increments a valid 5298resource pointer. This fix changes the loop to terminate with an error on 5299an invalid end-of-buffer condition. The problem can be seen as an 5300infinite loop by callers to AcpiSetCurrentResources with an invalid or 5301corrupted resource descriptor, or a resource descriptor that is missing 5302an END_TAG descriptor. Reported by Dan Carpenter 5303<dan.carpenter@oracle.com>. Lv Zheng, Bob Moore. 5304 5305Table unload and ACPICA termination: Delete all attached data objects 5306during namespace node deletion. This fix updates namespace node deletion 5307to delete the entire list of attached objects (attached via 5308AcpiAttachObject) instead of just one of the attached items. ACPICA BZ 53091024. Tomasz Nowicki (tomasz.nowicki@linaro.org). 5310 5311ACPICA termination: Added support to delete all objects attached to the 5312root namespace node. This fix deletes any and all objects that have been 5313attached to the root node via AcpiAttachData. Previously, none of these 5314objects were deleted. Reported by Tomasz Nowicki. ACPICA BZ 1026. 5315 5316Debug output: Do not emit the function nesting level for the in-kernel 5317build. The nesting level is really only useful during a single-thread 5318execution. Therefore, only enable this output for the AcpiExec utility. 5319Also, only emit the thread ID when executing under AcpiExec (Context 5320switches are still always detected and a message is emitted). ACPICA BZ 5321972. 5322 5323Example Code and Data Size: These are the sizes for the OS-independent 5324acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5325debug version of the code includes the debug output trace mechanism and 5326has a much larger code and data size. 5327 5328 Current Release: 5329 Non-Debug Version: 95.9K Code, 27.0K Data, 122.9K Total 5330 Debug Version: 185.1K Code, 77.2K Data, 262.3K Total 5331 Previous Release: 5332 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 5333 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 5334 5335 53362) iASL Compiler/Disassembler and Tools: 5337 5338AcpiExec/Unix-OSL: Use <termios.h> instead of <termio.h>. This is the 5339correct portable POSIX header for terminal control functions. 5340 5341Disassembler: Fixed control method invocation issues related to the use 5342of the CondRefOf() operator. The problem is seen in the disassembly where 5343control method invocations may not be disassembled properly if the 5344control method name has been used previously as an argument to CondRefOf. 5345The solution is to not attempt to emit an external declaration for the 5346CondRefOf target (it is not necessary in the first place). This prevents 5347disassembler object type confusion. ACPICA BZ 988. 5348 5349Unix Makefiles: Added an option to disable compiler optimizations and the 5350_FORTIFY_SOURCE flag. Some older compilers have problems compiling ACPICA 5351with optimizations (reportedly, gcc 4.4 for example). This change adds a 5352command line option for make (NOOPT) that disables all compiler 5353optimizations and the _FORTIFY_SOURCE compiler flag. The default 5354optimization is -O2 with the _FORTIFY_SOURCE flag specified. ACPICA BZ 53551034. Lv Zheng, Bob Moore. 5356 5357Tests/ASLTS: Added options to specify individual test cases and modes. 5358This allows testers running aslts.sh to optionally specify individual 5359test modes and test cases. Also added an option to disable the forced 5360generation of the ACPICA tools from source if desired. Lv Zheng. 5361 5362---------------------------------------- 536327 September 2013. Summary of changes for version 20130927: 5364 5365This release is available at https://acpica.org/downloads 5366 5367 53681) ACPICA kernel-resident subsystem: 5369 5370Fixed a problem with store operations to reference objects. This change 5371fixes a problem where a Store operation to an ArgX object that contained 5372a 5373reference to a field object did not complete the automatic dereference 5374and 5375then write to the actual field object. Instead, the object type of the 5376field object was inadvertently changed to match the type of the source 5377operand. The new behavior will actually write to the field object (buffer 5378field or field unit), thus matching the correct ACPI-defined behavior. 5379 5380Implemented support to allow the host to redefine individual OSL 5381prototypes. This change enables the host to redefine OSL prototypes found 5382in the acpiosxf.h file. This allows the host to implement OSL interfaces 5383with a macro or inlined function. Further, it allows the host to add any 5384additional required modifiers such as __iomem, __init, __exit, etc., as 5385necessary on a per-interface basis. Enables maximum flexibility for the 5386OSL interfaces. Lv Zheng. 5387 5388Hardcoded the access width for the FADT-defined reset register. The ACPI 5389specification requires the reset register width to be 8 bits. ACPICA now 5390hardcodes the width to 8 and ignores the FADT width value. This provides 5391compatibility with other ACPI implementations that have allowed BIOS code 5392with bad register width values to go unnoticed. Matthew Garett, Bob 5393Moore, 5394Lv Zheng. 5395 5396Changed the position/use of the ACPI_PRINTF_LIKE macro. This macro is 5397used 5398in the OSL header (acpiosxf). The change modifies the position of this 5399macro in each instance where it is used (AcpiDebugPrint, etc.) to avoid 5400build issues if the OSL defines the implementation of the interface to be 5401an inline stub function. Lv Zheng. 5402 5403Deployed a new macro ACPI_EXPORT_SYMBOL_INIT for the main ACPICA 5404initialization interfaces. This change adds a new macro for the main init 5405and terminate external interfaces in order to support hosts that require 5406additional or different processing for these functions. Changed from 5407ACPI_EXPORT_SYMBOL to ACPI_EXPORT_SYMBOL_INIT for these functions. Lv 5408Zheng, Bob Moore. 5409 5410Cleaned up the memory allocation macros for configurability. In the 5411common 5412case, the ACPI_ALLOCATE and related macros now resolve directly to their 5413respective AcpiOs* OSL interfaces. Two options: 54141) The ACPI_ALLOCATE_ZEROED macro uses a simple local implementation by 5415default, unless overridden by the USE_NATIVE_ALLOCATE_ZEROED define. 54162) For AcpiExec (and for debugging), the macros can optionally be 5417resolved 5418to the local ACPICA interfaces that track each allocation (local tracking 5419is used to immediately detect memory leaks). 5420Lv Zheng. 5421 5422Simplified the configuration for ACPI_REDUCED_HARDWARE. Allows the kernel 5423to predefine this macro to either TRUE or FALSE during the system build. 5424 5425Replaced __FUNCTION_ with __func__ in the gcc-specific header. 5426 5427Example Code and Data Size: These are the sizes for the OS-independent 5428acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5429debug version of the code includes the debug output trace mechanism and 5430has a much larger code and data size. 5431 5432 Current Release: 5433 Non-Debug Version: 95.8K Code, 27.0K Data, 122.8K Total 5434 Debug Version: 185.2K Code, 77.2K Data, 262.4K Total 5435 Previous Release: 5436 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 5437 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5438 5439 54402) iASL Compiler/Disassembler and Tools: 5441 5442iASL: Implemented wildcard support for the -e option. This simplifies use 5443when there are many SSDTs that must be included to resolve external 5444method 5445declarations. ACPICA BZ 1041. Example: 5446 iasl -e ssdt*.dat -d dsdt.dat 5447 5448AcpiExec: Add history/line-editing for Unix/Linux systems. This change 5449adds a portable module that implements full history and limited line 5450editing for Unix and Linux systems. It does not use readline() due to 5451portability issues. Instead it uses the POSIX termio interface to put the 5452terminal in raw input mode so that the various special keys can be 5453trapped 5454(such as up/down-arrow for history support and left/right-arrow for line 5455editing). Uses the existing debugger history mechanism. ACPICA BZ 1036. 5456 5457AcpiXtract: Add support to handle (ignore) "empty" lines containing only 5458one or more spaces. This provides compatible with early or different 5459versions of the AcpiDump utility. ACPICA BZ 1044. 5460 5461AcpiDump: Do not ignore tables that contain only an ACPI table header. 5462Apparently, some BIOSs create SSDTs that contain an ACPI table header but 5463no other data. This change adds support to dump these tables. Any tables 5464shorter than the length of an ACPI table header remain in error (an error 5465message is emitted). Reported by Yi Li. 5466 5467Debugger: Echo actual command along with the "unknown command" message. 5468 5469---------------------------------------- 547023 August 2013. Summary of changes for version 20130823: 5471 54721) ACPICA kernel-resident subsystem: 5473 5474Implemented support for host-installed System Control Interrupt (SCI) 5475handlers. Certain ACPI functionality requires the host to handle raw 5476SCIs. For example, the "SCI Doorbell" that is defined for memory power 5477state support requires the host device driver to handle SCIs to examine 5478if the doorbell has been activated. Multiple SCI handlers can be 5479installed to allow for future expansion. New external interfaces are 5480AcpiInstallSciHandler, AcpiRemoveSciHandler; see the ACPICA reference for 5481details. Lv Zheng, Bob Moore. ACPICA BZ 1032. 5482 5483Operation region support: Never locally free the handler "context" 5484pointer. This change removes some dangerous code that attempts to free 5485the handler context pointer in some (rare) circumstances. The owner of 5486the handler owns this pointer and the ACPICA code should never touch it. 5487Although not seen to be an issue in any kernel, it did show up as a 5488problem (fault) under AcpiExec. Also, set the internal storage field for 5489the context pointer to zero when the region is deactivated, simply for 5490sanity. David Box. ACPICA BZ 1039. 5491 5492AcpiRead: On error, do not modify the return value target location. If an 5493error happens in the middle of a split 32/32 64-bit I/O operation, do not 5494modify the target of the return value pointer. Makes the code consistent 5495with the rest of ACPICA. Bjorn Helgaas. 5496 5497Example Code and Data Size: These are the sizes for the OS-independent 5498acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5499debug version of the code includes the debug output trace mechanism and 5500has a much larger code and data size. 5501 5502 Current Release: 5503 Non-Debug Version: 96.7K Code, 27.1K Data, 123.9K Total 5504 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5505 Previous Release: 5506 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 5507 Debug Version: 185.4K Code, 77.1K Data, 262.5K Total 5508 5509 55102) iASL Compiler/Disassembler and Tools: 5511 5512AcpiDump: Implemented several new features and fixed some problems: 55131) Added support to dump the RSDP, RSDT, and XSDT tables. 55142) Added support for multiple table instances (SSDT, UEFI). 55153) Added option to dump "customized" (overridden) tables (-c). 55164) Fixed a problem where some table filenames were improperly 5517constructed. 55185) Improved some error messages, removed some unnecessary messages. 5519 5520iASL: Implemented additional support for disassembly of ACPI tables that 5521contain invocations of external control methods. The -fe<file> option 5522allows the import of a file that specifies the external methods along 5523with the required number of arguments for each -- allowing for the 5524correct disassembly of the table. This is a workaround for a limitation 5525of AML code where the disassembler often cannot determine the number of 5526arguments required for an external control method and generates incorrect 5527ASL code. See the iASL reference for details. ACPICA BZ 1030. 5528 5529Debugger: Implemented a new command (paths) that displays the full 5530pathnames (namepaths) and object types of all objects in the namespace. 5531This is an alternative to the namespace command. 5532 5533Debugger: Implemented a new command (sci) that invokes the SCI dispatch 5534mechanism and any installed handlers. 5535 5536iASL: Fixed a possible segfault for "too many parent prefixes" condition. 5537This can occur if there are too many parent prefixes in a namepath (for 5538example, ^^^^^^PCI0.ECRD). ACPICA BZ 1035. 5539 5540Application OSLs: Set the return value for the PCI read functions. These 5541functions simply return AE_OK, but should set the return value to zero 5542also. This change implements this. ACPICA BZ 1038. 5543 5544Debugger: Prevent possible command line buffer overflow. Increase the 5545size of a couple of the debugger line buffers, and ensure that overflow 5546cannot happen. ACPICA BZ 1037. 5547 5548iASL: Changed to abort immediately on serious errors during the parsing 5549phase. Due to the nature of ASL, there is no point in attempting to 5550compile these types of errors, and they typically end up causing a 5551cascade of hundreds of errors which obscure the original problem. 5552 5553---------------------------------------- 555425 July 2013. Summary of changes for version 20130725: 5555 55561) ACPICA kernel-resident subsystem: 5557 5558Fixed a problem with the DerefOf operator where references to FieldUnits 5559and BufferFields incorrectly returned the parent object, not the actual 5560value of the object. After this change, a dereference of a FieldUnit 5561reference results in a read operation on the field to get the value, and 5562likewise, the appropriate BufferField value is extracted from the target 5563buffer. 5564 5565Fixed a problem where the _WAK method could cause a fault under these 5566circumstances: 1) Interpreter slack mode was not enabled, and 2) the _WAK 5567method returned no value. The problem is rarely seen because most kernels 5568run ACPICA in slack mode. 5569 5570For the DerefOf operator, a fatal error now results if an attempt is made 5571to dereference a reference (created by the Index operator) to a NULL 5572package element. Provides compatibility with other ACPI implementations, 5573and this behavior will be added to a future version of the ACPI 5574specification. 5575 5576The ACPI Power Management Timer (defined in the FADT) is now optional. 5577This provides compatibility with other ACPI implementations and will 5578appear in the next version of the ACPI specification. If there is no PM 5579Timer on the platform, AcpiGetTimer returns AE_SUPPORT. An address of 5580zero in the FADT indicates no PM timer. 5581 5582Implemented a new interface for _OSI support, AcpiUpdateInterfaces. This 5583allows the host to globally enable/disable all vendor strings, all 5584feature strings, or both. Intended to be primarily used for debugging 5585purposes only. Lv Zheng. 5586 5587Expose the collected _OSI data to the host via a global variable. This 5588data tracks the highest level vendor ID that has been invoked by the BIOS 5589so that the host (and potentially ACPICA itself) can change behaviors 5590based upon the age of the BIOS. 5591 5592Example Code and Data Size: These are the sizes for the OS-independent 5593acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5594debug version of the code includes the debug output trace mechanism and 5595has a much larger code and data size. 5596 5597 Current Release: 5598 Non-Debug Version: 96.2K Code, 27.1K Data, 123.3K Total 5599 Debug Version: 184.4K Code, 76.8K Data, 261.2K Total 5600 Previous Release: 5601 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 5602 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 5603 5604 56052) iASL Compiler/Disassembler and Tools: 5606 5607iASL: Created the following enhancements for the -so option (create 5608offset table): 56091)Add offsets for the last nameseg in each namepath for every supported 5610object type 56112)Add support for Processor, Device, Thermal Zone, and Scope objects 56123)Add the actual AML opcode for the parent object of every supported 5613object type 56144)Add support for the ZERO/ONE/ONES AML opcodes for integer objects 5615 5616Disassembler: Emit all unresolved external symbols in a single block. 5617These are external references to control methods that could not be 5618resolved, and thus, the disassembler had to make a guess at the number of 5619arguments to parse. 5620 5621iASL: The argument to the -T option (create table template) is now 5622optional. If not specified, the default table is a DSDT, typically the 5623most common case. 5624 5625---------------------------------------- 562626 June 2013. Summary of changes for version 20130626: 5627 56281) ACPICA kernel-resident subsystem: 5629 5630Fixed an issue with runtime repair of the _CST object. Null or invalid 5631elements were not always removed properly. Lv Zheng. 5632 5633Removed an arbitrary restriction of 256 GPEs per GPE block (such as the 5634FADT-defined GPE0 and GPE1). For GPE0, GPE1, and each GPE Block Device, 5635the maximum number of GPEs is 1016. Use of multiple GPE block devices 5636makes the system-wide number of GPEs essentially unlimited. 5637 5638Example Code and Data Size: These are the sizes for the OS-independent 5639acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5640debug version of the code includes the debug output trace mechanism and 5641has a much larger code and data size. 5642 5643 Current Release: 5644 Non-Debug Version: 95.9K Code, 26.9K Data, 122.8K Total 5645 Debug Version: 184.1K Code, 76.7K Data, 260.8K Total 5646 Previous Release: 5647 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 5648 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 5649 5650 56512) iASL Compiler/Disassembler and Tools: 5652 5653Portable AcpiDump: Implemented full support for the Linux and FreeBSD 5654hosts. Now supports Linux, FreeBSD, and Windows. 5655 5656Disassembler: Added some missing types for the HEST and EINJ tables: "Set 5657Error Type With Address", "CMCI", "MCE", and "Flush Cacheline". 5658 5659iASL/Preprocessor: Implemented full support for nested 5660#if/#else/#elif/#endif blocks. Allows arbitrary depth of nested blocks. 5661 5662Disassembler: Expanded maximum output string length to 64K. Was 256 bytes 5663max. The original purpose of this constraint was to limit the amount of 5664debug output. However, the string function in question (UtPrintString) is 5665now used for the disassembler also, where 256 bytes is insufficient. 5666Reported by RehabMan@GitHub. 5667 5668iASL/DataTables: Fixed some problems and issues with compilation of DMAR 5669tables. ACPICA BZ 999. Lv Zheng. 5670 5671iASL: Fixed a couple of error exit issues that could result in a "Could 5672not delete <file>" message during ASL compilation. 5673 5674AcpiDump: Allow "FADT" and "MADT" as valid table signatures, even though 5675the actual signatures for these tables are "FACP" and "APIC", 5676respectively. 5677 5678AcpiDump: Added support for multiple UEFI tables. Only SSDT and UEFI 5679tables are allowed to have multiple instances. 5680 5681---------------------------------------- 568217 May 2013. Summary of changes for version 20130517: 5683 56841) ACPICA kernel-resident subsystem: 5685 5686Fixed a regression introduced in version 20130328 for _INI methods. This 5687change fixes a problem introduced in 20130328 where _INI methods are no 5688longer executed properly because of a memory block that was not 5689initialized correctly. ACPICA BZ 1016. Tomasz Nowicki 5690<tomasz.nowicki@linaro.org>. 5691 5692Fixed a possible problem with the new extended sleep registers in the 5693ACPI 56945.0 FADT. Do not use these registers (even if populated) unless the HW- 5695reduced bit is set in the FADT (as per the ACPI specification). ACPICA BZ 56961020. Lv Zheng. 5697 5698Implemented return value repair code for _CST predefined objects: Sort 5699the 5700list and detect/remove invalid entries. ACPICA BZ 890. Lv Zheng. 5701 5702Implemented a debug-only option to disable loading of SSDTs from the 5703RSDT/XSDT during ACPICA initialization. This can be useful for debugging 5704ACPI problems on some machines. Set AcpiGbl_DisableSsdtTableLoad in 5705acglobal.h - ACPICA BZ 1005. Lv Zheng. 5706 5707Fixed some issues in the ACPICA initialization and termination code: 5708Tomasz Nowicki <tomasz.nowicki@linaro.org> 57091) Clear events initialized flag upon event component termination. ACPICA 5710BZ 1013. 57112) Fixed a possible memory leak in GPE init error path. ACPICA BZ 1018. 57123) Delete global lock pending lock during termination. ACPICA BZ 1012. 57134) Clear debug buffer global on termination to prevent possible multiple 5714delete. ACPICA BZ 1010. 5715 5716Standardized all switch() blocks across the entire source base. After 5717many 5718years, different formatting for switch() had crept in. This change makes 5719the formatting of every switch block identical. ACPICA BZ 997. Chao Guan. 5720 5721Split some files to enhance ACPICA modularity and configurability: 57221) Split buffer dump routines into utilities/utbuffer.c 57232) Split internal error message routines into utilities/uterror.c 57243) Split table print utilities into tables/tbprint.c 57254) Split iASL command-line option processing into asloptions.c 5726 5727Makefile enhancements: 57281) Support for all new files above. 57292) Abort make on errors from any subcomponent. Chao Guan. 57303) Add build support for Apple Mac OS X. Liang Qi. 5731 5732Example Code and Data Size: These are the sizes for the OS-independent 5733acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5734debug version of the code includes the debug output trace mechanism and 5735has a much larger code and data size. 5736 5737 Current Release: 5738 Non-Debug Version: 96.0K Code, 27.0K Data, 123.0K Total 5739 Debug Version: 184.1K Code, 76.8K Data, 260.9K Total 5740 Previous Release: 5741 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 5742 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 5743 5744 57452) iASL Compiler/Disassembler and Tools: 5746 5747New utility: Implemented an easily portable version of the acpidump 5748utility to extract ACPI tables from the system (or a file) in an ASCII 5749hex 5750dump format. The top-level code implements the various command line 5751options, file I/O, and table dump routines. To port to a new host, only 5752three functions need to be implemented to get tables -- since this 5753functionality is OS-dependent. See the tools/acpidump/apmain.c module and 5754the ACPICA reference for porting instructions. ACPICA BZ 859. Notes: 57551) The Windows version obtains the ACPI tables from the Registry. 57562) The Linux version is under development. 57573) Other hosts - If an OS-dependent module is submitted, it will be 5758distributed with ACPICA. 5759 5760iASL: Fixed a regression for -D preprocessor option (define symbol). A 5761restructuring/change to the initialization sequence caused this option to 5762no longer work properly. 5763 5764iASL: Implemented a mechanism to disable specific warnings and remarks. 5765Adds a new command line option, "-vw <messageid> as well as "#pragma 5766disable <messageid>". ACPICA BZ 989. Chao Guan, Bob Moore. 5767 5768iASL: Fix for too-strict package object validation. The package object 5769validation for return values from the predefined names is a bit too 5770strict, it does not allow names references within the package (which will 5771be resolved at runtime.) These types of references cannot be validated at 5772compile time. This change ignores named references within package objects 5773for names that return or define static packages. 5774 5775Debugger: Fixed the 80-character command line limitation for the History 5776command. Now allows lines of arbitrary length. ACPICA BZ 1000. Chao Guan. 5777 5778iASL: Added control method and package support for the -so option 5779(generates AML offset table for BIOS support.) 5780 5781iASL: issue a remark if a non-serialized method creates named objects. If 5782a thread blocks within the method for any reason, and another thread 5783enters the method, the method will fail because an attempt will be made 5784to 5785create the same (named) object twice. In this case, issue a remark that 5786the method should be marked serialized. NOTE: may become a warning later. 5787ACPICA BZ 909. 5788 5789---------------------------------------- 579018 April 2013. Summary of changes for version 20130418: 5791 57921) ACPICA kernel-resident subsystem: 5793 5794Fixed a possible buffer overrun during some rare but specific field unit 5795read operations. This overrun can only happen if the DSDT version is 1 -- 5796meaning that all AML integers are 32 bits -- and the field length is 5797between 33 and 55 bits long. During the read, an internal buffer object 5798is 5799created for the field unit because the field is larger than an integer 5800(32 5801bits). However, in this case, the buffer will be incorrectly written 5802beyond the end because the buffer length is less than the internal 5803minimum 5804of 64 bits (8 bytes) long. The buffer will be either 5, 6, or 7 bytes 5805long, but a full 8 bytes will be written. 5806 5807Updated the Embedded Controller "orphan" _REG method support. This refers 5808to _REG methods under the EC device that have no corresponding operation 5809region. This is allowed by the ACPI specification. This update removes a 5810dependency on the existence an ECDT table. It will execute an orphan _REG 5811method as long as the operation region handler for the EC is installed at 5812the EC device node and not the namespace root. Rui Zhang (original 5813update), Bob Moore (update/integrate). 5814 5815Implemented run-time argument typechecking for all predefined ACPI names 5816(_STA, _BIF, etc.) This change performs object typechecking on all 5817incoming arguments for all predefined names executed via 5818AcpiEvaluateObject. This ensures that ACPI-related device drivers are 5819passing correct object types as well as the correct number of arguments 5820(therefore identifying any issues immediately). Also, the ASL/namespace 5821definition of the predefined name is checked against the ACPI 5822specification for the proper argument count. Adds one new file, 5823nsarguments.c 5824 5825Changed an exception code for the ASL UnLoad() operator. Changed the 5826exception code for the case where the input DdbHandle is invalid, from 5827AE_BAD_PARAMETER to the more appropriate AE_AML_OPERAND_TYPE. 5828 5829Unix/Linux makefiles: Removed the use of the -O2 optimization flag in the 5830global makefile. The use of this flag causes compiler errors on earlier 5831versions of GCC, so it has been removed for compatibility. 5832 5833Miscellaneous cleanup: 58341) Removed some unused/obsolete macros 58352) Fixed a possible memory leak in the _OSI support 58363) Removed an unused variable in the predefined name support 58374) Windows OSL: remove obsolete reference to a memory list field 5838 5839Example Code and Data Size: These are the sizes for the OS-independent 5840acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5841debug version of the code includes the debug output trace mechanism and 5842has a much larger code and data size. 5843 5844 Current Release: 5845 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5846 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5847 Previous Release: 5848 Non-Debug Version: 95.6K Code, 26.8K Data, 122.4K Total 5849 Debug Version: 183.5K Code, 76.6K Data, 260.1K Total 5850 5851 58522) iASL Compiler/Disassembler and Tools: 5853 5854AcpiExec: Added installation of a handler for the SystemCMOS address 5855space. This prevents control method abort if a method accesses this 5856space. 5857 5858AcpiExec: Added support for multiple EC devices, and now install EC 5859operation region handler(s) at the actual EC device instead of the 5860namespace root. This reflects the typical behavior of host operating 5861systems. 5862 5863AcpiExec: Updated to ensure that all operation region handlers are 5864installed before the _REG methods are executed. This prevents a _REG 5865method from aborting if it accesses an address space has no handler. 5866AcpiExec installs a handler for every possible address space. 5867 5868Debugger: Enhanced the "handlers" command to display non-root handlers. 5869This change enhances the handlers command to display handlers associated 5870with individual devices throughout the namespace, in addition to the 5871currently supported display of handlers associated with the root 5872namespace 5873node. 5874 5875ASL Test Suite: Several test suite errors have been identified and 5876resolved, reducing the total error count during execution. Chao Guan. 5877 5878---------------------------------------- 587928 March 2013. Summary of changes for version 20130328: 5880 58811) ACPICA kernel-resident subsystem: 5882 5883Fixed several possible race conditions with the internal object reference 5884counting mechanism. Some of the external ACPICA interfaces update object 5885reference counts without holding the interpreter or namespace lock. This 5886change adds a spinlock to protect reference count updates on the internal 5887ACPICA objects. Reported by and with assistance from Andriy Gapon 5888(avg@FreeBSD.org). 5889 5890FADT support: Removed an extraneous warning for very large GPE register 5891sets. This change removes a size mismatch warning if the legacy length 5892field for a GPE register set is larger than the 64-bit GAS structure can 5893accommodate. GPE register sets can be larger than the 255-bit width 5894limitation of the GAS structure. Linn Crosetto (linn@hp.com). 5895 5896_OSI Support: handle any errors from AcpiOsAcquireMutex. Check for error 5897return from this interface. Handles a possible timeout case if 5898ACPI_WAIT_FOREVER is modified by the host to be a value less than 5899"forever". Jung-uk Kim. 5900 5901Predefined name support: Add allowed/required argument type information 5902to 5903the master predefined info table. This change adds the infrastructure to 5904enable typechecking on incoming arguments for all predefined 5905methods/objects. It does not actually contain the code that will fully 5906utilize this information, this is still under development. Also condenses 5907some duplicate code for the predefined names into a new module, 5908utilities/utpredef.c 5909 5910Example Code and Data Size: These are the sizes for the OS-independent 5911acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 5912debug version of the code includes the debug output trace mechanism and 5913has a much larger code and data size. 5914 5915 Previous Release: 5916 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 5917 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 5918 Current Release: 5919 Non-Debug Version: 95.2K Code, 26.4K Data, 121.6K Total 5920 Debug Version: 183.0K Code, 76.0K Data, 259.0K Total 5921 5922 59232) iASL Compiler/Disassembler and Tools: 5924 5925iASL: Implemented a new option to simplify the development of ACPI- 5926related 5927BIOS code. Adds support for a new "offset table" output file. The -so 5928option will create a C table containing the AML table offsets of various 5929named objects in the namespace so that BIOS code can modify them easily 5930at 5931boot time. This can simplify BIOS runtime code by eliminating expensive 5932searches for "magic values", enhancing boot times and adding greater 5933reliability. With assistance from Lee Hamel. 5934 5935iASL: Allow additional predefined names to return zero-length packages. 5936Now, all predefined names that are defined by the ACPI specification to 5937return a "variable-length package of packages" are allowed to return a 5938zero length top-level package. This allows the BIOS to tell the host that 5939the requested feature is not supported, and supports existing BIOS/ASL 5940code and practices. 5941 5942iASL: Changed the "result not used" warning to an error. This is the case 5943where an ASL operator is effectively a NOOP because the result of the 5944operation is not stored anywhere. For example: 5945 Add (4, Local0) 5946There is no target (missing 3rd argument), nor is the function return 5947value used. This is potentially a very serious problem -- since the code 5948was probably intended to do something, but for whatever reason, the value 5949was not stored. Therefore, this issue has been upgraded from a warning to 5950an error. 5951 5952AcpiHelp: Added allowable/required argument types to the predefined names 5953info display. This feature utilizes the recent update to the predefined 5954names table (above). 5955 5956---------------------------------------- 595714 February 2013. Summary of changes for version 20130214: 5958 59591) ACPICA Kernel-resident Subsystem: 5960 5961Fixed a possible regression on some hosts: Reinstated the safe return 5962macros (return_ACPI_STATUS, etc.) that ensure that the argument is 5963evaluated only once. Although these macros are not needed for the ACPICA 5964code itself, they are often used by ACPI-related host device drivers 5965where 5966the safe feature may be necessary. 5967 5968Fixed several issues related to the ACPI 5.0 reduced hardware support 5969(SOC): Now ensure that if the platform declares itself as hardware- 5970reduced 5971via the FADT, the following functions become NOOPs (and always return 5972AE_OK) because ACPI is always enabled by definition on these machines: 5973 AcpiEnable 5974 AcpiDisable 5975 AcpiHwGetMode 5976 AcpiHwSetMode 5977 5978Dynamic Object Repair: Implemented additional runtime repairs for 5979predefined name return values. Both of these repairs can simplify code in 5980the related device drivers that invoke these methods: 59811) For the _STR and _MLS names, automatically repair/convert an ASCII 5982string to a Unicode buffer. 59832) For the _CRS, _PRS, and _DMA names, return a resource descriptor with 5984a 5985lone end tag descriptor in the following cases: A Return(0) was executed, 5986a null buffer was returned, or no object at all was returned (non-slack 5987mode only). Adds a new file, nsconvert.c 5988ACPICA BZ 998. Bob Moore, Lv Zheng. 5989 5990Resource Manager: Added additional code to prevent possible infinite 5991loops 5992while traversing corrupted or ill-formed resource template buffers. Check 5993for zero-length resource descriptors in all code that loops through 5994resource templates (the length field is used to index through the 5995template). This change also hardens the external AcpiWalkResources and 5996AcpiWalkResourceBuffer interfaces. 5997 5998Local Cache Manager: Enhanced the main data structure to eliminate an 5999unnecessary mechanism to access the next object in the list. Actually 6000provides a small performance enhancement for hosts that use the local 6001ACPICA cache manager. Jung-uk Kim. 6002 6003Example Code and Data Size: These are the sizes for the OS-independent 6004acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6005debug version of the code includes the debug output trace mechanism and 6006has a much larger code and data size. 6007 6008 Previous Release: 6009 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 6010 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 6011 Current Release: 6012 Non-Debug Version: 95.0K Code, 25.9K Data, 120.9K Total 6013 Debug Version: 182.9K Code, 75.6K Data, 258.5K Total 6014 6015 60162) iASL Compiler/Disassembler and Tools: 6017 6018iASL/Disassembler: Fixed several issues with the definition of the ACPI 60195.0 RASF table (RAS Feature Table). This change incorporates late changes 6020that were made to the ACPI 5.0 specification. 6021 6022iASL/Disassembler: Added full support for the following new ACPI tables: 6023 1) The MTMR table (MID Timer Table) 6024 2) The VRTC table (Virtual Real Time Clock Table). 6025Includes header file, disassembler, table compiler, and template support 6026for both tables. 6027 6028iASL: Implemented compile-time validation of package objects returned by 6029predefined names. This new feature validates static package objects 6030returned by the various predefined names defined to return packages. Both 6031object types and package lengths are validated, for both parent packages 6032and sub-packages, if any. The code is similar in structure and behavior 6033to 6034the runtime repair mechanism within the AML interpreter and uses the 6035existing predefined name information table. Adds a new file, aslprepkg.c. 6036ACPICA BZ 938. 6037 6038iASL: Implemented auto-detection of binary ACPI tables for disassembly. 6039This feature detects a binary file with a valid ACPI table header and 6040invokes the disassembler automatically. Eliminates the need to 6041specifically invoke the disassembler with the -d option. ACPICA BZ 862. 6042 6043iASL/Disassembler: Added several warnings for the case where there are 6044unresolved control methods during the disassembly. This can potentially 6045cause errors when the output file is compiled, because the disassembler 6046assumes zero method arguments in these cases (it cannot determine the 6047actual number of arguments without resolution/definition of the method). 6048 6049Debugger: Added support to display all resources with a single command. 6050Invocation of the resources command with no arguments will now display 6051all 6052resources within the current namespace. 6053 6054AcpiHelp: Added descriptive text for each ACPICA exception code displayed 6055via the -e option. 6056 6057---------------------------------------- 605817 January 2013. Summary of changes for version 20130117: 6059 60601) ACPICA Kernel-resident Subsystem: 6061 6062Updated the AcpiGetSleepTypeData interface: Allow the \_Sx methods to 6063return either 1 or 2 integers. Although the ACPI spec defines the \_Sx 6064objects to return a package containing one integer, most BIOS code 6065returns 6066two integers and the previous code reflects that. However, we also need 6067to 6068support BIOS code that actually implements to the ACPI spec, and this 6069change reflects this. 6070 6071Fixed two issues with the ACPI_DEBUG_PRINT macros: 60721) Added the ACPI_DO_WHILE macro to the main DEBUG_PRINT helper macro for 6073C compilers that require this support. 60742) Renamed the internal ACPI_DEBUG macro to ACPI_DO_DEBUG_PRINT since 6075ACPI_DEBUG is already used by many of the various hosts. 6076 6077Updated all ACPICA copyrights and signons to 2013. Added the 2013 6078copyright to all module headers and signons, including the standard Linux 6079header. This affects virtually every file in the ACPICA core subsystem, 6080iASL compiler, all ACPICA utilities, and the test suites. 6081 6082Example Code and Data Size: These are the sizes for the OS-independent 6083acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6084debug version of the code includes the debug output trace mechanism and 6085has a much larger code and data size. 6086 6087 Previous Release: 6088 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 6089 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 6090 Current Release: 6091 Non-Debug Version: 94.5K Code, 25.4K Data, 119.9K Total 6092 Debug Version: 182.3K Code, 75.0K Data, 257.3K Total 6093 6094 60952) iASL Compiler/Disassembler and Tools: 6096 6097Generic Unix OSL: Use a buffer to eliminate multiple vfprintf()s and 6098prevent a possible fault on some hosts. Some C libraries modify the arg 6099pointer parameter to vfprintf making it difficult to call it twice in the 6100AcpiOsVprintf function. Use a local buffer to workaround this issue. This 6101does not affect the Windows OSL since the Win C library does not modify 6102the arg pointer. Chao Guan, Bob Moore. 6103 6104iASL: Fixed a possible infinite loop when the maximum error count is 6105reached. If an output file other than the .AML file is specified (such as 6106a listing file), and the maximum number of errors is reached, do not 6107attempt to flush data to the output file(s) as the compiler is aborting. 6108This can cause an infinite loop as the max error count code essentially 6109keeps calling itself. 6110 6111iASL/Disassembler: Added an option (-in) to ignore NOOP 6112opcodes/operators. 6113Implemented for both the compiler and the disassembler. Often, the NOOP 6114opcode is used as padding for packages that are changed dynamically by 6115the 6116BIOS. When disassembled and recompiled, these NOOPs will cause syntax 6117errors. This option causes the disassembler to ignore all NOOP opcodes 6118(0xA3), and it also causes the compiler to ignore all ASL source code 6119NOOP 6120statements as well. 6121 6122Debugger: Enhanced the Sleep command to execute all sleep states. This 6123change allows Sleep to be invoked with no arguments and causes the 6124debugger to execute all of the sleep states, 0-5, automatically. 6125 6126---------------------------------------- 612720 December 2012. Summary of changes for version 20121220: 6128 61291) ACPICA Kernel-resident Subsystem: 6130 6131Implemented a new interface, AcpiWalkResourceBuffer. This interface is an 6132alternate entry point for AcpiWalkResources and improves the usability of 6133the resource manager by accepting as input a buffer containing the output 6134of either a _CRS, _PRS, or _AEI method. The key functionality is that the 6135input buffer is not deleted by this interface so that it can be used by 6136the host later. See the ACPICA reference for details. 6137 6138Interpreter: Add a warning if a 64-bit constant appears in a 32-bit table 6139(DSDT version < 2). The constant will be truncated and this warning 6140reflects that behavior. 6141 6142Resource Manager: Add support for the new ACPI 5.0 wake bit in the IRQ, 6143ExtendedInterrupt, and GpioInt descriptors. This change adds support to 6144both get and set the new wake bit in these descriptors, separately from 6145the existing share bit. Reported by Aaron Lu. 6146 6147Interpreter: Fix Store() when an implicit conversion is not possible. For 6148example, in the cases such as a store of a string to an existing package 6149object, implement the store as a CopyObject(). This is a small departure 6150from the ACPI specification which states that the control method should 6151be 6152aborted in this case. However, the ASLTS suite depends on this behavior. 6153 6154Performance improvement for the various FUNCTION_TRACE and DEBUG_PRINT 6155macros: check if debug output is currently enabled as soon as possible to 6156minimize performance impact if debug is in fact not enabled. 6157 6158Source code restructuring: Cleanup to improve modularity. The following 6159new files have been added: dbconvert.c, evhandler.c, nsprepkg.c, 6160psopinfo.c, psobject.c, rsdumpinfo.c, utstring.c, and utownerid.c. 6161Associated makefiles and project files have been updated. 6162 6163Changed an exception code for LoadTable operator. For the case where one 6164of the input strings is too long, change the returned exception code from 6165AE_BAD_PARAMETER to AE_AML_STRING_LIMIT. 6166 6167Fixed a possible memory leak in dispatcher error path. On error, delete 6168the mutex object created during method mutex creation. Reported by 6169tim.gardner@canonical.com. 6170 6171Example Code and Data Size: These are the sizes for the OS-independent 6172acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6173debug version of the code includes the debug output trace mechanism and 6174has a much larger code and data size. 6175 6176 Previous Release: 6177 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 6178 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6179 Current Release: 6180 Non-Debug Version: 94.5K Code, 25.5K Data, 120.0K Total 6181 Debug Version: 182.2K Code, 74.9K Data, 257.1K Total 6182 6183 61842) iASL Compiler/Disassembler and Tools: 6185 6186iASL: Disallow a method call as argument to the ObjectType ASL operator. 6187This change tracks an errata to the ACPI 5.0 document. The AML grammar 6188will not allow the interpreter to differentiate between a method and a 6189method invocation when these are used as an argument to the ObjectType 6190operator. The ACPI specification change is to disallow a method 6191invocation 6192(UserTerm) for the ObjectType operator. 6193 6194Finish support for the TPM2 and CSRT tables in the headers, table 6195compiler, and disassembler. 6196 6197Unix user-space OSL: Fix a problem with WaitSemaphore where the timeout 6198always expires immediately if the semaphore is not available. The 6199original 6200code was using a relative-time timeout, but sem_timedwait requires the 6201use 6202of an absolute time. 6203 6204iASL: Added a remark if the Timer() operator is used within a 32-bit 6205table. This operator returns a 64-bit time value that will be truncated 6206within a 32-bit table. 6207 6208iASL Source code restructuring: Cleanup to improve modularity. The 6209following new files have been added: aslhex.c, aslxref.c, aslnamesp.c, 6210aslmethod.c, and aslfileio.c. Associated makefiles and project files have 6211been updated. 6212 6213 6214---------------------------------------- 621514 November 2012. Summary of changes for version 20121114: 6216 62171) ACPICA Kernel-resident Subsystem: 6218 6219Implemented a performance enhancement for ACPI/AML Package objects. This 6220change greatly increases the performance of Package objects within the 6221interpreter. It changes the processing of reference counts for packages 6222by 6223optimizing for the most common case where the package sub-objects are 6224either Integers, Strings, or Buffers. Increases the overall performance 6225of 6226the ASLTS test suite by 1.5X (Increases the Slack Mode performance by 62272X.) 6228Chao Guan. ACPICA BZ 943. 6229 6230Implemented and deployed common macros to extract flag bits from resource 6231descriptors. Improves readability and maintainability of the code. Fixes 6232a 6233problem with the UART serial bus descriptor for the number of data bits 6234flags (was incorrectly 2 bits, should be 3). 6235 6236Enhanced the ACPI_GETx and ACPI_SETx macros. Improved the implementation 6237of the macros and changed the SETx macros to the style of (destination, 6238source). Also added ACPI_CASTx companion macros. Lv Zheng. 6239 6240Example Code and Data Size: These are the sizes for the OS-independent 6241acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6242debug version of the code includes the debug output trace mechanism and 6243has a much larger code and data size. 6244 6245 Previous Release: 6246 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 6247 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6248 Current Release: 6249 Non-Debug Version: 94.3K Code, 25.3K Data, 119.6K Total 6250 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6251 6252 62532) iASL Compiler/Disassembler and Tools: 6254 6255Disassembler: Added the new ACPI 5.0 interrupt sharing flags. This change 6256adds the ShareAndWake and ExclusiveAndWake flags which were added to the 6257Irq, Interrupt, and Gpio resource descriptors in ACPI 5.0. ACPICA BZ 986. 6258 6259Disassembler: Fixed a problem with external declaration generation. Fixes 6260a problem where an incorrect pathname could be generated for an external 6261declaration if the original reference to the object includes leading 6262carats (^). ACPICA BZ 984. 6263 6264Debugger: Completed a major update for the Disassemble<method> command. 6265This command was out-of-date and did not properly disassemble control 6266methods that had any reasonable complexity. This fix brings the command 6267up 6268to the same level as the rest of the disassembler. Adds one new file, 6269dmdeferred.c, which is existing code that is now common with the main 6270disassembler and the debugger disassemble command. ACPICA MZ 978. 6271 6272iASL: Moved the parser entry prototype to avoid a duplicate declaration. 6273Newer versions of Bison emit this prototype, so moved the prototype out 6274of 6275the iASL header to where it is actually used in order to avoid a 6276duplicate 6277declaration. 6278 6279iASL/Tools: Standardized use of the stream I/O functions: 6280 1) Ensure check for I/O error after every fopen/fread/fwrite 6281 2) Ensure proper order of size/count arguments for fread/fwrite 6282 3) Use test of (Actual != Requested) after all fwrite, and most fread 6283 4) Standardize I/O error messages 6284Improves reliability and maintainability of the code. Bob Moore, Lv 6285Zheng. 6286ACPICA BZ 981. 6287 6288Disassembler: Prevent duplicate External() statements. During generation 6289of external statements, detect similar pathnames that are actually 6290duplicates such as these: 6291 External (\ABCD) 6292 External (ABCD) 6293Remove all leading '\' characters from pathnames during the external 6294statement generation so that duplicates will be detected and tossed. 6295ACPICA BZ 985. 6296 6297Tools: Replace low-level I/O with stream I/O functions. Replace 6298open/read/write/close with the stream I/O equivalents 6299fopen/fread/fwrite/fclose for portability and performance. Lv Zheng, Bob 6300Moore. 6301 6302AcpiBin: Fix for the dump-to-hex function. Now correctly output the table 6303name header so that AcpiXtract recognizes the output file/table. 6304 6305iASL: Remove obsolete -2 option flag. Originally intended to force the 6306compiler/disassembler into an ACPI 2.0 mode, this was never implemented 6307and the entire concept is now obsolete. 6308 6309---------------------------------------- 631018 October 2012. Summary of changes for version 20121018: 6311 6312 63131) ACPICA Kernel-resident Subsystem: 6314 6315Updated support for the ACPI 5.0 MPST table. Fixes some problems 6316introduced by late changes to the table as it was added to the ACPI 5.0 6317specification. Includes header, disassembler, and data table compiler 6318support as well as a new version of the MPST template. 6319 6320AcpiGetObjectInfo: Enhanced the device object support to include the ACPI 63215.0 _SUB method. Now calls _SUB in addition to the other PNP-related ID 6322methods: _HID, _CID, and _UID. 6323 6324Changed ACPI_DEVICE_ID to ACPI_PNP_DEVICE_ID. Also changed 6325ACPI_DEVICE_ID_LIST to ACPI_PNP_DEVICE_ID_LIST. These changes prevent 6326name collisions on hosts that reserve the *_DEVICE_ID (or *DeviceId) 6327names for their various drivers. Affects the AcpiGetObjectInfo external 6328interface, and other internal interfaces as well. 6329 6330Added and deployed a new macro for ACPI_NAME management: ACPI_MOVE_NAME. 6331This macro resolves to a simple 32-bit move of the 4-character ACPI_NAME 6332on machines that support non-aligned transfers. Optimizes for this case 6333rather than using a strncpy. With assistance from Zheng Lv. 6334 6335Resource Manager: Small fix for buffer size calculation. Fixed a one byte 6336error in the output buffer calculation. Feng Tang. ACPICA BZ 849. 6337 6338Added a new debug print message for AML mutex objects that are force- 6339released. At control method termination, any currently acquired mutex 6340objects are force-released. Adds a new debug-only message for each one 6341that is released. 6342 6343Audited/updated all ACPICA return macros and the function debug depth 6344counter: 1) Ensure that all functions that use the various TRACE macros 6345also use the appropriate ACPICA return macros. 2) Ensure that all normal 6346return statements surround the return expression (value) with parens to 6347ensure consistency across the ACPICA code base. Guan Chao, Tang Feng, 6348Zheng Lv, Bob Moore. ACPICA Bugzilla 972. 6349 6350Global source code changes/maintenance: All extra lines at the start and 6351end of each source file have been removed for consistency. Also, within 6352comments, all new sentences start with a single space instead of a double 6353space, again for consistency across the code base. 6354 6355Example Code and Data Size: These are the sizes for the OS-independent 6356acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6357debug version of the code includes the debug output trace mechanism and 6358has a much larger code and data size. 6359 6360 Previous Release: 6361 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 6362 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 6363 Current Release: 6364 Non-Debug Version: 93.9K Code, 25.2K Data, 119.1K Total 6365 Debug Version: 175.5K Code, 74.5K Data, 250.0K Total 6366 6367 63682) iASL Compiler/Disassembler and Tools: 6369 6370AcpiExec: Improved the algorithm used for memory leak/corruption 6371detection. Added some intelligence to the code that maintains the global 6372list of allocated memory. The list is now ordered by allocated memory 6373address, significantly improving performance. When running AcpiExec on 6374the ASLTS test suite, speed improvements of 3X to 5X are seen, depending 6375on the platform and/or the environment. Note, this performance 6376enhancement affects the AcpiExec utility only, not the kernel-resident 6377ACPICA code. 6378 6379Enhanced error reporting for invalid AML opcodes and bad ACPI_NAMEs. For 6380the disassembler, dump the 48 bytes surrounding the invalid opcode. Fix 6381incorrect table offset reported for invalid opcodes. Report the original 638232-bit value for bad ACPI_NAMEs (as well as the repaired name.) 6383 6384Disassembler: Enhanced the -vt option to emit the binary table data in 6385hex format to assist with debugging. 6386 6387Fixed a potential filename buffer overflow in osunixdir.c. Increased the 6388size of file structure. Colin Ian King. 6389 6390---------------------------------------- 639113 September 2012. Summary of changes for version 20120913: 6392 6393 63941) ACPICA Kernel-resident Subsystem: 6395 6396ACPI 5.0: Added two new notify types for the Hardware Error Notification 6397Structure within the Hardware Error Source Table (HEST) table -- CMCI(5) 6398and 6399MCE(6). 6400 6401Table Manager: Merged/removed duplicate code in the root table resize 6402functions. One function is external, the other is internal. Lv Zheng, 6403ACPICA 6404BZ 846. 6405 6406Makefiles: Completely removed the obsolete "Linux" makefiles under 6407acpica/generate/linux. These makefiles are obsolete and have been 6408replaced 6409by 6410the generic unix makefiles under acpica/generate/unix. 6411 6412Makefiles: Ensure that binary files always copied properly. Minor rule 6413change 6414to ensure that the final binary output files are always copied up to the 6415appropriate binary directory (bin32 or bin64.) 6416 6417Example Code and Data Size: These are the sizes for the OS-independent 6418acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6419debug 6420version of the code includes the debug output trace mechanism and has a 6421much 6422larger code and data size. 6423 6424 Previous Release: 6425 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 6426 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 6427 Current Release: 6428 Non-Debug Version: 93.7K Code, 25.3K Data, 119.0K Total 6429 Debug Version: 175.0K Code, 74.4K Data, 249.4K Total 6430 6431 64322) iASL Compiler/Disassembler and Tools: 6433 6434Disassembler: Fixed a possible fault during the disassembly of resource 6435descriptors when a second parse is required because of the invocation of 6436external control methods within the table. With assistance from 6437adq@lidskialf.net. ACPICA BZ 976. 6438 6439iASL: Fixed a namepath optimization problem. An error can occur if the 6440parse 6441node that contains the namepath to be optimized does not have a parent 6442node 6443that is a named object. This change fixes the problem. 6444 6445iASL: Fixed a regression where the AML file is not deleted on errors. The 6446AML 6447output file should be deleted if there are any errors during the 6448compiler. 6449The 6450only exception is if the -f (force output) option is used. ACPICA BZ 974. 6451 6452iASL: Added a feature to automatically increase internal line buffer 6453sizes. 6454Via realloc(), automatically increase the internal line buffer sizes as 6455necessary to support very long source code lines. The current version of 6456the 6457preprocessor requires a buffer long enough to contain full source code 6458lines. 6459This change increases the line buffer(s) if the input lines go beyond the 6460current buffer size. This eliminates errors that occurred when a source 6461code 6462line was longer than the buffer. 6463 6464iASL: Fixed a problem with constant folding in method declarations. The 6465SyncLevel term is a ByteConstExpr, and incorrect code would be generated 6466if a 6467Type3 opcode was used. 6468 6469Debugger: Improved command help support. For incorrect argument count, 6470display 6471full help for the command. For help command itself, allow an argument to 6472specify a command. 6473 6474Test Suites: Several bug fixes for the ASLTS suite reduces the number of 6475errors during execution of the suite. Guan Chao. 6476 6477---------------------------------------- 647816 August 2012. Summary of changes for version 20120816: 6479 6480 64811) ACPICA Kernel-resident Subsystem: 6482 6483Removed all use of the deprecated _GTS and _BFS predefined methods. The 6484_GTS 6485(Going To Sleep) and _BFS (Back From Sleep) methods are essentially 6486deprecated and will probably be removed from the ACPI specification. 6487Windows 6488does not invoke them, and reportedly never will. The final nail in the 6489coffin 6490is that the ACPI specification states that these methods must be run with 6491interrupts off, which is not going to happen in a kernel interpreter. 6492Note: 6493Linux has removed all use of the methods also. It was discovered that 6494invoking these functions caused failures on some machines, probably 6495because 6496they were never tested since Windows does not call them. Affects two 6497external 6498interfaces, AcpiEnterSleepState and AcpiLeaveSleepStatePrep. Tang Feng. 6499ACPICA BZ 969. 6500 6501Implemented support for complex bit-packed buffers returned from the _PLD 6502(Physical Location of Device) predefined method. Adds a new external 6503interface, AcpiDecodePldBuffer that parses the buffer into a more usable 6504C 6505structure. Note: C Bitfields cannot be used for this type of predefined 6506structure since the memory layout of individual bitfields is not defined 6507by 6508the C language. In addition, there are endian concerns where a compiler 6509will 6510change the bitfield ordering based on the machine type. The new ACPICA 6511interface eliminates these issues, and should be called after _PLD is 6512executed. ACPICA BZ 954. 6513 6514Implemented a change to allow a scope change to root (via "Scope (\)") 6515during 6516execution of module-level ASL code (code that is executed at table load 6517time.) Lin Ming. 6518 6519Added the Windows8/Server2012 string for the _OSI method. This change 6520adds 6521a 6522new _OSI string, "Windows 2012" for both Windows 8 and Windows Server 65232012. 6524 6525Added header support for the new ACPI tables DBG2 (Debug Port Table Type 65262) 6527and CSRT (Core System Resource Table). 6528 6529Added struct header support for the _FDE, _GRT, _GTM, and _SRT predefined 6530names. This simplifies access to the buffers returned by these predefined 6531names. Adds a new file, include/acbuffer.h. ACPICA BZ 956. 6532 6533GPE support: Removed an extraneous parameter from the various low-level 6534internal GPE functions. Tang Feng. 6535 6536Removed the linux makefiles from the unix packages. The generate/linux 6537makefiles are obsolete and have been removed from the unix tarball 6538release 6539packages. The replacement makefiles are under generate/unix, and there is 6540a 6541top-level makefile under the main acpica directory. ACPICA BZ 967, 912. 6542 6543Updates for Unix makefiles: 65441) Add -D_FORTIFY_SOURCE=2 for gcc generation. Arjan van de Ven. 65452) Update linker flags (move to end of command line) for AcpiExec 6546utility. 6547Guan Chao. 6548 6549Split ACPICA initialization functions to new file, utxfinit.c. Split from 6550utxface.c to improve modularity and reduce file size. 6551 6552Example Code and Data Size: These are the sizes for the OS-independent 6553acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6554debug version of the code includes the debug output trace mechanism and 6555has a 6556much larger code and data size. 6557 6558 Previous Release: 6559 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 6560 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 6561 Current Release: 6562 Non-Debug Version: 93.8K Code, 25.3K Data, 119.1K Total 6563 Debug Version: 175.7K Code, 74.8K Data, 250.5K Total 6564 6565 65662) iASL Compiler/Disassembler and Tools: 6567 6568iASL: Fixed a problem with constant folding for fixed-length constant 6569expressions. The constant-folding code was not being invoked for constant 6570expressions that allow the use of type 3/4/5 opcodes to generate 6571constants 6572for expressions such as ByteConstExpr, WordConstExpr, etc. This could 6573result 6574in the generation of invalid AML bytecode. ACPICA BZ 970. 6575 6576iASL: Fixed a generation issue on newer versions of Bison. Newer versions 6577apparently automatically emit some of the necessary externals. This 6578change 6579handles these versions in order to eliminate generation warnings. 6580 6581Disassembler: Added support to decode the DBG2 and CSRT ACPI tables. 6582 6583Disassembler: Add support to decode _PLD buffers. The decoded buffer 6584appears 6585within comments in the output file. 6586 6587Debugger: Fixed a regression with the "Threads" command where 6588AE_BAD_PARAMETER was always returned. 6589 6590---------------------------------------- 659111 July 2012. Summary of changes for version 20120711: 6592 65931) ACPICA Kernel-resident Subsystem: 6594 6595Fixed a possible fault in the return package object repair code. Fixes a 6596problem that can occur when a lone package object is wrapped with an 6597outer 6598package object in order to force conformance to the ACPI specification. 6599Can 6600affect these predefined names: _ALR, _MLS, _PSS, _TRT, _TSS, _PRT, _HPX, 6601_DLM, 6602_CSD, _PSD, _TSD. 6603 6604Removed code to disable/enable bus master arbitration (ARB_DIS bit in the 6605PM2_CNT register) in the ACPICA sleep/wake interfaces. Management of the 6606ARB_DIS bit must be implemented in the host-dependent C3 processor power 6607state 6608support. Note, ARB_DIS is obsolete and only applies to older chipsets, 6609both 6610Intel and other vendors. (for Intel: ICH4-M and earlier) 6611 6612This change removes the code to disable/enable bus master arbitration 6613during 6614suspend/resume. Use of the ARB_DIS bit in the optional PM2_CNT register 6615causes 6616resume problems on some machines. The change has been in use for over 6617seven 6618years within Linux. 6619 6620Implemented two new external interfaces to support host-directed dynamic 6621ACPI 6622table load and unload. They are intended to simplify the host 6623implementation 6624of hot-plug support: 6625 AcpiLoadTable: Load an SSDT from a buffer into the namespace. 6626 AcpiUnloadParentTable: Unload an SSDT via a named object owned by the 6627table. 6628See the ACPICA reference for additional details. Adds one new file, 6629components/tables/tbxfload.c 6630 6631Implemented and deployed two new interfaces for errors and warnings that 6632are 6633known to be caused by BIOS/firmware issues: 6634 AcpiBiosError: Prints "ACPI Firmware Error" message. 6635 AcpiBiosWarning: Prints "ACPI Firmware Warning" message. 6636Deployed these new interfaces in the ACPICA Table Manager code for ACPI 6637table 6638and FADT errors. Additional deployment to be completed as appropriate in 6639the 6640future. The associated conditional macros are ACPI_BIOS_ERROR and 6641ACPI_BIOS_WARNING. See the ACPICA reference for additional details. 6642ACPICA 6643BZ 6644843. 6645 6646Implicit notify support: ensure that no memory allocation occurs within a 6647critical region. This fix moves a memory allocation outside of the time 6648that a 6649spinlock is held. Fixes issues on systems that do not allow this 6650behavior. 6651Jung-uk Kim. 6652 6653Split exception code utilities and tables into a new file, 6654utilities/utexcep.c 6655 6656Example Code and Data Size: These are the sizes for the OS-independent 6657acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6658debug 6659version of the code includes the debug output trace mechanism and has a 6660much 6661larger code and data size. 6662 6663 Previous Release: 6664 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 6665 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 6666 Current Release: 6667 Non-Debug Version: 93.5K Code, 25.3K Data, 118.8K Total 6668 Debug Version: 173.7K Code, 74.0K Data, 247.7K Total 6669 6670 66712) iASL Compiler/Disassembler and Tools: 6672 6673iASL: Fixed a parser problem for hosts where EOF is defined as -1 instead 6674of 66750. Jung-uk Kim. 6676 6677Debugger: Enhanced the "tables" command to emit additional information 6678about 6679the current set of ACPI tables, including the owner ID and flags decode. 6680 6681Debugger: Reimplemented the "unload" command to use the new 6682AcpiUnloadParentTable external interface. This command was disable 6683previously 6684due to need for an unload interface. 6685 6686AcpiHelp: Added a new option to decode ACPICA exception codes. The -e 6687option 6688will decode 16-bit hex status codes (ACPI_STATUS) to name strings. 6689 6690---------------------------------------- 669120 June 2012. Summary of changes for version 20120620: 6692 6693 66941) ACPICA Kernel-resident Subsystem: 6695 6696Implemented support to expand the "implicit notify" feature to allow 6697multiple 6698devices to be notified by a single GPE. This feature automatically 6699generates a 6700runtime device notification in the absence of a BIOS-provided GPE control 6701method (_Lxx/_Exx) or a host-installed handler for the GPE. Implicit 6702notify is 6703provided by ACPICA for Windows compatibility, and is a workaround for 6704BIOS 6705AML 6706code errors. See the description of the AcpiSetupGpeForWake interface in 6707the 6708APCICA reference. Bob Moore, Rafael Wysocki. ACPICA BZ 918. 6709 6710Changed some comments and internal function names to simplify and ensure 6711correctness of the Linux code translation. No functional changes. 6712 6713Example Code and Data Size: These are the sizes for the OS-independent 6714acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6715debug 6716version of the code includes the debug output trace mechanism and has a 6717much 6718larger code and data size. 6719 6720 Previous Release: 6721 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 6722 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 6723 Current Release: 6724 Non-Debug Version: 93.1K Code, 25.1K Data, 118.2K Total 6725 Debug Version: 172.9K Code, 73.6K Data, 246.5K Total 6726 6727 67282) iASL Compiler/Disassembler and Tools: 6729 6730Disassembler: Added support to emit short, commented descriptions for the 6731ACPI 6732predefined names in order to improve the readability of the disassembled 6733output. ACPICA BZ 959. Changes include: 6734 1) Emit descriptions for all standard predefined names (_INI, _STA, 6735_PRW, 6736etc.) 6737 2) Emit generic descriptions for the special names (_Exx, _Qxx, etc.) 6738 3) Emit descriptions for the resource descriptor names (_MIN, _LEN, 6739etc.) 6740 6741AcpiSrc: Fixed several long-standing Linux code translation issues. 6742Argument 6743descriptions in function headers are now translated properly to lower 6744case 6745and 6746underscores. ACPICA BZ 961. Also fixes translation problems such as 6747these: 6748(old -> new) 6749 i_aSL -> iASL 6750 00-7_f -> 00-7F 6751 16_k -> 16K 6752 local_fADT -> local_FADT 6753 execute_oSI -> execute_OSI 6754 6755iASL: Fixed a problem where null bytes were inadvertently emitted into 6756some 6757listing files. 6758 6759iASL: Added the existing debug options to the standard help screen. There 6760are 6761no longer two different help screens. ACPICA BZ 957. 6762 6763AcpiHelp: Fixed some typos in the various predefined name descriptions. 6764Also 6765expand some of the descriptions where appropriate. 6766 6767iASL: Fixed the -ot option (display compile times/statistics). Was not 6768working 6769properly for standard output; only worked for the debug file case. 6770 6771---------------------------------------- 677218 May 2012. Summary of changes for version 20120518: 6773 6774 67751) ACPICA Core Subsystem: 6776 6777Added a new OSL interface, AcpiOsWaitEventsComplete. This interface is 6778defined 6779to block until asynchronous events such as notifies and GPEs have 6780completed. 6781Within ACPICA, it is only called before a notify or GPE handler is 6782removed/uninstalled. It also may be useful for the host OS within related 6783drivers such as the Embedded Controller driver. See the ACPICA reference 6784for 6785additional information. ACPICA BZ 868. 6786 6787ACPI Tables: Added a new error message for a possible overflow failure 6788during 6789the conversion of FADT 32-bit legacy register addresses to internal 6790common 679164- 6792bit GAS structure representation. The GAS has a one-byte "bit length" 6793field, 6794thus limiting the register length to 255 bits. ACPICA BZ 953. 6795 6796Example Code and Data Size: These are the sizes for the OS-independent 6797acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6798debug 6799version of the code includes the debug output trace mechanism and has a 6800much 6801larger code and data size. 6802 6803 Previous Release: 6804 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6805 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6806 Current Release: 6807 Non-Debug Version: 93.0K Code, 25.1K Data, 118.1K Total 6808 Debug Version: 172.7K Code, 73.6K Data, 246.3K Total 6809 6810 68112) iASL Compiler/Disassembler and Tools: 6812 6813iASL: Added the ACPI 5.0 "PCC" keyword for use in the Register() ASL 6814macro. 6815This keyword was added late in the ACPI 5.0 release cycle and was not 6816implemented until now. 6817 6818Disassembler: Added support for Operation Region externals. Adds missing 6819support for operation regions that are defined in another table, and 6820referenced locally via a Field or BankField ASL operator. Now generates 6821the 6822correct External statement. 6823 6824Disassembler: Several additional fixes for the External() statement 6825generation 6826related to some ASL operators. Also, order the External() statements 6827alphabetically in the disassembler output. Fixes the External() 6828generation 6829for 6830the Create* field, Alias, and Scope operators: 6831 1) Create* buffer field operators - fix type mismatch warning on 6832disassembly 6833 2) Alias - implement missing External support 6834 3) Scope - fix to make sure all necessary externals are emitted. 6835 6836iASL: Improved pathname support. For include files, merge the prefix 6837pathname 6838with the file pathname and eliminate unnecessary components. Convert 6839backslashes in all pathnames to forward slashes, for readability. Include 6840file 6841pathname changes affect both #include and Include() type operators. 6842 6843iASL/DTC/Preprocessor: Gracefully handle early EOF. Handle an EOF at the 6844end 6845of a valid line by inserting a newline and then returning the EOF during 6846the 6847next call to GetNextLine. Prevents the line from being ignored due to EOF 6848condition. 6849 6850iASL: Implemented some changes to enhance the IDE support (-vi option.) 6851Error 6852and Warning messages are now correctly recognized for both the source 6853code 6854browser and the global error and warning counts. 6855 6856---------------------------------------- 685720 April 2012. Summary of changes for version 20120420: 6858 6859 68601) ACPICA Core Subsystem: 6861 6862Implemented support for multiple notify handlers. This change adds 6863support 6864to 6865allow multiple system and device notify handlers on Device, Thermal Zone, 6866and 6867Processor objects. This can simplify the host OS notification 6868implementation. 6869Also re-worked and restructured the entire notify support code to 6870simplify 6871handler installation, handler removal, notify event queuing, and notify 6872dispatch to handler(s). Note: there can still only be two global notify 6873handlers - one for system notifies and one for device notifies. There are 6874no 6875changes to the existing handler install/remove interfaces. Lin Ming, Bob 6876Moore, Rafael Wysocki. 6877 6878Fixed a regression in the package repair code where the object reference 6879count was calculated incorrectly. Regression was introduced in the commit 6880"Support to add Package wrappers". 6881 6882Fixed a couple possible memory leaks in the AML parser, in the error 6883recovery 6884path. Jesper Juhl, Lin Ming. 6885 6886Example Code and Data Size: These are the sizes for the OS-independent 6887acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 6888debug version of the code includes the debug output trace mechanism and 6889has a 6890much larger code and data size. 6891 6892 Previous Release: 6893 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6894 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 6895 Current Release: 6896 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 6897 Debug Version: 172.6K Code, 73.4K Data, 246.0K Total 6898 6899 69002) iASL Compiler/Disassembler and Tools: 6901 6902iASL: Fixed a problem with the resource descriptor support where the 6903length 6904of the StartDependentFn and StartDependentFnNoPrio descriptors were not 6905included in cumulative descriptor offset, resulting in incorrect values 6906for 6907resource tags within resource descriptors appearing after a 6908StartDependent* 6909descriptor. Reported by Petr Vandrovec. ACPICA BZ 949. 6910 6911iASL and Preprocessor: Implemented full support for the #line directive 6912to 6913correctly track original source file line numbers through the .i 6914preprocessor 6915output file - for error and warning messages. 6916 6917iASL: Expand the allowable byte constants for address space IDs. 6918Previously, 6919the allowable range was 0x80-0xFF (user-defined spaces), now the range is 69200x0A-0xFF to allow for custom and new IDs without changing the compiler. 6921 6922iASL: Add option to treat all warnings as errors (-we). ACPICA BZ 948. 6923 6924iASL: Add option to completely disable the preprocessor (-Pn). 6925 6926iASL: Now emit all error/warning messages to standard error (stderr) by 6927default (instead of the previous stdout). 6928 6929ASL Test Suite (ASLTS): Reduce iASL warnings due to use of Switch(). 6930Update 6931for resource descriptor offset fix above. Update/cleanup error output 6932routines. Enable and send iASL errors/warnings to an error logfile 6933(error.txt). Send all other iASL output to a logfile (compiler.txt). 6934Fixed 6935several extraneous "unrecognized operator" messages. 6936 6937---------------------------------------- 693820 March 2012. Summary of changes for version 20120320: 6939 6940 69411) ACPICA Core Subsystem: 6942 6943Enhanced the sleep/wake interfaces to optionally execute the _GTS method 6944(Going To Sleep) and the _BFS method (Back From Sleep). Windows 6945apparently 6946does not execute these methods, and therefore these methods are often 6947untested. It has been seen on some systems where the execution of these 6948methods causes errors and also prevents the machine from entering S5. It 6949is 6950therefore suggested that host operating systems do not execute these 6951methods 6952by default. In the future, perhaps these methods can be optionally 6953executed 6954based on the age of the system and/or what is the newest version of 6955Windows 6956that the BIOS asks for via _OSI. Changed interfaces: AcpiEnterSleepState 6957and 6958AcpileaveSleepStatePrep. See the ACPICA reference and Linux BZ 13041. Lin 6959Ming. 6960 6961Fixed a problem where the length of the local/common FADT was set too 6962early. 6963The local FADT table length cannot be set to the common length until the 6964original length has been examined. There is code that checks the table 6965length 6966and sets various fields appropriately. This can affect older machines 6967with 6968early FADT versions. For example, this can cause inadvertent writes to 6969the 6970CST_CNT register. Julian Anastasov. 6971 6972Fixed a mapping issue related to a physical table override. Use the 6973deferred 6974mapping mechanism for tables loaded via the physical override OSL 6975interface. 6976This allows for early mapping before the virtual memory manager is 6977available. 6978Thomas Renninger, Bob Moore. 6979 6980Enhanced the automatic return-object repair code: Repair a common problem 6981with 6982predefined methods that are defined to return a variable-length Package 6983of 6984sub-objects. If there is only one sub-object, some BIOS ASL code 6985mistakenly 6986simply returns the single object instead of a Package with one sub- 6987object. 6988This new support will repair this error by wrapping a Package object 6989around 6990the original object, creating the correct and expected Package with one 6991sub- 6992object. Names that can be repaired in this manner include: _ALR, _CSD, 6993_HPX, 6994_MLS, _PLD, _PRT, _PSS, _TRT, _TSS, _BCL, _DOD, _FIX, and _Sx. ACPICA BZ 6995939. 6996 6997Changed the exception code returned for invalid ACPI paths passed as 6998parameters to external interfaces such as AcpiEvaluateObject. Was 6999AE_BAD_PARAMETER, now is the more sensible AE_BAD_PATHNAME. 7000 7001Example Code and Data Size: These are the sizes for the OS-independent 7002acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7003debug 7004version of the code includes the debug output trace mechanism and has a 7005much 7006larger code and data size. 7007 7008 Previous Release: 7009 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 7010 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7011 Current Release: 7012 Non-Debug Version: 92.9K Code, 25.0K Data, 117.9K Total 7013 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7014 7015 70162) iASL Compiler/Disassembler and Tools: 7017 7018iASL: Added the infrastructure and initial implementation of a integrated 7019C- 7020like preprocessor. This will simplify BIOS development process by 7021eliminating 7022the need for a separate preprocessing step during builds. On Windows, it 7023also 7024eliminates the need to install a separate C compiler. ACPICA BZ 761. Some 7025features including full #define() macro support are still under 7026development. 7027These preprocessor directives are supported: 7028 #define 7029 #elif 7030 #else 7031 #endif 7032 #error 7033 #if 7034 #ifdef 7035 #ifndef 7036 #include 7037 #pragma message 7038 #undef 7039 #warning 7040In addition, these new command line options are supported: 7041 -D <symbol> Define symbol for preprocessor use 7042 -li Create preprocessed output file (*.i) 7043 -P Preprocess only and create preprocessor output file (*.i) 7044 7045Table Compiler: Fixed a problem where the equals operator within an 7046expression 7047did not work properly. 7048 7049Updated iASL to use the current versions of Bison/Flex. Updated the 7050Windows 7051project file to invoke these tools from the standard location. ACPICA BZ 7052904. 7053Versions supported: 7054 Flex for Windows: V2.5.4 7055 Bison for Windows: V2.4.1 7056 7057---------------------------------------- 705815 February 2012. Summary of changes for version 20120215: 7059 7060 70611) ACPICA Core Subsystem: 7062 7063There have been some major changes to the sleep/wake support code, as 7064described below (a - e). 7065 7066a) The AcpiLeaveSleepState has been split into two interfaces, similar to 7067AcpiEnterSleepStatePrep and AcpiEnterSleepState. The new interface is 7068AcpiLeaveSleepStatePrep. This allows the host to perform actions between 7069the 7070time the _BFS method is called and the _WAK method is called. NOTE: all 7071hosts 7072must update their wake/resume code or else sleep/wake will not work 7073properly. 7074Rafael Wysocki. 7075 7076b) In AcpiLeaveSleepState, now enable all runtime GPEs before calling the 7077_WAK 7078method. Some machines require that the GPEs are enabled before the _WAK 7079method 7080is executed. Thomas Renninger. 7081 7082c) In AcpiLeaveSleepState, now always clear the WAK_STS (wake status) 7083bit. 7084Some BIOS code assumes that WAK_STS will be cleared on resume and use it 7085to 7086determine whether the system is rebooting or resuming. Matthew Garrett. 7087 7088d) Move the invocations of _GTS (Going To Sleep) and _BFS (Back From 7089Sleep) to 7090match the ACPI specification requirement. Rafael Wysocki. 7091 7092e) Implemented full support for the ACPI 5.0 SleepStatus and SleepControl 7093registers within the V5 FADT. This support adds two new files: 7094hardware/hwesleep.c implements the support for the new registers. Moved 7095all 7096sleep/wake external interfaces to hardware/hwxfsleep.c. 7097 7098 7099Added a new OSL interface for ACPI table overrides, 7100AcpiOsPhysicalTableOverride. This interface allows the host to override a 7101table via a physical address, instead of the logical address required by 7102AcpiOsTableOverride. This simplifies the host implementation. Initial 7103implementation by Thomas Renninger. The ACPICA implementation creates a 7104single 7105shared function for table overrides that attempts both a logical and a 7106physical override. 7107 7108Expanded the OSL memory read/write interfaces to 64-bit data 7109(AcpiOsReadMemory, AcpiOsWriteMemory.) This enables full 64-bit memory 7110transfer support for GAS register structures passed to AcpiRead and 7111AcpiWrite. 7112 7113Implemented the ACPI_REDUCED_HARDWARE option to allow the creation of a 7114custom 7115build of ACPICA that supports only the ACPI 5.0 reduced hardware (SoC) 7116model. 7117See the ACPICA reference for details. ACPICA BZ 942. This option removes 7118about 711910% of the code and 5% of the static data, and the following hardware 7120ACPI 7121features become unavailable: 7122 PM Event and Control registers 7123 SCI interrupt (and handler) 7124 Fixed Events 7125 General Purpose Events (GPEs) 7126 Global Lock 7127 ACPI PM timer 7128 7129Updated the unix tarball directory structure to match the ACPICA git 7130source 7131tree. This ensures that the generic unix makefiles work properly (in 7132generate/unix). Also updated the Linux makefiles to match. ACPICA BZ 7133867. 7134 7135Updated the return value of the _REV predefined method to integer value 5 7136to 7137reflect ACPI 5.0 support. 7138 7139Moved the external ACPI PM timer interface prototypes to the public 7140acpixf.h 7141file where they belong. 7142 7143Example Code and Data Size: These are the sizes for the OS-independent 7144acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7145debug 7146version of the code includes the debug output trace mechanism and has a 7147much 7148larger code and data size. 7149 7150 Previous Release: 7151 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 7152 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 7153 Current Release: 7154 Non-Debug Version: 93.0K Code, 25.0K Data, 118.0K Total 7155 Debug Version: 172.5K Code, 73.2K Data, 245.7K Total 7156 7157 71582) iASL Compiler/Disassembler and Tools: 7159 7160Disassembler: Fixed a problem with the new ACPI 5.0 serial resource 7161descriptors (I2C, SPI, UART) where the resource produce/consumer bit was 7162incorrectly displayed. 7163 7164AcpiHelp: Add display of ACPI/PNP device IDs that are defined in the ACPI 7165specification. 7166 7167---------------------------------------- 716811 January 2012. Summary of changes for version 20120111: 7169 7170 71711) ACPICA Core Subsystem: 7172 7173Implemented a new mechanism to allow host device drivers to check for 7174address 7175range conflicts with ACPI Operation Regions. Both SystemMemory and 7176SystemIO 7177address spaces are supported. A new external interface, 7178AcpiCheckAddressRange, 7179allows drivers to check an address range against the ACPI namespace. See 7180the 7181ACPICA reference for additional details. Adds one new file, 7182utilities/utaddress.c. Lin Ming, Bob Moore. 7183 7184Fixed several issues with the ACPI 5.0 FADT support: Add the sleep 7185Control 7186and 7187Status registers, update the ACPI 5.0 flags, and update internal data 7188structures to handle an FADT larger than 256 bytes. The size of the ACPI 71895.0 7190FADT is 268 bytes. 7191 7192Updated all ACPICA copyrights and signons to 2012. Added the 2012 7193copyright to 7194all module headers and signons, including the standard Linux header. This 7195affects virtually every file in the ACPICA core subsystem, iASL compiler, 7196and 7197all ACPICA utilities. 7198 7199Example Code and Data Size: These are the sizes for the OS-independent 7200acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7201debug 7202version of the code includes the debug output trace mechanism and has a 7203much 7204larger code and data size. 7205 7206 Previous Release: 7207 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 7208 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 7209 Current Release: 7210 Non-Debug Version: 92.8K Code, 24.9K Data, 117.7K Total 7211 Debug Version: 171.7K Code, 72.9K Data, 244.5K Total 7212 7213 72142) iASL Compiler/Disassembler and Tools: 7215 7216Disassembler: fixed a problem with the automatic resource tag generation 7217support. Fixes a problem where the resource tags are inadvertently not 7218constructed if the table being disassembled contains external references 7219to 7220control methods. Moved the actual construction of the tags to after the 7221final 7222namespace is constructed (after 2nd parse is invoked due to external 7223control 7224method references.) ACPICA BZ 941. 7225 7226Table Compiler: Make all "generic" operators caseless. These are the 7227operators 7228like UINT8, String, etc. Making these caseless improves ease-of-use. 7229ACPICA BZ 7230934. 7231 7232---------------------------------------- 723323 November 2011. Summary of changes for version 20111123: 7234 72350) ACPI 5.0 Support: 7236 7237This release contains full support for the ACPI 5.0 specification, as 7238summarized below. 7239 7240Reduced Hardware Support: 7241------------------------- 7242 7243This support allows for ACPI systems without the usual ACPI hardware. 7244This 7245support is enabled by a flag in the revision 5 FADT. If it is set, ACPICA 7246will 7247not attempt to initialize or use any of the usual ACPI hardware. Note, 7248when 7249this flag is set, all of the following ACPI hardware is assumed to be not 7250present and is not initialized or accessed: 7251 7252 General Purpose Events (GPEs) 7253 Fixed Events (PM1a/PM1b and PM Control) 7254 Power Management Timer and Console Buttons (power/sleep) 7255 Real-time Clock Alarm 7256 Global Lock 7257 System Control Interrupt (SCI) 7258 The FACS is assumed to be non-existent 7259 7260ACPI Tables: 7261------------ 7262 7263All new tables and updates to existing tables are fully supported in the 7264ACPICA headers (for use by device drivers), the disassembler, and the 7265iASL 7266Data Table Compiler. ACPI 5.0 defines these new tables: 7267 7268 BGRT /* Boot Graphics Resource Table */ 7269 DRTM /* Dynamic Root of Trust for Measurement table */ 7270 FPDT /* Firmware Performance Data Table */ 7271 GTDT /* Generic Timer Description Table */ 7272 MPST /* Memory Power State Table */ 7273 PCCT /* Platform Communications Channel Table */ 7274 PMTT /* Platform Memory Topology Table */ 7275 RASF /* RAS Feature table */ 7276 7277Operation Regions/SpaceIDs: 7278--------------------------- 7279 7280All new operation regions are fully supported by the iASL compiler, the 7281disassembler, and the ACPICA runtime code (for dispatch to region 7282handlers.) 7283The new operation region Space IDs are: 7284 7285 GeneralPurposeIo 7286 GenericSerialBus 7287 7288Resource Descriptors: 7289--------------------- 7290 7291All new ASL resource descriptors are fully supported by the iASL 7292compiler, 7293the 7294ASL/AML disassembler, and the ACPICA runtime Resource Manager code 7295(including 7296all new predefined resource tags). New descriptors are: 7297 7298 FixedDma 7299 GpioIo 7300 GpioInt 7301 I2cSerialBus 7302 SpiSerialBus 7303 UartSerialBus 7304 7305ASL/AML Operators, New and Modified: 7306------------------------------------ 7307 7308One new operator is added, the Connection operator, which is used to 7309associate 7310a GeneralPurposeIo or GenericSerialBus resource descriptor with 7311individual 7312field objects within an operation region. Several new protocols are 7313associated 7314with the AccessAs operator. All are fully supported by the iASL compiler, 7315disassembler, and runtime ACPICA AML interpreter: 7316 7317 Connection // Declare Field Connection 7318attributes 7319 AccessAs: AttribBytes (n) // Read/Write N-Bytes Protocol 7320 AccessAs: AttribRawBytes (n) // Raw Read/Write N-Bytes 7321Protocol 7322 AccessAs: AttribRawProcessBytes (n) // Raw Process Call Protocol 7323 RawDataBuffer // Data type for Vendor Data 7324fields 7325 7326Predefined ASL/AML Objects: 7327--------------------------- 7328 7329All new predefined objects/control-methods are supported by the iASL 7330compiler 7331and the ACPICA runtime validation/repair (arguments and return values.) 7332New 7333predefined names include the following: 7334 7335Standard Predefined Names (Objects or Control Methods): 7336 _AEI, _CLS, _CPC, _CWS, _DEP, 7337 _DLM, _EVT, _GCP, _CRT, _GWS, 7338 _HRV, _PRE, _PSE, _SRT, _SUB. 7339 7340Resource Tags (Names used to access individual fields within resource 7341descriptors): 7342 _DBT, _DPL, _DRS, _END, _FLC, 7343 _IOR, _LIN, _MOD, _PAR, _PHA, 7344 _PIN, _PPI, _POL, _RXL, _SLV, 7345 _SPE, _STB, _TXL, _VEN. 7346 7347ACPICA External Interfaces: 7348--------------------------- 7349 7350Several new interfaces have been defined for use by ACPI-related device 7351drivers and other host OS services: 7352 7353AcpiAcquireMutex and AcpiReleaseMutex: These interfaces allow the host OS 7354to 7355acquire and release AML mutexes that are defined in the DSDT/SSDT tables 7356provided by the BIOS. They are intended to be used in conjunction with 7357the 7358ACPI 5.0 _DLM (Device Lock Method) in order to provide transaction-level 7359mutual exclusion with the AML code/interpreter. 7360 7361AcpiGetEventResources: Returns the (formatted) resource descriptors as 7362defined 7363by the ACPI 5.0 _AEI object (ACPI Event Information). This object 7364provides 7365resource descriptors associated with hardware-reduced platform events, 7366similar 7367to the AcpiGetCurrentResources interface. 7368 7369Operation Region Handlers: For General Purpose IO and Generic Serial Bus 7370operation regions, information about the Connection() object and any 7371optional 7372length information is passed to the region handler within the Context 7373parameter. 7374 7375AcpiBufferToResource: This interface converts a raw AML buffer containing 7376a 7377resource template or resource descriptor to the ACPI_RESOURCE internal 7378format 7379suitable for use by device drivers. Can be used by an operation region 7380handler 7381to convert the Connection() buffer object into a ACPI_RESOURCE. 7382 7383Miscellaneous/Tools/TestSuites: 7384------------------------------- 7385 7386Support for extended _HID names (Four alpha characters instead of three). 7387Support for ACPI 5.0 features in the AcpiExec and AcpiHelp utilities. 7388Support for ACPI 5.0 features in the ASLTS test suite. 7389Fully updated documentation (ACPICA and iASL reference documents.) 7390 7391ACPI Table Definition Language: 7392------------------------------- 7393 7394Support for this language was implemented and released as a subsystem of 7395the 7396iASL compiler in 2010. (See the iASL compiler User Guide.) 7397 7398 7399Non-ACPI 5.0 changes for this release: 7400-------------------------------------- 7401 74021) ACPICA Core Subsystem: 7403 7404Fix a problem with operation region declarations where a failure can 7405occur 7406if 7407the region name and an argument that evaluates to an object (such as the 7408region address) are in different namespace scopes. Lin Ming, ACPICA BZ 7409937. 7410 7411Do not abort an ACPI table load if an invalid space ID is found within. 7412This 7413will be caught later if the offending method is executed. ACPICA BZ 925. 7414 7415Fixed an issue with the FFixedHW space ID where the ID was not always 7416recognized properly (Both ACPICA and iASL). ACPICA BZ 926. 7417 7418Fixed a problem with the 32-bit generation of the unix-specific OSL 7419(osunixxf.c). Lin Ming, ACPICA BZ 936. 7420 7421Several changes made to enable generation with the GCC 4.6 compiler. 7422ACPICA BZ 7423935. 7424 7425New error messages: Unsupported I/O requests (not 8/16/32 bit), and 7426Index/Bank 7427field registers out-of-range. 7428 74292) iASL Compiler/Disassembler and Tools: 7430 7431iASL: Implemented the __PATH__ operator, which returns the full pathname 7432of 7433the current source file. 7434 7435AcpiHelp: Automatically display expanded keyword information for all ASL 7436operators. 7437 7438Debugger: Add "Template" command to disassemble/dump resource template 7439buffers. 7440 7441Added a new master script to generate and execute the ASLTS test suite. 7442Automatically handles 32- and 64-bit generation. See tests/aslts.sh 7443 7444iASL: Fix problem with listing generation during processing of the 7445Switch() 7446operator where AML listing was disabled until the entire Switch block was 7447completed. 7448 7449iASL: Improve support for semicolon statement terminators. Fix "invalid 7450character" message for some cases when the semicolon is used. Semicolons 7451are 7452now allowed after every <Term> grammar element. ACPICA BZ 927. 7453 7454iASL: Fixed some possible aliasing warnings during generation. ACPICA BZ 7455923. 7456 7457Disassembler: Fix problem with disassembly of the DataTableRegion 7458operator 7459where an inadvertent "Unhandled deferred opcode" message could be 7460generated. 7461 74623) Example Code and Data Size 7463 7464These are the sizes for the OS-independent acpica.lib produced by the 7465Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 7466includes the debug output trace mechanism and has a much larger code and 7467data 7468size. 7469 7470 Previous Release: 7471 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7472 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7473 Current Release: 7474 Non-Debug Version: 92.3K Code, 24.9K Data, 117.2K Total 7475 Debug Version: 170.8K Code, 72.6K Data, 243.4K Total 7476 7477---------------------------------------- 747822 September 2011. Summary of changes for version 20110922: 7479 74800) ACPI 5.0 News: 7481 7482Support for ACPI 5.0 in ACPICA has been underway for several months and 7483will 7484be released at the same time that ACPI 5.0 is officially released. 7485 7486The ACPI 5.0 specification is on track for release in the next few 7487months. 7488 74891) ACPICA Core Subsystem: 7490 7491Fixed a problem where the maximum sleep time for the Sleep() operator was 7492intended to be limited to two seconds, but was inadvertently limited to 749320 7494seconds instead. 7495 7496Linux and Unix makefiles: Added header file dependencies to ensure 7497correct 7498generation of ACPICA core code and utilities. Also simplified the 7499makefiles 7500considerably through the use of the vpath variable to specify search 7501paths. 7502ACPICA BZ 924. 7503 75042) iASL Compiler/Disassembler and Tools: 7505 7506iASL: Implemented support to check the access length for all fields 7507created to 7508access named Resource Descriptor fields. For example, if a resource field 7509is 7510defined to be two bits, a warning is issued if a CreateXxxxField() is 7511used 7512with an incorrect bit length. This is implemented for all current 7513resource 7514descriptor names. ACPICA BZ 930. 7515 7516Disassembler: Fixed a byte ordering problem with the output of 24-bit and 751756- 7518bit integers. 7519 7520iASL: Fixed a couple of issues associated with variable-length package 7521objects. 1) properly handle constants like One, Ones, Zero -- do not make 7522a 7523VAR_PACKAGE when these are used as a package length. 2) Allow the 7524VAR_PACKAGE 7525opcode (in addition to PACKAGE) when validating object types for 7526predefined 7527names. 7528 7529iASL: Emit statistics for all output files (instead of just the ASL input 7530and 7531AML output). Includes listings, hex files, etc. 7532 7533iASL: Added -G option to the table compiler to allow the compilation of 7534custom 7535ACPI tables. The only part of a table that is required is the standard 753636- 7537byte 7538ACPI header. 7539 7540AcpiXtract: Ported to the standard ACPICA environment (with ACPICA 7541headers), 7542which also adds correct 64-bit support. Also, now all output filenames 7543are 7544completely lower case. 7545 7546AcpiExec: Ignore any non-AML tables (tables other than DSDT or SSDT) when 7547loading table files. A warning is issued for any such tables. The only 7548exception is an FADT. This also fixes a possible fault when attempting to 7549load 7550non-AML tables. ACPICA BZ 932. 7551 7552AcpiHelp: Added the AccessAs and Offset operators. Fixed a problem where 7553a 7554missing table terminator could cause a fault when using the -p option. 7555 7556AcpiSrc: Fixed a possible divide-by-zero fault when generating file 7557statistics. 7558 75593) Example Code and Data Size 7560 7561These are the sizes for the OS-independent acpica.lib produced by the 7562Microsoft Visual C++ 9.0 32-bit compiler. The debug version of the code 7563includes the debug output trace mechanism and has a much larger code and 7564data 7565size. 7566 7567 Previous Release (VC 9.0): 7568 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7569 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7570 Current Release (VC 9.0): 7571 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7572 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7573 7574 7575---------------------------------------- 757623 June 2011. Summary of changes for version 20110623: 7577 75781) ACPI CA Core Subsystem: 7579 7580Updated the predefined name repair mechanism to not attempt repair of a 7581_TSS 7582return object if a _PSS object is present. We can only sort the _TSS 7583return 7584package if there is no _PSS within the same scope. This is because if 7585_PSS 7586is 7587present, the ACPI specification dictates that the _TSS Power Dissipation 7588field 7589is to be ignored, and therefore some BIOSs leave garbage values in the 7590_TSS 7591Power field(s). In this case, it is best to just return the _TSS package 7592as- 7593is. Reported by, and fixed with assistance from Fenghua Yu. 7594 7595Added an option to globally disable the control method return value 7596validation 7597and repair. This runtime option can be used to disable return value 7598repair 7599if 7600this is causing a problem on a particular machine. Also added an option 7601to 7602AcpiExec (-dr) to set this disable flag. 7603 7604All makefiles and project files: Major changes to improve generation of 7605ACPICA 7606tools. ACPICA BZ 912: 7607 Reduce default optimization levels to improve compatibility 7608 For Linux, add strict-aliasing=0 for gcc 4 7609 Cleanup and simplify use of command line defines 7610 Cleanup multithread library support 7611 Improve usage messages 7612 7613Linux-specific header: update handling of THREAD_ID and pthread. For the 761432- 7615bit case, improve casting to eliminate possible warnings, especially with 7616the 7617acpica tools. 7618 7619Example Code and Data Size: These are the sizes for the OS-independent 7620acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7621debug 7622version of the code includes the debug output trace mechanism and has a 7623much 7624larger code and data size. 7625 7626 Previous Release (VC 9.0): 7627 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 7628 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7629 Current Release (VC 9.0): 7630 Non-Debug Version: 90.2K Code, 23.9K Data, 114.1K Total 7631 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7632 76332) iASL Compiler/Disassembler and Tools: 7634 7635With this release, a new utility named "acpihelp" has been added to the 7636ACPICA 7637package. This utility summarizes the ACPI specification chapters for the 7638ASL 7639and AML languages. It generates under Linux/Unix as well as Windows, and 7640provides the following functionality: 7641 Find/display ASL operator(s) -- with description and syntax. 7642 Find/display ASL keyword(s) -- with exact spelling and descriptions. 7643 Find/display ACPI predefined name(s) -- with description, number 7644 of arguments, and the return value data type. 7645 Find/display AML opcode name(s) -- with opcode, arguments, and 7646grammar. 7647 Decode/display AML opcode -- with opcode name, arguments, and 7648grammar. 7649 7650Service Layers: Make multi-thread support configurable. Conditionally 7651compile 7652the multi-thread support so that threading libraries will not be linked 7653if 7654not 7655necessary. The only tool that requires multi-thread support is AcpiExec. 7656 7657iASL: Update yyerrror/AslCompilerError for "const" errors. Newer versions 7658of 7659Bison appear to want the interface to yyerror to be a const char * (or at 7660least this is a problem when generating iASL on some systems.) ACPICA BZ 7661923 7662Pierre Lejeune. 7663 7664Tools: Fix for systems where O_BINARY is not defined. Only used for 7665Windows 7666versions of the tools. 7667 7668---------------------------------------- 766927 May 2011. Summary of changes for version 20110527: 7670 76711) ACPI CA Core Subsystem: 7672 7673ASL Load() operator: Reinstate most restrictions on the incoming ACPI 7674table 7675signature. Now, only allow SSDT, OEMx, and a null signature. History: 7676 1) Originally, we checked the table signature for "SSDT" or "PSDT". 7677 (PSDT is now obsolete.) 7678 2) We added support for OEMx tables, signature "OEM" plus a fourth 7679 "don't care" character. 7680 3) Valid tables were encountered with a null signature, so we just 7681 gave up on validating the signature, (05/2008). 7682 4) We encountered non-AML tables such as the MADT, which caused 7683 interpreter errors and kernel faults. So now, we once again allow 7684 only SSDT, OEMx, and now, also a null signature. (05/2011). 7685 7686Added the missing _TDL predefined name to the global name list in order 7687to 7688enable validation. Affects both the core ACPICA code and the iASL 7689compiler. 7690 7691Example Code and Data Size: These are the sizes for the OS-independent 7692acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7693debug 7694version of the code includes the debug output trace mechanism and has a 7695much 7696larger code and data size. 7697 7698 Previous Release (VC 9.0): 7699 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 7700 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 7701 Current Release (VC 9.0): 7702 Non-Debug Version: 90.1K Code, 23.9K Data, 114.0K Total 7703 Debug Version: 165.6K Code, 68.4K Data, 234.0K Total 7704 77052) iASL Compiler/Disassembler and Tools: 7706 7707Debugger/AcpiExec: Implemented support for "complex" method arguments on 7708the 7709debugger command line. This adds support beyond simple integers -- 7710including 7711Strings, Buffers, and Packages. Includes support for nested packages. 7712Increased the default command line buffer size to accommodate these 7713arguments. 7714See the ACPICA reference for details and syntax. ACPICA BZ 917. 7715 7716Debugger/AcpiExec: Implemented support for "default" method arguments for 7717the 7718Execute/Debug command. Now, the debugger will always invoke a control 7719method 7720with the required number of arguments -- even if the command line 7721specifies 7722none or insufficient arguments. It uses default integer values for any 7723missing 7724arguments. Also fixes a bug where only six method arguments maximum were 7725supported instead of the required seven. 7726 7727Debugger/AcpiExec: Add a maximum buffer length parameter to AcpiOsGetLine 7728and 7729also return status in order to prevent buffer overruns. See the ACPICA 7730reference for details and syntax. ACPICA BZ 921 7731 7732iASL: Cleaned up support for Berkeley yacc. A general cleanup of code and 7733makefiles to simplify support for the two different but similar parser 7734generators, bison and yacc. 7735 7736Updated the generic unix makefile for gcc 4. The default gcc version is 7737now 7738expected to be 4 or greater, since options specific to gcc 4 are used. 7739 7740---------------------------------------- 774113 April 2011. Summary of changes for version 20110413: 7742 77431) ACPI CA Core Subsystem: 7744 7745Implemented support to execute a so-called "orphan" _REG method under the 7746EC 7747device. This change will force the execution of a _REG method underneath 7748the 7749EC 7750device even if there is no corresponding operation region of type 7751EmbeddedControl. Fixes a problem seen on some machines and apparently is 7752compatible with Windows behavior. ACPICA BZ 875. 7753 7754Added more predefined methods that are eligible for automatic NULL 7755package 7756element removal. This change adds another group of predefined names to 7757the 7758list 7759of names that can be repaired by having NULL package elements dynamically 7760removed. This group are those methods that return a single variable- 7761length 7762package containing simple data types such as integers, buffers, strings. 7763This 7764includes: _ALx, _BCL, _CID,_ DOD, _EDL, _FIX, _PCL, _PLD, _PMD, _PRx, 7765_PSL, 7766_Sx, 7767and _TZD. ACPICA BZ 914. 7768 7769Split and segregated all internal global lock functions to a new file, 7770evglock.c. 7771 7772Updated internal address SpaceID for DataTable regions. Moved this 7773internal 7774space 7775id in preparation for ACPI 5.0 changes that will include some new space 7776IDs. 7777This 7778change should not affect user/host code. 7779 7780Example Code and Data Size: These are the sizes for the OS-independent 7781acpica.lib 7782produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7783version of 7784the code includes the debug output trace mechanism and has a much larger 7785code 7786and 7787data size. 7788 7789 Previous Release (VC 9.0): 7790 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7791 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7792 Current Release (VC 9.0): 7793 Non-Debug Version: 90.0K Code, 23.8K Data, 113.8K Total 7794 Debug Version: 164.5K Code, 68.0K Data, 232.5K Total 7795 77962) iASL Compiler/Disassembler and Tools: 7797 7798iASL/DTC: Major update for new grammar features. Allow generic data types 7799in 7800custom ACPI tables. Field names are now optional. Any line can be split 7801to 7802multiple lines using the continuation char (\). Large buffers now use 7803line- 7804continuation character(s) and no colon on the continuation lines. See the 7805grammar 7806update in the iASL compiler reference. ACPI BZ 910,911. Lin Ming, Bob 7807Moore. 7808 7809iASL: Mark ASL "Return()" and the simple "Return" as "Null" return 7810statements. 7811Since the parser stuffs a "zero" as the return value for these statements 7812(due 7813to 7814the underlying AML grammar), they were seen as "return with value" by the 7815iASL 7816semantic checking. They are now seen correctly as "null" return 7817statements. 7818 7819iASL: Check if a_REG declaration has a corresponding Operation Region. 7820Adds a 7821check for each _REG to ensure that there is in fact a corresponding 7822operation 7823region declaration in the same scope. If not, the _REG method is not very 7824useful 7825since it probably won't be executed. ACPICA BZ 915. 7826 7827iASL/DTC: Finish support for expression evaluation. Added a new 7828expression 7829parser 7830that implements c-style operator precedence and parenthesization. ACPICA 7831bugzilla 7832908. 7833 7834Disassembler/DTC: Remove support for () and <> style comments in data 7835tables. 7836Now 7837that DTC has full expression support, we don't want to have comment 7838strings 7839that 7840start with a parentheses or a less-than symbol. Now, only the standard /* 7841and 7842// 7843comments are supported, as well as the bracket [] comments. 7844 7845AcpiXtract: Fix for RSDP and dynamic SSDT extraction. These tables have 7846"unusual" 7847headers in the acpidump file. Update the header validation to support 7848these 7849tables. Problem introduced in previous AcpiXtract version in the change 7850to 7851support "wrong checksum" error messages emitted by acpidump utility. 7852 7853iASL: Add a * option to generate all template files (as a synonym for 7854ALL) 7855as 7856in 7857"iasl -T *" or "iasl -T ALL". 7858 7859iASL/DTC: Do not abort compiler on fatal errors. We do not want to 7860completely 7861abort the compiler on "fatal" errors, simply should abort the current 7862compile. 7863This allows multiple compiles with a single (possibly wildcard) compiler 7864invocation. 7865 7866---------------------------------------- 786716 March 2011. Summary of changes for version 20110316: 7868 78691) ACPI CA Core Subsystem: 7870 7871Fixed a problem caused by a _PRW method appearing at the namespace root 7872scope 7873during the setup of wake GPEs. A fault could occur if a _PRW directly 7874under 7875the 7876root object was passed to the AcpiSetupGpeForWake interface. Lin Ming. 7877 7878Implemented support for "spurious" Global Lock interrupts. On some 7879systems, a 7880global lock interrupt can occur without the pending flag being set. Upon 7881a 7882GL 7883interrupt, we now ensure that a thread is actually waiting for the lock 7884before 7885signaling GL availability. Rafael Wysocki, Bob Moore. 7886 7887Example Code and Data Size: These are the sizes for the OS-independent 7888acpica.lib 7889produced by the Microsoft Visual C++ 9.0 32-bit compiler. The debug 7890version of 7891the code includes the debug output trace mechanism and has a much larger 7892code 7893and 7894data size. 7895 7896 Previous Release (VC 9.0): 7897 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7898 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7899 Current Release (VC 9.0): 7900 Non-Debug Version: 89.8K Code, 23.8K Data, 113.6K Total 7901 Debug Version: 164.2K Code, 67.9K Data, 232.1K Total 7902 79032) iASL Compiler/Disassembler and Tools: 7904 7905Implemented full support for the "SLIC" ACPI table. Includes support in 7906the 7907header files, disassembler, table compiler, and template generator. Bob 7908Moore, 7909Lin Ming. 7910 7911AcpiXtract: Correctly handle embedded comments and messages from 7912AcpiDump. 7913Apparently some or all versions of acpidump will occasionally emit a 7914comment 7915like 7916"Wrong checksum", etc., into the dump file. This was causing problems for 7917AcpiXtract. ACPICA BZ 905. 7918 7919iASL: Fix the Linux makefile by removing an inadvertent double file 7920inclusion. 7921ACPICA BZ 913. 7922 7923AcpiExec: Update installation of operation region handlers. Install one 7924handler 7925for a user-defined address space. This is used by the ASL test suite 7926(ASLTS). 7927 7928---------------------------------------- 792911 February 2011. Summary of changes for version 20110211: 7930 79311) ACPI CA Core Subsystem: 7932 7933Added a mechanism to defer _REG methods for some early-installed 7934handlers. 7935Most user handlers should be installed before call to 7936AcpiEnableSubsystem. 7937However, Event handlers and region handlers should be installed after 7938AcpiInitializeObjects. Override handlers for the "default" regions should 7939be 7940installed early, however. This change executes all _REG methods for the 7941default regions (Memory/IO/PCI/DataTable) simultaneously to prevent any 7942chicken/egg issues between them. ACPICA BZ 848. 7943 7944Implemented an optimization for GPE detection. This optimization will 7945simply 7946ignore GPE registers that contain no enabled GPEs -- there is no need to 7947read the register since this information is available internally. This 7948becomes more important on machines with a large GPE space. ACPICA 7949bugzilla 7950884. Lin Ming. Suggestion from Joe Liu. 7951 7952Removed all use of the highly unreliable FADT revision field. The 7953revision 7954number in the FADT has been found to be completely unreliable and cannot 7955be 7956trusted. Only the actual table length can be used to infer the version. 7957This 7958change updates the ACPICA core and the disassembler so that both no 7959longer 7960even look at the FADT version and instead depend solely upon the FADT 7961length. 7962 7963Fix an unresolved name issue for the no-debug and no-error-message source 7964generation cases. The _AcpiModuleName was left undefined in these cases, 7965but 7966it is actually needed as a parameter to some interfaces. Define 7967_AcpiModuleName as a null string in these cases. ACPICA Bugzilla 888. 7968 7969Split several large files (makefiles and project files updated) 7970 utglobal.c -> utdecode.c 7971 dbcomds.c -> dbmethod.c dbnames.c 7972 dsopcode.c -> dsargs.c dscontrol.c 7973 dsload.c -> dsload2.c 7974 aslanalyze.c -> aslbtypes.c aslwalks.c 7975 7976Example Code and Data Size: These are the sizes for the OS-independent 7977acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 7978debug version of the code includes the debug output trace mechanism and 7979has 7980a much larger code and data size. 7981 7982 Previous Release (VC 9.0): 7983 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7984 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7985 Current Release (VC 9.0): 7986 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 7987 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 7988 79892) iASL Compiler/Disassembler and Tools: 7990 7991iASL: Implemented the predefined macros __LINE__, __FILE__, and __DATE__. 7992These are useful C-style macros with the standard definitions. ACPICA 7993bugzilla 898. 7994 7995iASL/DTC: Added support for integer expressions and labels. Support for 7996full 7997expressions for all integer fields in all ACPI tables. Support for labels 7998in 7999"generic" portions of tables such as UEFI. See the iASL reference manual. 8000 8001Debugger: Added a command to display the status of global handlers. The 8002"handlers" command will display op region, fixed event, and miscellaneous 8003global handlers. installation status -- and for op regions, whether 8004default 8005or user-installed handler will be used. 8006 8007iASL: Warn if reserved method incorrectly returns a value. Many 8008predefined 8009names are defined such that they do not return a value. If implemented as 8010a 8011method, issue a warning if such a name explicitly returns a value. ACPICA 8012Bugzilla 855. 8013 8014iASL: Added detection of GPE method name conflicts. Detects a conflict 8015where 8016there are two GPE methods of the form _Lxy and _Exy in the same scope. 8017(For 8018example, _L1D and _E1D in the same scope.) ACPICA bugzilla 848. 8019 8020iASL/DTC: Fixed a couple input scanner issues with comments and line 8021numbers. Comment remover could get confused and miss a comment ending. 8022Fixed 8023a problem with line counter maintenance. 8024 8025iASL/DTC: Reduced the severity of some errors from fatal to error. There 8026is 8027no need to abort on simple errors within a field definition. 8028 8029Debugger: Simplified the output of the help command. All help output now 8030in 8031a single screen, instead of help subcommands. ACPICA Bugzilla 897. 8032 8033---------------------------------------- 803412 January 2011. Summary of changes for version 20110112: 8035 80361) ACPI CA Core Subsystem: 8037 8038Fixed a race condition between method execution and namespace walks that 8039can 8040possibly cause a fault. The problem was apparently introduced in version 804120100528 as a result of a performance optimization that reduces the 8042number 8043of 8044namespace walks upon method exit by using the delete_namespace_subtree 8045function instead of the delete_namespace_by_owner function used 8046previously. 8047Bug is a missing namespace lock in the delete_namespace_subtree function. 8048dana.myers@oracle.com 8049 8050Fixed several issues and a possible fault with the automatic "serialized" 8051method support. History: This support changes a method to "serialized" on 8052the 8053fly if the method generates an AE_ALREADY_EXISTS error, indicating the 8054possibility that it cannot handle reentrancy. This fix repairs a couple 8055of 8056issues seen in the field, especially on machines with many cores: 8057 8058 1) Delete method children only upon the exit of the last thread, 8059 so as to not delete objects out from under other running threads 8060 (and possibly causing a fault.) 8061 2) Set the "serialized" bit for the method only upon the exit of the 8062 Last thread, so as to not cause deadlock when running threads 8063 attempt to exit. 8064 3) Cleanup the use of the AML "MethodFlags" and internal method flags 8065 so that there is no longer any confusion between the two. 8066 8067 Lin Ming, Bob Moore. Reported by dana.myers@oracle.com. 8068 8069Debugger: Now lock the namespace for duration of a namespace dump. 8070Prevents 8071issues if the namespace is changing dynamically underneath the debugger. 8072Especially affects temporary namespace nodes, since the debugger displays 8073these also. 8074 8075Updated the ordering of include files. The ACPICA headers should appear 8076before any compiler-specific headers (stdio.h, etc.) so that acenv.h can 8077set 8078any necessary compiler-specific defines, etc. Affects the ACPI-related 8079tools 8080and utilities. 8081 8082Updated all ACPICA copyrights and signons to 2011. Added the 2011 8083copyright 8084to all module headers and signons, including the Linux header. This 8085affects 8086virtually every file in the ACPICA core subsystem, iASL compiler, and all 8087utilities. 8088 8089Added project files for MS Visual Studio 2008 (VC++ 9.0). The original 8090project files for VC++ 6.0 are now obsolete. New project files can be 8091found 8092under acpica/generate/msvc9. See acpica/generate/msvc9/readme.txt for 8093details. 8094 8095Example Code and Data Size: These are the sizes for the OS-independent 8096acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The 8097debug version of the code includes the debug output trace mechanism and 8098has a 8099much larger code and data size. 8100 8101 Previous Release (VC 6.0): 8102 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 8103 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 8104 Current Release (VC 9.0): 8105 Non-Debug Version: 89.7K Code, 23.7K Data, 113.4K Total 8106 Debug Version: 163.9K Code, 67.5K Data, 231.4K Total 8107 81082) iASL Compiler/Disassembler and Tools: 8109 8110iASL: Added generic data types to the Data Table compiler. Add "generic" 8111data 8112types such as UINT32, String, Unicode, etc., to simplify the generation 8113of 8114platform-defined tables such as UEFI. Lin Ming. 8115 8116iASL: Added listing support for the Data Table Compiler. Adds listing 8117support 8118(-l) to display actual binary output for each line of input code. 8119 8120---------------------------------------- 812109 December 2010. Summary of changes for version 20101209: 8122 81231) ACPI CA Core Subsystem: 8124 8125Completed the major overhaul of the GPE support code that was begun in 8126July 81272010. Major features include: removal of _PRW execution in ACPICA (host 8128executes _PRWs anyway), cleanup of "wake" GPE interfaces and processing, 8129changes to existing interfaces, simplification of GPE handler operation, 8130and 8131a handful of new interfaces: 8132 8133 AcpiUpdateAllGpes 8134 AcpiFinishGpe 8135 AcpiSetupGpeForWake 8136 AcpiSetGpeWakeMask 8137 One new file, evxfgpe.c to consolidate all external GPE interfaces. 8138 8139See the ACPICA Programmer Reference for full details and programming 8140information. See the new section 4.4 "General Purpose Event (GPE) 8141Support" 8142for a full overview, and section 8.7 "ACPI General Purpose Event 8143Management" 8144for programming details. ACPICA BZ 858,870,877. Matthew Garrett, Lin 8145Ming, 8146Bob Moore, Rafael Wysocki. 8147 8148Implemented a new GPE feature for Windows compatibility, the "Implicit 8149Wake 8150GPE Notify". This feature will automatically issue a Notify(2) on a 8151device 8152when a Wake GPE is received if there is no corresponding GPE method or 8153handler. ACPICA BZ 870. 8154 8155Fixed a problem with the Scope() operator during table parse and load 8156phase. 8157During load phase (table load or method execution), the scope operator 8158should 8159not enter the target into the namespace. Instead, it should open a new 8160scope 8161at the target location. Linux BZ 19462, ACPICA BZ 882. 8162 8163Example Code and Data Size: These are the sizes for the OS-independent 8164acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8165debug version of the code includes the debug output trace mechanism and 8166has a 8167much larger code and data size. 8168 8169 Previous Release: 8170 Non-Debug Version: 89.8K Code, 18.9K Data, 108.7K Total 8171 Debug Version: 166.6K Code, 52.1K Data, 218.7K Total 8172 Current Release: 8173 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8174 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8175 81762) iASL Compiler/Disassembler and Tools: 8177 8178iASL: Relax the alphanumeric restriction on _CID strings. These strings 8179are 8180"bus-specific" per the ACPI specification, and therefore any characters 8181are 8182acceptable. The only checks that can be performed are for a null string 8183and 8184perhaps for a leading asterisk. ACPICA BZ 886. 8185 8186iASL: Fixed a problem where a syntax error that caused a premature EOF 8187condition on the source file emitted a very confusing error message. The 8188premature EOF is now detected correctly. ACPICA BZ 891. 8189 8190Disassembler: Decode the AccessSize within a Generic Address Structure 8191(byte 8192access, word access, etc.) Note, this field does not allow arbitrary bit 8193access, the size is encoded as 1=byte, 2=word, 3=dword, and 4=qword. 8194 8195New: AcpiNames utility - Example namespace dump utility. Shows an example 8196of 8197ACPICA configuration for a minimal namespace dump utility. Uses table and 8198namespace managers, but no AML interpreter. Does not add any 8199functionality 8200over AcpiExec, it is a subset of AcpiExec. The purpose is to show how to 8201partition and configure ACPICA. ACPICA BZ 883. 8202 8203AML Debugger: Increased the debugger buffer size for method return 8204objects. 8205Was 4K, increased to 16K. Also enhanced error messages for debugger 8206method 8207execution, including the buffer overflow case. 8208 8209---------------------------------------- 821013 October 2010. Summary of changes for version 20101013: 8211 82121) ACPI CA Core Subsystem: 8213 8214Added support to clear the PCIEXP_WAKE event. When clearing ACPI events, 8215now 8216clear the PCIEXP_WAKE_STS bit in the ACPI PM1 Status Register, via 8217HwClearAcpiStatus. Original change from Colin King. ACPICA BZ 880. 8218 8219Changed the type of the predefined namespace object _TZ from ThermalZone 8220to 8221Device. This was found to be confusing to the host software that 8222processes 8223the various thermal zones, since _TZ is not really a ThermalZone. 8224However, 8225a 8226Notify() can still be performed on it. ACPICA BZ 876. Suggestion from Rui 8227Zhang. 8228 8229Added Windows Vista SP2 to the list of supported _OSI strings. The actual 8230string is "Windows 2006 SP2". 8231 8232Eliminated duplicate code in AcpiUtExecute* functions. Now that the 8233nsrepair 8234code automatically repairs _HID-related strings, this type of code is no 8235longer needed in Execute_HID, Execute_CID, and Execute_UID. ACPICA BZ 8236878. 8237 8238Example Code and Data Size: These are the sizes for the OS-independent 8239acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8240debug version of the code includes the debug output trace mechanism and 8241has a 8242much larger code and data size. 8243 8244 Previous Release: 8245 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8246 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8247 Current Release: 8248 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8249 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8250 82512) iASL Compiler/Disassembler and Tools: 8252 8253iASL: Implemented additional compile-time validation for _HID strings. 8254The 8255non-hex prefix (such as "PNP" or "ACPI") must be uppercase, and the 8256length 8257of 8258the string must be exactly seven or eight characters. For both _HID and 8259_CID 8260strings, all characters must be alphanumeric. ACPICA BZ 874. 8261 8262iASL: Allow certain "null" resource descriptors. Some BIOS code creates 8263descriptors that are mostly or all zeros, with the expectation that they 8264will 8265be filled in at runtime. iASL now allows this as long as there is a 8266"resource 8267tag" (name) associated with the descriptor, which gives the ASL a handle 8268needed to modify the descriptor. ACPICA BZ 873. 8269 8270Added single-thread support to the generic Unix application OSL. 8271Primarily 8272for iASL support, this change removes the use of semaphores in the 8273single- 8274threaded ACPICA tools/applications - increasing performance. The 8275_MULTI_THREADED option was replaced by the (reverse) ACPI_SINGLE_THREADED 8276option. ACPICA BZ 879. 8277 8278AcpiExec: several fixes for the 64-bit version. Adds XSDT support and 8279support 8280for 64-bit DSDT/FACS addresses in the FADT. Lin Ming. 8281 8282iASL: Moved all compiler messages to a new file, aslmessages.h. 8283 8284---------------------------------------- 828515 September 2010. Summary of changes for version 20100915: 8286 82871) ACPI CA Core Subsystem: 8288 8289Removed the AcpiOsDerivePciId OSL interface. The various host 8290implementations 8291of this function were not OS-dependent and are now obsolete and can be 8292removed from all host OSLs. This function has been replaced by 8293AcpiHwDerivePciId, which is now part of the ACPICA core code. 8294AcpiHwDerivePciId has been implemented without recursion. Adds one new 8295module, hwpci.c. ACPICA BZ 857. 8296 8297Implemented a dynamic repair for _HID and _CID strings. The following 8298problems are now repaired at runtime: 1) Remove a leading asterisk in the 8299string, and 2) the entire string is uppercased. Both repairs are in 8300accordance with the ACPI specification and will simplify host driver 8301code. 8302ACPICA BZ 871. 8303 8304The ACPI_THREAD_ID type is no longer configurable, internally it is now 8305always UINT64. This simplifies the ACPICA code, especially any printf 8306output. 8307UINT64 is the only common data type for all thread_id types across all 8308operating systems. It is now up to the host OSL to cast the native 8309thread_id 8310type to UINT64 before returning the value to ACPICA (via 8311AcpiOsGetThreadId). 8312Lin Ming, Bob Moore. 8313 8314Added the ACPI_INLINE type to enhance the ACPICA configuration. The 8315"inline" 8316keyword is not standard across compilers, and this type allows inline to 8317be 8318configured on a per-compiler basis. Lin Ming. 8319 8320Made the system global AcpiGbl_SystemAwakeAndRunning publicly 8321available. 8322Added an extern for this boolean in acpixf.h. Some hosts utilize this 8323value 8324during suspend/restore operations. ACPICA BZ 869. 8325 8326All code that implements error/warning messages with the "ACPI:" prefix 8327has 8328been moved to a new module, utxferror.c. 8329 8330The UINT64_OVERLAY was moved to utmath.c, which is the only module where 8331it 8332is used. ACPICA BZ 829. Lin Ming, Bob Moore. 8333 8334Example Code and Data Size: These are the sizes for the OS-independent 8335acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8336debug version of the code includes the debug output trace mechanism and 8337has a 8338much larger code and data size. 8339 8340 Previous Release: 8341 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 8342 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 8343 Current Release: 8344 Non-Debug Version: 89.9K Code, 19.0K Data, 108.9K Total 8345 Debug Version: 166.3K Code, 52.1K Data, 218.4K Total 8346 83472) iASL Compiler/Disassembler and Tools: 8348 8349iASL/Disassembler: Write ACPI errors to stderr instead of the output 8350file. 8351This keeps the output files free of random error messages that may 8352originate 8353from within the namespace/interpreter code. Used this opportunity to 8354merge 8355all ACPI:-style messages into a single new module, utxferror.c. ACPICA BZ 8356866. Lin Ming, Bob Moore. 8357 8358Tools: update some printfs for ansi warnings on size_t. Handle width 8359change 8360of size_t on 32-bit versus 64-bit generations. Lin Ming. 8361 8362---------------------------------------- 836306 August 2010. Summary of changes for version 20100806: 8364 83651) ACPI CA Core Subsystem: 8366 8367Designed and implemented a new host interface to the _OSI support code. 8368This 8369will allow the host to dynamically add or remove multiple _OSI strings, 8370as 8371well as install an optional handler that is called for each _OSI 8372invocation. 8373Also added a new AML debugger command, 'osi' to display and modify the 8374global 8375_OSI string table, and test support in the AcpiExec utility. See the 8376ACPICA 8377reference manual for full details. Lin Ming, Bob Moore. ACPICA BZ 836. 8378New Functions: 8379 AcpiInstallInterface - Add an _OSI string. 8380 AcpiRemoveInterface - Delete an _OSI string. 8381 AcpiInstallInterfaceHandler - Install optional _OSI handler. 8382Obsolete Functions: 8383 AcpiOsValidateInterface - no longer used. 8384New Files: 8385 source/components/utilities/utosi.c 8386 8387Re-introduced the support to enable multi-byte transfers for Embedded 8388Controller (EC) operation regions. A reported problem was found to be a 8389bug 8390in the host OS, not in the multi-byte support. Previously, the maximum 8391data 8392size passed to the EC operation region handler was a single byte. There 8393are 8394often EC Fields larger than one byte that need to be transferred, and it 8395is 8396useful for the EC driver to lock these as a single transaction. This 8397change 8398enables single transfers larger than 8 bits. This effectively changes the 8399access to the EC space from ByteAcc to AnyAcc, and will probably require 8400changes to the host OS Embedded Controller driver to enable 16/32/64/256- 8401bit 8402transfers in addition to 8-bit transfers. Alexey Starikovskiy, Lin Ming. 8403 8404Fixed a problem with the prototype for AcpiOsReadPciConfiguration. The 8405prototype in acpiosxf.h had the output value pointer as a (void *). 8406It should be a (UINT64 *). This may affect some host OSL code. 8407 8408Fixed a couple problems with the recently modified Linux makefiles for 8409iASL 8410and AcpiExec. These new makefiles place the generated object files in the 8411local directory so that there can be no collisions between the files that 8412are 8413shared between them that are compiled with different options. 8414 8415Example Code and Data Size: These are the sizes for the OS-independent 8416acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8417debug version of the code includes the debug output trace mechanism and 8418has a 8419much larger code and data size. 8420 8421 Previous Release: 8422 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8423 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 8424 Current Release: 8425 Non-Debug Version: 89.1K Code, 19.0K Data, 108.1K Total 8426 Debug Version: 165.1K Code, 51.9K Data, 217.0K Total 8427 84282) iASL Compiler/Disassembler and Tools: 8429 8430iASL/Disassembler: Added a new option (-da, "disassemble all") to load 8431the 8432namespace from and disassemble an entire group of AML files. Useful for 8433loading all of the AML tables for a given machine (DSDT, SSDT1...SSDTn) 8434and 8435disassembling with one simple command. ACPICA BZ 865. Lin Ming. 8436 8437iASL: Allow multiple invocations of -e option. This change allows 8438multiple 8439uses of -e on the command line: "-e ssdt1.dat -e ssdt2.dat". ACPICA BZ 8440834. 8441Lin Ming. 8442 8443---------------------------------------- 844402 July 2010. Summary of changes for version 20100702: 8445 84461) ACPI CA Core Subsystem: 8447 8448Implemented several updates to the recently added GPE reference count 8449support. The model for "wake" GPEs is changing to give the host OS 8450complete 8451control of these GPEs. Eventually, the ACPICA core will not execute any 8452_PRW 8453methods, since the host already must execute them. Also, additional 8454changes 8455were made to help ensure that the reference counts are kept in proper 8456synchronization with reality. Rafael J. Wysocki. 8457 84581) Ensure that GPEs are not enabled twice during initialization. 84592) Ensure that GPE enable masks stay in sync with the reference count. 84603) Do not inadvertently enable GPEs when writing GPE registers. 84614) Remove the internal wake reference counter and add new AcpiGpeWakeup 8462interface. This interface will set or clear individual GPEs for wakeup. 84635) Remove GpeType argument from AcpiEnable and AcpiDisable. These 8464interfaces 8465are now used for "runtime" GPEs only. 8466 8467Changed the behavior of the GPE install/remove handler interfaces. The 8468GPE 8469is 8470no longer disabled during this process, as it was found to cause problems 8471on 8472some machines. Rafael J. Wysocki. 8473 8474Reverted a change introduced in version 20100528 to enable Embedded 8475Controller multi-byte transfers. This change was found to cause problems 8476with 8477Index Fields and possibly Bank Fields. It will be reintroduced when these 8478problems have been resolved. 8479 8480Fixed a problem with references to Alias objects within Package Objects. 8481A 8482reference to an Alias within the definition of a Package was not always 8483resolved properly. Aliases to objects like Processors, Thermal zones, 8484etc. 8485were resolved to the actual object instead of a reference to the object 8486as 8487it 8488should be. Package objects are only allowed to contain integer, string, 8489buffer, package, and reference objects. Redhat bugzilla 608648. 8490 8491Example Code and Data Size: These are the sizes for the OS-independent 8492acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8493debug version of the code includes the debug output trace mechanism and 8494has a 8495much larger code and data size. 8496 8497 Previous Release: 8498 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8499 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 8500 Current Release: 8501 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8502 Debug Version: 164.0K Code, 51.5K Data, 215.5K Total 8503 85042) iASL Compiler/Disassembler and Tools: 8505 8506iASL: Implemented a new compiler subsystem to allow definition and 8507compilation of the non-AML ACPI tables such as FADT, MADT, SRAT, etc. 8508These 8509are called "ACPI Data Tables", and the new compiler is the "Data Table 8510Compiler". This compiler is intended to simplify the existing error-prone 8511process of creating these tables for the BIOS, as well as allowing the 8512disassembly, modification, recompilation, and override of existing ACPI 8513data 8514tables. See the iASL User Guide for detailed information. 8515 8516iASL: Implemented a new Template Generator option in support of the new 8517Data 8518Table Compiler. This option will create examples of all known ACPI tables 8519that can be used as the basis for table development. See the iASL 8520documentation and the -T option. 8521 8522Disassembler and headers: Added support for the WDDT ACPI table (Watchdog 8523Descriptor Table). 8524 8525Updated the Linux makefiles for iASL and AcpiExec to place the generated 8526object files in the local directory so that there can be no collisions 8527between the shared files between them that are generated with different 8528options. 8529 8530Added support for Mac OS X in the Unix OSL used for iASL and AcpiExec. 8531Use 8532the #define __APPLE__ to enable this support. 8533 8534---------------------------------------- 853528 May 2010. Summary of changes for version 20100528: 8536 8537Note: The ACPI 4.0a specification was released on April 5, 2010 and is 8538available at www.acpi.info. This is primarily an errata release. 8539 85401) ACPI CA Core Subsystem: 8541 8542Undefined ACPI tables: We are looking for the definitions for the 8543following 8544ACPI tables that have been seen in the field: ATKG, IEIT, GSCI. 8545 8546Implemented support to enable multi-byte transfers for Embedded 8547Controller 8548(EC) operation regions. Previously, the maximum data size passed to the 8549EC 8550operation region handler was a single byte. There are often EC Fields 8551larger 8552than one byte that need to be transferred, and it is useful for the EC 8553driver 8554to lock these as a single transaction. This change enables single 8555transfers 8556larger than 8 bits. This effectively changes the access to the EC space 8557from 8558ByteAcc to AnyAcc, and will probably require changes to the host OS 8559Embedded 8560Controller driver to enable 16/32/64/256-bit transfers in addition to 8- 8561bit 8562transfers. Alexey Starikovskiy, Lin Ming 8563 8564Implemented a performance enhancement for namespace search and access. 8565This 8566change enhances the performance of namespace searches and walks by adding 8567a 8568backpointer to the parent in each namespace node. On large namespaces, 8569this 8570change can improve overall ACPI performance by up to 9X. Adding a pointer 8571to 8572each namespace node increases the overall size of the internal namespace 8573by 8574about 5%, since each namespace entry usually consists of both a namespace 8575node and an ACPI operand object. However, this is the first growth of the 8576namespace in ten years. ACPICA bugzilla 817. Alexey Starikovskiy. 8577 8578Implemented a performance optimization that reduces the number of 8579namespace 8580walks. On control method exit, only walk the namespace if the method is 8581known 8582to have created namespace objects outside of its local scope. Previously, 8583the 8584entire namespace was traversed on each control method exit. This change 8585can 8586improve overall ACPI performance by up to 3X. Alexey Starikovskiy, Bob 8587Moore. 8588 8589Added support to truncate I/O addresses to 16 bits for Windows 8590compatibility. 8591Some ASL code has been seen in the field that inadvertently has bits set 8592above bit 15. This feature is optional and is enabled if the BIOS 8593requests 8594any Windows OSI strings. It can also be enabled by the host OS. Matthew 8595Garrett, Bob Moore. 8596 8597Added support to limit the maximum time for the ASL Sleep() operator. To 8598prevent accidental deep sleeps, limit the maximum time that Sleep() will 8599actually sleep. Configurable, the default maximum is two seconds. ACPICA 8600bugzilla 854. 8601 8602Added run-time validation support for the _WDG and_WED Microsoft 8603predefined 8604methods. These objects are defined by "Windows Instrumentation", and are 8605not 8606part of the ACPI spec. ACPICA BZ 860. 8607 8608Expanded all statistic counters used during namespace and device 8609initialization from 16 to 32 bits in order to support very large 8610namespaces. 8611 8612Replaced all instances of %d in printf format specifiers with %u since 8613nearly 8614all integers in ACPICA are unsigned. 8615 8616Fixed the exception namestring for AE_WAKE_ONLY_GPE. Was incorrectly 8617returned 8618as AE_NO_HANDLER. 8619 8620Example Code and Data Size: These are the sizes for the OS-independent 8621acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8622debug version of the code includes the debug output trace mechanism and 8623has a 8624much larger code and data size. 8625 8626 Previous Release: 8627 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 8628 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 8629 Current Release: 8630 Non-Debug Version: 88.3K Code, 18.8K Data, 107.1K Total 8631 Debug Version: 164.1K Code, 51.5K Data, 215.6K Total 8632 86332) iASL Compiler/Disassembler and Tools: 8634 8635iASL: Added compiler support for the _WDG and_WED Microsoft predefined 8636methods. These objects are defined by "Windows Instrumentation", and are 8637not 8638part of the ACPI spec. ACPICA BZ 860. 8639 8640AcpiExec: added option to disable the memory tracking mechanism. The -dt 8641option will disable the tracking mechanism, which improves performance 8642considerably. 8643 8644AcpiExec: Restructured the command line options into -d (disable) and -e 8645(enable) options. 8646 8647---------------------------------------- 864828 April 2010. Summary of changes for version 20100428: 8649 86501) ACPI CA Core Subsystem: 8651 8652Implemented GPE support for dynamically loaded ACPI tables. For all GPEs, 8653including FADT-based and GPE Block Devices, execute any _PRW methods in 8654the 8655new table, and process any _Lxx/_Exx GPE methods in the new table. Any 8656runtime GPE that is referenced by an _Lxx/_Exx method in the new table is 8657immediately enabled. Handles the FADT-defined GPEs as well as GPE Block 8658Devices. Provides compatibility with other ACPI implementations. Two new 8659files added, evgpeinit.c and evgpeutil.c. ACPICA BZ 833. Lin Ming, Bob 8660Moore. 8661 8662Fixed a regression introduced in version 20100331 within the table 8663manager 8664where initial table loading could fail. This was introduced in the fix 8665for 8666AcpiReallocateRootTable. Also, renamed some of fields in the table 8667manager 8668data structures to clarify their meaning and use. 8669 8670Fixed a possible allocation overrun during internal object copy in 8671AcpiUtCopySimpleObject. The original code did not correctly handle the 8672case 8673where the object to be copied was a namespace node. Lin Ming. ACPICA BZ 8674847. 8675 8676Updated the allocation dump routine, AcpiUtDumpAllocation and fixed a 8677possible access beyond end-of-allocation. Also, now fully validate 8678descriptor 8679(size and type) before output. Lin Ming, Bob Moore. ACPICA BZ 847 8680 8681Example Code and Data Size: These are the sizes for the OS-independent 8682acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8683debug version of the code includes the debug output trace mechanism and 8684has a 8685much larger code and data size. 8686 8687 Previous Release: 8688 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 8689 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 8690 Current Release: 8691 Non-Debug Version: 88.4K Code, 18.8K Data, 107.2K Total 8692 Debug Version: 164.2K Code, 51.5K Data, 215.7K Total 8693 86942) iASL Compiler/Disassembler and Tools: 8695 8696iASL: Implemented Min/Max/Len/Gran validation for address resource 8697descriptors. This change implements validation for the address fields 8698that 8699are common to all address-type resource descriptors. These checks are 8700implemented: Checks for valid Min/Max, length within the Min/Max window, 8701valid granularity, Min/Max a multiple of granularity, and _MIF/_MAF as 8702per 8703table 6-40 in the ACPI 4.0a specification. Also split the large 8704aslrestype1.c 8705and aslrestype2.c files into five new files. ACPICA BZ 840. 8706 8707iASL: Added support for the _Wxx predefined names. This support was 8708missing 8709and these names were not recognized by the compiler as valid predefined 8710names. ACPICA BZ 851. 8711 8712iASL: Added an error for all predefined names that are defined to return 8713no 8714value and thus must be implemented as Control Methods. These include all 8715of 8716the _Lxx, _Exx, _Wxx, and _Qxx names, as well as some other miscellaneous 8717names such as _DIS, _INI, _IRC, _OFF, _ON, and _PSx. ACPICA BZ 850, 856. 8718 8719iASL: Implemented the -ts option to emit hex AML data in ASL format, as 8720an 8721ASL Buffer. Allows ACPI tables to be easily included within ASL files, to 8722be 8723dynamically loaded via the Load() operator. Also cleaned up output for 8724the 8725- 8726ta and -tc options. ACPICA BZ 853. 8727 8728Tests: Added a new file with examples of extended iASL error checking. 8729Demonstrates the advanced error checking ability of the iASL compiler. 8730Available at tests/misc/badcode.asl. 8731 8732---------------------------------------- 873331 March 2010. Summary of changes for version 20100331: 8734 87351) ACPI CA Core Subsystem: 8736 8737Completed a major update for the GPE support in order to improve support 8738for 8739shared GPEs and to simplify both host OS and ACPICA code. Added a 8740reference 8741count mechanism to support shared GPEs that require multiple device 8742drivers. 8743Several external interfaces have changed. One external interface has been 8744removed. One new external interface was added. Most of the GPE external 8745interfaces now use the GPE spinlock instead of the events mutex (and the 8746Flags parameter for many GPE interfaces has been removed.) See the 8747updated 8748ACPICA Programmer Reference for details. Matthew Garrett, Bob Moore, 8749Rafael 8750Wysocki. ACPICA BZ 831. 8751 8752Changed: 8753 AcpiEnableGpe, AcpiDisableGpe, AcpiClearGpe, AcpiGetGpeStatus 8754Removed: 8755 AcpiSetGpeType 8756New: 8757 AcpiSetGpe 8758 8759Implemented write support for DataTable operation regions. These regions 8760are 8761defined via the DataTableRegion() operator. Previously, only read support 8762was 8763implemented. The ACPI specification allows DataTableRegions to be 8764read/write, 8765however. 8766 8767Implemented a new subsystem option to force a copy of the DSDT to local 8768memory. Optionally copy the entire DSDT to local memory (instead of 8769simply 8770mapping it.) There are some (albeit very rare) BIOSs that corrupt or 8771replace 8772the original DSDT, creating the need for this option. Default is FALSE, 8773do 8774not copy the DSDT. 8775 8776Implemented detection of a corrupted or replaced DSDT. This change adds 8777support to detect a DSDT that has been corrupted and/or replaced from 8778outside 8779the OS (by firmware). This is typically catastrophic for the system, but 8780has 8781been seen on some machines. Once this problem has been detected, the DSDT 8782copy option can be enabled via system configuration. Lin Ming, Bob Moore. 8783 8784Fixed two problems with AcpiReallocateRootTable during the root table 8785copy. 8786When copying the root table to the new allocation, the length used was 8787incorrect. The new size was used instead of the current table size, 8788meaning 8789too much data was copied. Also, the count of available slots for ACPI 8790tables 8791was not set correctly. Alexey Starikovskiy, Bob Moore. 8792 8793Example Code and Data Size: These are the sizes for the OS-independent 8794acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8795debug version of the code includes the debug output trace mechanism and 8796has a 8797much larger code and data size. 8798 8799 Previous Release: 8800 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8801 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8802 Current Release: 8803 Non-Debug Version: 87.9K Code, 18.6K Data, 106.5K Total 8804 Debug Version: 163.5K Code, 51.3K Data, 214.8K Total 8805 88062) iASL Compiler/Disassembler and Tools: 8807 8808iASL: Implement limited typechecking for values returned from predefined 8809control methods. The type of any returned static (unnamed) object is now 8810validated. For example, Return(1). ACPICA BZ 786. 8811 8812iASL: Fixed a predefined name object verification regression. Fixes a 8813problem 8814introduced in version 20100304. An error is incorrectly generated if a 8815predefined name is declared as a static named object with a value defined 8816using the keywords "Zero", "One", or "Ones". Lin Ming. 8817 8818iASL: Added Windows 7 support for the -g option (get local ACPI tables) 8819by 8820reducing the requested registry access rights. ACPICA BZ 842. 8821 8822Disassembler: fixed a possible fault when generating External() 8823statements. 8824Introduced in commit ae7d6fd: Properly handle externals with parent- 8825prefix 8826(carat). Fixes a string length allocation calculation. Lin Ming. 8827 8828---------------------------------------- 882904 March 2010. Summary of changes for version 20100304: 8830 88311) ACPI CA Core Subsystem: 8832 8833Fixed a possible problem with the AML Mutex handling function 8834AcpiExReleaseMutex where the function could fault under the very rare 8835condition when the interpreter has blocked, the interpreter lock is 8836released, 8837the interpreter is then reentered via the same thread, and attempts to 8838acquire an AML mutex that was previously acquired. FreeBSD report 140979. 8839Lin 8840Ming. 8841 8842Implemented additional configuration support for the AML "Debug Object". 8843Output from the debug object can now be enabled via a global variable, 8844AcpiGbl_EnableAmlDebugObject. This will assist with remote machine 8845debugging. 8846This debug output is now available in the release version of ACPICA 8847instead 8848of just the debug version. Also, the entire debug output module can now 8849be 8850configured out of the ACPICA build if desired. One new file added, 8851executer/exdebug.c. Lin Ming, Bob Moore. 8852 8853Added header support for the ACPI MCHI table (Management Controller Host 8854Interface Table). This table was added in ACPI 4.0, but the defining 8855document 8856has only recently become available. 8857 8858Standardized output of integer values for ACPICA warnings/errors. Always 8859use 88600x prefix for hex output, always use %u for unsigned integer decimal 8861output. 8862Affects ACPI_INFO, ACPI_ERROR, ACPI_EXCEPTION, and ACPI_WARNING (about 8863400 8864invocations.) These invocations were converted from the original 8865ACPI_DEBUG_PRINT invocations and were not consistent. ACPICA BZ 835. 8866 8867Example Code and Data Size: These are the sizes for the OS-independent 8868acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8869debug version of the code includes the debug output trace mechanism and 8870has a 8871much larger code and data size. 8872 8873 Previous Release: 8874 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8875 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8876 Current Release: 8877 Non-Debug Version: 87.5K Code, 18.4K Data, 105.9K Total 8878 Debug Version: 163.4K Code, 51.1K Data, 214.5K Total 8879 88802) iASL Compiler/Disassembler and Tools: 8881 8882iASL: Implemented typechecking support for static (non-control method) 8883predefined named objects that are declared with the Name() operator. For 8884example, the type of this object is now validated to be of type Integer: 8885Name(_BBN, 1). This change migrates the compiler to using the core 8886predefined 8887name table instead of maintaining a local version. Added a new file, 8888aslpredef.c. ACPICA BZ 832. 8889 8890Disassembler: Added support for the ACPI 4.0 MCHI table. 8891 8892---------------------------------------- 889321 January 2010. Summary of changes for version 20100121: 8894 88951) ACPI CA Core Subsystem: 8896 8897Added the 2010 copyright to all module headers and signons. This affects 8898virtually every file in the ACPICA core subsystem, the iASL compiler, the 8899tools/utilities, and the test suites. 8900 8901Implemented a change to the AcpiGetDevices interface to eliminate 8902unnecessary 8903invocations of the _STA method. In the case where a specific _HID is 8904requested, do not run _STA until a _HID match is found. This eliminates 8905potentially dozens of _STA calls during a search for a particular 8906device/HID, 8907which in turn can improve boot times. ACPICA BZ 828. Lin Ming. 8908 8909Implemented an additional repair for predefined method return values. 8910Attempt 8911to repair unexpected NULL elements within returned Package objects. 8912Create 8913an 8914Integer of value zero, a NULL String, or a zero-length Buffer as 8915appropriate. 8916ACPICA BZ 818. Lin Ming, Bob Moore. 8917 8918Removed the obsolete ACPI_INTEGER data type. This type was introduced as 8919the 8920code was migrated from ACPI 1.0 (with 32-bit AML integers) to ACPI 2.0 8921(with 892264-bit AML integers). It is now obsolete and this change removes it from 8923the 8924ACPICA code base, replaced by UINT64. The original typedef has been 8925retained 8926for now for compatibility with existing device driver code. ACPICA BZ 8927824. 8928 8929Removed the unused UINT32_STRUCT type, and the obsolete Integer64 field 8930in 8931the parse tree object. 8932 8933Added additional warning options for the gcc-4 generation. Updated the 8934source 8935accordingly. This includes some code restructuring to eliminate 8936unreachable 8937code, elimination of some gotos, elimination of unused return values, 8938some 8939additional casting, and removal of redundant declarations. 8940 8941Example Code and Data Size: These are the sizes for the OS-independent 8942acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 8943debug version of the code includes the debug output trace mechanism and 8944has a 8945much larger code and data size. 8946 8947 Previous Release: 8948 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 8949 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 8950 Current Release: 8951 Non-Debug Version: 87.1K Code, 18.0K Data, 105.1K Total 8952 Debug Version: 163.5K Code, 50.9K Data, 214.4K Total 8953 89542) iASL Compiler/Disassembler and Tools: 8955 8956No functional changes for this release. 8957 8958---------------------------------------- 895914 December 2009. Summary of changes for version 20091214: 8960 89611) ACPI CA Core Subsystem: 8962 8963Enhanced automatic data type conversions for predefined name repairs. 8964This 8965change expands the automatic repairs/conversions for predefined name 8966return 8967values to make Integers, Strings, and Buffers fully interchangeable. 8968Also, 8969a 8970Buffer can be converted to a Package of Integers if necessary. The 8971nsrepair.c 8972module was completely restructured. Lin Ming, Bob Moore. 8973 8974Implemented automatic removal of null package elements during predefined 8975name 8976repairs. This change will automatically remove embedded and trailing NULL 8977package elements from returned package objects that are defined to 8978contain 8979a 8980variable number of sub-packages. The driver is then presented with a 8981package 8982with no null elements to deal with. ACPICA BZ 819. 8983 8984Implemented a repair for the predefined _FDE and _GTM names. The expected 8985return value for both names is a Buffer of 5 DWORDs. This repair fixes 8986two 8987possible problems (both seen in the field), where a package of integers 8988is 8989returned, or a buffer of BYTEs is returned. With assistance from Jung-uk 8990Kim. 8991 8992Implemented additional module-level code support. This change will 8993properly 8994execute module-level code that is not at the root of the namespace (under 8995a 8996Device object, etc.). Now executes the code within the current scope 8997instead 8998of the root. ACPICA BZ 762. Lin Ming. 8999 9000Fixed possible mutex acquisition errors when running _REG methods. Fixes 9001a 9002problem where mutex errors can occur when running a _REG method that is 9003in 9004the same scope as a method-defined operation region or an operation 9005region 9006under a module-level IF block. This type of code is rare, so the problem 9007has 9008not been seen before. ACPICA BZ 826. Lin Ming, Bob Moore. 9009 9010Fixed a possible memory leak during module-level code execution. An 9011object 9012could be leaked for each block of executed module-level code if the 9013interpreter slack mode is enabled This change deletes any implicitly 9014returned 9015object from the module-level code block. Lin Ming. 9016 9017Removed messages for successful predefined repair(s). The repair 9018mechanism 9019was considered too wordy. Now, messages are only unconditionally emitted 9020if 9021the return object cannot be repaired. Existing messages for successful 9022repairs were converted to ACPI_DEBUG_PRINT messages for now. ACPICA BZ 9023827. 9024 9025Example Code and Data Size: These are the sizes for the OS-independent 9026acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9027debug version of the code includes the debug output trace mechanism and 9028has a 9029much larger code and data size. 9030 9031 Previous Release: 9032 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 9033 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 9034 Current Release: 9035 Non-Debug Version: 87.0K Code, 18.0K Data, 105.0K Total 9036 Debug Version: 163.4K Code, 50.8K Data, 214.2K Total 9037 90382) iASL Compiler/Disassembler and Tools: 9039 9040iASL: Fixed a regression introduced in 20091112 where intermediate .SRC 9041files 9042were no longer automatically removed at the termination of the compile. 9043 9044acpiexec: Implemented the -f option to specify default region fill value. 9045This option specifies the value used to initialize buffers that simulate 9046operation regions. Default value is zero. Useful for debugging problems 9047that 9048depend on a specific initial value for a region or field. 9049 9050---------------------------------------- 905112 November 2009. Summary of changes for version 20091112: 9052 90531) ACPI CA Core Subsystem: 9054 9055Implemented a post-order callback to AcpiWalkNamespace. The existing 9056interface only has a pre-order callback. This change adds an additional 9057parameter for a post-order callback which will be more useful for bus 9058scans. 9059ACPICA BZ 779. Lin Ming. Updated the ACPICA Programmer Reference. 9060 9061Modified the behavior of the operation region memory mapping cache for 9062SystemMemory. Ensure that the memory mappings created for operation 9063regions 9064do not cross 4K page boundaries. Crossing a page boundary while mapping 9065regions can cause kernel warnings on some hosts if the pages have 9066different 9067attributes. Such regions are probably BIOS bugs, and this is the 9068workaround. 9069Linux BZ 14445. Lin Ming. 9070 9071Implemented an automatic repair for predefined methods that must return 9072sorted lists. This change will repair (by sorting) packages returned by 9073_ALR, 9074_PSS, and _TSS. Drivers can now assume that the packages are correctly 9075sorted 9076and do not contain NULL package elements. Adds one new file, 9077namespace/nsrepair2.c. ACPICA BZ 784. Lin Ming, Bob Moore. 9078 9079Fixed a possible fault during predefined name validation if a return 9080Package 9081object contains NULL elements. Also adds a warning if a NULL element is 9082followed by any non-null elements. ACPICA BZ 813, 814. Future enhancement 9083may 9084include repair or removal of all such NULL elements where possible. 9085 9086Implemented additional module-level executable AML code support. This 9087change 9088will execute module-level code that is not at the root of the namespace 9089(under a Device object, etc.) at table load time. Module-level executable 9090AML 9091code has been illegal since ACPI 2.0. ACPICA BZ 762. Lin Ming. 9092 9093Implemented a new internal function to create Integer objects. This 9094function 9095simplifies miscellaneous object creation code. ACPICA BZ 823. 9096 9097Reduced the severity of predefined repair messages, Warning to Info. 9098Since 9099the object was successfully repaired, a warning is too severe. Reduced to 9100an 9101info message for now. These messages may eventually be changed to debug- 9102only. 9103ACPICA BZ 812. 9104 9105Example Code and Data Size: These are the sizes for the OS-independent 9106acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9107debug version of the code includes the debug output trace mechanism and 9108has a 9109much larger code and data size. 9110 9111 Previous Release: 9112 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 9113 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 9114 Current Release: 9115 Non-Debug Version: 86.6K Code, 18.2K Data, 104.8K Total 9116 Debug Version: 162.7K Code, 50.8K Data, 213.5K Total 9117 91182) iASL Compiler/Disassembler and Tools: 9119 9120iASL: Implemented Switch() with While(1) so that Break works correctly. 9121This 9122change correctly implements the Switch operator with a surrounding 9123While(1) 9124so that the Break operator works as expected. ACPICA BZ 461. Lin Ming. 9125 9126iASL: Added a message if a package initializer list is shorter than 9127package 9128length. Adds a new remark for a Package() declaration if an initializer 9129list 9130exists, but is shorter than the declared length of the package. Although 9131technically legal, this is probably a coding error and it is seen in the 9132field. ACPICA BZ 815. Lin Ming, Bob Moore. 9133 9134iASL: Fixed a problem where the compiler could fault after the maximum 9135number 9136of errors was reached (200). 9137 9138acpixtract: Fixed a possible warning for pointer cast if the compiler 9139warning 9140level set very high. 9141 9142---------------------------------------- 914313 October 2009. Summary of changes for version 20091013: 9144 91451) ACPI CA Core Subsystem: 9146 9147Fixed a problem where an Operation Region _REG method could be executed 9148more 9149than once. If a custom address space handler is installed by the host 9150before 9151the "initialize operation regions" phase of the ACPICA initialization, 9152any 9153_REG methods for that address space could be executed twice. This change 9154fixes the problem. ACPICA BZ 427. Lin Ming. 9155 9156Fixed a possible memory leak for the Scope() ASL operator. When the exact 9157invocation of "Scope(\)" is executed (change scope to root), one internal 9158operand object was leaked. Lin Ming. 9159 9160Implemented a run-time repair for the _MAT predefined method. If the _MAT 9161return value is defined as a Field object in the AML, and the field 9162size is less than or equal to the default width of an integer (32 or 916364),_MAT 9164can incorrectly return an Integer instead of a Buffer. ACPICA now 9165automatically repairs this problem. ACPICA BZ 810. 9166 9167Implemented a run-time repair for the _BIF and _BIX predefined methods. 9168The 9169"OEM Information" field is often incorrectly returned as an Integer with 9170value zero if the field is not supported by the platform. This is due to 9171an 9172ambiguity in the ACPI specification. The field should always be a string. 9173ACPICA now automatically repairs this problem by returning a NULL string 9174within the returned Package. ACPICA BZ 807. 9175 9176Example Code and Data Size: These are the sizes for the OS-independent 9177acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9178debug version of the code includes the debug output trace mechanism and 9179has a 9180much larger code and data size. 9181 9182 Previous Release: 9183 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 9184 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 9185 Current Release: 9186 Non-Debug Version: 85.8K Code, 18.0K Data, 103.8K Total 9187 Debug Version: 161.8K Code, 50.6K Data, 212.4K Total 9188 91892) iASL Compiler/Disassembler and Tools: 9190 9191Disassembler: Fixed a problem where references to external symbols that 9192contained one or more parent-prefixes (carats) were not handled 9193correctly, 9194possibly causing a fault. ACPICA BZ 806. Lin Ming. 9195 9196Disassembler: Restructured the code so that all functions that handle 9197external symbols are in a single module. One new file is added, 9198common/dmextern.c. 9199 9200AML Debugger: Added a max count argument for the Batch command (which 9201executes multiple predefined methods within the namespace.) 9202 9203iASL: Updated the compiler documentation (User Reference.) Available at 9204http://www.acpica.org/documentation/. ACPICA BZ 750. 9205 9206AcpiXtract: Updated for Lint and other formatting changes. Close all open 9207files. 9208 9209---------------------------------------- 921003 September 2009. Summary of changes for version 20090903: 9211 92121) ACPI CA Core Subsystem: 9213 9214For Windows Vista compatibility, added the automatic execution of an _INI 9215method located at the namespace root (\_INI). This method is executed at 9216table load time. This support is in addition to the automatic execution 9217of 9218\_SB._INI. Lin Ming. 9219 9220Fixed a possible memory leak in the interpreter for AML package objects 9221if 9222the package initializer list is longer than the defined size of the 9223package. 9224This apparently can only happen if the BIOS changes the package size on 9225the 9226fly (seen in a _PSS object), as ASL compilers do not allow this. The 9227interpreter will truncate the package to the defined size (and issue an 9228error 9229message), but previously could leave the extra objects undeleted if they 9230were 9231pre-created during the argument processing (such is the case if the 9232package 9233consists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 9234 9235Fixed a problem seen when a Buffer or String is stored to itself via ASL. 9236This has been reported in the field. Previously, ACPICA would zero out 9237the 9238buffer/string. Now, the operation is treated as a noop. Provides Windows 9239compatibility. ACPICA BZ 803. Lin Ming. 9240 9241Removed an extraneous error message for ASL constructs of the form 9242Store(LocalX,LocalX) when LocalX is uninitialized. These curious 9243statements 9244are seen in many BIOSs and are once again treated as NOOPs and no error 9245is 9246emitted when they are encountered. ACPICA BZ 785. 9247 9248Fixed an extraneous warning message if a _DSM reserved method returns a 9249Package object. _DSM can return any type of object, so validation on the 9250return type cannot be performed. ACPICA BZ 802. 9251 9252Example Code and Data Size: These are the sizes for the OS-independent 9253acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9254debug version of the code includes the debug output trace mechanism and 9255has a 9256much larger code and data size. 9257 9258 Previous Release: 9259 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 9260 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 9261 Current Release: 9262 Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 9263 Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 9264 92652) iASL Compiler/Disassembler and Tools: 9266 9267iASL: Fixed a problem with the use of the Alias operator and Resource 9268Templates. The correct alias is now constructed and no error is emitted. 9269ACPICA BZ 738. 9270 9271iASL: Implemented the -I option to specify additional search directories 9272for 9273include files. Allows multiple additional search paths for include files. 9274Directories are searched in the order specified on the command line 9275(after 9276the local directory is searched.) ACPICA BZ 800. 9277 9278iASL: Fixed a problem where the full pathname for include files was not 9279emitted for warnings/errors. This caused the IDE support to not work 9280properly. ACPICA BZ 765. 9281 9282iASL: Implemented the -@ option to specify a Windows-style response file 9283containing additional command line options. ACPICA BZ 801. 9284 9285AcpiExec: Added support to load multiple AML files simultaneously (such 9286as 9287a 9288DSDT and multiple SSDTs). Also added support for wildcards within the AML 9289pathname. These features allow all machine tables to be easily loaded and 9290debugged together. ACPICA BZ 804. 9291 9292Disassembler: Added missing support for disassembly of HEST table Error 9293Bank 9294subtables. 9295 9296---------------------------------------- 929730 July 2009. Summary of changes for version 20090730: 9298 9299The ACPI 4.0 implementation for ACPICA is complete with this release. 9300 93011) ACPI CA Core Subsystem: 9302 9303ACPI 4.0: Added header file support for all new and changed ACPI tables. 9304Completely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are 9305new 9306for ACPI 4.0, but have previously been supported in ACPICA are: CPEP, 9307BERT, 9308EINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. 9309There 9310have been some ACPI 4.0 changes to other existing tables. Split the large 9311actbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 9312 9313ACPI 4.0: Implemented predefined name validation for all new names. There 9314are 931531 new names in ACPI 4.0. The predefined validation module was split into 9316two 9317files. The new file is namespace/nsrepair.c. ACPICA BZ 770. 9318 9319Implemented support for so-called "module-level executable code". This is 9320executable AML code that exists outside of any control method and is 9321intended 9322to be executed at table load time. Although illegal since ACPI 2.0, this 9323type 9324of code still exists and is apparently still being created. Blocks of 9325this 9326code are now detected and executed as intended. Currently, the code 9327blocks 9328must exist under either an If, Else, or While construct; these are the 9329typical cases seen in the field. ACPICA BZ 762. Lin Ming. 9330 9331Implemented an automatic dynamic repair for predefined names that return 9332nested Package objects. This applies to predefined names that are defined 9333to 9334return a variable-length Package of sub-packages. If the number of sub- 9335packages is one, BIOS code is occasionally seen that creates a simple 9336single 9337package with no sub-packages. This code attempts to fix the problem by 9338wrapping a new package object around the existing package. These methods 9339can 9340be repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA 9341BZ 9342790. 9343 9344Fixed a regression introduced in 20090625 for the AcpiGetDevices 9345interface. 9346The _HID/_CID matching was broken and no longer matched IDs correctly. 9347ACPICA 9348BZ 793. 9349 9350Fixed a problem with AcpiReset where the reset would silently fail if the 9351register was one of the protected I/O ports. AcpiReset now bypasses the 9352port 9353validation mechanism. This may eventually be driven into the 9354AcpiRead/Write 9355interfaces. 9356 9357Fixed a regression related to the recent update of the AcpiRead/Write 9358interfaces. A sleep/suspend could fail if the optional PM2 Control 9359register 9360does not exist during an attempt to write the Bus Master Arbitration bit. 9361(However, some hosts already delete the code that writes this bit, and 9362the 9363code may in fact be obsolete at this date.) ACPICA BZ 799. 9364 9365Fixed a problem where AcpiTerminate could fault if inadvertently called 9366twice 9367in succession. ACPICA BZ 795. 9368 9369Example Code and Data Size: These are the sizes for the OS-independent 9370acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9371debug version of the code includes the debug output trace mechanism and 9372has a 9373much larger code and data size. 9374 9375 Previous Release: 9376 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 9377 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 9378 Current Release: 9379 Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 9380 Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 9381 93822) iASL Compiler/Disassembler and Tools: 9383 9384ACPI 4.0: Implemented disassembler support for all new ACPI tables and 9385changes to existing tables. ACPICA BZ 775. 9386 9387---------------------------------------- 938825 June 2009. Summary of changes for version 20090625: 9389 9390The ACPI 4.0 Specification was released on June 16 and is available at 9391www.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 9392continue for the next few releases. 9393 93941) ACPI CA Core Subsystem: 9395 9396ACPI 4.0: Implemented interpreter support for the IPMI operation region 9397address space. Includes support for bi-directional data buffers and an 9398IPMI 9399address space handler (to be installed by an IPMI device driver.) ACPICA 9400BZ 9401773. Lin Ming. 9402 9403ACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. 9404Includes 9405support in both the header files and the disassembler. 9406 9407Completed a major update for the AcpiGetObjectInfo external interface. 9408Changes include: 9409 - Support for variable, unlimited length HID, UID, and CID strings. 9410 - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, 9411etc.) 9412 - Call the _SxW power methods on behalf of a device object. 9413 - Determine if a device is a PCI root bridge. 9414 - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 9415These changes will require an update to all callers of this interface. 9416See 9417the updated ACPICA Programmer Reference for details. One new source file 9418has 9419been added - utilities/utids.c. ACPICA BZ 368, 780. 9420 9421Updated the AcpiRead and AcpiWrite external interfaces to support 64-bit 9422transfers. The Value parameter has been extended from 32 bits to 64 bits 9423in 9424order to support new ACPI 4.0 tables. These changes will require an 9425update 9426to 9427all callers of these interfaces. See the ACPICA Programmer Reference for 9428details. ACPICA BZ 768. 9429 9430Fixed several problems with AcpiAttachData. The handler was not invoked 9431when 9432the host node was deleted. The data sub-object was not automatically 9433deleted 9434when the host node was deleted. The interface to the handler had an 9435unused 9436parameter, this was removed. ACPICA BZ 778. 9437 9438Enhanced the function that dumps ACPI table headers. All non-printable 9439characters in the string fields are now replaced with '?' (Signature, 9440OemId, 9441OemTableId, and CompilerId.) ACPI tables with non-printable characters in 9442these fields are occasionally seen in the field. ACPICA BZ 788. 9443 9444Fixed a problem with predefined method repair code where the code that 9445attempts to repair/convert an object of incorrect type is only executed 9446on 9447the first time the predefined method is called. The mechanism that 9448disables 9449warnings on subsequent calls was interfering with the repair mechanism. 9450ACPICA BZ 781. 9451 9452Fixed a possible memory leak in the predefined validation/repair code 9453when 9454a 9455buffer is automatically converted to an expected string object. 9456 9457Removed obsolete 16-bit files from the distribution and from the current 9458git 9459tree head. ACPICA BZ 776. 9460 9461Example Code and Data Size: These are the sizes for the OS-independent 9462acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9463debug version of the code includes the debug output trace mechanism and 9464has a 9465much larger code and data size. 9466 9467 Previous Release: 9468 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 9469 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 9470 Current Release: 9471 Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 9472 Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 9473 94742) iASL Compiler/Disassembler and Tools: 9475 9476ACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 9477operation region keyword. ACPICA BZ 771, 772. Lin Ming. 9478 9479ACPI 4.0: iASL - implemented compile-time validation support for all new 9480predefined names and control methods (31 total). ACPICA BZ 769. 9481 9482---------------------------------------- 948321 May 2009. Summary of changes for version 20090521: 9484 94851) ACPI CA Core Subsystem: 9486 9487Disabled the preservation of the SCI enable bit in the PM1 control 9488register. 9489The SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification 9490to 9491be 9492a "preserved" bit - "OSPM always preserves this bit position", section 94934.7.3.2.1. However, some machines fail if this bit is in fact preserved 9494because the bit needs to be explicitly set by the OS as a workaround. No 9495machines fail if the bit is not preserved. Therefore, ACPICA no longer 9496attempts to preserve this bit. 9497 9498Fixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 9499incorrectly formed _PRT package could cause a fault. Added validation to 9500ensure that each package element is actually a sub-package. 9501 9502Implemented a new interface to install or override a single control 9503method, 9504AcpiInstallMethod. This interface is useful when debugging in order to 9505repair 9506an existing method or to install a missing method without having to 9507override 9508the entire ACPI table. See the ACPICA Programmer Reference for use and 9509examples. Lin Ming, Bob Moore. 9510 9511Fixed several reference count issues with the DdbHandle object that is 9512created from a Load or LoadTable operator. Prevent premature deletion of 9513the 9514object. Also, mark the object as invalid once the table has been 9515unloaded. 9516This is needed because the handle itself may not be deleted after the 9517table 9518unload, depending on whether it has been stored in a named object by the 9519caller. Lin Ming. 9520 9521Fixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 9522mutexes of the same sync level are acquired but then not released in 9523strict 9524opposite order, the internally maintained Current Sync Level becomes 9525confused 9526and can cause subsequent execution errors. ACPICA BZ 471. 9527 9528Changed the allowable release order for ASL mutex objects. The ACPI 4.0 9529specification has been changed to make the SyncLevel for mutex objects 9530more 9531useful. When releasing a mutex, the SyncLevel of the mutex must now be 9532the 9533same as the current sync level. This makes more sense than the previous 9534rule 9535(SyncLevel less than or equal). This change updates the code to match the 9536specification. 9537 9538Fixed a problem with the local version of the AcpiOsPurgeCache function. 9539The 9540(local) cache must be locked during all cache object deletions. Andrew 9541Baumann. 9542 9543Updated the Load operator to use operation region interfaces. This 9544replaces 9545direct memory mapping with region access calls. Now, all region accesses 9546go 9547through the installed region handler as they should. 9548 9549Simplified and optimized the NsGetNextNode function. Reduced parameter 9550count 9551and reduced code for this frequently used function. 9552 9553Example Code and Data Size: These are the sizes for the OS-independent 9554acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9555debug version of the code includes the debug output trace mechanism and 9556has a 9557much larger code and data size. 9558 9559 Previous Release: 9560 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 9561 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 9562 Current Release: 9563 Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 9564 Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 9565 95662) iASL Compiler/Disassembler and Tools: 9567 9568Disassembler: Fixed some issues with DMAR, HEST, MADT tables. Some 9569problems 9570with sub-table disassembly and handling invalid sub-tables. Attempt 9571recovery 9572after an invalid sub-table ID. 9573 9574---------------------------------------- 957522 April 2009. Summary of changes for version 20090422: 9576 95771) ACPI CA Core Subsystem: 9578 9579Fixed a compatibility issue with the recently released I/O port 9580protection 9581mechanism. For windows compatibility, 1) On a port protection violation, 9582simply ignore the request and do not return an exception (allow the 9583control 9584method to continue execution.) 2) If only part of the request overlaps a 9585protected port, read/write the individual ports that are not protected. 9586Linux 9587BZ 13036. Lin Ming 9588 9589Enhanced the execution of the ASL/AML BreakPoint operator so that it 9590actually 9591breaks into the AML debugger if the debugger is present. This matches the 9592ACPI-defined behavior. 9593 9594Fixed several possible warnings related to the use of the configurable 9595ACPI_THREAD_ID. This type can now be configured as either an integer or a 9596pointer with no warnings. Also fixes several warnings in printf-like 9597statements for the 64-bit build when the type is configured as a pointer. 9598ACPICA BZ 766, 767. 9599 9600Fixed a number of possible warnings when compiling with gcc 4+ (depending 9601on 9602warning options.) Examples include printf formats, aliasing, unused 9603globals, 9604missing prototypes, missing switch default statements, use of non-ANSI 9605library functions, use of non-ANSI constructs. See generate/unix/Makefile 9606for 9607a list of warning options used with gcc 3 and 4. ACPICA BZ 735. 9608 9609Example Code and Data Size: These are the sizes for the OS-independent 9610acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9611debug version of the code includes the debug output trace mechanism and 9612has a 9613much larger code and data size. 9614 9615 Previous Release: 9616 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 9617 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 9618 Current Release: 9619 Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 9620 Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 9621 96222) iASL Compiler/Disassembler and Tools: 9623 9624iASL: Fixed a generation warning from Bison 2.3 and fixed several 9625warnings 9626on 9627the 64-bit build. 9628 9629iASL: Fixed a problem where the Unix/Linux versions of the compiler could 9630not 9631correctly digest Windows/DOS formatted files (with CR/LF). 9632 9633iASL: Added a new option for "quiet mode" (-va) that produces only the 9634compilation summary, not individual errors and warnings. Useful for large 9635batch compilations. 9636 9637AcpiExec: Implemented a new option (-z) to enable a forced 9638semaphore/mutex 9639timeout that can be used to detect hang conditions during execution of 9640AML 9641code (includes both internal semaphores and AML-defined mutexes and 9642events.) 9643 9644Added new makefiles for the generation of acpica in a generic unix-like 9645environment. These makefiles are intended to generate the acpica tools 9646and 9647utilities from the original acpica git source tree structure. 9648 9649Test Suites: Updated and cleaned up the documentation files. Updated the 9650copyrights to 2009, affecting all source files. Use the new version of 9651iASL 9652with quiet mode. Increased the number of available semaphores in the 9653Windows 9654OSL, allowing the aslts to execute fully on Windows. For the Unix OSL, 9655added 9656an alternate implementation of the semaphore timeout to allow aslts to 9657execute fully on Cygwin. 9658 9659---------------------------------------- 966020 March 2009. Summary of changes for version 20090320: 9661 96621) ACPI CA Core Subsystem: 9663 9664Fixed a possible race condition between AcpiWalkNamespace and dynamic 9665table 9666unloads. Added a reader/writer locking mechanism to allow multiple 9667concurrent 9668namespace walks (readers), but block a dynamic table unload until it can 9669gain 9670exclusive write access to the namespace. This fixes a problem where a 9671table 9672unload could (possibly catastrophically) delete the portion of the 9673namespace 9674that is currently being examined by a walk. Adds a new file, utlock.c, 9675that 9676implements the reader/writer lock mechanism. ACPICA BZ 749. 9677 9678Fixed a regression introduced in version 20090220 where a change to the 9679FADT 9680handling could cause the ACPICA subsystem to access non-existent I/O 9681ports. 9682 9683Modified the handling of FADT register and table (FACS/DSDT) addresses. 9684The 9685FADT can contain both 32-bit and 64-bit versions of these addresses. 9686Previously, the 64-bit versions were favored, meaning that if both 32 and 968764 9688versions were valid, but not equal, the 64-bit version was used. This was 9689found to cause some machines to fail. Now, in this case, the 32-bit 9690version 9691is used instead. This now matches the Windows behavior. 9692 9693Implemented a new mechanism to protect certain I/O ports. Provides 9694Microsoft 9695compatibility and protects the standard PC I/O ports from access via AML 9696code. Adds a new file, hwvalid.c 9697 9698Fixed a possible extraneous warning message from the FADT support. The 9699message warns of a 32/64 length mismatch between the legacy and GAS 9700definitions for a register. 9701 9702Removed the obsolete AcpiOsValidateAddress OSL interface. This interface 9703is 9704made obsolete by the port protection mechanism above. It was previously 9705used 9706to validate the entire address range of an operation region, which could 9707be 9708incorrect if the range included illegal ports, but fields within the 9709operation region did not actually access those ports. Validation is now 9710performed on a per-field basis instead of the entire region. 9711 9712Modified the handling of the PM1 Status Register ignored bit (bit 11.) 9713Ignored bits must be "preserved" according to the ACPI spec. Usually, 9714this 9715means a read/modify/write when writing to the register. However, for 9716status 9717registers, writing a one means clear the event. Writing a zero means 9718preserve 9719the event (do not clear.) This behavior is clarified in the ACPI 4.0 9720spec, 9721and the ACPICA code now simply always writes a zero to the ignored bit. 9722 9723Modified the handling of ignored bits for the PM1 A/B Control Registers. 9724As 9725per the ACPI specification, for the control registers, preserve 9726(read/modify/write) all bits that are defined as either reserved or 9727ignored. 9728 9729Updated the handling of write-only bits in the PM1 A/B Control Registers. 9730When reading the register, zero the write-only bits as per the ACPI spec. 9731ACPICA BZ 443. Lin Ming. 9732 9733Removed "Linux" from the list of supported _OSI strings. Linux no longer 9734wants to reply true to this request. The Windows strings are the only 9735paths 9736through the AML that are tested and known to work properly. 9737 9738 Previous Release: 9739 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 9740 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 9741 Current Release: 9742 Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 9743 Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 9744 97452) iASL Compiler/Disassembler and Tools: 9746 9747Acpiexec: Split the large aeexec.c file into two new files, aehandlers.c 9748and 9749aetables.c 9750 9751---------------------------------------- 975220 February 2009. Summary of changes for version 20090220: 9753 97541) ACPI CA Core Subsystem: 9755 9756Optimized the ACPI register locking. Removed locking for reads from the 9757ACPI 9758bit registers in PM1 Status, Enable, Control, and PM2 Control. The lock 9759is 9760not required when reading the single-bit registers. The 9761AcpiGetRegisterUnlocked function is no longer needed and has been 9762removed. 9763This will improve performance for reads on these registers. ACPICA BZ 9764760. 9765 9766Fixed the parameter validation for AcpiRead/Write. Now return 9767AE_BAD_PARAMETER if the input register pointer is null, and 9768AE_BAD_ADDRESS 9769if 9770the register has an address of zero. Previously, these cases simply 9771returned 9772AE_OK. For optional registers such as PM1B status/enable/control, the 9773caller 9774should check for a valid register address before calling. ACPICA BZ 748. 9775 9776Renamed the external ACPI bit register access functions. Renamed 9777AcpiGetRegister and AcpiSetRegister to clarify the purpose of these 9778functions. The new names are AcpiReadBitRegister and 9779AcpiWriteBitRegister. 9780Also, restructured the code for these functions by simplifying the code 9781path 9782and condensing duplicate code to reduce code size. 9783 9784Added new functions to transparently handle the possibly split PM1 A/B 9785registers. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two 9786functions 9787now handle the split registers for PM1 Status, Enable, and Control. 9788ACPICA 9789BZ 9790746. 9791 9792Added a function to handle the PM1 control registers, 9793AcpiHwWritePm1Control. 9794This function writes both of the PM1 control registers (A/B). These 9795registers 9796are different than the PM1 A/B status and enable registers in that 9797different 9798values can be written to the A/B registers. Most notably, the SLP_TYP 9799bits 9800can be different, as per the values returned from the _Sx predefined 9801methods. 9802 9803Removed an extra register write within AcpiHwClearAcpiStatus. This 9804function 9805was writing an optional PM1B status register twice. The existing call to 9806the 9807low-level AcpiHwRegisterWrite automatically handles a possibly split PM1 9808A/B 9809register. ACPICA BZ 751. 9810 9811Split out the PM1 Status registers from the FADT. Added new globals for 9812these 9813registers (A/B), similar to the way the PM1 Enable registers are handled. 9814Instead of overloading the FADT Event Register blocks. This makes the 9815code 9816clearer and less prone to error. 9817 9818Fixed the warning message for when the platform contains too many ACPI 9819tables 9820for the default size of the global root table data structure. The 9821calculation 9822for the truncation value was incorrect. 9823 9824Removed the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 9825obsolete macro, since it is now a simple reference to ->common.type. 9826There 9827were about 150 invocations of the macro across 41 files. ACPICA BZ 755. 9828 9829Removed the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 9830TYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 9831simply SLEEP_TYPE. ACPICA BZ 754. 9832 9833Conditionally compile the AcpiSetFirmwareWakingVector64 function. This 9834function is only needed on 64-bit host operating systems and is thus not 9835included for 32-bit hosts. 9836 9837Debug output: print the input and result for invocations of the _OSI 9838reserved 9839control method via the ACPI_LV_INFO debug level. Also, reduced some of 9840the 9841verbosity of this debug level. Len Brown. 9842 9843Example Code and Data Size: These are the sizes for the OS-independent 9844acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9845debug version of the code includes the debug output trace mechanism and 9846has a 9847much larger code and data size. 9848 9849 Previous Release: 9850 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9851 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9852 Current Release: 9853 Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 9854 Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 9855 98562) iASL Compiler/Disassembler and Tools: 9857 9858Disassembler: Decode the FADT PM_Profile field. Emit ascii names for the 9859various legal performance profiles. 9860 9861---------------------------------------- 986223 January 2009. Summary of changes for version 20090123: 9863 98641) ACPI CA Core Subsystem: 9865 9866Added the 2009 copyright to all module headers and signons. This affects 9867virtually every file in the ACPICA core subsystem, the iASL compiler, and 9868the tools/utilities. 9869 9870Implemented a change to allow the host to override any ACPI table, 9871including 9872dynamically loaded tables. Previously, only the DSDT could be replaced by 9873the 9874host. With this change, the AcpiOsTableOverride interface is called for 9875each 9876table found in the RSDT/XSDT during ACPICA initialization, and also 9877whenever 9878a table is dynamically loaded via the AML Load operator. 9879 9880Updated FADT flag definitions, especially the Boot Architecture flags. 9881 9882Debugger: For the Find command, automatically pad the input ACPI name 9883with 9884underscores if the name is shorter than 4 characters. This enables a 9885match 9886with the actual namespace entry which is itself padded with underscores. 9887 9888Example Code and Data Size: These are the sizes for the OS-independent 9889acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9890debug version of the code includes the debug output trace mechanism and 9891has a 9892much larger code and data size. 9893 9894 Previous Release: 9895 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 9896 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 9897 Current Release: 9898 Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 9899 Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 9900 99012) iASL Compiler/Disassembler and Tools: 9902 9903Fix build error under Bison-2.4. 9904 9905Disassembler: Enhanced FADT support. Added decoding of the Boot 9906Architecture 9907flags. Now decode all flags, regardless of the FADT version. Flag output 9908includes the FADT version which first defined each flag. 9909 9910The iASL -g option now dumps the RSDT to a file (in addition to the FADT 9911and 9912DSDT). Windows only. 9913 9914---------------------------------------- 991504 December 2008. Summary of changes for version 20081204: 9916 99171) ACPI CA Core Subsystem: 9918 9919The ACPICA Programmer Reference has been completely updated and revamped 9920for 9921this release. This includes updates to the external interfaces, OSL 9922interfaces, the overview sections, and the debugger reference. 9923 9924Several new ACPICA interfaces have been implemented and documented in the 9925programmer reference: 9926AcpiReset - Writes the reset value to the FADT-defined reset register. 9927AcpiDisableAllGpes - Disable all available GPEs. 9928AcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 9929AcpiGetGpeDevice - Get the GPE block device associated with a GPE. 9930AcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 9931AcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 9932AcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 9933 9934Most of the public ACPI hardware-related interfaces have been moved to a 9935new 9936file, components/hardware/hwxface.c 9937 9938Enhanced the FADT parsing and low-level ACPI register access: The ACPI 9939register lengths within the FADT are now used, and the low level ACPI 9940register access no longer hardcodes the ACPI register lengths. Given that 9941there may be some risk in actually trusting the FADT register lengths, a 9942run- 9943time option was added to fall back to the default hardcoded lengths if 9944the 9945FADT proves to contain incorrect values - UseDefaultRegisterWidths. This 9946option is set to true for now, and a warning is issued if a suspicious 9947FADT 9948register length is overridden with the default value. 9949 9950Fixed a reference count issue in NsRepairObject. This problem was 9951introduced 9952in version 20081031 as part of a fix to repair Buffer objects within 9953Packages. Lin Ming. 9954 9955Added semaphore support to the Linux/Unix application OS-services layer 9956(OSL). ACPICA BZ 448. Lin Ming. 9957 9958Added the ACPI_MUTEX_TYPE configuration option to select whether mutexes 9959will 9960be implemented in the OSL, or will binary semaphores be used instead. 9961 9962Example Code and Data Size: These are the sizes for the OS-independent 9963acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 9964debug version of the code includes the debug output trace mechanism and 9965has a 9966much larger code and data size. 9967 9968 Previous Release: 9969 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 9970 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 9971 Current Release: 9972 Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 9973 Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 9974 99752) iASL Compiler/Disassembler and Tools: 9976 9977iASL: Completed the '-e' option to include additional ACPI tables in 9978order 9979to 9980aid with disassembly and External statement generation. ACPICA BZ 742. 9981Lin 9982Ming. 9983 9984iASL: Removed the "named object in while loop" error. The compiler cannot 9985determine how many times a loop will execute. ACPICA BZ 730. 9986 9987Disassembler: Implemented support for FADT revision 2 (MS extension). 9988ACPICA 9989BZ 743. 9990 9991Disassembler: Updates for several ACPI data tables (HEST, EINJ, and 9992MCFG). 9993 9994---------------------------------------- 999531 October 2008. Summary of changes for version 20081031: 9996 99971) ACPI CA Core Subsystem: 9998 9999Restructured the ACPICA header files into public/private. acpi.h now 10000includes 10001only the "public" acpica headers. All other acpica headers are "private" 10002and 10003should not be included by acpica users. One new file, accommon.h is used 10004to 10005include the commonly used private headers for acpica code generation. 10006Future 10007plans include moving all private headers to a new subdirectory. 10008 10009Implemented an automatic Buffer->String return value conversion for 10010predefined ACPI methods. For these methods (such as _BIF), added 10011automatic 10012conversion for return objects that are required to be a String, but a 10013Buffer 10014was found instead. This can happen when reading string battery data from 10015an 10016operation region, because it used to be difficult to convert the data 10017from 10018buffer to string from within the ASL. Ensures that the host OS is 10019provided 10020with a valid null-terminated string. Linux BZ 11822. 10021 10022Updated the FACS waking vector interfaces. Split 10023AcpiSetFirmwareWakingVector 10024into two: one for the 32-bit vector, another for the 64-bit vector. This 10025is 10026required because the host OS must setup the wake much differently for 10027each 10028vector (real vs. protected mode, etc.) and the interface itself should 10029not 10030be 10031deciding which vector to use. Also, eliminated the 10032GetFirmwareWakingVector 10033interface, as it served no purpose (only the firmware reads the vector, 10034OS 10035only writes the vector.) ACPICA BZ 731. 10036 10037Implemented a mechanism to escape infinite AML While() loops. Added a 10038loop 10039counter to force exit from AML While loops if the count becomes too 10040large. 10041This can occur in poorly written AML when the hardware does not respond 10042within a while loop and the loop does not implement a timeout. The 10043maximum 10044loop count is configurable. A new exception code is returned when a loop 10045is 10046broken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 10047 10048Optimized the execution of AML While loops. Previously, a control state 10049object was allocated and freed for each execution of the loop. The 10050optimization is to simply reuse the control state for each iteration. 10051This 10052speeds up the raw loop execution time by about 5%. 10053 10054Enhanced the implicit return mechanism. For Windows compatibility, return 10055an 10056implicit integer of value zero for methods that contain no executable 10057code. 10058Such methods are seen in the field as stubs (presumably), and can cause 10059drivers to fail if they expect a return value. Lin Ming. 10060 10061Allow multiple backslashes as root prefixes in namepaths. In a fully 10062qualified namepath, allow multiple backslash prefixes. This can happen 10063(and 10064is seen in the field) because of the use of a double-backslash in strings 10065(since backslash is the escape character) causing confusion. ACPICA BZ 10066739 10067Lin Ming. 10068 10069Emit a warning if two different FACS or DSDT tables are discovered in the 10070FADT. Checks if there are two valid but different addresses for the FACS 10071and 10072DSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 10073 10074Consolidated the method argument count validation code. Merged the code 10075that 10076validates control method argument counts into the predefined validation 10077module. Eliminates possible multiple warnings for incorrect argument 10078counts. 10079 10080Implemented ACPICA example code. Includes code for ACPICA initialization, 10081handler installation, and calling a control method. Available at 10082source/tools/examples. 10083 10084Added a global pointer for FACS table to simplify internal FACS access. 10085Use 10086the global pointer instead of using AcpiGetTableByIndex for each FACS 10087access. 10088This simplifies the code for the Global Lock and the Firmware Waking 10089Vector(s). 10090 10091Example Code and Data Size: These are the sizes for the OS-independent 10092acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10093debug version of the code includes the debug output trace mechanism and 10094has a 10095much larger code and data size. 10096 10097 Previous Release: 10098 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 10099 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 10100 Current Release: 10101 Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 10102 Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 10103 101042) iASL Compiler/Disassembler and Tools: 10105 10106iASL: Improved disassembly of external method calls. Added the -e option 10107to 10108allow the inclusion of additional ACPI tables to help with the 10109disassembly 10110of 10111method invocations and the generation of external declarations during the 10112disassembly. Certain external method invocations cannot be disassembled 10113properly without the actual declaration of the method. Use the -e option 10114to 10115include the table where the external method(s) are actually declared. 10116Most 10117useful for disassembling SSDTs that make method calls back to the master 10118DSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl 10119-d 10120-e dsdt.aml ssdt1.aml 10121 10122iASL: Fix to allow references to aliases within ASL namepaths. Fixes a 10123problem where the use of an alias within a namepath would result in a not 10124found error or cause the compiler to fault. Also now allows forward 10125references from the Alias operator itself. ACPICA BZ 738. 10126 10127---------------------------------------- 1012826 September 2008. Summary of changes for version 20080926: 10129 101301) ACPI CA Core Subsystem: 10131 10132Designed and implemented a mechanism to validate predefined ACPI methods 10133and 10134objects. This code validates the predefined ACPI objects (objects whose 10135names 10136start with underscore) that appear in the namespace, at the time they are 10137evaluated. The argument count and the type of the returned object are 10138validated against the ACPI specification. The purpose of this validation 10139is 10140to detect problems with the BIOS-implemented predefined ACPI objects 10141before 10142the results are returned to the ACPI-related drivers. Future enhancements 10143may 10144include actual repair of incorrect return objects where possible. Two new 10145files are nspredef.c and acpredef.h. 10146 10147Fixed a fault in the AML parser if a memory allocation fails during the 10148Op 10149completion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 10150 10151Fixed an issue with implicit return compatibility. This change improves 10152the 10153implicit return mechanism to be more compatible with the MS interpreter. 10154Lin 10155Ming, ACPICA BZ 349. 10156 10157Implemented support for zero-length buffer-to-string conversions. Allow 10158zero 10159length strings during interpreter buffer-to-string conversions. For 10160example, 10161during the ToDecimalString and ToHexString operators, as well as implicit 10162conversions. Fiodor Suietov, ACPICA BZ 585. 10163 10164Fixed two possible memory leaks in the error exit paths of 10165AcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions 10166are 10167similar in that they use a stack of state objects in order to eliminate 10168recursion. The stack must be fully unwound and deallocated if an error 10169occurs. Lin Ming. ACPICA BZ 383. 10170 10171Removed the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the 10172global 10173ACPI register table. This bit does not exist and is unused. Lin Ming, Bob 10174Moore ACPICA BZ 442. 10175 10176Removed the obsolete version number in module headers. Removed the 10177"$Revision" number that appeared in each module header. This version 10178number 10179was useful under SourceSafe and CVS, but has no meaning under git. It is 10180not 10181only incorrect, it could also be misleading. 10182 10183Example Code and Data Size: These are the sizes for the OS-independent 10184acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10185debug version of the code includes the debug output trace mechanism and 10186has a 10187much larger code and data size. 10188 10189 Previous Release: 10190 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10191 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 10192 Current Release: 10193 Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 10194 Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 10195 10196---------------------------------------- 1019729 August 2008. Summary of changes for version 20080829: 10198 101991) ACPI CA Core Subsystem: 10200 10201Completed a major cleanup of the internal ACPI_OPERAND_OBJECT of type 10202Reference. Changes include the elimination of cheating on the Object 10203field 10204for the DdbHandle subtype, addition of a reference class field to 10205differentiate the various reference types (instead of an AML opcode), and 10206the 10207cleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 10208 10209Reduce an error to a warning for an incorrect method argument count. 10210Previously aborted with an error if too few arguments were passed to a 10211control method via the external ACPICA interface. Now issue a warning 10212instead 10213and continue. Handles the case where the method inadvertently declares 10214too 10215many arguments, but does not actually use the extra ones. Applies mainly 10216to 10217the predefined methods. Lin Ming. Linux BZ 11032. 10218 10219Disallow the evaluation of named object types with no intrinsic value. 10220Return 10221AE_TYPE for objects that have no value and therefore evaluation is 10222undefined: 10223Device, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation 10224of 10225these types were allowed, but an exception would be generated at some 10226point 10227during the evaluation. Now, the error is generated up front. 10228 10229Fixed a possible memory leak in the AcpiNsGetExternalPathname function 10230(nsnames.c). Fixes a leak in the error exit path. 10231 10232Removed the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These 10233debug 10234levels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and 10235ACPI_EXCEPTION 10236interfaces. Also added ACPI_DB_EVENTS to correspond with the existing 10237ACPI_LV_EVENTS. 10238 10239Removed obsolete and/or unused exception codes from the acexcep.h header. 10240There is the possibility that certain device drivers may be affected if 10241they 10242use any of these exceptions. 10243 10244The ACPICA documentation has been added to the public git source tree, 10245under 10246acpica/documents. Included are the ACPICA programmer reference, the iASL 10247compiler reference, and the changes.txt release logfile. 10248 10249Example Code and Data Size: These are the sizes for the OS-independent 10250acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10251debug version of the code includes the debug output trace mechanism and 10252has a 10253much larger code and data size. 10254 10255 Previous Release: 10256 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10257 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 10258 Current Release: 10259 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10260 Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 10261 102622) iASL Compiler/Disassembler and Tools: 10263 10264Allow multiple argument counts for the predefined _SCP method. ACPI 3.0 10265defines _SCP with 3 arguments. Previous versions defined it with only 1 10266argument. iASL now allows both definitions. 10267 10268iASL/disassembler: avoid infinite loop on bad ACPI tables. Check for 10269zero- 10270length subtables when disassembling ACPI tables. Also fixed a couple of 10271errors where a full 16-bit table type field was not extracted from the 10272input 10273properly. 10274 10275acpisrc: Improve comment counting mechanism for generating source code 10276statistics. Count first and last lines of multi-line comments as 10277whitespace, 10278not comment lines. Handle Linux legal header in addition to standard 10279acpica 10280header. 10281 10282---------------------------------------- 10283 1028429 July 2008. Summary of changes for version 20080729: 10285 102861) ACPI CA Core Subsystem: 10287 10288Fix a possible deadlock in the GPE dispatch. Remove call to 10289AcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will 10290attempt 10291to acquire the GPE lock but can deadlock since the GPE lock is already 10292held 10293at dispatch time. This code was introduced in version 20060831 as a 10294response 10295to Linux BZ 6881 and has since been removed from Linux. 10296 10297Add a function to dereference returned reference objects. Examines the 10298return 10299object from a call to AcpiEvaluateObject. Any Index or RefOf references 10300are 10301automatically dereferenced in an attempt to return something useful 10302(these 10303reference types cannot be converted into an external ACPI_OBJECT.) 10304Provides 10305MS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 10306 10307x2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 10308subtables for the MADT and one new subtable for the SRAT. Includes 10309disassembler and AcpiSrc support. Data from the Intel 64 Architecture 10310x2APIC 10311Specification, June 2008. 10312 10313Additional error checking for pathname utilities. Add error check after 10314all 10315calls to AcpiNsGetPathnameLength. Add status return from 10316AcpiNsBuildExternalPath and check after all calls. Add parameter 10317validation 10318to AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 10319 10320Return status from the global init function AcpiUtGlobalInitialize. This 10321is 10322used by both the kernel subsystem and the utilities such as iASL 10323compiler. 10324The function could possibly fail when the caches are initialized. Yang 10325Yi. 10326 10327Add a function to decode reference object types to strings. Created for 10328improved error messages. 10329 10330Improve object conversion error messages. Better error messages during 10331object 10332conversion from internal to the external ACPI_OBJECT. Used for external 10333calls 10334to AcpiEvaluateObject. 10335 10336Example Code and Data Size: These are the sizes for the OS-independent 10337acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10338debug version of the code includes the debug output trace mechanism and 10339has a 10340much larger code and data size. 10341 10342 Previous Release: 10343 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 10344 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 10345 Current Release: 10346 Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 10347 Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 10348 103492) iASL Compiler/Disassembler and Tools: 10350 10351Debugger: fix a possible hang when evaluating non-methods. Fixes a 10352problem 10353introduced in version 20080701. If the object being evaluated (via 10354execute 10355command) is not a method, the debugger can hang while trying to obtain 10356non- 10357existent parameters. 10358 10359iASL: relax error for using reserved "_T_x" identifiers. These names can 10360appear in a disassembled ASL file if they were emitted by the original 10361compiler. Instead of issuing an error or warning and forcing the user to 10362manually change these names, issue a remark instead. 10363 10364iASL: error if named object created in while loop. Emit an error if any 10365named 10366object is created within a While loop. If allowed, this code will 10367generate 10368a 10369run-time error on the second iteration of the loop when an attempt is 10370made 10371to 10372create the same named object twice. ACPICA bugzilla 730. 10373 10374iASL: Support absolute pathnames for include files. Add support for 10375absolute 10376pathnames within the Include operator. previously, only relative 10377pathnames 10378were supported. 10379 10380iASL: Enforce minimum 1 interrupt in interrupt macro and Resource 10381Descriptor. 10382The ACPI spec requires one interrupt minimum. BZ 423 10383 10384iASL: Handle a missing ResourceSource arg, with a present SourceIndex. 10385Handles the case for the Interrupt Resource Descriptor where 10386the ResourceSource argument is omitted but ResourceSourceIndex 10387is present. Now leave room for the Index. BZ 426 10388 10389iASL: Prevent error message if CondRefOf target does not exist. Fixes 10390cases 10391where an error message is emitted if the target does not exist. BZ 516 10392 10393iASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 10394(get ACPI tables on Windows). This was apparently broken in version 1039520070919. 10396 10397AcpiXtract: Handle EOF while extracting data. Correctly handle the case 10398where 10399the EOF happens immediately after the last table in the input file. Print 10400completion message. Previously, no message was displayed in this case. 10401 10402---------------------------------------- 1040301 July 2008. Summary of changes for version 20080701: 10404 104050) Git source tree / acpica.org 10406 10407Fixed a problem where a git-clone from http would not transfer the entire 10408source tree. 10409 104101) ACPI CA Core Subsystem: 10411 10412Implemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 10413enable bit. Now performs a read-change-write of the enable register 10414instead 10415of simply writing out the cached enable mask. This will prevent 10416inadvertent 10417enabling of GPEs if a rogue GPE is received during initialization (before 10418GPE 10419handlers are installed.) 10420 10421Implemented a copy for dynamically loaded tables. Previously, dynamically 10422loaded tables were simply mapped - but on some machines this memory is 10423corrupted after suspend. Now copy the table to a local buffer. For the 10424OpRegion case, added checksum verify. Use the table length from the table 10425header, not the region length. For the Buffer case, use the table length 10426also. Dennis Noordsij, Bob Moore. BZ 10734 10427 10428Fixed a problem where the same ACPI table could not be dynamically loaded 10429and 10430unloaded more than once. Without this change, a table cannot be loaded 10431again 10432once it has been loaded/unloaded one time. The current mechanism does not 10433unregister a table upon an unload. During a load, if the same table is 10434found, 10435this no longer returns an exception. BZ 722 10436 10437Fixed a problem where the wrong descriptor length was calculated for the 10438EndTag descriptor in 64-bit mode. The "minimal" descriptors such as 10439EndTag 10440are calculated as 12 bytes long, but the actual length in the internal 10441descriptor is 16 because of the round-up to 8 on the 64-bit build. 10442Reported 10443by Linn Crosetto. BZ 728 10444 10445Fixed a possible memory leak in the Unload operator. The DdbHandle 10446returned 10447by Load() did not have its reference count decremented during unload, 10448leading 10449to a memory leak. Lin Ming. BZ 727 10450 10451Fixed a possible memory leak when deleting thermal/processor objects. Any 10452associated notify handlers (and objects) were not being deleted. Fiodor 10453Suietov. BZ 506 10454 10455Fixed the ordering of the ASCII names in the global mutex table to match 10456the 10457actual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug 10458only. 10459Vegard Nossum. BZ 726 10460 10461Enhanced the AcpiGetObjectInfo interface to return the number of required 10462arguments if the object is a control method. Added this call to the 10463debugger 10464so the proper number of default arguments are passed to a method. This 10465prevents a warning when executing methods from AcpiExec. 10466 10467Added a check for an invalid handle in AcpiGetObjectInfo. Return 10468AE_BAD_PARAMETER if input handle is invalid. BZ 474 10469 10470Fixed an extraneous warning from exconfig.c on the 64-bit build. 10471 10472Example Code and Data Size: These are the sizes for the OS-independent 10473acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10474debug version of the code includes the debug output trace mechanism and 10475has a 10476much larger code and data size. 10477 10478 Previous Release: 10479 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 10480 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 10481 Current Release: 10482 Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 10483 Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 10484 104852) iASL Compiler/Disassembler and Tools: 10486 10487iASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 10488resource descriptor names. 10489 10490iASL: Detect invalid ASCII characters in input (windows version). Removed 10491the 10492"-CF" flag from the flex compile, enables correct detection of non-ASCII 10493characters in the input. BZ 441 10494 10495iASL: Eliminate warning when result of LoadTable is not used. Eliminate 10496the 10497"result of operation not used" warning when the DDB handle returned from 10498LoadTable is not used. The warning is not needed. BZ 590 10499 10500AcpiExec: Add support for dynamic table load/unload. Now calls _CFG 10501method 10502to 10503pass address of table to the AML. Added option to disable OpRegion 10504simulation 10505to allow creation of an OpRegion with a real address that was passed to 10506_CFG. 10507All of this allows testing of the Load and Unload operators from 10508AcpiExec. 10509 10510Debugger: update tables command for unloaded tables. Handle unloaded 10511tables 10512and use the standard table header output routine. 10513 10514---------------------------------------- 1051509 June 2008. Summary of changes for version 20080609: 10516 105171) ACPI CA Core Subsystem: 10518 10519Implemented a workaround for reversed _PRT entries. A significant number 10520of 10521BIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 10522change dynamically detects and repairs this problem. Provides 10523compatibility 10524with MS ACPI. BZ 6859 10525 10526Simplified the internal ACPI hardware interfaces to eliminate the locking 10527flag parameter from Register Read/Write. Added a new external interface, 10528AcpiGetRegisterUnlocked. 10529 10530Fixed a problem where the invocation of a GPE control method could hang. 10531This 10532was a regression introduced in 20080514. The new method argument count 10533validation mechanism can enter an infinite loop when a GPE method is 10534dispatched. Problem fixed by removing the obsolete code that passed GPE 10535block 10536information to the notify handler via the control method parameter 10537pointer. 10538 10539Fixed a problem where the _SST execution status was incorrectly returned 10540to 10541the caller of AcpiEnterSleepStatePrep. This was a regression introduced 10542in 1054320080514. _SST is optional and a NOT_FOUND exception should never be 10544returned. BZ 716 10545 10546Fixed a problem where a deleted object could be accessed from within the 10547AML 10548parser. This was a regression introduced in version 20080123 as a fix for 10549the 10550Unload operator. Lin Ming. BZ 10669 10551 10552Cleaned up the debug operand dump mechanism. Eliminated unnecessary 10553operands 10554and eliminated the use of a negative index in a loop. Operands are now 10555displayed in the correct order, not backwards. This also fixes a 10556regression 10557introduced in 20080514 on 64-bit systems where the elimination of 10558ACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 10559715 10560 10561Fixed a possible memory leak in EvPciConfigRegionSetup where the error 10562exit 10563path did not delete a locally allocated structure. 10564 10565Updated definitions for the DMAR and SRAT tables to synchronize with the 10566current specifications. Includes disassembler support. 10567 10568Fixed a problem in the mutex debug code (in utmutex.c) where an incorrect 10569loop termination value was used. Loop terminated on iteration early, 10570missing 10571one mutex. Linn Crosetto 10572 10573Example Code and Data Size: These are the sizes for the OS-independent 10574acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10575debug version of the code includes the debug output trace mechanism and 10576has a 10577much larger code and data size. 10578 10579 Previous Release: 10580 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 10581 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 10582 Current Release: 10583 Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 10584 Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 10585 105862) iASL Compiler/Disassembler and Tools: 10587 10588Disassembler: Implemented support for EisaId() within _CID objects. Now 10589disassemble integer _CID objects back to EisaId invocations, including 10590multiple integers within _CID packages. Includes single-step support for 10591debugger also. 10592 10593Disassembler: Added support for DMAR and SRAT table definition changes. 10594 10595---------------------------------------- 1059614 May 2008. Summary of changes for version 20080514: 10597 105981) ACPI CA Core Subsystem: 10599 10600Fixed a problem where GPEs were enabled too early during the ACPICA 10601initialization. This could lead to "handler not installed" errors on some 10602machines. Moved GPE enable until after _REG/_STA/_INI methods are run. 10603This 10604ensures that all operation regions and devices throughout the namespace 10605have 10606been initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 10607 10608Implemented a change to the enter sleep code. Moved execution of the _GTS 10609method to just before setting sleep enable bit. The execution was moved 10610from 10611AcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 10612immediately before the SLP_EN bit is set, as per the ACPI specification. 10613Luming Yu, BZ 1653. 10614 10615Implemented a fix to disable unknown GPEs (2nd version). Now always 10616disable 10617the GPE, even if ACPICA thinks that that it is already disabled. It is 10618possible that the AML or some other code has enabled the GPE unbeknownst 10619to 10620the ACPICA code. 10621 10622Fixed a problem with the Field operator where zero-length fields would 10623return 10624an AE_AML_NO_OPERAND exception during table load. Fix enables zero-length 10625ASL 10626field declarations in Field(), BankField(), and IndexField(). BZ 10606. 10627 10628Implemented a fix for the Load operator, now load the table at the 10629namespace 10630root. This reverts a change introduced in version 20071019. The table is 10631now 10632loaded at the namespace root even though this goes against the ACPI 10633specification. This provides compatibility with other ACPI 10634implementations. 10635The ACPI specification will be updated to reflect this in ACPI 4.0. Lin 10636Ming. 10637 10638Fixed a problem where ACPICA would not Load() tables with unusual 10639signatures. 10640Now ignore ACPI table signature for Load() operator. Only "SSDT" is 10641acceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 10642Therefore, signature validation is worthless. Apparently MS ACPI accepts 10643such 10644signatures, ACPICA must be compatible. BZ 10454. 10645 10646Fixed a possible negative array index in AcpiUtValidateException. Added 10647NULL 10648fields to the exception string arrays to eliminate a -1 subtraction on 10649the 10650SubStatus field. 10651 10652Updated the debug tracking macros to reduce overall code and data size. 10653Changed ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 10654instead of pointers to static strings. Jan Beulich and Bob Moore. 10655 10656Implemented argument count checking in control method invocation via 10657AcpiEvaluateObject. Now emit an error if too few arguments, warning if 10658too 10659many. This applies only to extern programmatic control method execution, 10660not 10661method-to-method calls within the AML. Lin Ming. 10662 10663Eliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is 10664no 10665longer needed, especially with the removal of 16-bit support. It was 10666replaced 10667mostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 10668bit 10669on 1067032/64-bit platforms is required. 10671 10672Added the C const qualifier for appropriate string constants -- mostly 10673MODULE_NAME and printf format strings. Jan Beulich. 10674 10675Example Code and Data Size: These are the sizes for the OS-independent 10676acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10677debug version of the code includes the debug output trace mechanism and 10678has a 10679much larger code and data size. 10680 10681 Previous Release: 10682 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 10683 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 10684 Current Release: 10685 Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 10686 Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 10687 106882) iASL Compiler/Disassembler and Tools: 10689 10690Implemented ACPI table revision ID validation in the disassembler. Zero 10691is 10692always invalid. For DSDTs, the ID controls the interpreter integer width. 106931 10694means 32-bit and this is unusual. 2 or greater is 64-bit. 10695 10696---------------------------------------- 1069721 March 2008. Summary of changes for version 20080321: 10698 106991) ACPI CA Core Subsystem: 10700 10701Implemented an additional change to the GPE support in order to suppress 10702spurious or stray GPEs. The AcpiEvDisableGpe function will now 10703permanently 10704disable incoming GPEs that are neither enabled nor disabled -- meaning 10705that 10706the GPE is unknown to the system. This should prevent future interrupt 10707floods 10708from that GPE. BZ 6217 (Zhang Rui) 10709 10710Fixed a problem where NULL package elements were not returned to the 10711AcpiEvaluateObject interface correctly. The element was simply ignored 10712instead of returning a NULL ACPI_OBJECT package element, potentially 10713causing 10714a buffer overflow and/or confusing the caller who expected a fixed number 10715of 10716elements. BZ 10132 (Lin Ming, Bob Moore) 10717 10718Fixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, 10719Dword, 10720Qword), Field, BankField, and IndexField operators when invoked from 10721inside 10722an executing control method. In this case, these operators created 10723namespace 10724nodes that were incorrectly left marked as permanent nodes instead of 10725temporary nodes. This could cause a problem if there is race condition 10726between an exiting control method and a running namespace walk. (Reported 10727by 10728Linn Crosetto) 10729 10730Fixed a problem where the CreateField and CreateXXXField operators would 10731incorrectly allow duplicate names (the name of the field) with no 10732exception 10733generated. 10734 10735Implemented several changes for Notify handling. Added support for new 10736Notify 10737values (ACPI 2.0+) and improved the Notify debug output. Notify on 10738PowerResource objects is no longer allowed, as per the ACPI 10739specification. 10740(Bob Moore, Zhang Rui) 10741 10742All Reference Objects returned via the AcpiEvaluateObject interface are 10743now 10744marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved 10745for 10746NULL objects - either NULL package elements or unresolved named 10747references. 10748 10749Fixed a problem where an extraneous debug message was produced for 10750package 10751objects (when debugging enabled). The message "Package List length larger 10752than NumElements count" is now produced in the correct case, and is now 10753an 10754error message rather than a debug message. Added a debug message for the 10755opposite case, where NumElements is larger than the Package List (the 10756package 10757will be padded out with NULL elements as per the ACPI spec.) 10758 10759Implemented several improvements for the output of the ASL "Debug" object 10760to 10761clarify and keep all data for a given object on one output line. 10762 10763Fixed two size calculation issues with the variable-length Start 10764Dependent 10765resource descriptor. 10766 10767Example Code and Data Size: These are the sizes for the OS-independent 10768acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10769debug version of the code includes the debug output trace mechanism and 10770has 10771a much larger code and data size. 10772 10773 Previous Release: 10774 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10775 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10776 Current Release: 10777 Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 10778 Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 10779 107802) iASL Compiler/Disassembler and Tools: 10781 10782Fixed a problem with the use of the Switch operator where execution of 10783the 10784containing method by multiple concurrent threads could cause an 10785AE_ALREADY_EXISTS exception. This is caused by the fact that there is no 10786actual Switch opcode, it must be simulated with local named temporary 10787variables and if/else pairs. The solution chosen was to mark any method 10788that 10789uses Switch as Serialized, thus preventing multiple thread entries. BZ 10790469. 10791 10792---------------------------------------- 1079313 February 2008. Summary of changes for version 20080213: 10794 107951) ACPI CA Core Subsystem: 10796 10797Implemented another MS compatibility design change for GPE/Notify 10798handling. 10799GPEs are now cleared/enabled asynchronously to allow all pending notifies 10800to 10801complete first. It is expected that the OSL will queue the enable request 10802behind all pending notify requests (may require changes to the local host 10803OSL 10804in AcpiOsExecute). Alexey Starikovskiy. 10805 10806Fixed a problem where buffer and package objects passed as arguments to a 10807control method via the external AcpiEvaluateObject interface could cause 10808an 10809AE_AML_INTERNAL exception depending on the order and type of operators 10810executed by the target control method. 10811 10812Fixed a problem where resource descriptor size optimization could cause a 10813problem when a _CRS resource template is passed to a _SRS method. The 10814_SRS 10815resource template must use the same descriptors (with the same size) as 10816returned from _CRS. This change affects the following resource 10817descriptors: 10818IRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 108199487) 10820 10821Fixed a problem where a CopyObject to RegionField, BankField, and 10822IndexField 10823objects did not perform an implicit conversion as it should. These types 10824must 10825retain their initial type permanently as per the ACPI specification. 10826However, 10827a CopyObject to all other object types should not perform an implicit 10828conversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 10829 10830Fixed a problem with the AcpiGetDevices interface where the mechanism to 10831match device CIDs did not examine the entire list of available CIDs, but 10832instead aborted on the first non-matching CID. Andrew Patterson. 10833 10834Fixed a regression introduced in version 20071114. The ACPI_HIDWORD macro 10835was 10836inadvertently changed to return a 16-bit value instead of a 32-bit value, 10837truncating the upper dword of a 64-bit value. This macro is only used to 10838display debug output, so no incorrect calculations were made. Also, 10839reimplemented the macro so that a 64-bit shift is not performed by 10840inefficient compilers. 10841 10842Added missing va_end statements that should correspond with each va_start 10843statement. 10844 10845Example Code and Data Size: These are the sizes for the OS-independent 10846acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10847debug version of the code includes the debug output trace mechanism and 10848has 10849a much larger code and data size. 10850 10851 Previous Release: 10852 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10853 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10854 Current Release: 10855 Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 10856 Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 10857 108582) iASL Compiler/Disassembler and Tools: 10859 10860Implemented full disassembler support for the following new ACPI tables: 10861BERT, EINJ, and ERST. Implemented partial disassembler support for the 10862complicated HEST table. These tables support the Windows Hardware Error 10863Architecture (WHEA). 10864 10865---------------------------------------- 1086623 January 2008. Summary of changes for version 20080123: 10867 108681) ACPI CA Core Subsystem: 10869 10870Added the 2008 copyright to all module headers and signons. This affects 10871virtually every file in the ACPICA core subsystem, the iASL compiler, and 10872the tools/utilities. 10873 10874Fixed a problem with the SizeOf operator when used with Package and 10875Buffer 10876objects. These objects have deferred execution for some arguments, and 10877the 10878execution is now completed before the SizeOf is executed. This problem 10879caused 10880unexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) 10881BZ 108829558 10883 10884Implemented an enhancement to the interpreter "slack mode". In the 10885absence 10886of 10887an explicit return or an implicitly returned object from the last 10888executed 10889opcode, a control method will now implicitly return an integer of value 0 10890for 10891Microsoft compatibility. (Lin Ming) BZ 392 10892 10893Fixed a problem with the Load operator where an exception was not 10894returned 10895in 10896the case where the table is already loaded. (Lin Ming) BZ 463 10897 10898Implemented support for the use of DDBHandles as an Indexed Reference, as 10899per 10900the ACPI spec. (Lin Ming) BZ 486 10901 10902Implemented support for UserTerm (Method invocation) for the Unload 10903operator 10904as per the ACPI spec. (Lin Ming) BZ 580 10905 10906Fixed a problem with the LoadTable operator where the OemId and 10907OemTableId 10908input strings could cause unexpected failures if they were shorter than 10909the 10910maximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 10911 10912Implemented support for UserTerm (Method invocation) for the Unload 10913operator 10914as per the ACPI spec. (Lin Ming) BZ 580 10915 10916Implemented header file support for new ACPI tables - BERT, ERST, EINJ, 10917HEST, 10918IBFT, UEFI, WDAT. Disassembler support is forthcoming. 10919 10920Example Code and Data Size: These are the sizes for the OS-independent 10921acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 10922debug version of the code includes the debug output trace mechanism and 10923has 10924a much larger code and data size. 10925 10926 Previous Release: 10927 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 10928 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 10929 Current Release: 10930 Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 10931 Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 10932 109332) iASL Compiler/Disassembler and Tools: 10934 10935Implemented support in the disassembler for checksum validation on 10936incoming 10937binary DSDTs and SSDTs. If incorrect, a message is displayed within the 10938table 10939header dump at the start of the disassembly. 10940 10941Implemented additional debugging information in the namespace listing 10942file 10943created during compilation. In addition to the namespace hierarchy, the 10944full 10945pathname to each namespace object is displayed. 10946 10947Fixed a problem with the disassembler where invalid ACPI tables could 10948cause 10949faults or infinite loops. 10950 10951Fixed an unexpected parse error when using the optional "parameter types" 10952list in a control method declaration. (Lin Ming) BZ 397 10953 10954Fixed a problem where two External declarations with the same name did 10955not 10956cause an error (Lin Ming) BZ 509 10957 10958Implemented support for full TermArgs (adding Argx, Localx and method 10959invocation) for the ParameterData parameter to the LoadTable operator. 10960(Lin 10961Ming) BZ 583,587 10962 10963---------------------------------------- 1096419 December 2007. Summary of changes for version 20071219: 10965 109661) ACPI CA Core Subsystem: 10967 10968Implemented full support for deferred execution for the TermArg string 10969arguments for DataTableRegion. This enables forward references and full 10970operand resolution for the three string arguments. Similar to 10971OperationRegion 10972deferred argument execution.) Lin Ming. BZ 430 10973 10974Implemented full argument resolution support for the BankValue argument 10975to 10976BankField. Previously, only constants were supported, now any TermArg may 10977be 10978used. Lin Ming BZ 387, 393 10979 10980Fixed a problem with AcpiGetDevices where the search of a branch of the 10981device tree could be terminated prematurely. In accordance with the ACPI 10982specification, the search down the current branch is terminated if a 10983device 10984is both not present and not functional (instead of just not present.) 10985Yakui 10986Zhao. 10987 10988Fixed a problem where "unknown" GPEs could be allowed to fire repeatedly 10989if 10990the underlying AML code changed the GPE enable registers. Now, any 10991unknown 10992incoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately 10993disabled 10994instead of simply ignored. Rui Zhang. 10995 10996Fixed a problem with Index Fields where the Index register was 10997incorrectly 10998limited to a maximum of 32 bits. Now any size may be used. 10999 11000Fixed a couple memory leaks associated with "implicit return" objects 11001when 11002the AML Interpreter slack mode is enabled. Lin Ming BZ 349 11003 11004Example Code and Data Size: These are the sizes for the OS-independent 11005acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11006debug version of the code includes the debug output trace mechanism and 11007has 11008a much larger code and data size. 11009 11010 Previous Release: 11011 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 11012 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 11013 Current Release: 11014 Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 11015 Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 11016 11017---------------------------------------- 1101814 November 2007. Summary of changes for version 20071114: 11019 110201) ACPI CA Core Subsystem: 11021 11022Implemented event counters for each of the Fixed Events, the ACPI SCI 11023(interrupt) itself, and control methods executed. Named 11024AcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. 11025These 11026should be useful for debugging and statistics. 11027 11028Implemented a new external interface, AcpiGetStatistics, to retrieve the 11029contents of the various event counters. Returns the current values for 11030AcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 11031AcpiMethodCount. The interface can be expanded in the future if new 11032counters 11033are added. Device drivers should use this interface rather than access 11034the 11035counters directly. 11036 11037Fixed a problem with the FromBCD and ToBCD operators. With some 11038compilers, 11039the ShortDivide function worked incorrectly, causing problems with the 11040BCD 11041functions with large input values. A truncation from 64-bit to 32-bit 11042inadvertently occurred. Internal BZ 435. Lin Ming 11043 11044Fixed a problem with Index references passed as method arguments. 11045References 11046passed as arguments to control methods were dereferenced immediately 11047(before 11048control was passed to the called method). The references are now 11049correctly 11050passed directly to the called method. BZ 5389. Lin Ming 11051 11052Fixed a problem with CopyObject used in conjunction with the Index 11053operator. 11054The reference was incorrectly dereferenced before the copy. The reference 11055is 11056now correctly copied. BZ 5391. Lin Ming 11057 11058Fixed a problem with Control Method references within Package objects. 11059These 11060references are now correctly generated. This completes the package 11061construction overhaul that began in version 20071019. 11062 11063Example Code and Data Size: These are the sizes for the OS-independent 11064acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11065debug version of the code includes the debug output trace mechanism and 11066has 11067a much larger code and data size. 11068 11069 Previous Release: 11070 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 11071 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 11072 Current Release: 11073 Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 11074 Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 11075 11076 110772) iASL Compiler/Disassembler and Tools: 11078 11079The AcpiExec utility now installs handlers for all of the predefined 11080Operation Region types. New types supported are: PCI_Config, CMOS, and 11081PCIBARTarget. 11082 11083Fixed a problem with the 64-bit version of AcpiExec where the extended 11084(64- 11085bit) address fields for the DSDT and FACS within the FADT were not being 11086used, causing truncation of the upper 32-bits of these addresses. Lin 11087Ming 11088and Bob Moore 11089 11090---------------------------------------- 1109119 October 2007. Summary of changes for version 20071019: 11092 110931) ACPI CA Core Subsystem: 11094 11095Fixed a problem with the Alias operator when the target of the alias is a 11096named ASL operator that opens a new scope -- Scope, Device, 11097PowerResource, 11098Processor, and ThermalZone. In these cases, any children of the original 11099operator could not be accessed via the alias, potentially causing 11100unexpected 11101AE_NOT_FOUND exceptions. (BZ 9067) 11102 11103Fixed a problem with the Package operator where all named references were 11104created as object references and left otherwise unresolved. According to 11105the 11106ACPI specification, a Package can only contain Data Objects or references 11107to 11108control methods. The implication is that named references to Data Objects 11109(Integer, Buffer, String, Package, BufferField, Field) should be resolved 11110immediately upon package creation. This is the approach taken with this 11111change. References to all other named objects (Methods, Devices, Scopes, 11112etc.) are all now properly created as reference objects. (BZ 5328) 11113 11114Reverted a change to Notify handling that was introduced in version 1111520070508. This version changed the Notify handling from asynchronous to 11116fully synchronous (Device driver Notify handling with respect to the 11117Notify 11118ASL operator). It was found that this change caused more problems than it 11119solved and was removed by most users. 11120 11121Fixed a problem with the Increment and Decrement operators where the type 11122of 11123the target object could be unexpectedly and incorrectly changed. (BZ 353) 11124Lin Ming. 11125 11126Fixed a problem with the Load and LoadTable operators where the table 11127location within the namespace was ignored. Instead, the table was always 11128loaded into the root or current scope. Lin Ming. 11129 11130Fixed a problem with the Load operator when loading a table from a buffer 11131object. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 11132 11133Fixed a problem with the Debug object where a store of a DdbHandle 11134reference 11135object to the Debug object could cause a fault. 11136 11137Added a table checksum verification for the Load operator, in the case 11138where 11139the load is from a buffer. (BZ 578). 11140 11141Implemented additional parameter validation for the LoadTable operator. 11142The 11143length of the input strings SignatureString, OemIdString, and OemTableId 11144are 11145now checked for maximum lengths. (BZ 582) Lin Ming. 11146 11147Example Code and Data Size: These are the sizes for the OS-independent 11148acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11149debug version of the code includes the debug output trace mechanism and 11150has 11151a much larger code and data size. 11152 11153 Previous Release: 11154 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 11155 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 11156 Current Release: 11157 Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 11158 Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 11159 11160 111612) iASL Compiler/Disassembler: 11162 11163Fixed a problem where if a single file was specified and the file did not 11164exist, no error message was emitted. (Introduced with wildcard support in 11165version 20070917.) 11166 11167---------------------------------------- 1116819 September 2007. Summary of changes for version 20070919: 11169 111701) ACPI CA Core Subsystem: 11171 11172Designed and implemented new external interfaces to install and remove 11173handlers for ACPI table-related events. Current events that are defined 11174are 11175LOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 11176they are dynamically loaded and unloaded. See AcpiInstallTableHandler and 11177AcpiRemoveTableHandler. (Lin Ming and Bob Moore) 11178 11179Fixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 11180(acpi_serialized option on Linux) could cause some systems to hang during 11181initialization. (Bob Moore) BZ 8171 11182 11183Fixed a problem where objects of certain types (Device, ThermalZone, 11184Processor, PowerResource) can be not found if they are declared and 11185referenced from within the same control method (Lin Ming) BZ 341 11186 11187Example Code and Data Size: These are the sizes for the OS-independent 11188acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11189debug version of the code includes the debug output trace mechanism and 11190has 11191a much larger code and data size. 11192 11193 Previous Release: 11194 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 11195 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 11196 Current Release: 11197 Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 11198 Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 11199 11200 112012) iASL Compiler/Disassembler: 11202 11203Implemented support to allow multiple files to be compiled/disassembled 11204in 11205a 11206single invocation. This includes command line wildcard support for both 11207the 11208Windows and Unix versions of the compiler. This feature simplifies the 11209disassembly and compilation of multiple ACPI tables in a single 11210directory. 11211 11212---------------------------------------- 1121308 May 2007. Summary of changes for version 20070508: 11214 112151) ACPI CA Core Subsystem: 11216 11217Implemented a Microsoft compatibility design change for the handling of 11218the 11219Notify AML operator. Previously, notify handlers were dispatched and 11220executed completely asynchronously in a deferred thread. The new design 11221still executes the notify handlers in a different thread, but the 11222original 11223thread that executed the Notify() now waits at a synchronization point 11224for 11225the notify handler to complete. Some machines depend on a synchronous 11226Notify 11227operator in order to operate correctly. 11228 11229Implemented support to allow Package objects to be passed as method 11230arguments to the external AcpiEvaluateObject interface. Previously, this 11231would return the AE_NOT_IMPLEMENTED exception. This feature had not been 11232implemented since there were no reserved control methods that required it 11233until recently. 11234 11235Fixed a problem with the internal FADT conversion where ACPI 1.0 FADTs 11236that 11237contained invalid non-zero values in reserved fields could cause later 11238failures because these fields have meaning in later revisions of the 11239FADT. 11240For incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The 11241fields 11242are: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 11243 11244Fixed a problem where the Global Lock handle was not properly updated if 11245a 11246thread that acquired the Global Lock via executing AML code then 11247attempted 11248to acquire the lock via the AcpiAcquireGlobalLock interface. Reported by 11249Joe 11250Liu. 11251 11252Fixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 11253could be corrupted if the interrupt being removed was at the head of the 11254list. Reported by Linn Crosetto. 11255 11256Example Code and Data Size: These are the sizes for the OS-independent 11257acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11258debug version of the code includes the debug output trace mechanism and 11259has 11260a much larger code and data size. 11261 11262 Previous Release: 11263 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11264 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 11265 Current Release: 11266 Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 11267 Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 11268 11269---------------------------------------- 1127020 March 2007. Summary of changes for version 20070320: 11271 112721) ACPI CA Core Subsystem: 11273 11274Implemented a change to the order of interpretation and evaluation of AML 11275operand objects within the AML interpreter. The interpreter now evaluates 11276operands in the order that they appear in the AML stream (and the 11277corresponding ASL code), instead of in the reverse order (after the 11278entire 11279operand list has been parsed). The previous behavior caused several 11280subtle 11281incompatibilities with the Microsoft AML interpreter as well as being 11282somewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 11283 11284Implemented a change to the ACPI Global Lock support. All interfaces to 11285the 11286global lock now allow the same thread to acquire the lock multiple times. 11287This affects the AcpiAcquireGlobalLock external interface to the global 11288lock 11289as well as the internal use of the global lock to support AML fields -- a 11290control method that is holding the global lock can now simultaneously 11291access 11292AML fields that require global lock protection. Previously, in both 11293cases, 11294this would have resulted in an AE_ALREADY_ACQUIRED exception. The change 11295to 11296AcpiAcquireGlobalLock is of special interest to drivers for the Embedded 11297Controller. There is no change to the behavior of the AML Acquire 11298operator, 11299as this can already be used to acquire a mutex multiple times by the same 11300thread. BZ 8066. With assistance from Alexey Starikovskiy. 11301 11302Fixed a problem where invalid objects could be referenced in the AML 11303Interpreter after error conditions. During operand evaluation, ensure 11304that 11305the internal "Return Object" field is cleared on error and only valid 11306pointers are stored there. Caused occasional access to deleted objects 11307that 11308resulted in "large reference count" warning messages. Valery Podrezov. 11309 11310Fixed a problem where an AE_STACK_OVERFLOW internal exception could occur 11311on 11312deeply nested control method invocations. BZ 7873, local BZ 487. Valery 11313Podrezov. 11314 11315Fixed an internal problem with the handling of result objects on the 11316interpreter result stack. BZ 7872. Valery Podrezov. 11317 11318Removed obsolete code that handled the case where AML_NAME_OP is the 11319target 11320of a reference (Reference.Opcode). This code was no longer necessary. BZ 113217874. Valery Podrezov. 11322 11323Removed obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This 11324was 11325a 11326remnant from the previously discontinued 16-bit support. 11327 11328Example Code and Data Size: These are the sizes for the OS-independent 11329acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11330debug version of the code includes the debug output trace mechanism and 11331has 11332a much larger code and data size. 11333 11334 Previous Release: 11335 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11336 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11337 Current Release: 11338 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11339 Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 11340 11341---------------------------------------- 1134226 January 2007. Summary of changes for version 20070126: 11343 113441) ACPI CA Core Subsystem: 11345 11346Added the 2007 copyright to all module headers and signons. This affects 11347virtually every file in the ACPICA core subsystem, the iASL compiler, and 11348the utilities. 11349 11350Implemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 11351during a table load. A bad pointer was passed in the case where the DSDT 11352is 11353overridden, causing a fault in this case. 11354 11355Example Code and Data Size: These are the sizes for the OS-independent 11356acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11357debug version of the code includes the debug output trace mechanism and 11358has 11359a much larger code and data size. 11360 11361 Previous Release: 11362 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11363 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11364 Current Release: 11365 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11366 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11367 11368---------------------------------------- 1136915 December 2006. Summary of changes for version 20061215: 11370 113711) ACPI CA Core Subsystem: 11372 11373Support for 16-bit ACPICA has been completely removed since it is no 11374longer 11375necessary and it clutters the code. All 16-bit macros, types, and 11376conditional compiles have been removed, cleaning up and simplifying the 11377code 11378across the entire subsystem. DOS support is no longer needed since the 11379bootable Linux firmware kit is now available. 11380 11381The handler for the Global Lock is now removed during AcpiTerminate to 11382enable a clean subsystem restart, via the implementation of the 11383AcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 11384HP) 11385 11386Implemented enhancements to the multithreading support within the 11387debugger 11388to enable improved multithreading debugging and evaluation of the 11389subsystem. 11390(Valery Podrezov) 11391 11392Debugger: Enhanced the Statistics/Memory command to emit the total 11393(maximum) 11394memory used during the execution, as well as the maximum memory consumed 11395by 11396each of the various object types. (Valery Podrezov) 11397 11398Example Code and Data Size: These are the sizes for the OS-independent 11399acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11400debug version of the code includes the debug output trace mechanism and 11401has 11402a much larger code and data size. 11403 11404 Previous Release: 11405 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 11406 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 11407 Current Release: 11408 Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 11409 Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 11410 11411 114122) iASL Compiler/Disassembler and Tools: 11413 11414AcpiExec: Implemented a new option (-m) to display full memory use 11415statistics upon subsystem/program termination. (Valery Podrezov) 11416 11417---------------------------------------- 1141809 November 2006. Summary of changes for version 20061109: 11419 114201) ACPI CA Core Subsystem: 11421 11422Optimized the Load ASL operator in the case where the source operand is 11423an 11424operation region. Simply map the operation region memory, instead of 11425performing a bytewise read. (Region must be of type SystemMemory, see 11426below.) 11427 11428Fixed the Load ASL operator for the case where the source operand is a 11429region field. A buffer object is also allowed as the source operand. BZ 11430480 11431 11432Fixed a problem where the Load ASL operator allowed the source operand to 11433be 11434an operation region of any type. It is now restricted to regions of type 11435SystemMemory, as per the ACPI specification. BZ 481 11436 11437Additional cleanup and optimizations for the new Table Manager code. 11438 11439AcpiEnable will now fail if all of the required ACPI tables are not 11440loaded 11441(FADT, FACS, DSDT). BZ 477 11442 11443Added #pragma pack(8/4) to acobject.h to ensure that the structures in 11444this 11445header are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 11446manually optimized to be aligned and will not work if it is byte-packed. 11447 11448Example Code and Data Size: These are the sizes for the OS-independent 11449acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11450debug version of the code includes the debug output trace mechanism and 11451has 11452a much larger code and data size. 11453 11454 Previous Release: 11455 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 11456 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 11457 Current Release: 11458 Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 11459 Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 11460 11461 114622) iASL Compiler/Disassembler and Tools: 11463 11464Fixed a problem where the presence of the _OSI predefined control method 11465within complex expressions could cause an internal compiler error. 11466 11467AcpiExec: Implemented full region support for multiple address spaces. 11468SpaceId is now part of the REGION object. BZ 429 11469 11470---------------------------------------- 1147111 October 2006. Summary of changes for version 20061011: 11472 114731) ACPI CA Core Subsystem: 11474 11475Completed an AML interpreter performance enhancement for control method 11476execution. Previously a 2-pass parse/execution, control methods are now 11477completely parsed and executed in a single pass. This improves overall 11478interpreter performance by ~25%, reduces code size, and reduces CPU stack 11479use. (Valery Podrezov + interpreter changes in version 20051202 that 11480eliminated namespace loading during the pass one parse.) 11481 11482Implemented _CID support for PCI Root Bridge detection. If the _HID does 11483not 11484match the predefined PCI Root Bridge IDs, the _CID list (if present) is 11485now 11486obtained and also checked for an ID match. 11487 11488Implemented additional support for the PCI _ADR execution: upsearch until 11489a 11490device scope is found before executing _ADR. This allows PCI_Config 11491operation regions to be declared locally within control methods 11492underneath 11493PCI device objects. 11494 11495Fixed a problem with a possible race condition between threads executing 11496AcpiWalkNamespace and the AML interpreter. This condition was removed by 11497modifying AcpiWalkNamespace to (by default) ignore all temporary 11498namespace 11499entries created during any concurrent control method execution. An 11500additional namespace race condition is known to exist between 11501AcpiWalkNamespace and the Load/Unload ASL operators and is still under 11502investigation. 11503 11504Restructured the AML ParseLoop function, breaking it into several 11505subfunctions in order to reduce CPU stack use and improve 11506maintainability. 11507(Mikhail Kouzmich) 11508 11509AcpiGetHandle: Fix for parameter validation to detect invalid 11510combinations 11511of prefix handle and pathname. BZ 478 11512 11513Example Code and Data Size: These are the sizes for the OS-independent 11514acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11515debug version of the code includes the debug output trace mechanism and 11516has 11517a much larger code and data size. 11518 11519 Previous Release: 11520 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11521 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 11522 Current Release: 11523 Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 11524 Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 11525 115262) iASL Compiler/Disassembler and Tools: 11527 11528Ported the -g option (get local ACPI tables) to the new ACPICA Table 11529Manager 11530to restore original behavior. 11531 11532---------------------------------------- 1153327 September 2006. Summary of changes for version 20060927: 11534 115351) ACPI CA Core Subsystem: 11536 11537Removed the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 11538These functions now use a spinlock for mutual exclusion and the interrupt 11539level indication flag is not needed. 11540 11541Fixed a problem with the Global Lock where the lock could appear to be 11542obtained before it is actually obtained. The global lock semaphore was 11543inadvertently created with one unit instead of zero units. (BZ 464) 11544Fiodor 11545Suietov. 11546 11547Fixed a possible memory leak and fault in AcpiExResolveObjectToValue 11548during 11549a read from a buffer or region field. (BZ 458) Fiodor Suietov. 11550 11551Example Code and Data Size: These are the sizes for the OS-independent 11552acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11553debug version of the code includes the debug output trace mechanism and 11554has 11555a much larger code and data size. 11556 11557 Previous Release: 11558 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11559 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 11560 Current Release: 11561 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11562 Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 11563 11564 115652) iASL Compiler/Disassembler and Tools: 11566 11567Fixed a compilation problem with the pre-defined Resource Descriptor 11568field 11569names where an "object does not exist" error could be incorrectly 11570generated 11571if the parent ResourceTemplate pathname places the template within a 11572different namespace scope than the current scope. (BZ 7212) 11573 11574Fixed a problem where the compiler could hang after syntax errors 11575detected 11576in an ElseIf construct. (BZ 453) 11577 11578Fixed a problem with the AmlFilename parameter to the DefinitionBlock() 11579operator. An incorrect output filename was produced when this parameter 11580was 11581a null string (""). Now, the original input filename is used as the AML 11582output filename, with an ".aml" extension. 11583 11584Implemented a generic batch command mode for the AcpiExec utility 11585(execute 11586any AML debugger command) (Valery Podrezov). 11587 11588---------------------------------------- 1158912 September 2006. Summary of changes for version 20060912: 11590 115911) ACPI CA Core Subsystem: 11592 11593Enhanced the implementation of the "serialized mode" of the interpreter 11594(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 11595specified, instead of creating a serialization semaphore per control 11596method, 11597the interpreter lock is simply no longer released before a blocking 11598operation during control method execution. This effectively makes the AML 11599Interpreter single-threaded. The overhead of a semaphore per-method is 11600eliminated. 11601 11602Fixed a regression where an error was no longer emitted if a control 11603method 11604attempts to create 2 objects of the same name. This once again returns 11605AE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism 11606that 11607will dynamically serialize the control method to possible prevent future 11608errors. (BZ 440) 11609 11610Integrated a fix for a problem with PCI Express HID detection in the PCI 11611Config Space setup procedure. (BZ 7145) 11612 11613Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the 11614AcpiHwInitialize function - the FADT registers are now validated when the 11615table is loaded. 11616 11617Added two new warnings during FADT verification - 1) if the FADT is 11618larger 11619than the largest known FADT version, and 2) if there is a mismatch 11620between 11621a 1162232-bit block address and the 64-bit X counterpart (when both are non- 11623zero.) 11624 11625Example Code and Data Size: These are the sizes for the OS-independent 11626acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11627debug version of the code includes the debug output trace mechanism and 11628has 11629a much larger code and data size. 11630 11631 Previous Release: 11632 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 11633 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 11634 Current Release: 11635 Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 11636 Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 11637 11638 116392) iASL Compiler/Disassembler and Tools: 11640 11641Fixed a problem with the implementation of the Switch() operator where 11642the 11643temporary variable was declared too close to the actual Switch, instead 11644of 11645at method level. This could cause a problem if the Switch() operator is 11646within a while loop, causing an error on the second iteration. (BZ 460) 11647 11648Disassembler - fix for error emitted for unknown type for target of scope 11649operator. Now, ignore it and continue. 11650 11651Disassembly of an FADT now verifies the input FADT and reports any errors 11652found. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 11653 11654Disassembly of raw data buffers with byte initialization data now 11655prefixes 11656each output line with the current buffer offset. 11657 11658Disassembly of ASF! table now includes all variable-length data fields at 11659the end of some of the subtables. 11660 11661The disassembler now emits a comment if a buffer appears to be a 11662ResourceTemplate, but cannot be disassembled as such because the EndTag 11663does 11664not appear at the very end of the buffer. 11665 11666AcpiExec - Added the "-t" command line option to enable the serialized 11667mode 11668of the AML interpreter. 11669 11670---------------------------------------- 1167131 August 2006. Summary of changes for version 20060831: 11672 116731) ACPI CA Core Subsystem: 11674 11675Miscellaneous fixes for the Table Manager: 11676- Correctly initialize internal common FADT for all 64-bit "X" fields 11677- Fixed a couple table mapping issues during table load 11678- Fixed a couple alignment issues for IA64 11679- Initialize input array to zero in AcpiInitializeTables 11680- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 11681AcpiGetTableByIndex 11682 11683Change for GPE support: when a "wake" GPE is received, all wake GPEs are 11684now 11685immediately disabled to prevent the waking GPE from firing again and to 11686prevent other wake GPEs from interrupting the wake process. 11687 11688Added the AcpiGpeCount global that tracks the number of processed GPEs, 11689to 11690be used for debugging systems with a large number of ACPI interrupts. 11691 11692Implemented support for the "DMAR" ACPI table (DMA Redirection Table) in 11693both the ACPICA headers and the disassembler. 11694 11695Example Code and Data Size: These are the sizes for the OS-independent 11696acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11697debug version of the code includes the debug output trace mechanism and 11698has 11699a much larger code and data size. 11700 11701 Previous Release: 11702 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 11703 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 11704 Current Release: 11705 Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 11706 Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 11707 11708 117092) iASL Compiler/Disassembler and Tools: 11710 11711Disassembler support for the DMAR ACPI table. 11712 11713---------------------------------------- 1171423 August 2006. Summary of changes for version 20060823: 11715 117161) ACPI CA Core Subsystem: 11717 11718The Table Manager component has been completely redesigned and 11719reimplemented. The new design is much simpler, and reduces the overall 11720code 11721and data size of the kernel-resident ACPICA by approximately 5%. Also, it 11722is 11723now possible to obtain the ACPI tables very early during kernel 11724initialization, even before dynamic memory management is initialized. 11725(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 11726 11727Obsolete ACPICA interfaces: 11728 11729- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel 11730init 11731time). 11732- AcpiLoadTable: Not needed. 11733- AcpiUnloadTable: Not needed. 11734 11735New ACPICA interfaces: 11736 11737- AcpiInitializeTables: Must be called before the table manager can be 11738used. 11739- AcpiReallocateRootTable: Used to transfer the root table to dynamically 11740allocated memory after it becomes available. 11741- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI 11742tables 11743in the RSDT/XSDT. 11744 11745Other ACPICA changes: 11746 11747- AcpiGetTableHeader returns the actual mapped table header, not a copy. 11748Use 11749AcpiOsUnmapMemory to free this mapping. 11750- AcpiGetTable returns the actual mapped table. The mapping is managed 11751internally and must not be deleted by the caller. Use of this interface 11752causes no additional dynamic memory allocation. 11753- AcpiFindRootPointer: Support for physical addressing has been 11754eliminated, 11755it appeared to be unused. 11756- The interface to AcpiOsMapMemory has changed to be consistent with the 11757other allocation interfaces. 11758- The interface to AcpiOsGetRootPointer has changed to eliminate 11759unnecessary 11760parameters. 11761- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 1176264- 11763bit platforms. Was previously 64 bits on all platforms. 11764- The interface to the ACPI Global Lock acquire/release macros have 11765changed 11766slightly since ACPICA no longer keeps a local copy of the FACS with a 11767constructed pointer to the actual global lock. 11768 11769Porting to the new table manager: 11770 11771- AcpiInitializeTables: Must be called once, and can be called anytime 11772during the OS initialization process. It allows the host to specify an 11773area 11774of memory to be used to store the internal version of the RSDT/XSDT (root 11775table). This allows the host to access ACPI tables before memory 11776management 11777is initialized and running. 11778- AcpiReallocateRootTable: Can be called after memory management is 11779running 11780to copy the root table to a dynamically allocated array, freeing up the 11781scratch memory specified in the call to AcpiInitializeTables. 11782- AcpiSubsystemInitialize: This existing interface is independent of the 11783Table Manager, and does not have to be called before the Table Manager 11784can 11785be used, it only must be called before the rest of ACPICA can be used. 11786- ACPI Tables: Some changes have been made to the names and structure of 11787the 11788actbl.h and actbl1.h header files and may require changes to existing 11789code. 11790For example, bitfields have been completely removed because of their lack 11791of 11792portability across C compilers. 11793- Update interfaces to the Global Lock acquire/release macros if local 11794versions are used. (see acwin.h) 11795 11796Obsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 11797 11798New files: tbfind.c 11799 11800Example Code and Data Size: These are the sizes for the OS-independent 11801acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11802debug version of the code includes the debug output trace mechanism and 11803has 11804a much larger code and data size. 11805 11806 Previous Release: 11807 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11808 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11809 Current Release: 11810 Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 11811 Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 11812 11813 118142) iASL Compiler/Disassembler and Tools: 11815 11816No changes for this release. 11817 11818---------------------------------------- 1181921 July 2006. Summary of changes for version 20060721: 11820 118211) ACPI CA Core Subsystem: 11822 11823The full source code for the ASL test suite used to validate the iASL 11824compiler and the ACPICA core subsystem is being released with the ACPICA 11825source for the first time. The source is contained in a separate package 11826and 11827consists of over 1100 files that exercise all ASL/AML operators. The 11828package 11829should appear on the Intel/ACPI web site shortly. (Valery Podrezov, 11830Fiodor 11831Suietov) 11832 11833Completed a new design and implementation for support of the ACPI Global 11834Lock. On the OS side, the global lock is now treated as a standard AML 11835mutex. Previously, multiple OS threads could "acquire" the global lock 11836simultaneously. However, this could cause the BIOS to be starved out of 11837the 11838lock - especially in cases such as the Embedded Controller driver where 11839there is a tight coupling between the OS and the BIOS. 11840 11841Implemented an optimization for the ACPI Global Lock interrupt mechanism. 11842The Global Lock interrupt handler no longer queues the execution of a 11843separate thread to signal the global lock semaphore. Instead, the 11844semaphore 11845is signaled directly from the interrupt handler. 11846 11847Implemented support within the AML interpreter for package objects that 11848contain a larger AML length (package list length) than the package 11849element 11850count. In this case, the length of the package is truncated to match the 11851package element count. Some BIOS code apparently modifies the package 11852length 11853on the fly, and this change supports this behavior. Provides 11854compatibility 11855with the MS AML interpreter. (With assistance from Fiodor Suietov) 11856 11857Implemented a temporary fix for the BankValue parameter of a Bank Field 11858to 11859support all constant values, now including the Zero and One opcodes. 11860Evaluation of this parameter must eventually be converted to a full 11861TermArg 11862evaluation. A not-implemented error is now returned (temporarily) for 11863non- 11864constant values for this parameter. 11865 11866Fixed problem reports (Fiodor Suietov) integrated: 11867- Fix for premature object deletion after CopyObject on Operation Region 11868(BZ 11869350) 11870 11871Example Code and Data Size: These are the sizes for the OS-independent 11872acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11873debug version of the code includes the debug output trace mechanism and 11874has 11875a much larger code and data size. 11876 11877 Previous Release: 11878 Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 11879 Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 11880 Current Release: 11881 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11882 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11883 11884 118852) iASL Compiler/Disassembler and Tools: 11886 11887No changes for this release. 11888 11889---------------------------------------- 1189007 July 2006. Summary of changes for version 20060707: 11891 118921) ACPI CA Core Subsystem: 11893 11894Added the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 11895that do not allow the initialization of address pointers within packed 11896structures - even though the hardware itself may support misaligned 11897transfers. Some of the debug data structures are packed by default to 11898minimize size. 11899 11900Added an error message for the case where AcpiOsGetThreadId() returns 11901zero. 11902A non-zero value is required by the core ACPICA code to ensure the proper 11903operation of AML mutexes and recursive control methods. 11904 11905The DSDT is now the only ACPI table that determines whether the AML 11906interpreter is in 32-bit or 64-bit mode. Not really a functional change, 11907but 11908the hooks for per-table 32/64 switching have been removed from the code. 11909A 11910clarification to the ACPI specification is forthcoming in ACPI 3.0B. 11911 11912Fixed a possible leak of an OwnerID in the error path of 11913AcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 11914deletion to a single place in AcpiTbUninstallTable to correct possible 11915leaks 11916when using the AcpiTbDeleteTablesByType interface (with assistance from 11917Lance Ortiz.) 11918 11919Fixed a problem with Serialized control methods where the semaphore 11920associated with the method could be over-signaled after multiple method 11921invocations. 11922 11923Fixed two issues with the locking of the internal namespace data 11924structure. 11925Both the Unload() operator and AcpiUnloadTable interface now lock the 11926namespace during the namespace deletion associated with the table unload 11927(with assistance from Linn Crosetto.) 11928 11929Fixed problem reports (Valery Podrezov) integrated: 11930- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 11931 11932Fixed problem reports (Fiodor Suietov) integrated: 11933- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 11934- On Address Space handler deletion, needless deactivation call (BZ 374) 11935- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 11936375) 11937- Possible memory leak, Notify sub-objects of Processor, Power, 11938ThermalZone 11939(BZ 376) 11940- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 11941- Minimum Length of RSDT should be validated (BZ 379) 11942- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 11943Handler (BZ (380) 11944- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type 11945loaded 11946(BZ 381) 11947 11948Example Code and Data Size: These are the sizes for the OS-independent 11949acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 11950debug version of the code includes the debug output trace mechanism and 11951has 11952a much larger code and data size. 11953 11954 Previous Release: 11955 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 11956 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 11957 Current Release: 11958 Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 11959 Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 11960 11961 119622) iASL Compiler/Disassembler and Tools: 11963 11964Fixed problem reports: 11965Compiler segfault when ASL contains a long (>1024) String declaration (BZ 11966436) 11967 11968---------------------------------------- 1196923 June 2006. Summary of changes for version 20060623: 11970 119711) ACPI CA Core Subsystem: 11972 11973Implemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 11974allows the type to be customized to the host OS for improved efficiency 11975(since a spinlock is usually a very small object.) 11976 11977Implemented support for "ignored" bits in the ACPI registers. According 11978to 11979the ACPI specification, these bits should be preserved when writing the 11980registers via a read/modify/write cycle. There are 3 bits preserved in 11981this 11982manner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 11983 11984Implemented the initial deployment of new OSL mutex interfaces. Since 11985some 11986host operating systems have separate mutex and semaphore objects, this 11987feature was requested. The base code now uses mutexes (and the new mutex 11988interfaces) wherever a binary semaphore was used previously. However, for 11989the current release, the mutex interfaces are defined as macros to map 11990them 11991to the existing semaphore interfaces. Therefore, no OSL changes are 11992required 11993at this time. (See acpiosxf.h) 11994 11995Fixed several problems with the support for the control method SyncLevel 11996parameter. The SyncLevel now works according to the ACPI specification 11997and 11998in concert with the Mutex SyncLevel parameter, since the current 11999SyncLevel 12000is a property of the executing thread. Mutual exclusion for control 12001methods 12002is now implemented with a mutex instead of a semaphore. 12003 12004Fixed three instances of the use of the C shift operator in the bitfield 12005support code (exfldio.c) to avoid the use of a shift value larger than 12006the 12007target data width. The behavior of C compilers is undefined in this case 12008and 12009can cause unpredictable results, and therefore the case must be detected 12010and 12011avoided. (Fiodor Suietov) 12012 12013Added an info message whenever an SSDT or OEM table is loaded dynamically 12014via the Load() or LoadTable() ASL operators. This should improve 12015debugging 12016capability since it will show exactly what tables have been loaded 12017(beyond 12018the tables present in the RSDT/XSDT.) 12019 12020Example Code and Data Size: These are the sizes for the OS-independent 12021acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12022debug version of the code includes the debug output trace mechanism and 12023has 12024a much larger code and data size. 12025 12026 Previous Release: 12027 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 12028 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 12029 Current Release: 12030 Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 12031 Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 12032 12033 120342) iASL Compiler/Disassembler and Tools: 12035 12036No changes for this release. 12037 12038---------------------------------------- 1203908 June 2006. Summary of changes for version 20060608: 12040 120411) ACPI CA Core Subsystem: 12042 12043Converted the locking mutex used for the ACPI hardware to a spinlock. 12044This 12045change should eliminate all problems caused by attempting to acquire a 12046semaphore at interrupt level, and it means that all ACPICA external 12047interfaces that directly access the ACPI hardware can be safely called 12048from 12049interrupt level. OSL code that implements the semaphore interfaces should 12050be 12051able to eliminate any workarounds for being called at interrupt level. 12052 12053Fixed a regression introduced in 20060526 where the ACPI device 12054initialization could be prematurely aborted with an AE_NOT_FOUND if a 12055device 12056did not have an optional _INI method. 12057 12058Fixed an IndexField issue where a write to the Data Register should be 12059limited in size to the AccessSize (width) of the IndexField itself. (BZ 12060433, 12061Fiodor Suietov) 12062 12063Fixed problem reports (Valery Podrezov) integrated: 12064- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 12065 12066Fixed problem reports (Fiodor Suietov) integrated: 12067- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 12068 12069Removed four global mutexes that were obsolete and were no longer being 12070used. 12071 12072Example Code and Data Size: These are the sizes for the OS-independent 12073acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12074debug version of the code includes the debug output trace mechanism and 12075has 12076a much larger code and data size. 12077 12078 Previous Release: 12079 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 12080 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 12081 Current Release: 12082 Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 12083 Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 12084 12085 120862) iASL Compiler/Disassembler and Tools: 12087 12088Fixed a fault when using -g option (get tables from registry) on Windows 12089machines. 12090 12091Fixed problem reports integrated: 12092- Generate error if CreateField NumBits parameter is zero. (BZ 405) 12093- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 12094Suietov) 12095- Global table revision override (-r) is ignored (BZ 413) 12096 12097---------------------------------------- 1209826 May 2006. Summary of changes for version 20060526: 12099 121001) ACPI CA Core Subsystem: 12101 12102Restructured, flattened, and simplified the internal interfaces for 12103namespace object evaluation - resulting in smaller code, less CPU stack 12104use, 12105and fewer interfaces. (With assistance from Mikhail Kouzmich) 12106 12107Fixed a problem with the CopyObject operator where the first parameter 12108was 12109not typed correctly for the parser, interpreter, compiler, and 12110disassembler. 12111Caused various errors and unexpected behavior. 12112 12113Fixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 12114produced incorrect results with some C compilers. Since the behavior of C 12115compilers when the shift value is larger than the datatype width is 12116apparently not well defined, the interpreter now detects this condition 12117and 12118simply returns zero as expected in all such cases. (BZ 395) 12119 12120Fixed problem reports (Valery Podrezov) integrated: 12121- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 12122- Allow interpreter to handle nested method declarations (BZ 5361) 12123 12124Fixed problem reports (Fiodor Suietov) integrated: 12125- AcpiTerminate doesn't free debug memory allocation list objects (BZ 12126355) 12127- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 12128356) 12129- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 12130- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 12131- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 12132- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 12133- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 12134- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 12135- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 12136365) 12137- Status of the Global Initialization Handler call not used (BZ 366) 12138- Incorrect object parameter to Global Initialization Handler (BZ 367) 12139 12140Example Code and Data Size: These are the sizes for the OS-independent 12141acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12142debug version of the code includes the debug output trace mechanism and 12143has 12144a much larger code and data size. 12145 12146 Previous Release: 12147 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 12148 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 12149 Current Release: 12150 Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 12151 Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 12152 12153 121542) iASL Compiler/Disassembler and Tools: 12155 12156Modified the parser to allow the names IO, DMA, and IRQ to be used as 12157namespace identifiers with no collision with existing resource descriptor 12158macro names. This provides compatibility with other ASL compilers and is 12159most useful for disassembly/recompilation of existing tables without 12160parse 12161errors. (With assistance from Thomas Renninger) 12162 12163Disassembler: fixed an incorrect disassembly problem with the 12164DataTableRegion and CopyObject operators. Fixed a possible fault during 12165disassembly of some Alias operators. 12166 12167---------------------------------------- 1216812 May 2006. Summary of changes for version 20060512: 12169 121701) ACPI CA Core Subsystem: 12171 12172Replaced the AcpiOsQueueForExecution interface with a new interface named 12173AcpiOsExecute. The major difference is that the new interface does not 12174have 12175a Priority parameter, this appeared to be useless and has been replaced 12176by 12177a 12178Type parameter. The Type tells the host what type of execution is being 12179requested, such as global lock handler, notify handler, GPE handler, etc. 12180This allows the host to queue and execute the request as appropriate for 12181the 12182request type, possibly using different work queues and different 12183priorities 12184for the various request types. This enables fixes for multithreading 12185deadlock problems such as BZ #5534, and will require changes to all 12186existing 12187OS interface layers. (Alexey Starikovskiy and Bob Moore) 12188 12189Fixed a possible memory leak associated with the support for the so- 12190called 12191"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 12192Suietov) 12193 12194Fixed a problem with the Load() operator where a table load from an 12195operation region could overwrite an internal table buffer by up to 7 12196bytes 12197and cause alignment faults on IPF systems. (With assistance from Luming 12198Yu) 12199 12200Example Code and Data Size: These are the sizes for the OS-independent 12201acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12202debug version of the code includes the debug output trace mechanism and 12203has 12204a much larger code and data size. 12205 12206 Previous Release: 12207 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 12208 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 12209 Current Release: 12210 Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 12211 Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 12212 12213 12214 122152) iASL Compiler/Disassembler and Tools: 12216 12217Disassembler: Implemented support to cross reference the internal 12218namespace 12219and automatically generate ASL External() statements for symbols not 12220defined 12221within the current table being disassembled. This will simplify the 12222disassembly and recompilation of interdependent tables such as SSDTs 12223since 12224these statements will no longer have to be added manually. 12225 12226Disassembler: Implemented experimental support to automatically detect 12227invocations of external control methods and generate appropriate 12228External() 12229statements. This is problematic because the AML cannot be correctly 12230parsed 12231until the number of arguments for each control method is known. 12232Currently, 12233standalone method invocations and invocations as the source operand of a 12234Store() statement are supported. 12235 12236Disassembler: Implemented support for the ASL pseudo-operators LNotEqual, 12237LLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 12238LNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 12239more readable and likely closer to the original ASL source. 12240 12241---------------------------------------- 1224221 April 2006. Summary of changes for version 20060421: 12243 122441) ACPI CA Core Subsystem: 12245 12246Removed a device initialization optimization introduced in 20051216 where 12247the _STA method was not run unless an _INI was also present for the same 12248device. This optimization could cause problems because it could allow 12249_INI 12250methods to be run within a not-present device subtree. (If a not-present 12251device had no _INI, _STA would not be run, the not-present status would 12252not 12253be discovered, and the children of the device would be incorrectly 12254traversed.) 12255 12256Implemented a new _STA optimization where namespace subtrees that do not 12257contain _INI are identified and ignored during device initialization. 12258Selectively running _STA can significantly improve boot time on large 12259machines (with assistance from Len Brown.) 12260 12261Implemented support for the device initialization case where the returned 12262_STA flags indicate a device not-present but functioning. In this case, 12263_INI 12264is not run, but the device children are examined for presence, as per the 12265ACPI specification. 12266 12267Implemented an additional change to the IndexField support in order to 12268conform to MS behavior. The value written to the Index Register is not 12269simply a byte offset, it is a byte offset in units of the access width of 12270the parent Index Field. (Fiodor Suietov) 12271 12272Defined and deployed a new OSL interface, AcpiOsValidateAddress. This 12273interface is called during the creation of all AML operation regions, and 12274allows the host OS to exert control over what addresses it will allow the 12275AML code to access. Operation Regions whose addresses are disallowed will 12276cause a runtime exception when they are actually accessed (will not 12277affect 12278or abort table loading.) See oswinxf or osunixxf for an example 12279implementation. 12280 12281Defined and deployed a new OSL interface, AcpiOsValidateInterface. This 12282interface allows the host OS to match the various "optional" 12283interface/behavior strings for the _OSI predefined control method as 12284appropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 12285for an example implementation. 12286 12287Restructured and corrected various problems in the exception handling 12288code 12289paths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 12290(with assistance from Takayoshi Kochi.) 12291 12292Modified the Linux source converter to ignore quoted string literals 12293while 12294converting identifiers from mixed to lower case. This will correct 12295problems 12296with the disassembler and other areas where such strings must not be 12297modified. 12298 12299The ACPI_FUNCTION_* macros no longer require quotes around the function 12300name. This allows the Linux source converter to convert the names, now 12301that 12302the converter ignores quoted strings. 12303 12304Example Code and Data Size: These are the sizes for the OS-independent 12305acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12306debug version of the code includes the debug output trace mechanism and 12307has 12308a much larger code and data size. 12309 12310 Previous Release: 12311 12312 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 12313 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 12314 Current Release: 12315 Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 12316 Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 12317 12318 123192) iASL Compiler/Disassembler and Tools: 12320 12321Implemented 3 new warnings for iASL, and implemented multiple warning 12322levels 12323(w2 flag). 12324 123251) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is 12326not 12327WAIT_FOREVER (0xFFFF) and the code does not examine the return value to 12328check for the possible timeout, a warning is issued. 12329 123302) Useless operators: If an ASL operator does not specify an optional 12331target 12332operand and it also does not use the function return value from the 12333operator, a warning is issued since the operator effectively does 12334nothing. 12335 123363) Unreferenced objects: If a namespace object is created, but never 12337referenced, a warning is issued. This is a warning level 2 since there 12338are 12339cases where this is ok, such as when a secondary table is loaded that 12340uses 12341the unreferenced objects. Even so, care is taken to only flag objects 12342that 12343don't look like they will ever be used. For example, the reserved methods 12344(starting with an underscore) are usually not referenced because it is 12345expected that the OS will invoke them. 12346 12347---------------------------------------- 1234831 March 2006. Summary of changes for version 20060331: 12349 123501) ACPI CA Core Subsystem: 12351 12352Implemented header file support for the following additional ACPI tables: 12353ASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this 12354support, 12355all current and known ACPI tables are now defined in the ACPICA headers 12356and 12357are available for use by device drivers and other software. 12358 12359Implemented support to allow tables that contain ACPI names with invalid 12360characters to be loaded. Previously, this would cause the table load to 12361fail, but since there are several known cases of such tables on existing 12362machines, this change was made to enable ACPI support for them. Also, 12363this 12364matches the behavior of the Microsoft ACPI implementation. 12365 12366Fixed a couple regressions introduced during the memory optimization in 12367the 1236820060317 release. The namespace node definition required additional 12369reorganization and an internal datatype that had been changed to 8-bit 12370was 12371restored to 32-bit. (Valery Podrezov) 12372 12373Fixed a problem where a null pointer passed to AcpiUtDeleteGenericState 12374could be passed through to AcpiOsReleaseObject which is unexpected. Such 12375null pointers are now trapped and ignored, matching the behavior of the 12376previous implementation before the deployment of AcpiOsReleaseObject. 12377(Valery Podrezov, Fiodor Suietov) 12378 12379Fixed a memory mapping leak during the deletion of a SystemMemory 12380operation 12381region where a cached memory mapping was not deleted. This became a 12382noticeable problem for operation regions that are defined within 12383frequently 12384used control methods. (Dana Meyers) 12385 12386Reorganized the ACPI table header files into two main files: one for the 12387ACPI tables consumed by the ACPICA core, and another for the 12388miscellaneous 12389ACPI tables that are consumed by the drivers and other software. The 12390various 12391FADT definitions were merged into one common section and three different 12392tables (ACPI 1.0, 1.0+, and 2.0) 12393 12394Example Code and Data Size: These are the sizes for the OS-independent 12395acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 12396debug version of the code includes the debug output trace mechanism and 12397has 12398a much larger code and data size. 12399 12400 Previous Release: 12401 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 12402 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 12403 Current Release: 12404 Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 12405 Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 12406 12407 124082) iASL Compiler/Disassembler and Tools: 12409 12410Disassembler: Implemented support to decode and format all non-AML ACPI 12411tables (tables other than DSDTs and SSDTs.) This includes the new tables 12412added to the ACPICA headers, therefore all current and known ACPI tables 12413are 12414supported. 12415 12416Disassembler: The change to allow ACPI names with invalid characters also 12417enables the disassembly of such tables. Invalid characters within names 12418are 12419changed to '*' to make the name printable; the iASL compiler will still 12420generate an error for such names, however, since this is an invalid ACPI 12421character. 12422 12423Implemented an option for AcpiXtract (-a) to extract all tables found in 12424the 12425input file. The default invocation extracts only the DSDTs and SSDTs. 12426 12427Fixed a couple of gcc generation issues for iASL and AcpiExec and added a 12428makefile for the AcpiXtract utility. 12429 12430---------------------------------------- 1243117 March 2006. Summary of changes for version 20060317: 12432 124331) ACPI CA Core Subsystem: 12434 12435Implemented the use of a cache object for all internal namespace nodes. 12436Since there are about 1000 static nodes in a typical system, this will 12437decrease memory use for cache implementations that minimize per- 12438allocation 12439overhead (such as a slab allocator.) 12440 12441Removed the reference count mechanism for internal namespace nodes, since 12442it 12443was deemed unnecessary. This reduces the size of each namespace node by 12444about 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit 12445case, 12446and 32 bytes for the 64-bit case. 12447 12448Optimized several internal data structures to reduce object size on 64- 12449bit 12450platforms by packing data within the 64-bit alignment. This includes the 12451frequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 12452instances corresponding to the namespace objects. 12453 12454Added two new strings for the predefined _OSI method: "Windows 2001.1 12455SP1" 12456and "Windows 2006". 12457 12458Split the allocation tracking mechanism out to a separate file, from 12459utalloc.c to uttrack.c. This mechanism appears to be only useful for 12460application-level code. Kernels may wish to not include uttrack.c in 12461distributions. 12462 12463Removed all remnants of the obsolete ACPI_REPORT_* macros and the 12464associated 12465code. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 12466macros.) 12467 12468Code and Data Size: These are the sizes for the acpica.lib produced by 12469the 12470Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12471ACPI 12472driver or OSPM code. The debug version of the code includes the debug 12473output 12474trace mechanism and has a much larger code and data size. Note that these 12475values will vary depending on the efficiency of the compiler and the 12476compiler options used during generation. 12477 12478 Previous Release: 12479 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12480 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 12481 Current Release: 12482 Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 12483 Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 12484 12485 124862) iASL Compiler/Disassembler and Tools: 12487 12488Implemented an ANSI C version of the acpixtract utility. This version 12489will 12490automatically extract the DSDT and all SSDTs from the input acpidump text 12491file and dump the binary output to separate files. It can also display a 12492summary of the input file including the headers for each table found and 12493will extract any single ACPI table, with any signature. (See 12494source/tools/acpixtract) 12495 12496---------------------------------------- 1249710 March 2006. Summary of changes for version 20060310: 12498 124991) ACPI CA Core Subsystem: 12500 12501Tagged all external interfaces to the subsystem with the new 12502ACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to 12503assist 12504kernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 12505macro. The default definition is NULL. 12506 12507Added the ACPI_THREAD_ID type for the return value from 12508AcpiOsGetThreadId. 12509This allows the host to define this as necessary to simplify kernel 12510integration. The default definition is ACPI_NATIVE_UINT. 12511 12512Fixed two interpreter problems related to error processing, the deletion 12513of 12514objects, and placing invalid pointers onto the internal operator result 12515stack. BZ 6028, 6151 (Valery Podrezov) 12516 12517Increased the reference count threshold where a warning is emitted for 12518large 12519reference counts in order to eliminate unnecessary warnings on systems 12520with 12521large namespaces (especially 64-bit.) Increased the value from 0x400 to 125220x800. 12523 12524Due to universal disagreement as to the meaning of the 'c' in the 12525calloc() 12526function, the ACPI_MEM_CALLOCATE macro has been renamed to 12527ACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 12528ACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 12529ACPI_FREE. 12530 12531Code and Data Size: These are the sizes for the acpica.lib produced by 12532the 12533Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12534ACPI 12535driver or OSPM code. The debug version of the code includes the debug 12536output 12537trace mechanism and has a much larger code and data size. Note that these 12538values will vary depending on the efficiency of the compiler and the 12539compiler options used during generation. 12540 12541 Previous Release: 12542 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 12543 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 12544 Current Release: 12545 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12546 Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 12547 12548 125492) iASL Compiler/Disassembler: 12550 12551Disassembler: implemented support for symbolic resource descriptor 12552references. If a CreateXxxxField operator references a fixed offset 12553within 12554a 12555resource descriptor, a name is assigned to the descriptor and the offset 12556is 12557translated to the appropriate resource tag and pathname. The addition of 12558this support brings the disassembled code very close to the original ASL 12559source code and helps eliminate run-time errors when the disassembled 12560code 12561is modified (and recompiled) in such a way as to invalidate the original 12562fixed offsets. 12563 12564Implemented support for a Descriptor Name as the last parameter to the 12565ASL 12566Register() macro. This parameter was inadvertently left out of the ACPI 12567specification, and will be added for ACPI 3.0b. 12568 12569Fixed a problem where the use of the "_OSI" string (versus the full path 12570"\_OSI") caused an internal compiler error. ("No back ptr to op") 12571 12572Fixed a problem with the error message that occurs when an invalid string 12573is 12574used for a _HID object (such as one with an embedded asterisk: 12575"*PNP010A".) 12576The correct message is now displayed. 12577 12578---------------------------------------- 1257917 February 2006. Summary of changes for version 20060217: 12580 125811) ACPI CA Core Subsystem: 12582 12583Implemented a change to the IndexField support to match the behavior of 12584the 12585Microsoft AML interpreter. The value written to the Index register is now 12586a 12587byte offset, no longer an index based upon the width of the Data 12588register. 12589This should fix IndexField problems seen on some machines where the Data 12590register is not exactly one byte wide. The ACPI specification will be 12591clarified on this point. 12592 12593Fixed a problem where several resource descriptor types could overrun the 12594internal descriptor buffer due to size miscalculation: VendorShort, 12595VendorLong, and Interrupt. This was noticed on IA64 machines, but could 12596affect all platforms. 12597 12598Fixed a problem where individual resource descriptors were misaligned 12599within 12600the internal buffer, causing alignment faults on IA64 platforms. 12601 12602Code and Data Size: These are the sizes for the acpica.lib produced by 12603the 12604Microsoft Visual C++ 6.0 32-bit compiler. The values do not include any 12605ACPI 12606driver or OSPM code. The debug version of the code includes the debug 12607output 12608trace mechanism and has a much larger code and data size. Note that these 12609values will vary depending on the efficiency of the compiler and the 12610compiler options used during generation. 12611 12612 Previous Release: 12613 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12614 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 12615 Current Release: 12616 Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 12617 Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 12618 12619 126202) iASL Compiler/Disassembler: 12621 12622Implemented support for new reserved names: _WDG and _WED are Microsoft 12623extensions for Windows Instrumentation Management, _TDL is a new ACPI- 12624defined method (Throttling Depth Limit.) 12625 12626Fixed a problem where a zero-length VendorShort or VendorLong resource 12627descriptor was incorrectly emitted as a descriptor of length one. 12628 12629---------------------------------------- 1263010 February 2006. Summary of changes for version 20060210: 12631 126321) ACPI CA Core Subsystem: 12633 12634Removed a couple of extraneous ACPI_ERROR messages that appeared during 12635normal execution. These became apparent after the conversion from 12636ACPI_DEBUG_PRINT. 12637 12638Fixed a problem where the CreateField operator could hang if the BitIndex 12639or 12640NumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 12641 12642Fixed a problem where a DeRefOf operation on a buffer object incorrectly 12643failed with an exception. This also fixes a couple of related RefOf and 12644DeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 12645 12646Fixed a problem where the AE_BUFFER_LIMIT exception was returned instead 12647of 12648AE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, 12649BZ 126505480) 12651 12652Implemented a memory cleanup at the end of the execution of each 12653iteration 12654of an AML While() loop, preventing the accumulation of outstanding 12655objects. 12656(Valery Podrezov, BZ 5427) 12657 12658Eliminated a chunk of duplicate code in the object resolution code. 12659(Valery 12660Podrezov, BZ 5336) 12661 12662Fixed several warnings during the 64-bit code generation. 12663 12664The AcpiSrc source code conversion tool now inserts one line of 12665whitespace 12666after an if() statement that is followed immediately by a comment, 12667improving 12668readability of the Linux code. 12669 12670Code and Data Size: The current and previous library sizes for the core 12671subsystem are shown below. These are the code and data sizes for the 12672acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12673These 12674values do not include any ACPI driver or OSPM code. The debug version of 12675the 12676code includes the debug output trace mechanism and has a much larger code 12677and data size. Note that these values will vary depending on the 12678efficiency 12679of the compiler and the compiler options used during generation. 12680 12681 Previous Release: 12682 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 12683 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 12684 Current Release: 12685 Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 12686 Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 12687 12688 126892) iASL Compiler/Disassembler: 12690 12691Fixed a problem with the disassembly of a BankField operator with a 12692complex 12693expression for the BankValue parameter. 12694 12695---------------------------------------- 1269627 January 2006. Summary of changes for version 20060127: 12697 126981) ACPI CA Core Subsystem: 12699 12700Implemented support in the Resource Manager to allow unresolved 12701namestring 12702references within resource package objects for the _PRT method. This 12703support 12704is in addition to the previously implemented unresolved reference support 12705within the AML parser. If the interpreter slack mode is enabled, these 12706unresolved references will be passed through to the caller as a NULL 12707package 12708entry. 12709 12710Implemented and deployed new macros and functions for error and warning 12711messages across the subsystem. These macros are simpler and generate less 12712code than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 12713ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 12714macros remain defined to allow ACPI drivers time to migrate to the new 12715macros. 12716 12717Implemented the ACPI_CPU_FLAGS type to simplify host OS integration of 12718the 12719Acquire/Release Lock OSL interfaces. 12720 12721Fixed a problem where Alias ASL operators are sometimes not correctly 12722resolved, in both the interpreter and the iASL compiler. 12723 12724Fixed several problems with the implementation of the 12725ConcatenateResTemplate 12726ASL operator. As per the ACPI specification, zero length buffers are now 12727treated as a single EndTag. One-length buffers always cause a fatal 12728exception. Non-zero length buffers that do not end with a full 2-byte 12729EndTag 12730cause a fatal exception. 12731 12732Fixed a possible structure overwrite in the AcpiGetObjectInfo external 12733interface. (With assistance from Thomas Renninger) 12734 12735Code and Data Size: The current and previous library sizes for the core 12736subsystem are shown below. These are the code and data sizes for the 12737acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12738These 12739values do not include any ACPI driver or OSPM code. The debug version of 12740the 12741code includes the debug output trace mechanism and has a much larger code 12742and data size. Note that these values will vary depending on the 12743efficiency 12744of the compiler and the compiler options used during generation. 12745 12746 Previous Release: 12747 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 12748 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 12749 Current Release: 12750 Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 12751 Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 12752 12753 127542) iASL Compiler/Disassembler: 12755 12756Fixed an internal error that was generated for any forward references to 12757ASL 12758Alias objects. 12759 12760---------------------------------------- 1276113 January 2006. Summary of changes for version 20060113: 12762 127631) ACPI CA Core Subsystem: 12764 12765Added 2006 copyright to all module headers and signons. This affects 12766virtually every file in the ACPICA core subsystem, iASL compiler, and the 12767utilities. 12768 12769Enhanced the ACPICA error reporting in order to simplify user migration 12770to 12771the non-debug version of ACPICA. Replaced all instances of the 12772ACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN 12773debug 12774levels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 12775respectively. This preserves all error and warning messages in the non- 12776debug 12777version of the ACPICA code (this has been referred to as the "debug lite" 12778option.) Over 200 cases were converted to create a total of over 380 12779error/warning messages across the ACPICA code. This increases the code 12780and 12781data size of the default non-debug version of the code somewhat (about 1278213K), 12783but all error/warning reporting may be disabled if desired (and code 12784eliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 12785configuration option. The size of the debug version of ACPICA remains 12786about 12787the same. 12788 12789Fixed a memory leak within the AML Debugger "Set" command. One object was 12790not properly deleted for every successful invocation of the command. 12791 12792Code and Data Size: The current and previous library sizes for the core 12793subsystem are shown below. These are the code and data sizes for the 12794acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12795These 12796values do not include any ACPI driver or OSPM code. The debug version of 12797the 12798code includes the debug output trace mechanism and has a much larger code 12799and data size. Note that these values will vary depending on the 12800efficiency 12801of the compiler and the compiler options used during generation. 12802 12803 Previous Release: 12804 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12805 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12806 Current Release: 12807 Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 12808 Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 12809 12810 128112) iASL Compiler/Disassembler: 12812 12813The compiler now officially supports the ACPI 3.0a specification that was 12814released on December 30, 2005. (Specification is available at 12815www.acpi.info) 12816 12817---------------------------------------- 1281816 December 2005. Summary of changes for version 20051216: 12819 128201) ACPI CA Core Subsystem: 12821 12822Implemented optional support to allow unresolved names within ASL Package 12823objects. A null object is inserted in the package when a named reference 12824cannot be located in the current namespace. Enabled via the interpreter 12825slack flag, this should eliminate AE_NOT_FOUND exceptions seen on 12826machines 12827that contain such code. 12828 12829Implemented an optimization to the initialization sequence that can 12830improve 12831boot time. During ACPI device initialization, the _STA method is now run 12832if 12833and only if the _INI method exists. The _STA method is used to determine 12834if 12835the device is present; An _INI can only be run if _STA returns present, 12836but 12837it is a waste of time to run the _STA method if the _INI does not exist. 12838(Prototype and assistance from Dong Wei) 12839 12840Implemented use of the C99 uintptr_t for the pointer casting macros if it 12841is 12842available in the current compiler. Otherwise, the default (void *) cast 12843is 12844used as before. 12845 12846Fixed some possible memory leaks found within the execution path of the 12847Break, Continue, If, and CreateField operators. (Valery Podrezov) 12848 12849Fixed a problem introduced in the 20051202 release where an exception is 12850generated during method execution if a control method attempts to declare 12851another method. 12852 12853Moved resource descriptor string constants that are used by both the AML 12854disassembler and AML debugger to the common utilities directory so that 12855these components are independent. 12856 12857Implemented support in the AcpiExec utility (-e switch) to globally 12858ignore 12859exceptions during control method execution (method is not aborted.) 12860 12861Added the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 12862generation. 12863 12864Code and Data Size: The current and previous library sizes for the core 12865subsystem are shown below. These are the code and data sizes for the 12866acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12867These 12868values do not include any ACPI driver or OSPM code. The debug version of 12869the 12870code includes the debug output trace mechanism and has a much larger code 12871and data size. Note that these values will vary depending on the 12872efficiency 12873of the compiler and the compiler options used during generation. 12874 12875 Previous Release: 12876 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12877 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12878 Current Release: 12879 Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 12880 Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 12881 12882 128832) iASL Compiler/Disassembler: 12884 12885Fixed a problem where a CPU stack overflow fault could occur if a 12886recursive 12887method call was made from within a Return statement. 12888 12889---------------------------------------- 1289002 December 2005. Summary of changes for version 20051202: 12891 128921) ACPI CA Core Subsystem: 12893 12894Modified the parsing of control methods to no longer create namespace 12895objects during the first pass of the parse. Objects are now created only 12896during the execute phase, at the moment the namespace creation operator 12897is 12898encountered in the AML (Name, OperationRegion, CreateByteField, etc.) 12899This 12900should eliminate ALREADY_EXISTS exceptions seen on some machines where 12901reentrant control methods are protected by an AML mutex. The mutex will 12902now 12903correctly block multiple threads from attempting to create the same 12904object 12905more than once. 12906 12907Increased the number of available Owner Ids for namespace object tracking 12908from 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen 12909on 12910some machines with a large number of ACPI tables (either static or 12911dynamic). 12912 12913Fixed a problem with the AcpiExec utility where a fault could occur when 12914the 12915-b switch (batch mode) is used. 12916 12917Enhanced the namespace dump routine to output the owner ID for each 12918namespace object. 12919 12920Code and Data Size: The current and previous library sizes for the core 12921subsystem are shown below. These are the code and data sizes for the 12922acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 12923These 12924values do not include any ACPI driver or OSPM code. The debug version of 12925the 12926code includes the debug output trace mechanism and has a much larger code 12927and data size. Note that these values will vary depending on the 12928efficiency 12929of the compiler and the compiler options used during generation. 12930 12931 Previous Release: 12932 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12933 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 12934 Current Release: 12935 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 12936 Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 12937 12938 129392) iASL Compiler/Disassembler: 12940 12941Fixed a parse error during compilation of certain Switch/Case constructs. 12942To 12943simplify the parse, the grammar now allows for multiple Default 12944statements 12945and this error is now detected and flagged during the analysis phase. 12946 12947Disassembler: The disassembly now includes the contents of the original 12948table header within a comment at the start of the file. This includes the 12949name and version of the original ASL compiler. 12950 12951---------------------------------------- 1295217 November 2005. Summary of changes for version 20051117: 12953 129541) ACPI CA Core Subsystem: 12955 12956Fixed a problem in the AML parser where the method thread count could be 12957decremented below zero if any errors occurred during the method parse 12958phase. 12959This should eliminate AE_AML_METHOD_LIMIT exceptions seen on some 12960machines. 12961This also fixed a related regression with the mechanism that detects and 12962corrects methods that cannot properly handle reentrancy (related to the 12963deployment of the new OwnerId mechanism.) 12964 12965Eliminated the pre-parsing of control methods (to detect errors) during 12966table load. Related to the problem above, this was causing unwind issues 12967if 12968any errors occurred during the parse, and it seemed to be overkill. A 12969table 12970load should not be aborted if there are problems with any single control 12971method, thus rendering this feature rather pointless. 12972 12973Fixed a problem with the new table-driven resource manager where an 12974internal 12975buffer overflow could occur for small resource templates. 12976 12977Implemented a new external interface, AcpiGetVendorResource. This 12978interface 12979will find and return a vendor-defined resource descriptor within a _CRS 12980or 12981_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn 12982Helgaas. 12983 12984Removed the length limit (200) on string objects as per the upcoming ACPI 129853.0A specification. This affects the following areas of the interpreter: 129861) 12987any implicit conversion of a Buffer to a String, 2) a String object 12988result 12989of the ASL Concatenate operator, 3) the String object result of the ASL 12990ToString operator. 12991 12992Fixed a problem in the Windows OS interface layer (OSL) where a 12993WAIT_FOREVER 12994on a semaphore object would incorrectly timeout. This allows the 12995multithreading features of the AcpiExec utility to work properly under 12996Windows. 12997 12998Updated the Linux makefiles for the iASL compiler and AcpiExec to include 12999the recently added file named "utresrc.c". 13000 13001Code and Data Size: The current and previous library sizes for the core 13002subsystem are shown below. These are the code and data sizes for the 13003acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13004These 13005values do not include any ACPI driver or OSPM code. The debug version of 13006the 13007code includes the debug output trace mechanism and has a much larger code 13008and data size. Note that these values will vary depending on the 13009efficiency 13010of the compiler and the compiler options used during generation. 13011 13012 Previous Release: 13013 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 13014 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13015 Current Release: 13016 Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 13017 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13018 13019 130202) iASL Compiler/Disassembler: 13021 13022Removed the limit (200) on string objects as per the upcoming ACPI 3.0A 13023specification. For the iASL compiler, this means that string literals 13024within 13025the source ASL can be of any length. 13026 13027Enhanced the listing output to dump the AML code for resource descriptors 13028immediately after the ASL code for each descriptor, instead of in a block 13029at 13030the end of the entire resource template. 13031 13032Enhanced the compiler debug output to dump the entire original parse tree 13033constructed during the parse phase, before any transforms are applied to 13034the 13035tree. The transformed tree is dumped also. 13036 13037---------------------------------------- 1303802 November 2005. Summary of changes for version 20051102: 13039 130401) ACPI CA Core Subsystem: 13041 13042Modified the subsystem initialization sequence to improve GPE support. 13043The 13044GPE initialization has been split into two parts in order to defer 13045execution 13046of the _PRW methods (Power Resources for Wake) until after the hardware 13047is 13048fully initialized and the SCI handler is installed. This allows the _PRW 13049methods to access fields protected by the Global Lock. This will fix 13050systems 13051where a NO_GLOBAL_LOCK exception has been seen during initialization. 13052 13053Converted the ACPI internal object disassemble and display code within 13054the 13055AML debugger to fully table-driven operation, reducing code size and 13056increasing maintainability. 13057 13058Fixed a regression with the ConcatenateResTemplate() ASL operator 13059introduced 13060in the 20051021 release. 13061 13062Implemented support for "local" internal ACPI object types within the 13063debugger "Object" command and the AcpiWalkNamespace external interfaces. 13064These local types include RegionFields, BankFields, IndexFields, Alias, 13065and 13066reference objects. 13067 13068Moved common AML resource handling code into a new file, "utresrc.c". 13069This 13070code is shared by both the Resource Manager and the AML Debugger. 13071 13072Code and Data Size: The current and previous library sizes for the core 13073subsystem are shown below. These are the code and data sizes for the 13074acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13075These 13076values do not include any ACPI driver or OSPM code. The debug version of 13077the 13078code includes the debug output trace mechanism and has a much larger code 13079and data size. Note that these values will vary depending on the 13080efficiency 13081of the compiler and the compiler options used during generation. 13082 13083 Previous Release: 13084 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 13085 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 13086 Current Release: 13087 Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 13088 Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 13089 13090 130912) iASL Compiler/Disassembler: 13092 13093Fixed a problem with very large initializer lists (more than 4000 13094elements) 13095for both Buffer and Package objects where the parse stack could overflow. 13096 13097Enhanced the pre-compile source code scan for non-ASCII characters to 13098ignore 13099characters within comment fields. The scan is now always performed and is 13100no 13101longer optional, detecting invalid characters within a source file 13102immediately rather than during the parse phase or later. 13103 13104Enhanced the ASL grammar definition to force early reductions on all 13105list- 13106style grammar elements so that the overall parse stack usage is greatly 13107reduced. This should improve performance and reduce the possibility of 13108parse 13109stack overflow. 13110 13111Eliminated all reduce/reduce conflicts in the iASL parser generation. 13112Also, 13113with the addition of a %expected statement, the compiler generates from 13114source with no warnings. 13115 13116Fixed a possible segment fault in the disassembler if the input filename 13117does not contain a "dot" extension (Thomas Renninger). 13118 13119---------------------------------------- 1312021 October 2005. Summary of changes for version 20051021: 13121 131221) ACPI CA Core Subsystem: 13123 13124Implemented support for the EM64T and other x86-64 processors. This 13125essentially entails recognizing that these processors support non-aligned 13126memory transfers. Previously, all 64-bit processors were assumed to lack 13127hardware support for non-aligned transfers. 13128 13129Completed conversion of the Resource Manager to nearly full table-driven 13130operation. Specifically, the resource conversion code (convert AML to 13131internal format and the reverse) and the debug code to dump internal 13132resource descriptors are fully table-driven, reducing code and data size 13133and 13134improving maintainability. 13135 13136The OSL interfaces for Acquire and Release Lock now use a 64-bit flag 13137word 13138on 64-bit processors instead of a fixed 32-bit word. (With assistance 13139from 13140Alexey Starikovskiy) 13141 13142Implemented support within the resource conversion code for the Type- 13143Specific byte within the various ACPI 3.0 *WordSpace macros. 13144 13145Fixed some issues within the resource conversion code for the type- 13146specific 13147flags for both Memory and I/O address resource descriptors. For Memory, 13148implemented support for the MTP and TTP flags. For I/O, split the TRS and 13149TTP flags into two separate fields. 13150 13151Code and Data Size: The current and previous library sizes for the core 13152subsystem are shown below. These are the code and data sizes for the 13153acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13154These 13155values do not include any ACPI driver or OSPM code. The debug version of 13156the 13157code includes the debug output trace mechanism and has a much larger code 13158and data size. Note that these values will vary depending on the 13159efficiency 13160of the compiler and the compiler options used during generation. 13161 13162 Previous Release: 13163 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 13164 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 13165 Current Release: 13166 Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 13167 Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 13168 13169 13170 131712) iASL Compiler/Disassembler: 13172 13173Relaxed a compiler restriction that disallowed a ResourceIndex byte if 13174the 13175corresponding ResourceSource string was not also present in a resource 13176descriptor declaration. This restriction caused problems with existing 13177AML/ASL code that includes the Index byte without the string. When such 13178AML 13179was disassembled, it could not be compiled without modification. Further, 13180the modified code created a resource template with a different size than 13181the 13182original, breaking code that used fixed offsets into the resource 13183template 13184buffer. 13185 13186Removed a recent feature of the disassembler to ignore a lone 13187ResourceIndex 13188byte. This byte is now emitted if present so that the exact AML can be 13189reproduced when the disassembled code is recompiled. 13190 13191Improved comments and text alignment for the resource descriptor code 13192emitted by the disassembler. 13193 13194Implemented disassembler support for the ACPI 3.0 AccessSize field within 13195a 13196Register() resource descriptor. 13197 13198---------------------------------------- 1319930 September 2005. Summary of changes for version 20050930: 13200 132011) ACPI CA Core Subsystem: 13202 13203Completed a major overhaul of the Resource Manager code - specifically, 13204optimizations in the area of the AML/internal resource conversion code. 13205The 13206code has been optimized to simplify and eliminate duplicated code, CPU 13207stack 13208use has been decreased by optimizing function parameters and local 13209variables, and naming conventions across the manager have been 13210standardized 13211for clarity and ease of maintenance (this includes function, parameter, 13212variable, and struct/typedef names.) The update may force changes in some 13213driver code, depending on how resources are handled by the host OS. 13214 13215All Resource Manager dispatch and information tables have been moved to a 13216single location for clarity and ease of maintenance. One new file was 13217created, named "rsinfo.c". 13218 13219The ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 13220guarantee that the argument is not evaluated twice, making them less 13221prone 13222to macro side-effects. However, since there exists the possibility of 13223additional stack use if a particular compiler cannot optimize them (such 13224as 13225in the debug generation case), the original macros are optionally 13226available. 13227Note that some invocations of the return_VALUE macro may now cause size 13228mismatch warnings; the return_UINT8 and return_UINT32 macros are provided 13229to 13230eliminate these. (From Randy Dunlap) 13231 13232Implemented a new mechanism to enable debug tracing for individual 13233control 13234methods. A new external interface, AcpiDebugTrace, is provided to enable 13235this mechanism. The intent is to allow the host OS to easily enable and 13236disable tracing for problematic control methods. This interface can be 13237easily exposed to a user or debugger interface if desired. See the file 13238psxface.c for details. 13239 13240AcpiUtCallocate will now return a valid pointer if a length of zero is 13241specified - a length of one is used and a warning is issued. This matches 13242the behavior of AcpiUtAllocate. 13243 13244Code and Data Size: The current and previous library sizes for the core 13245subsystem are shown below. These are the code and data sizes for the 13246acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13247These 13248values do not include any ACPI driver or OSPM code. The debug version of 13249the 13250code includes the debug output trace mechanism and has a much larger code 13251and data size. Note that these values will vary depending on the 13252efficiency 13253of the compiler and the compiler options used during generation. 13254 13255 Previous Release: 13256 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 13257 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 13258 Current Release: 13259 Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 13260 Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 13261 13262 132632) iASL Compiler/Disassembler: 13264 13265A remark is issued if the effective compile-time length of a package or 13266buffer is zero. Previously, this was a warning. 13267 13268---------------------------------------- 1326916 September 2005. Summary of changes for version 20050916: 13270 132711) ACPI CA Core Subsystem: 13272 13273Fixed a problem within the Resource Manager where support for the Generic 13274Register descriptor was not fully implemented. This descriptor is now 13275fully 13276recognized, parsed, disassembled, and displayed. 13277 13278Completely restructured the Resource Manager code to utilize table-driven 13279dispatch and lookup, eliminating many of the large switch() statements. 13280This 13281reduces overall subsystem code size and code complexity. Affects the 13282resource parsing and construction, disassembly, and debug dump output. 13283 13284Cleaned up and restructured the debug dump output for all resource 13285descriptors. Improved readability of the output and reduced code size. 13286 13287Fixed a problem where changes to internal data structures caused the 13288optional ACPI_MUTEX_DEBUG code to fail compilation if specified. 13289 13290Code and Data Size: The current and previous library sizes for the core 13291subsystem are shown below. These are the code and data sizes for the 13292acpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. 13293These 13294values do not include any ACPI driver or OSPM code. The debug version of 13295the 13296code includes the debug output trace mechanism and has a much larger code 13297and data size. Note that these values will vary depending on the 13298efficiency 13299of the compiler and the compiler options used during generation. 13300 13301 Previous Release: 13302 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 13303 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 13304 Current Release: 13305 Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 13306 Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 13307 13308 133092) iASL Compiler/Disassembler: 13310 13311Updated the disassembler to automatically insert an EndDependentFn() 13312macro 13313into the ASL stream if this macro is missing in the original AML code, 13314simplifying compilation of the resulting ASL module. 13315 13316Fixed a problem in the disassembler where a disassembled ResourceSource 13317string (within a large resource descriptor) was not surrounded by quotes 13318and 13319not followed by a comma, causing errors when the resulting ASL module was 13320compiled. Also, escape sequences within a ResourceSource string are now 13321handled correctly (especially "\\") 13322 13323---------------------------------------- 1332402 September 2005. Summary of changes for version 20050902: 13325 133261) ACPI CA Core Subsystem: 13327 13328Fixed a problem with the internal Owner ID allocation and deallocation 13329mechanisms for control method execution and recursive method invocation. 13330This should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 13331messages seen on some systems. Recursive method invocation depth is 13332currently limited to 255. (Alexey Starikovskiy) 13333 13334Completely eliminated all vestiges of support for the "module-level 13335executable code" until this support is fully implemented and debugged. 13336This 13337should eliminate the NO_RETURN_VALUE exceptions seen during table load on 13338some systems that invoke this support. 13339 13340Fixed a problem within the resource manager code where the transaction 13341flags 13342for a 64-bit address descriptor were handled incorrectly in the type- 13343specific flag byte. 13344 13345Consolidated duplicate code within the address descriptor resource 13346manager 13347code, reducing overall subsystem code size. 13348 13349Fixed a fault when using the AML debugger "disassemble" command to 13350disassemble individual control methods. 13351 13352Removed references to the "release_current" directory within the Unix 13353release package. 13354 13355Code and Data Size: The current and previous core subsystem library sizes 13356are shown below. These are the code and data sizes for the acpica.lib 13357produced by the Microsoft Visual C++ 6.0 compiler. These values do not 13358include any ACPI driver or OSPM code. The debug version of the code 13359includes 13360the debug output trace mechanism and has a much larger code and data 13361size. 13362Note that these values will vary depending on the efficiency of the 13363compiler 13364and the compiler options used during generation. 13365 13366 Previous Release: 13367 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13368 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 13369 Current Release: 13370 Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 13371 Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 13372 13373 133742) iASL Compiler/Disassembler: 13375 13376Implemented an error check for illegal duplicate values in the interrupt 13377and 13378dma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 13379Interrupt(). 13380 13381Implemented error checking for the Irq() and IrqNoFlags() macros to 13382detect 13383too many values in the interrupt list (16 max) and invalid values in the 13384list (range 0 - 15) 13385 13386The maximum length string literal within an ASL file is now restricted to 13387200 characters as per the ACPI specification. 13388 13389Fixed a fault when using the -ln option (generate namespace listing). 13390 13391Implemented an error check to determine if a DescriptorName within a 13392resource descriptor has already been used within the current scope. 13393 13394---------------------------------------- 1339515 August 2005. Summary of changes for version 20050815: 13396 133971) ACPI CA Core Subsystem: 13398 13399Implemented a full bytewise compare to determine if a table load request 13400is 13401attempting to load a duplicate table. The compare is performed if the 13402table 13403signatures and table lengths match. This will allow different tables with 13404the same OEM Table ID and revision to be loaded - probably against the 13405ACPI 13406specification, but discovered in the field nonetheless. 13407 13408Added the changes.txt logfile to each of the zipped release packages. 13409 13410Code and Data Size: Current and previous core subsystem library sizes are 13411shown below. These are the code and data sizes for the acpica.lib 13412produced 13413by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13414any ACPI driver or OSPM code. The debug version of the code includes the 13415debug output trace mechanism and has a much larger code and data size. 13416Note 13417that these values will vary depending on the efficiency of the compiler 13418and 13419the compiler options used during generation. 13420 13421 Previous Release: 13422 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13423 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 13424 Current Release: 13425 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13426 Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 13427 13428 134292) iASL Compiler/Disassembler: 13430 13431Fixed a problem where incorrect AML code could be generated for Package 13432objects if optimization is disabled (via the -oa switch). 13433 13434Fixed a problem with where incorrect AML code is generated for variable- 13435length packages when the package length is not specified and the number 13436of 13437initializer values is greater than 255. 13438 13439 13440---------------------------------------- 1344129 July 2005. Summary of changes for version 20050729: 13442 134431) ACPI CA Core Subsystem: 13444 13445Implemented support to ignore an attempt to install/load a particular 13446ACPI 13447table more than once. Apparently there exists BIOS code that repeatedly 13448attempts to load the same SSDT upon certain events. With assistance from 13449Venkatesh Pallipadi. 13450 13451Restructured the main interface to the AML parser in order to correctly 13452handle all exceptional conditions. This will prevent leakage of the 13453OwnerId 13454resource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on 13455some 13456machines. With assistance from Alexey Starikovskiy. 13457 13458Support for "module level code" has been disabled in this version due to 13459a 13460number of issues that have appeared on various machines. The support can 13461be 13462enabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 13463compilation. When the issues are fully resolved, the code will be enabled 13464by 13465default again. 13466 13467Modified the internal functions for debug print support to define the 13468FunctionName parameter as a (const char *) for compatibility with 13469compiler 13470built-in macros such as __FUNCTION__, etc. 13471 13472Linted the entire ACPICA source tree for both 32-bit and 64-bit. 13473 13474Implemented support to display an object count summary for the AML 13475Debugger 13476commands Object and Methods. 13477 13478Code and Data Size: Current and previous core subsystem library sizes are 13479shown below. These are the code and data sizes for the acpica.lib 13480produced 13481by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13482any ACPI driver or OSPM code. The debug version of the code includes the 13483debug output trace mechanism and has a much larger code and data size. 13484Note 13485that these values will vary depending on the efficiency of the compiler 13486and 13487the compiler options used during generation. 13488 13489 Previous Release: 13490 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 13491 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 13492 Current Release: 13493 Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 13494 Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 13495 13496 134972) iASL Compiler/Disassembler: 13498 13499Fixed a regression that appeared in the 20050708 version of the compiler 13500where an error message was inadvertently emitted for invocations of the 13501_OSI 13502reserved control method. 13503 13504---------------------------------------- 1350508 July 2005. Summary of changes for version 20050708: 13506 135071) ACPI CA Core Subsystem: 13508 13509The use of the CPU stack in the debug version of the subsystem has been 13510considerably reduced. Previously, a debug structure was declared in every 13511function that used the debug macros. This structure has been removed in 13512favor of declaring the individual elements as parameters to the debug 13513functions. This reduces the cumulative stack use during nested execution 13514of 13515ACPI function calls at the cost of a small increase in the code size of 13516the 13517debug version of the subsystem. With assistance from Alexey Starikovskiy 13518and 13519Len Brown. 13520 13521Added the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 13522headers to define a macro that will return the current function name at 13523runtime (such as __FUNCTION__ or _func_, etc.) The function name is used 13524by 13525the debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 13526compiler-dependent header, the function name is saved on the CPU stack 13527(one 13528pointer per function.) This mechanism is used because apparently there 13529exists no standard ANSI-C defined macro that that returns the function 13530name. 13531 13532Redesigned and reimplemented the "Owner ID" mechanism used to track 13533namespace objects created/deleted by ACPI tables and control method 13534execution. A bitmap is now used to allocate and free the IDs, thus 13535solving 13536the wraparound problem present in the previous implementation. The size 13537of 13538the namespace node descriptor was reduced by 2 bytes as a result (Alexey 13539Starikovskiy). 13540 13541Removed the UINT32_BIT and UINT16_BIT types that were used for the 13542bitfield 13543flag definitions within the headers for the predefined ACPI tables. These 13544have been replaced by UINT8_BIT in order to increase the code portability 13545of 13546the subsystem. If the use of UINT8 remains a problem, we may be forced to 13547eliminate bitfields entirely because of a lack of portability. 13548 13549Enhanced the performance of the AcpiUtUpdateObjectReference procedure. 13550This 13551is a frequently used function and this improvement increases the 13552performance 13553of the entire subsystem (Alexey Starikovskiy). 13554 13555Fixed several possible memory leaks and the inverse - premature object 13556deletion (Alexey Starikovskiy). 13557 13558Code and Data Size: Current and previous core subsystem library sizes are 13559shown below. These are the code and data sizes for the acpica.lib 13560produced 13561by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13562any ACPI driver or OSPM code. The debug version of the code includes the 13563debug output trace mechanism and has a much larger code and data size. 13564Note 13565that these values will vary depending on the efficiency of the compiler 13566and 13567the compiler options used during generation. 13568 13569 Previous Release: 13570 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 13571 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 13572 Current Release: 13573 Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 13574 Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 13575 13576---------------------------------------- 1357724 June 2005. Summary of changes for version 20050624: 13578 135791) ACPI CA Core Subsystem: 13580 13581Modified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 13582the host-defined cache object. This allows the OSL implementation to 13583define 13584and type this object in any manner desired, simplifying the OSL 13585implementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 13586Linux, and should be defined in the OS-specific header file for other 13587operating systems as required. 13588 13589Changed the interface to AcpiOsAcquireObject to directly return the 13590requested object as the function return (instead of ACPI_STATUS.) This 13591change was made for performance reasons, since this is the purpose of the 13592interface in the first place. AcpiOsAcquireObject is now similar to the 13593AcpiOsAllocate interface. 13594 13595Implemented a new AML debugger command named Businfo. This command 13596displays 13597information about all devices that have an associate _PRT object. The 13598_ADR, 13599_HID, _UID, and _CID are displayed for these devices. 13600 13601Modified the initialization sequence in AcpiInitializeSubsystem to call 13602the 13603OSL interface AcpiOslInitialize first, before any local initialization. 13604This 13605change was required because the global initialization now calls OSL 13606interfaces. 13607 13608Enhanced the Dump command to display the entire contents of Package 13609objects 13610(including all sub-objects and their values.) 13611 13612Restructured the code base to split some files because of size and/or 13613because the code logically belonged in a separate file. New files are 13614listed 13615below. All makefiles and project files included in the ACPI CA release 13616have 13617been updated. 13618 utilities/utcache.c /* Local cache interfaces */ 13619 utilities/utmutex.c /* Local mutex support */ 13620 utilities/utstate.c /* State object support */ 13621 interpreter/parser/psloop.c /* Main AML parse loop */ 13622 13623Code and Data Size: Current and previous core subsystem library sizes are 13624shown below. These are the code and data sizes for the acpica.lib 13625produced 13626by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13627any ACPI driver or OSPM code. The debug version of the code includes the 13628debug output trace mechanism and has a much larger code and data size. 13629Note 13630that these values will vary depending on the efficiency of the compiler 13631and 13632the compiler options used during generation. 13633 13634 Previous Release: 13635 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 13636 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 13637 Current Release: 13638 Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 13639 Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 13640 13641 136422) iASL Compiler/Disassembler: 13643 13644Fixed a regression introduced in version 20050513 where the use of a 13645Package 13646object within a Case() statement caused a compile time exception. The 13647original behavior has been restored (a Match() operator is emitted.) 13648 13649---------------------------------------- 1365017 June 2005. Summary of changes for version 20050617: 13651 136521) ACPI CA Core Subsystem: 13653 13654Moved the object cache operations into the OS interface layer (OSL) to 13655allow 13656the host OS to handle these operations if desired (for example, the Linux 13657OSL will invoke the slab allocator). This support is optional; the 13658compile 13659time define ACPI_USE_LOCAL_CACHE may be used to utilize the original 13660cache 13661code in the ACPI CA core. The new OSL interfaces are shown below. See 13662utalloc.c for an example implementation, and acpiosxf.h for the exact 13663interface definitions. With assistance from Alexey Starikovskiy. 13664 AcpiOsCreateCache 13665 AcpiOsDeleteCache 13666 AcpiOsPurgeCache 13667 AcpiOsAcquireObject 13668 AcpiOsReleaseObject 13669 13670Modified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to 13671return 13672and restore a flags parameter. This fits better with many OS lock models. 13673Note: the current execution state (interrupt handler or not) is no longer 13674passed to these interfaces. If necessary, the OSL must determine this 13675state 13676by itself, a simple and fast operation. With assistance from Alexey 13677Starikovskiy. 13678 13679Fixed a problem in the ACPI table handling where a valid XSDT was assumed 13680present if the revision of the RSDP was 2 or greater. According to the 13681ACPI 13682specification, the XSDT is optional in all cases, and the table manager 13683therefore now checks for both an RSDP >=2 and a valid XSDT pointer. 13684Otherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs 13685contain 13686only the RSDT. 13687 13688Fixed an interpreter problem with the Mid() operator in the case of an 13689input 13690string where the resulting output string is of zero length. It now 13691correctly 13692returns a valid, null terminated string object instead of a string object 13693with a null pointer. 13694 13695Fixed a problem with the control method argument handling to allow a 13696store 13697to an Arg object that already contains an object of type Device. The 13698Device 13699object is now correctly overwritten. Previously, an error was returned. 13700 13701 13702Enhanced the debugger Find command to emit object values in addition to 13703the 13704found object pathnames. The output format is the same as the dump 13705namespace 13706command. 13707 13708Enhanced the debugger Set command. It now has the ability to set the 13709value 13710of any Named integer object in the namespace (Previously, only method 13711locals 13712and args could be set.) 13713 13714Code and Data Size: Current and previous core subsystem library sizes are 13715shown below. These are the code and data sizes for the acpica.lib 13716produced 13717by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13718any ACPI driver or OSPM code. The debug version of the code includes the 13719debug output trace mechanism and has a much larger code and data size. 13720Note 13721that these values will vary depending on the efficiency of the compiler 13722and 13723the compiler options used during generation. 13724 13725 Previous Release: 13726 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 13727 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 13728 Current Release: 13729 Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 13730 Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 13731 13732 137332) iASL Compiler/Disassembler: 13734 13735Fixed a regression in the disassembler where if/else/while constructs 13736were 13737output incorrectly. This problem was introduced in the previous release 13738(20050526). This problem also affected the single-step disassembly in the 13739debugger. 13740 13741Fixed a problem where compiling the reserved _OSI method would randomly 13742(but 13743rarely) produce compile errors. 13744 13745Enhanced the disassembler to emit compilable code in the face of 13746incorrect 13747AML resource descriptors. If the optional ResourceSourceIndex is present, 13748but the ResourceSource is not, do not emit the ResourceSourceIndex in the 13749disassembly. Otherwise, the resulting code cannot be compiled without 13750errors. 13751 13752---------------------------------------- 1375326 May 2005. Summary of changes for version 20050526: 13754 137551) ACPI CA Core Subsystem: 13756 13757Implemented support to execute Type 1 and Type 2 AML opcodes appearing at 13758the module level (not within a control method.) These opcodes are 13759executed 13760exactly once at the time the table is loaded. This type of code was legal 13761up 13762until the release of ACPI 2.0B (2002) and is now supported within ACPI CA 13763in 13764order to provide backwards compatibility with earlier BIOS 13765implementations. 13766This eliminates the "Encountered executable code at module level" warning 13767that was previously generated upon detection of such code. 13768 13769Fixed a problem in the interpreter where an AE_NOT_FOUND exception could 13770inadvertently be generated during the lookup of namespace objects in the 13771second pass parse of ACPI tables and control methods. It appears that 13772this 13773problem could occur during the resolution of forward references to 13774namespace 13775objects. 13776 13777Added the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 13778corresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 13779allows the deadlock detection debug code to be compiled out in the normal 13780case, improving mutex performance (and overall subsystem performance) 13781considerably. 13782 13783Implemented a handful of miscellaneous fixes for possible memory leaks on 13784error conditions and error handling control paths. These fixes were 13785suggested by FreeBSD and the Coverity Prevent source code analysis tool. 13786 13787Added a check for a null RSDT pointer in AcpiGetFirmwareTable 13788(tbxfroot.c) 13789to prevent a fault in this error case. 13790 13791Code and Data Size: Current and previous core subsystem library sizes are 13792shown below. These are the code and data sizes for the acpica.lib 13793produced 13794by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13795any ACPI driver or OSPM code. The debug version of the code includes the 13796debug output trace mechanism and has a much larger code and data size. 13797Note 13798that these values will vary depending on the efficiency of the compiler 13799and 13800the compiler options used during generation. 13801 13802 Previous Release: 13803 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13804 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13805 Current Release: 13806 Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 13807 Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 13808 13809 138102) iASL Compiler/Disassembler: 13811 13812Implemented support to allow Type 1 and Type 2 ASL operators to appear at 13813the module level (not within a control method.) These operators will be 13814executed once at the time the table is loaded. This type of code was 13815legal 13816up until the release of ACPI 2.0B (2002) and is now supported by the iASL 13817compiler in order to provide backwards compatibility with earlier BIOS 13818ASL 13819code. 13820 13821The ACPI integer width (specified via the table revision ID or the -r 13822override, 32 or 64 bits) is now used internally during compile-time 13823constant 13824folding to ensure that constants are truncated to 32 bits if necessary. 13825Previously, the revision ID value was only emitted in the AML table 13826header. 13827 13828An error message is now generated for the Mutex and Method operators if 13829the 13830SyncLevel parameter is outside the legal range of 0 through 15. 13831 13832Fixed a problem with the Method operator ParameterTypes list handling 13833(ACPI 138343.0). Previously, more than 2 types or 2 arguments generated a syntax 13835error. 13836The actual underlying implementation of method argument typechecking is 13837still under development, however. 13838 13839---------------------------------------- 1384013 May 2005. Summary of changes for version 20050513: 13841 138421) ACPI CA Core Subsystem: 13843 13844Implemented support for PCI Express root bridges -- added support for 13845device 13846PNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 13847 13848The interpreter now automatically truncates incoming 64-bit constants to 1384932 13850bits if currently executing out of a 32-bit ACPI table (Revision < 2). 13851This 13852also affects the iASL compiler constant folding. (Note: as per below, the 13853iASL compiler no longer allows 64-bit constants within 32-bit tables.) 13854 13855Fixed a problem where string and buffer objects with "static" pointers 13856(pointers to initialization data within an ACPI table) were not handled 13857consistently. The internal object copy operation now always copies the 13858data 13859to a newly allocated buffer, regardless of whether the source object is 13860static or not. 13861 13862Fixed a problem with the FromBCD operator where an implicit result 13863conversion was improperly performed while storing the result to the 13864target 13865operand. Since this is an "explicit conversion" operator, the implicit 13866conversion should never be performed on the output. 13867 13868Fixed a problem with the CopyObject operator where a copy to an existing 13869named object did not always completely overwrite the existing object 13870stored 13871at name. Specifically, a buffer-to-buffer copy did not delete the 13872existing 13873buffer. 13874 13875Replaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces 13876and 13877structs for consistency. 13878 13879Code and Data Size: Current and previous core subsystem library sizes are 13880shown below. These are the code and data sizes for the acpica.lib 13881produced 13882by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13883any ACPI driver or OSPM code. The debug version of the code includes the 13884debug output trace mechanism and has a much larger code and data size. 13885Note 13886that these values will vary depending on the efficiency of the compiler 13887and 13888the compiler options used during generation. 13889 13890 Previous Release: 13891 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13892 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13893 Current Release: (Same sizes) 13894 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13895 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13896 13897 138982) iASL Compiler/Disassembler: 13899 13900The compiler now emits a warning if an attempt is made to generate a 64- 13901bit 13902integer constant from within a 32-bit ACPI table (Revision < 2). The 13903integer 13904is truncated to 32 bits. 13905 13906Fixed a problem with large package objects: if the static length of the 13907package is greater than 255, the "variable length package" opcode is 13908emitted. Previously, this caused an error. This requires an update to the 13909ACPI spec, since it currently (incorrectly) states that packages larger 13910than 13911255 elements are not allowed. 13912 13913The disassembler now correctly handles variable length packages and 13914packages 13915larger than 255 elements. 13916 13917---------------------------------------- 1391808 April 2005. Summary of changes for version 20050408: 13919 139201) ACPI CA Core Subsystem: 13921 13922Fixed three cases in the interpreter where an "index" argument to an ASL 13923function was still (internally) 32 bits instead of the required 64 bits. 13924This was the Index argument to the Index, Mid, and Match operators. 13925 13926The "strupr" function is now permanently local (AcpiUtStrupr), since this 13927is 13928not a POSIX-defined function and not present in most kernel-level C 13929libraries. All references to the C library strupr function have been 13930removed 13931from the headers. 13932 13933Completed the deployment of static functions/prototypes. All prototypes 13934with 13935the static attribute have been moved from the headers to the owning C 13936file. 13937 13938Implemented an extract option (-e) for the AcpiBin utility (AML binary 13939utility). This option allows the utility to extract individual ACPI 13940tables 13941from the output of AcpiDmp. It provides the same functionality of the 13942acpixtract.pl perl script without the worry of setting the correct perl 13943options. AcpiBin runs on Windows and has not yet been generated/validated 13944in 13945the Linux/Unix environment (but should be soon). 13946 13947Updated and fixed the table dump option for AcpiBin (-d). This option 13948converts a single ACPI table to a hex/ascii file, similar to the output 13949of 13950AcpiDmp. 13951 13952Code and Data Size: Current and previous core subsystem library sizes are 13953shown below. These are the code and data sizes for the acpica.lib 13954produced 13955by the Microsoft Visual C++ 6.0 compiler, and these values do not include 13956any ACPI driver or OSPM code. The debug version of the code includes the 13957debug output trace mechanism and has a much larger code and data size. 13958Note 13959that these values will vary depending on the efficiency of the compiler 13960and 13961the compiler options used during generation. 13962 13963 Previous Release: 13964 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 13965 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 13966 Current Release: 13967 Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 13968 Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 13969 13970 139712) iASL Compiler/Disassembler: 13972 13973Disassembler fix: Added a check to ensure that the table length found in 13974the 13975ACPI table header within the input file is not longer than the actual 13976input 13977file size. This indicates some kind of file or table corruption. 13978 13979---------------------------------------- 1398029 March 2005. Summary of changes for version 20050329: 13981 139821) ACPI CA Core Subsystem: 13983 13984An error is now generated if an attempt is made to create a Buffer Field 13985of 13986length zero (A CreateField with a length operand of zero.) 13987 13988The interpreter now issues a warning whenever executable code at the 13989module 13990level is detected during ACPI table load. This will give some idea of the 13991prevalence of this type of code. 13992 13993Implemented support for references to named objects (other than control 13994methods) within package objects. 13995 13996Enhanced package object output for the debug object. Package objects are 13997now 13998completely dumped, showing all elements. 13999 14000Enhanced miscellaneous object output for the debug object. Any object can 14001now be written to the debug object (for example, a device object can be 14002written, and the type of the object will be displayed.) 14003 14004The "static" qualifier has been added to all local functions across both 14005the 14006core subsystem and the iASL compiler. 14007 14008The number of "long" lines (> 80 chars) within the source has been 14009significantly reduced, by about 1/3. 14010 14011Cleaned up all header files to ensure that all CA/iASL functions are 14012prototyped (even static functions) and the formatting is consistent. 14013 14014Two new header files have been added, acopcode.h and acnames.h. 14015 14016Removed several obsolete functions that were no longer used. 14017 14018Code and Data Size: Current and previous core subsystem library sizes are 14019shown below. These are the code and data sizes for the acpica.lib 14020produced 14021by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14022any ACPI driver or OSPM code. The debug version of the code includes the 14023debug output trace mechanism and has a much larger code and data size. 14024Note 14025that these values will vary depending on the efficiency of the compiler 14026and 14027the compiler options used during generation. 14028 14029 Previous Release: 14030 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14031 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 14032 Current Release: 14033 Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 14034 Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 14035 14036 14037 140382) iASL Compiler/Disassembler: 14039 14040Fixed a problem with the resource descriptor generation/support. For the 14041ResourceSourceIndex and the ResourceSource fields, both must be present, 14042or 14043both must be not present - can't have one without the other. 14044 14045The compiler now returns non-zero from the main procedure if any errors 14046have 14047occurred during the compilation. 14048 14049 14050---------------------------------------- 1405109 March 2005. Summary of changes for version 20050309: 14052 140531) ACPI CA Core Subsystem: 14054 14055The string-to-buffer implicit conversion code has been modified again 14056after 14057a change to the ACPI specification. In order to match the behavior of 14058the 14059other major ACPI implementation, the target buffer is no longer truncated 14060if 14061the source string is smaller than an existing target buffer. This change 14062requires an update to the ACPI spec, and should eliminate the recent 14063AE_AML_BUFFER_LIMIT issues. 14064 14065The "implicit return" support was rewritten to a new algorithm that 14066solves 14067the general case. Rather than attempt to determine when a method is about 14068to 14069exit, the result of every ASL operator is saved momentarily until the 14070very 14071next ASL operator is executed. Therefore, no matter how the method exits, 14072there will always be a saved implicit return value. This feature is only 14073enabled with the AcpiGbl_EnableInterpreterSlack flag, and should 14074eliminate 14075AE_AML_NO_RETURN_VALUE errors when enabled. 14076 14077Implemented implicit conversion support for the predicate (operand) of 14078the 14079If, Else, and While operators. String and Buffer arguments are 14080automatically 14081converted to Integers. 14082 14083Changed the string-to-integer conversion behavior to match the new ACPI 14084errata: "If no integer object exists, a new integer is created. The ASCII 14085string is interpreted as a hexadecimal constant. Each string character is 14086interpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 14087with the first character as the most significant digit, and ending with 14088the 14089first non-hexadecimal character or end-of-string." This means that the 14090first 14091non-hex character terminates the conversion and this is the code that was 14092changed. 14093 14094Fixed a problem where the ObjectType operator would fail (fault) when 14095used 14096on an Index of a Package which pointed to a null package element. The 14097operator now properly returns zero (Uninitialized) in this case. 14098 14099Fixed a problem where the While operator used excessive memory by not 14100properly popping the result stack during execution. There was no memory 14101leak 14102after execution, however. (Code provided by Valery Podrezov.) 14103 14104Fixed a problem where references to control methods within Package 14105objects 14106caused the method to be invoked, instead of producing a reference object 14107pointing to the method. 14108 14109Restructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) 14110to 14111improve performance and reduce code size. (Code provided by Alexey 14112Starikovskiy.) 14113 14114Code and Data Size: Current and previous core subsystem library sizes are 14115shown below. These are the code and data sizes for the acpica.lib 14116produced 14117by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14118any ACPI driver or OSPM code. The debug version of the code includes the 14119debug output trace mechanism and has a much larger code and data size. 14120Note 14121that these values will vary depending on the efficiency of the compiler 14122and 14123the compiler options used during generation. 14124 14125 Previous Release: 14126 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14127 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 14128 Current Release: 14129 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14130 Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 14131 14132 141332) iASL Compiler/Disassembler: 14134 14135Fixed a problem with the Return operator with no arguments. Since the AML 14136grammar for the byte encoding requires an operand for the Return opcode, 14137the 14138compiler now emits a Return(Zero) for this case. An ACPI specification 14139update has been written for this case. 14140 14141For tables other than the DSDT, namepath optimization is automatically 14142disabled. This is because SSDTs can be loaded anywhere in the namespace, 14143the 14144compiler has no knowledge of where, and thus cannot optimize namepaths. 14145 14146Added "ProcessorObj" to the ObjectTypeKeyword list. This object type was 14147inadvertently omitted from the ACPI specification, and will require an 14148update to the spec. 14149 14150The source file scan for ASCII characters is now optional (-a). This 14151change 14152was made because some vendors place non-ascii characters within comments. 14153However, the scan is simply a brute-force byte compare to ensure all 14154characters in the file are in the range 0x00 to 0x7F. 14155 14156Fixed a problem with the CondRefOf operator where the compiler was 14157inappropriately checking for the existence of the target. Since the point 14158of 14159the operator is to check for the existence of the target at run-time, the 14160compiler no longer checks for the target existence. 14161 14162Fixed a problem where errors generated from the internal AML interpreter 14163during constant folding were not handled properly, causing a fault. 14164 14165Fixed a problem with overly aggressive range checking for the Stall 14166operator. The valid range (max 255) is now only checked if the operand is 14167of 14168type Integer. All other operand types cannot be statically checked. 14169 14170Fixed a problem where control method references within the RefOf, 14171DeRefOf, 14172and ObjectType operators were not treated properly. They are now treated 14173as 14174actual references, not method invocations. 14175 14176Fixed and enhanced the "list namespace" option (-ln). This option was 14177broken 14178a number of releases ago. 14179 14180Improved error handling for the Field, IndexField, and BankField 14181operators. 14182The compiler now cleanly reports and recovers from errors in the field 14183component (FieldUnit) list. 14184 14185Fixed a disassembler problem where the optional ResourceDescriptor fields 14186TRS and TTP were not always handled correctly. 14187 14188Disassembler - Comments in output now use "//" instead of "/*" 14189 14190---------------------------------------- 1419128 February 2005. Summary of changes for version 20050228: 14192 141931) ACPI CA Core Subsystem: 14194 14195Fixed a problem where the result of an Index() operator (an object 14196reference) must increment the reference count on the target object for 14197the 14198life of the object reference. 14199 14200Implemented AML Interpreter and Debugger support for the new ACPI 3.0 14201Extended Address (IO, Memory, Space), QwordSpace, DwordSpace, and 14202WordSpace 14203resource descriptors. 14204 14205Implemented support in the _OSI method for the ACPI 3.0 "Extended Address 14206Space Descriptor" string, indicating interpreter support for the 14207descriptors 14208above. 14209 14210Implemented header support for the new ACPI 3.0 FADT flag bits. 14211 14212Implemented header support for the new ACPI 3.0 PCI Express bits for the 14213PM1 14214status/enable registers. 14215 14216Updated header support for the MADT processor local Apic struct and MADT 14217platform interrupt source struct for new ACPI 3.0 fields. 14218 14219Implemented header support for the SRAT and SLIT ACPI tables. 14220 14221Implemented the -s switch in AcpiExec to enable the "InterpreterSlack" 14222flag 14223at runtime. 14224 14225Code and Data Size: Current and previous core subsystem library sizes are 14226shown below. These are the code and data sizes for the acpica.lib 14227produced 14228by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14229any ACPI driver or OSPM code. The debug version of the code includes the 14230debug output trace mechanism and has a much larger code and data size. 14231Note 14232that these values will vary depending on the efficiency of the compiler 14233and 14234the compiler options used during generation. 14235 14236 Previous Release: 14237 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 14238 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 14239 Current Release: 14240 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14241 Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 14242 14243 142442) iASL Compiler/Disassembler: 14245 14246Fixed a problem with the internal 64-bit String-to-integer conversion 14247with 14248strings less than two characters long. 14249 14250Fixed a problem with constant folding where the result of the Index() 14251operator can not be considered a constant. This means that Index() cannot 14252be 14253a type3 opcode and this will require an update to the ACPI specification. 14254 14255Disassembler: Implemented support for the TTP, MTP, and TRS resource 14256descriptor fields. These fields were inadvertently ignored and not output 14257in 14258the disassembly of the resource descriptor. 14259 14260 14261 ---------------------------------------- 1426211 February 2005. Summary of changes for version 20050211: 14263 142641) ACPI CA Core Subsystem: 14265 14266Implemented ACPI 3.0 support for implicit conversion within the Match() 14267operator. MatchObjects can now be of type integer, buffer, or string 14268instead 14269of just type integer. Package elements are implicitly converted to the 14270type 14271of the MatchObject. This change aligns the behavior of Match() with the 14272behavior of the other logical operators (LLess(), etc.) It also requires 14273an 14274errata change to the ACPI specification as this support was intended for 14275ACPI 3.0, but was inadvertently omitted. 14276 14277Fixed a problem with the internal implicit "to buffer" conversion. 14278Strings 14279that are converted to buffers will cause buffer truncation if the string 14280is 14281smaller than the target buffer. Integers that are converted to buffers 14282will 14283not cause buffer truncation, only zero extension (both as per the ACPI 14284spec.) The problem was introduced when code was added to truncate the 14285buffer, but this should not be performed in all cases, only the string 14286case. 14287 14288Fixed a problem with the Buffer and Package operators where the 14289interpreter 14290would get confused if two such operators were used as operands to an ASL 14291operator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 14292stack was not being popped after the execution of these operators, 14293resulting 14294in an AE_NO_RETURN_VALUE exception. 14295 14296Fixed a problem with constructs of the form Store(Index(...),...). The 14297reference object returned from Index was inadvertently resolved to an 14298actual 14299value. This problem was introduced in version 20050114 when the behavior 14300of 14301Store() was modified to restrict the object types that can be used as the 14302source operand (to match the ACPI specification.) 14303 14304Reduced excessive stack use within the AcpiGetObjectInfo procedure. 14305 14306Added a fix to aclinux.h to allow generation of AcpiExec on Linux. 14307 14308Updated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 14309 14310Code and Data Size: Current and previous core subsystem library sizes are 14311shown below. These are the code and data sizes for the acpica.lib 14312produced 14313by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14314any ACPI driver or OSPM code. The debug version of the code includes the 14315debug output trace mechanism and has a much larger code and data size. 14316Note 14317that these values will vary depending on the efficiency of the compiler 14318and 14319the compiler options used during generation. 14320 14321 Previous Release: 14322 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 14323 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 14324 Current Release: 14325 Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 14326 Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 14327 14328 143292) iASL Compiler/Disassembler: 14330 14331Fixed a code generation problem in the constant folding optimization code 14332where incorrect code was generated if a constant was reduced to a buffer 14333object (i.e., a reduced type 5 opcode.) 14334 14335Fixed a typechecking problem for the ToBuffer operator. Caused by an 14336incorrect return type in the internal opcode information table. 14337 14338---------------------------------------- 1433925 January 2005. Summary of changes for version 20050125: 14340 143411) ACPI CA Core Subsystem: 14342 14343Fixed a recently introduced problem with the Global Lock where the 14344underlying semaphore was not created. This problem was introduced in 14345version 20050114, and caused an AE_AML_NO_OPERAND exception during an 14346Acquire() operation on _GL. 14347 14348The local object cache is now optional, and is disabled by default. Both 14349AcpiExec and the iASL compiler enable the cache because they run in user 14350mode and this enhances their performance. #define 14351ACPI_ENABLE_OBJECT_CACHE 14352to enable the local cache. 14353 14354Fixed an issue in the internal function AcpiUtEvaluateObject concerning 14355the 14356optional "implicit return" support where an error was returned if no 14357return 14358object was expected, but one was implicitly returned. AE_OK is now 14359returned 14360in this case and the implicitly returned object is deleted. 14361AcpiUtEvaluateObject is only occasionally used, and only to execute 14362reserved 14363methods such as _STA and _INI where the return type is known up front. 14364 14365Fixed a few issues with the internal convert-to-integer code. It now 14366returns 14367an error if an attempt is made to convert a null string, a string of only 14368blanks/tabs, or a zero-length buffer. This affects both implicit 14369conversion 14370and explicit conversion via the ToInteger() operator. 14371 14372The internal debug code in AcpiUtAcquireMutex has been commented out. It 14373is 14374not needed for normal operation and should increase the performance of 14375the 14376entire subsystem. The code remains in case it is needed for debug 14377purposes 14378again. 14379 14380The AcpiExec source and makefile are included in the Unix/Linux package 14381for 14382the first time. 14383 14384Code and Data Size: Current and previous core subsystem library sizes are 14385shown below. These are the code and data sizes for the acpica.lib 14386produced 14387by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14388any ACPI driver or OSPM code. The debug version of the code includes the 14389debug output trace mechanism and has a much larger code and data size. 14390Note 14391that these values will vary depending on the efficiency of the compiler 14392and 14393the compiler options used during generation. 14394 14395 Previous Release: 14396 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 14397 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 14398 Current Release: 14399 Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 14400 Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 14401 144022) iASL Compiler/Disassembler: 14403 14404Switch/Case support: A warning is now issued if the type of the Switch 14405value 14406cannot be determined at compile time. For example, Switch(Arg0) will 14407generate the warning, and the type is assumed to be an integer. As per 14408the 14409ACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate 14410the 14411warning. 14412 14413Switch/Case support: Implemented support for buffer and string objects as 14414the switch value. This is an ACPI 3.0 feature, now that LEqual supports 14415buffers and strings. 14416 14417Switch/Case support: The emitted code for the LEqual() comparisons now 14418uses 14419the switch value as the first operand, not the second. The case value is 14420now 14421the second operand, and this allows the case value to be implicitly 14422converted to the type of the switch value, not the other way around. 14423 14424Switch/Case support: Temporary variables are now emitted immediately 14425within 14426the control method, not at the global level. This means that there are 14427now 1442836 temps available per-method, not 36 temps per-module as was the case 14429with 14430the earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 14431 14432---------------------------------------- 1443314 January 2005. Summary of changes for version 20050114: 14434 14435Added 2005 copyright to all module headers. This affects every module in 14436the core subsystem, iASL compiler, and the utilities. 14437 144381) ACPI CA Core Subsystem: 14439 14440Fixed an issue with the String-to-Buffer conversion code where the string 14441null terminator was not included in the buffer after conversion, but 14442there 14443is existing ASL that assumes the string null terminator is included. This 14444is 14445the root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 14446introduced in the previous version when the code was updated to correctly 14447set the converted buffer size as per the ACPI specification. The ACPI 14448spec 14449is ambiguous and will be updated to specify that the null terminator must 14450be 14451included in the converted buffer. This also affects the ToBuffer() ASL 14452operator. 14453 14454Fixed a problem with the Mid() ASL/AML operator where it did not work 14455correctly on Buffer objects. Newly created sub-buffers were not being 14456marked 14457as initialized. 14458 14459 14460Fixed a problem in AcpiTbFindTable where incorrect string compares were 14461performed on the OemId and OemTableId table header fields. These fields 14462are 14463not null terminated, so strncmp is now used instead of strcmp. 14464 14465Implemented a restriction on the Store() ASL/AML operator to align the 14466behavior with the ACPI specification. Previously, any object could be 14467used 14468as the source operand. Now, the only objects that may be used are 14469Integers, 14470Buffers, Strings, Packages, Object References, and DDB Handles. If 14471necessary, the original behavior can be restored by enabling the 14472EnableInterpreterSlack flag. 14473 14474Enhanced the optional "implicit return" support to allow an implicit 14475return 14476value from methods that are invoked externally via the AcpiEvaluateObject 14477interface. This enables implicit returns from the _STA and _INI methods, 14478for example. 14479 14480Changed the Revision() ASL/AML operator to return the current version of 14481the 14482AML interpreter, in the YYYYMMDD format. Previously, it incorrectly 14483returned 14484the supported ACPI version (This is the function of the _REV method). 14485 14486Updated the _REV predefined method to return the currently supported 14487version 14488of ACPI, now 3. 14489 14490Implemented batch mode option for the AcpiExec utility (-b). 14491 14492Code and Data Size: Current and previous core subsystem library sizes are 14493shown below. These are the code and data sizes for the acpica.lib 14494produced 14495by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14496any ACPI driver or OSPM code. The debug version of the code includes the 14497debug output trace mechanism and has a much larger code and data size. 14498Note 14499that these values will vary depending on the efficiency of the compiler 14500and 14501the compiler options used during generation. 14502 14503 Previous Release: 14504 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14505 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 14506 Current Release: 14507 Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 14508 Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 14509 14510---------------------------------------- 1451110 December 2004. Summary of changes for version 20041210: 14512 14513ACPI 3.0 support is nearing completion in both the iASL compiler and the 14514ACPI CA core subsystem. 14515 145161) ACPI CA Core Subsystem: 14517 14518Fixed a problem in the ToDecimalString operator where the resulting 14519string 14520length was incorrectly calculated. The length is now calculated exactly, 14521eliminating incorrect AE_STRING_LIMIT exceptions. 14522 14523Fixed a problem in the ToHexString operator to allow a maximum 200 14524character 14525string to be produced. 14526 14527Fixed a problem in the internal string-to-buffer and buffer-to-buffer 14528copy 14529routine where the length of the resulting buffer was not truncated to the 14530new size (if the target buffer already existed). 14531 14532Code and Data Size: Current and previous core subsystem library sizes are 14533shown below. These are the code and data sizes for the acpica.lib 14534produced 14535by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14536any ACPI driver or OSPM code. The debug version of the code includes the 14537debug output trace mechanism and has a much larger code and data size. 14538Note 14539that these values will vary depending on the efficiency of the compiler 14540and 14541the compiler options used during generation. 14542 14543 Previous Release: 14544 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14545 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 14546 Current Release: 14547 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14548 Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 14549 14550 145512) iASL Compiler/Disassembler: 14552 14553Implemented the new ACPI 3.0 resource template macros - DWordSpace, 14554ExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 14555Includes support in the disassembler. 14556 14557Implemented support for the new (ACPI 3.0) parameter to the Register 14558macro, 14559AccessSize. 14560 14561Fixed a problem where the _HE resource name for the Interrupt macro was 14562referencing bit 0 instead of bit 1. 14563 14564Implemented check for maximum 255 interrupts in the Interrupt macro. 14565 14566Fixed a problem with the predefined resource descriptor names where 14567incorrect AML code was generated if the offset within the resource buffer 14568was 0 or 1. The optimizer shortened the AML code to a single byte opcode 14569but did not update the surrounding package lengths. 14570 14571Changes to the Dma macro: All channels within the channel list must be 14572in 14573the range 0-7. Maximum 8 channels can be specified. BusMaster operand is 14574optional (default is BusMaster). 14575 14576Implemented check for maximum 7 data bytes for the VendorShort macro. 14577 14578The ReadWrite parameter is now optional for the Memory32 and similar 14579macros. 14580 14581---------------------------------------- 1458203 December 2004. Summary of changes for version 20041203: 14583 145841) ACPI CA Core Subsystem: 14585 14586The low-level field insertion/extraction code (exfldio) has been 14587completely 14588rewritten to eliminate unnecessary complexity, bugs, and boundary 14589conditions. 14590 14591Fixed a problem in the ToInteger, ToBuffer, ToHexString, and 14592ToDecimalString 14593operators where the input operand could be inadvertently deleted if no 14594conversion was necessary (e.g., if the input to ToInteger was an Integer 14595object.) 14596 14597Fixed a problem with the ToDecimalString and ToHexString where an 14598incorrect 14599exception code was returned if the resulting string would be > 200 chars. 14600AE_STRING_LIMIT is now returned. 14601 14602Fixed a problem with the Concatenate operator where AE_OK was always 14603returned, even if the operation failed. 14604 14605Fixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 14606semaphores to be allocated. 14607 14608Code and Data Size: Current and previous core subsystem library sizes are 14609shown below. These are the code and data sizes for the acpica.lib 14610produced 14611by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14612any ACPI driver or OSPM code. The debug version of the code includes the 14613debug output trace mechanism and has a much larger code and data size. 14614Note 14615that these values will vary depending on the efficiency of the compiler 14616and 14617the compiler options used during generation. 14618 14619 Previous Release: 14620 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14621 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14622 Current Release: 14623 Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 14624 Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 14625 14626 146272) iASL Compiler/Disassembler: 14628 14629Fixed typechecking for the ObjectType and SizeOf operators. Problem was 14630recently introduced in 20041119. 14631 14632Fixed a problem with the ToUUID macro where the upper nybble of each 14633buffer 14634byte was inadvertently set to zero. 14635 14636---------------------------------------- 1463719 November 2004. Summary of changes for version 20041119: 14638 146391) ACPI CA Core Subsystem: 14640 14641Fixed a problem in the internal ConvertToInteger routine where new 14642integers 14643were not truncated to 32 bits for 32-bit ACPI tables. This routine 14644converts 14645buffers and strings to integers. 14646 14647Implemented support to store a value to an Index() on a String object. 14648This 14649is an ACPI 2.0 feature that had not yet been implemented. 14650 14651Implemented new behavior for storing objects to individual package 14652elements 14653(via the Index() operator). The previous behavior was to invoke the 14654implicit 14655conversion rules if an object was already present at the index. The new 14656behavior is to simply delete any existing object and directly store the 14657new 14658object. Although the ACPI specification seems unclear on this subject, 14659other 14660ACPI implementations behave in this manner. (This is the root of the 14661AE_BAD_HEX_CONSTANT issue.) 14662 14663Modified the RSDP memory scan mechanism to support the extended checksum 14664for 14665ACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 14666RSDP signature is found with a valid checksum. 14667 14668Code and Data Size: Current and previous core subsystem library sizes are 14669shown below. These are the code and data sizes for the acpica.lib 14670produced 14671by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14672any ACPI driver or OSPM code. The debug version of the code includes the 14673debug output trace mechanism and has a much larger code and data size. 14674Note 14675that these values will vary depending on the efficiency of the compiler 14676and 14677the compiler options used during generation. 14678 14679 Previous Release: 14680 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14681 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14682 Current Release: 14683 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14684 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14685 14686 146872) iASL Compiler/Disassembler: 14688 14689Fixed a missing semicolon in the aslcompiler.y file. 14690 14691---------------------------------------- 1469205 November 2004. Summary of changes for version 20041105: 14693 146941) ACPI CA Core Subsystem: 14695 14696Implemented support for FADT revision 2. This was an interim table 14697(between 14698ACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 14699 14700Implemented optional support to allow uninitialized LocalX and ArgX 14701variables in a control method. The variables are initialized to an 14702Integer 14703object with a value of zero. This support is enabled by setting the 14704AcpiGbl_EnableInterpreterSlack flag to TRUE. 14705 14706Implemented support for Integer objects for the SizeOf operator. Either 147074 14708or 8 is returned, depending on the current integer size (32-bit or 64- 14709bit, 14710depending on the parent table revision). 14711 14712Fixed a problem in the implementation of the SizeOf and ObjectType 14713operators 14714where the operand was resolved to a value too early, causing incorrect 14715return values for some objects. 14716 14717Fixed some possible memory leaks during exceptional conditions. 14718 14719Code and Data Size: Current and previous core subsystem library sizes are 14720shown below. These are the code and data sizes for the acpica.lib 14721produced 14722by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14723any ACPI driver or OSPM code. The debug version of the code includes the 14724debug output trace mechanism and has a much larger code and data size. 14725Note 14726that these values will vary depending on the efficiency of the compiler 14727and 14728the compiler options used during generation. 14729 14730 Previous Release: 14731 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14732 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 14733 Current Release: 14734 Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 14735 Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 14736 14737 147382) iASL Compiler/Disassembler: 14739 14740Implemented support for all ACPI 3.0 reserved names and methods. 14741 14742Implemented all ACPI 3.0 grammar elements in the front-end, including 14743support for semicolons. 14744 14745Implemented the ACPI 3.0 Function() and ToUUID() macros 14746 14747Fixed a problem in the disassembler where a Scope() operator would not be 14748emitted properly if the target of the scope was in another table. 14749 14750---------------------------------------- 1475115 October 2004. Summary of changes for version 20041015: 14752 14753Note: ACPI CA is currently undergoing an in-depth and complete formal 14754evaluation to test/verify the following areas. Other suggestions are 14755welcome. This will result in an increase in the frequency of releases and 14756the number of bug fixes in the next few months. 14757 - Functional tests for all ASL/AML operators 14758 - All implicit/explicit type conversions 14759 - Bit fields and operation regions 14760 - 64-bit math support and 32-bit-only "truncated" math support 14761 - Exceptional conditions, both compiler and interpreter 14762 - Dynamic object deletion and memory leaks 14763 - ACPI 3.0 support when implemented 14764 - External interfaces to the ACPI subsystem 14765 14766 147671) ACPI CA Core Subsystem: 14768 14769Fixed two alignment issues on 64-bit platforms - within debug statements 14770in 14771AcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the 14772Address 14773field within the non-aligned ACPI generic address structure. 14774 14775Fixed a problem in the Increment and Decrement operators where incorrect 14776operand resolution could result in the inadvertent modification of the 14777original integer when the integer is passed into another method as an 14778argument and the arg is then incremented/decremented. 14779 14780Fixed a problem in the FromBCD operator where the upper 32-bits of a 64- 14781bit 14782BCD number were truncated during conversion. 14783 14784Fixed a problem in the ToDecimal operator where the length of the 14785resulting 14786string could be set incorrectly too long if the input operand was a 14787Buffer 14788object. 14789 14790Fixed a problem in the Logical operators (LLess, etc.) where a NULL byte 14791(0) 14792within a buffer would prematurely terminate a compare between buffer 14793objects. 14794 14795Added a check for string overflow (>200 characters as per the ACPI 14796specification) during the Concatenate operator with two string operands. 14797 14798Code and Data Size: Current and previous core subsystem library sizes are 14799shown below. These are the code and data sizes for the acpica.lib 14800produced 14801by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14802any ACPI driver or OSPM code. The debug version of the code includes the 14803debug output trace mechanism and has a much larger code and data size. 14804Note 14805that these values will vary depending on the efficiency of the compiler 14806and 14807the compiler options used during generation. 14808 14809 Previous Release: 14810 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14811 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14812 Current Release: 14813 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 14814 Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 14815 14816 14817 148182) iASL Compiler/Disassembler: 14819 14820Allow the use of the ObjectType operator on uninitialized Locals and Args 14821(returns 0 as per the ACPI specification). 14822 14823Fixed a problem where the compiler would fault if there was a syntax 14824error 14825in the FieldName of all of the various CreateXXXField operators. 14826 14827Disallow the use of lower case letters within the EISAID macro, as per 14828the 14829ACPI specification. All EISAID strings must be of the form "UUUNNNN" 14830Where 14831U is an uppercase letter and N is a hex digit. 14832 14833 14834---------------------------------------- 1483506 October 2004. Summary of changes for version 20041006: 14836 148371) ACPI CA Core Subsystem: 14838 14839Implemented support for the ACPI 3.0 Timer operator. This ASL function 14840implements a 64-bit timer with 100 nanosecond granularity. 14841 14842Defined a new OSL interface, AcpiOsGetTimer. This interface is used to 14843implement the ACPI 3.0 Timer operator. This allows the host OS to 14844implement 14845the timer with the best clock available. Also, it keeps the core 14846subsystem 14847out of the clock handling business, since the host OS (usually) performs 14848this function. 14849 14850Fixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 14851functions use a 64-bit address which is part of the packed ACPI Generic 14852Address Structure. Since the structure is non-aligned, the alignment 14853macros 14854are now used to extract the address to a local variable before use. 14855 14856Fixed a problem where the ToInteger operator assumed all input strings 14857were 14858hexadecimal. The operator now handles both decimal strings and hex 14859strings 14860(prefixed with "0x"). 14861 14862Fixed a problem where the string length in the string object created as a 14863result of the internal ConvertToString procedure could be incorrect. This 14864potentially affected all implicit conversions and also the 14865ToDecimalString 14866and ToHexString operators. 14867 14868Fixed two problems in the ToString operator. If the length parameter was 14869zero, an incorrect string object was created and the value of the input 14870length parameter was inadvertently changed from zero to Ones. 14871 14872Fixed a problem where the optional ResourceSource string in the 14873ExtendedIRQ 14874resource macro was ignored. 14875 14876Simplified the interfaces to the internal division functions, reducing 14877code 14878size and complexity. 14879 14880Code and Data Size: Current and previous core subsystem library sizes are 14881shown below. These are the code and data sizes for the acpica.lib 14882produced 14883by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14884any ACPI driver or OSPM code. The debug version of the code includes the 14885debug output trace mechanism and has a much larger code and data size. 14886Note 14887that these values will vary depending on the efficiency of the compiler 14888and 14889the compiler options used during generation. 14890 14891 Previous Release: 14892 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14893 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14894 Current Release: 14895 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 14896 Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 14897 14898 148992) iASL Compiler/Disassembler: 14900 14901Implemented support for the ACPI 3.0 Timer operator. 14902 14903Fixed a problem where the Default() operator was inadvertently ignored in 14904a 14905Switch/Case block. This was a problem in the translation of the Switch 14906statement to If...Else pairs. 14907 14908Added support to allow a standalone Return operator, with no parentheses 14909(or 14910operands). 14911 14912Fixed a problem with code generation for the ElseIf operator where the 14913translated Else...If parse tree was improperly constructed leading to the 14914loss of some code. 14915 14916---------------------------------------- 1491722 September 2004. Summary of changes for version 20040922: 14918 149191) ACPI CA Core Subsystem: 14920 14921Fixed a problem with the implementation of the LNot() operator where 14922"Ones" 14923was not returned for the TRUE case. Changed the code to return Ones 14924instead 14925of (!Arg) which was usually 1. This change affects iASL constant folding 14926for 14927this operator also. 14928 14929Fixed a problem in AcpiUtInitializeBuffer where an existing buffer was 14930not 14931initialized properly -- Now zero the entire buffer in this case where the 14932buffer already exists. 14933 14934Changed the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 14935Milliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 14936related code considerably. This will require changes/updates to all OS 14937interface layers (OSLs.) 14938 14939Implemented a new external interface, AcpiInstallExceptionHandler, to 14940allow 14941a system exception handler to be installed. This handler is invoked upon 14942any 14943run-time exception that occurs during control method execution. 14944 14945Added support for the DSDT in AcpiTbFindTable. This allows the 14946DataTableRegion() operator to access the local copy of the DSDT. 14947 14948Code and Data Size: Current and previous core subsystem library sizes are 14949shown below. These are the code and data sizes for the acpica.lib 14950produced 14951by the Microsoft Visual C++ 6.0 compiler, and these values do not include 14952any ACPI driver or OSPM code. The debug version of the code includes the 14953debug output trace mechanism and has a much larger code and data size. 14954Note 14955that these values will vary depending on the efficiency of the compiler 14956and 14957the compiler options used during generation. 14958 14959 Previous Release: 14960 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 14961 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 14962 Current Release: 14963 Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 14964 Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 14965 14966 149672) iASL Compiler/Disassembler: 14968 14969Fixed a problem with constant folding and the LNot operator. LNot was 14970returning 1 in the TRUE case, not Ones as per the ACPI specification. 14971This 14972could result in the generation of an incorrect folded/reduced constant. 14973 14974End-Of-File is now allowed within a "//"-style comment. A parse error no 14975longer occurs if such a comment is at the very end of the input ASL 14976source 14977file. 14978 14979Implemented the "-r" option to override the Revision in the table header. 14980The initial use of this option will be to simplify the evaluation of the 14981AML 14982interpreter by allowing a single ASL source module to be compiled for 14983either 1498432-bit or 64-bit integers. 14985 14986 14987---------------------------------------- 1498827 August 2004. Summary of changes for version 20040827: 14989 149901) ACPI CA Core Subsystem: 14991 14992- Implemented support for implicit object conversion in the non-numeric 14993logical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, 14994and 14995LNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 14996the second operand is implicitly converted on the fly to match the type 14997of 14998the first operand. For example: 14999 15000 LEqual (Source1, Source2) 15001 15002Source1 and Source2 must each evaluate to an integer, a string, or a 15003buffer. 15004The data type of Source1 dictates the required type of Source2. Source2 15005is 15006implicitly converted if necessary to match the type of Source1. 15007 15008- Updated and corrected the behavior of the string conversion support. 15009The 15010rules concerning conversion of buffers to strings (according to the ACPI 15011specification) are as follows: 15012 15013ToDecimalString - explicit byte-wise conversion of buffer to string of 15014decimal values (0-255) separated by commas. ToHexString - explicit byte- 15015wise 15016conversion of buffer to string of hex values (0-FF) separated by commas. 15017ToString - explicit byte-wise conversion of buffer to string. Byte-by- 15018byte 15019copy with no transform except NULL terminated. Any other implicit buffer- 15020to- 15021string conversion - byte-wise conversion of buffer to string of hex 15022values 15023(0-FF) separated by spaces. 15024 15025- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 15026 15027- Fixed a problem in AcpiNsGetPathnameLength where the returned length 15028was 15029one byte too short in the case of a node in the root scope. This could 15030cause a fault during debug output. 15031 15032- Code and Data Size: Current and previous core subsystem library sizes 15033are 15034shown below. These are the code and data sizes for the acpica.lib 15035produced 15036by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15037any ACPI driver or OSPM code. The debug version of the code includes the 15038debug output trace mechanism and has a much larger code and data size. 15039Note 15040that these values will vary depending on the efficiency of the compiler 15041and 15042the compiler options used during generation. 15043 15044 Previous Release: 15045 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 15046 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 15047 Current Release: 15048 Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 15049 Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 15050 15051 150522) iASL Compiler/Disassembler: 15053 15054- Fixed a Linux generation error. 15055 15056 15057---------------------------------------- 1505816 August 2004. Summary of changes for version 20040816: 15059 150601) ACPI CA Core Subsystem: 15061 15062Designed and implemented support within the AML interpreter for the so- 15063called "implicit return". This support returns the result of the last 15064ASL 15065operation within a control method, in the absence of an explicit Return() 15066operator. A few machines depend on this behavior, even though it is not 15067explicitly supported by the ASL language. It is optional support that 15068can 15069be enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 15070 15071Removed support for the PCI_Config address space from the internal low 15072level 15073hardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 15074support was not used internally, and would not work correctly anyway 15075because 15076the PCI bus number and segment number were not supported. There are 15077separate interfaces for PCI configuration space access because of the 15078unique 15079interface. 15080 15081Code and Data Size: Current and previous core subsystem library sizes are 15082shown below. These are the code and data sizes for the acpica.lib 15083produced 15084by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15085any ACPI driver or OSPM code. The debug version of the code includes the 15086debug output trace mechanism and has a much larger code and data size. 15087Note 15088that these values will vary depending on the efficiency of the compiler 15089and 15090the compiler options used during generation. 15091 15092 Previous Release: 15093 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 15094 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 15095 Current Release: 15096 Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 15097 Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 15098 15099 151002) iASL Compiler/Disassembler: 15101 15102Fixed a problem where constants in ASL expressions at the root level (not 15103within a control method) could be inadvertently truncated during code 15104generation. This problem was introduced in the 20040715 release. 15105 15106 15107---------------------------------------- 1510815 July 2004. Summary of changes for version 20040715: 15109 151101) ACPI CA Core Subsystem: 15111 15112Restructured the internal HW GPE interfaces to pass/track the current 15113state 15114of interrupts (enabled/disabled) in order to avoid possible deadlock and 15115increase flexibility of the interfaces. 15116 15117Implemented a "lexicographical compare" for String and Buffer objects 15118within 15119the logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual - 15120- 15121as per further clarification to the ACPI specification. Behavior is 15122similar 15123to C library "strcmp". 15124 15125Completed a major reduction in CPU stack use for the AcpiGetFirmwareTable 15126external function. In the 32-bit non-debug case, the stack use has been 15127reduced from 168 bytes to 32 bytes. 15128 15129Deployed a new run-time configuration flag, 15130AcpiGbl_EnableInterpreterSlack, 15131whose purpose is to allow the AML interpreter to forgive certain bad AML 15132constructs. Default setting is FALSE. 15133 15134Implemented the first use of AcpiGbl_EnableInterpreterSlack in the Field 15135IO 15136support code. If enabled, it allows field access to go beyond the end of 15137a 15138region definition if the field is within the region length rounded up to 15139the 15140next access width boundary (a common coding error.) 15141 15142Renamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 15143ACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, 15144these 15145symbols are lowercase by the latest version of the AcpiSrc tool. 15146 15147The prototypes for the PCI interfaces in acpiosxf.h have been updated to 15148rename "Register" to simply "Reg" to prevent certain compilers from 15149complaining. 15150 15151Code and Data Size: Current and previous core subsystem library sizes are 15152shown below. These are the code and data sizes for the acpica.lib 15153produced 15154by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15155any ACPI driver or OSPM code. The debug version of the code includes the 15156debug output trace mechanism and has a much larger code and data size. 15157Note 15158that these values will vary depending on the efficiency of the compiler 15159and 15160the compiler options used during generation. 15161 15162 Previous Release: 15163 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 15164 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 15165 Current Release: 15166 Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 15167 Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 15168 15169 151702) iASL Compiler/Disassembler: 15171 15172Implemented full support for Package objects within the Case() operator. 15173Note: The Break() operator is currently not supported within Case blocks 15174(TermLists) as there is some question about backward compatibility with 15175ACPI 151761.0 interpreters. 15177 15178 15179Fixed a problem where complex terms were not supported properly within 15180the 15181Switch() operator. 15182 15183Eliminated extraneous warning for compiler-emitted reserved names of the 15184form "_T_x". (Used in Switch/Case operators.) 15185 15186Eliminated optimization messages for "_T_x" objects and small constants 15187within the DefinitionBlock operator. 15188 15189 15190---------------------------------------- 1519115 June 2004. Summary of changes for version 20040615: 15192 151931) ACPI CA Core Subsystem: 15194 15195Implemented support for Buffer and String objects (as per ACPI 2.0) for 15196the 15197following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 15198LLessEqual. 15199 15200All directory names in the entire source package are lower case, as they 15201were in earlier releases. 15202 15203Implemented "Disassemble" command in the AML debugger that will 15204disassemble 15205a single control method. 15206 15207Code and Data Size: Current and previous core subsystem library sizes are 15208shown below. These are the code and data sizes for the acpica.lib 15209produced 15210by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15211any ACPI driver or OSPM code. The debug version of the code includes the 15212debug output trace mechanism and has a much larger code and data size. 15213Note 15214that these values will vary depending on the efficiency of the compiler 15215and 15216the compiler options used during generation. 15217 15218 Previous Release: 15219 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 15220 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 15221 15222 Current Release: 15223 Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 15224 Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 15225 15226 152272) iASL Compiler/Disassembler: 15228 15229Implemented support for Buffer and String objects (as per ACPI 2.0) for 15230the 15231following ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 15232LLessEqual. 15233 15234All directory names in the entire source package are lower case, as they 15235were in earlier releases. 15236 15237Fixed a fault when using the -g or -d<nofilename> options if the FADT was 15238not found. 15239 15240Fixed an issue with the Windows version of the compiler where later 15241versions 15242of Windows place the FADT in the registry under the name "FADT" and not 15243"FACP" as earlier versions did. This applies when using the -g or - 15244d<nofilename> options. The compiler now looks for both strings as 15245necessary. 15246 15247Fixed a problem with compiler namepath optimization where a namepath 15248within 15249the Scope() operator could not be optimized if the namepath was a subpath 15250of 15251the current scope path. 15252 15253---------------------------------------- 1525427 May 2004. Summary of changes for version 20040527: 15255 152561) ACPI CA Core Subsystem: 15257 15258Completed a new design and implementation for EBDA (Extended BIOS Data 15259Area) 15260support in the RSDP scan code. The original code improperly scanned for 15261the 15262EBDA by simply scanning from memory location 0 to 0x400. The correct 15263method 15264is to first obtain the EBDA pointer from within the BIOS data area, then 15265scan 1K of memory starting at the EBDA pointer. There appear to be few 15266if 15267any machines that place the RSDP in the EBDA, however. 15268 15269Integrated a fix for a possible fault during evaluation of BufferField 15270arguments. Obsolete code that was causing the problem was removed. 15271 15272Found and fixed a problem in the Field Support Code where data could be 15273corrupted on a bit field read that starts on an aligned boundary but does 15274not end on an aligned boundary. Merged the read/write "datum length" 15275calculation code into a common procedure. 15276 15277Rolled in a couple of changes to the FreeBSD-specific header. 15278 15279 15280Code and Data Size: Current and previous core subsystem library sizes are 15281shown below. These are the code and data sizes for the acpica.lib 15282produced 15283by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15284any ACPI driver or OSPM code. The debug version of the code includes the 15285debug output trace mechanism and has a much larger code and data size. 15286Note 15287that these values will vary depending on the efficiency of the compiler 15288and 15289the compiler options used during generation. 15290 15291 Previous Release: 15292 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15293 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 15294 Current Release: 15295 Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 15296 Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 15297 15298 152992) iASL Compiler/Disassembler: 15300 15301Fixed a generation warning produced by some overly-verbose compilers for 15302a 1530364-bit constant. 15304 15305---------------------------------------- 1530614 May 2004. Summary of changes for version 20040514: 15307 153081) ACPI CA Core Subsystem: 15309 15310Fixed a problem where hardware GPE enable bits sometimes not set properly 15311during and after GPE method execution. Result of 04/27 changes. 15312 15313Removed extra "clear all GPEs" when sleeping/waking. 15314 15315Removed AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 15316AcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above 15317to 15318the new AcpiEv* calls as appropriate. 15319 15320ACPI_OS_NAME was removed from the OS-specific headers. The default name 15321is 15322now "Microsoft Windows NT" for maximum compatibility. However this can 15323be 15324changed by modifying the acconfig.h file. 15325 15326Allow a single invocation of AcpiInstallNotifyHandler for a handler that 15327traps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 15328 15329Run _INI methods on ThermalZone objects. This is against the ACPI 15330specification, but there is apparently ASL code in the field that has 15331these 15332_INI methods, and apparently "other" AML interpreters execute them. 15333 15334Performed a full 16/32/64 bit lint that resulted in some small changes. 15335 15336Added a sleep simulation command to the AML debugger to test sleep code. 15337 15338Code and Data Size: Current and previous core subsystem library sizes are 15339shown below. These are the code and data sizes for the acpica.lib 15340produced 15341by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15342any ACPI driver or OSPM code. The debug version of the code includes the 15343debug output trace mechanism and has a much larger code and data size. 15344Note 15345that these values will vary depending on the efficiency of the compiler 15346and 15347the compiler options used during generation. 15348 15349 Previous Release: 15350 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15351 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 15352 Current Release: 15353 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15354 Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 15355 15356---------------------------------------- 1535727 April 2004. Summary of changes for version 20040427: 15358 153591) ACPI CA Core Subsystem: 15360 15361Completed a major overhaul of the GPE handling within ACPI CA. There are 15362now three types of GPEs: wake-only, runtime-only, and combination 15363wake/run. 15364The only GPEs allowed to be combination wake/run are for button-style 15365devices such as a control-method power button, control-method sleep 15366button, 15367or a notebook lid switch. GPEs that have an _Lxx or _Exx method and are 15368not 15369referenced by any _PRW methods are marked for "runtime" and hardware 15370enabled. Any GPE that is referenced by a _PRW method is marked for 15371"wake" 15372(and disabled at runtime). However, at sleep time, only those GPEs that 15373have been specifically enabled for wake via the AcpiEnableGpe interface 15374will 15375actually be hardware enabled. 15376 15377A new external interface has been added, AcpiSetGpeType(), that is meant 15378to 15379be used by device drivers to force a GPE to a particular type. It will 15380be 15381especially useful for the drivers for the button devices mentioned above. 15382 15383Completed restructuring of the ACPI CA initialization sequence so that 15384default operation region handlers are installed before GPEs are 15385initialized 15386and the _PRW methods are executed. This will prevent errors when the 15387_PRW 15388methods attempt to access system memory or I/O space. 15389 15390GPE enable/disable no longer reads the GPE enable register. We now keep 15391the 15392enable info for runtime and wake separate and in the GPE_EVENT_INFO. We 15393thus no longer depend on the hardware to maintain these bits. 15394 15395Always clear the wake status and fixed/GPE status bits before sleep, even 15396for state S5. 15397 15398Improved the AML debugger output for displaying the GPE blocks and their 15399current status. 15400 15401Added new strings for the _OSI method, of the form "Windows 2001 SPx" 15402where 15403x = 0,1,2,3,4. 15404 15405Fixed a problem where the physical address was incorrectly calculated 15406when 15407the Load() operator was used to directly load from an Operation Region 15408(vs. 15409loading from a Field object.) Also added check for minimum table length 15410for 15411this case. 15412 15413Fix for multiple mutex acquisition. Restore original thread SyncLevel on 15414mutex release. 15415 15416Added ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 15417consistency with the other fields returned. 15418 15419Shrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 15420structure for each GPE in the system, so the size of this structure is 15421important. 15422 15423CPU stack requirement reduction: Cleaned up the method execution and 15424object 15425evaluation paths so that now a parameter structure is passed, instead of 15426copying the various method parameters over and over again. 15427 15428In evregion.c: Correctly exit and reenter the interpreter region if and 15429only if dispatching an operation region request to a user-installed 15430handler. 15431Do not exit/reenter when dispatching to a default handler (e.g., default 15432system memory or I/O handlers) 15433 15434 15435Notes for updating drivers for the new GPE support. The following 15436changes 15437must be made to ACPI-related device drivers that are attached to one or 15438more 15439GPEs: (This information will be added to the ACPI CA Programmer 15440Reference.) 15441 154421) AcpiInstallGpeHandler no longer automatically enables the GPE, you 15443must 15444explicitly call AcpiEnableGpe. 154452) There is a new interface called AcpiSetGpeType. This should be called 15446before enabling the GPE. Also, this interface will automatically disable 15447the GPE if it is currently enabled. 154483) AcpiEnableGpe no longer supports a GPE type flag. 15449 15450Specific drivers that must be changed: 154511) EC driver: 15452 AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 15453AeGpeHandler, NULL); 15454 AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 15455 AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 15456 154572) Button Drivers (Power, Lid, Sleep): 15458Run _PRW method under parent device 15459If _PRW exists: /* This is a control-method button */ 15460 Extract GPE number and possibly GpeDevice 15461 AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 15462 AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 15463 15464For all other devices that have _PRWs, we automatically set the GPE type 15465to 15466ACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. 15467This 15468must be done on a selective basis, usually requiring some kind of user 15469app 15470to allow the user to pick the wake devices. 15471 15472 15473Code and Data Size: Current and previous core subsystem library sizes are 15474shown below. These are the code and data sizes for the acpica.lib 15475produced 15476by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15477any ACPI driver or OSPM code. The debug version of the code includes the 15478debug output trace mechanism and has a much larger code and data size. 15479Note 15480that these values will vary depending on the efficiency of the compiler 15481and 15482the compiler options used during generation. 15483 15484 Previous Release: 15485 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 15486 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 15487 Current Release: 15488 15489 Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 15490 Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 15491 15492 15493 15494---------------------------------------- 1549502 April 2004. Summary of changes for version 20040402: 15496 154971) ACPI CA Core Subsystem: 15498 15499Fixed an interpreter problem where an indirect store through an ArgX 15500parameter was incorrectly applying the "implicit conversion rules" during 15501the store. From the ACPI specification: "If the target is a method local 15502or 15503argument (LocalX or ArgX), no conversion is performed and the result is 15504stored directly to the target". The new behavior is to disable implicit 15505conversion during ALL stores to an ArgX. 15506 15507Changed the behavior of the _PRW method scan to ignore any and all errors 15508returned by a given _PRW. This prevents the scan from aborting from the 15509failure of any single _PRW. 15510 15511Moved the runtime configuration parameters from the global init procedure 15512to 15513static variables in acglobal.h. This will allow the host to override the 15514default values easily. 15515 15516Code and Data Size: Current and previous core subsystem library sizes are 15517shown below. These are the code and data sizes for the acpica.lib 15518produced 15519by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15520any ACPI driver or OSPM code. The debug version of the code includes the 15521debug output trace mechanism and has a much larger code and data size. 15522Note 15523that these values will vary depending on the efficiency of the compiler 15524and 15525the compiler options used during generation. 15526 15527 Previous Release: 15528 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 15529 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 15530 Current Release: 15531 Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 15532 Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 15533 15534 155352) iASL Compiler/Disassembler: 15536 15537iASL now fully disassembles SSDTs. However, External() statements are 15538not 15539generated automatically for unresolved symbols at this time. This is a 15540planned feature for future implementation. 15541 15542Fixed a scoping problem in the disassembler that occurs when the type of 15543the 15544target of a Scope() operator is overridden. This problem caused an 15545incorrectly nested internal namespace to be constructed. 15546 15547Any warnings or errors that are emitted during disassembly are now 15548commented 15549out automatically so that the resulting file can be recompiled without 15550any 15551hand editing. 15552 15553---------------------------------------- 1555426 March 2004. Summary of changes for version 20040326: 15555 155561) ACPI CA Core Subsystem: 15557 15558Implemented support for "wake" GPEs via interaction between GPEs and the 15559_PRW methods. Every GPE that is pointed to by one or more _PRWs is 15560identified as a WAKE GPE and by default will no longer be enabled at 15561runtime. Previously, we were blindly enabling all GPEs with a 15562corresponding 15563_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. 15564We 15565believe this has been the cause of thousands of "spurious" GPEs on some 15566systems. 15567 15568This new GPE behavior is can be reverted to the original behavior (enable 15569ALL GPEs at runtime) via a runtime flag. 15570 15571Fixed a problem where aliased control methods could not access objects 15572properly. The proper scope within the namespace was not initialized 15573(transferred to the target of the aliased method) before executing the 15574target method. 15575 15576Fixed a potential race condition on internal object deletion on the 15577return 15578object in AcpiEvaluateObject. 15579 15580Integrated a fix for resource descriptors where both _MEM and _MTP were 15581being extracted instead of just _MEM. (i.e. bitmask was incorrectly too 15582wide, 0x0F instead of 0x03.) 15583 15584Added a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, 15585preventing 15586a 15587fault in some cases. 15588 15589Updated Notify() values for debug statements in evmisc.c 15590 15591Return proper status from AcpiUtMutexInitialize, not just simply AE_OK. 15592 15593Code and Data Size: Current and previous core subsystem library sizes are 15594shown below. These are the code and data sizes for the acpica.lib 15595produced 15596by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15597any ACPI driver or OSPM code. The debug version of the code includes the 15598debug output trace mechanism and has a much larger code and data size. 15599Note 15600that these values will vary depending on the efficiency of the compiler 15601and 15602the compiler options used during generation. 15603 15604 Previous Release: 15605 15606 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 15607 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 15608 Current Release: 15609 Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 15610 Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 15611 15612---------------------------------------- 1561311 March 2004. Summary of changes for version 20040311: 15614 156151) ACPI CA Core Subsystem: 15616 15617Fixed a problem where errors occurring during the parse phase of control 15618method execution did not abort cleanly. For example, objects created and 15619installed in the namespace were not deleted. This caused all subsequent 15620invocations of the method to return the AE_ALREADY_EXISTS exception. 15621 15622Implemented a mechanism to force a control method to "Serialized" 15623execution 15624if the method attempts to create namespace objects. (The root of the 15625AE_ALREADY_EXISTS problem.) 15626 15627Implemented support for the predefined _OSI "internal" control method. 15628Initial supported strings are "Linux", "Windows 2000", "Windows 2001", 15629and 15630"Windows 2001.1", and can be easily upgraded for new strings as 15631necessary. 15632This feature will allow "other" operating systems to execute the fully 15633tested, "Windows" code path through the ASL code 15634 15635Global Lock Support: Now allows multiple acquires and releases with any 15636internal thread. Removed concept of "owning thread" for this special 15637mutex. 15638 15639Fixed two functions that were inappropriately declaring large objects on 15640the 15641CPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage 15642during 15643method execution considerably. 15644 15645Fixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 15646S4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 15647 15648Fixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 15649defined on the machine. 15650 15651Implemented two runtime options: One to force all control method 15652execution 15653to "Serialized" to mimic Windows behavior, another to disable _OSI 15654support 15655if it causes problems on a given machine. 15656 15657Code and Data Size: Current and previous core subsystem library sizes are 15658shown below. These are the code and data sizes for the acpica.lib 15659produced 15660by the Microsoft Visual C++ 6.0 compiler, and these values do not include 15661any ACPI driver or OSPM code. The debug version of the code includes the 15662debug output trace mechanism and has a much larger code and data size. 15663Note 15664that these values will vary depending on the efficiency of the compiler 15665and 15666the compiler options used during generation. 15667 15668 Previous Release: 15669 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 15670 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 15671 Current Release: 15672 Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 15673 Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 15674 156752) iASL Compiler/Disassembler: 15676 15677Fixed an array size problem for FreeBSD that would cause the compiler to 15678fault. 15679 15680---------------------------------------- 1568120 February 2004. Summary of changes for version 20040220: 15682 15683 156841) ACPI CA Core Subsystem: 15685 15686Implemented execution of _SxD methods for Device objects in the 15687GetObjectInfo interface. 15688 15689Fixed calls to _SST method to pass the correct arguments. 15690 15691Added a call to _SST on wake to restore to "working" state. 15692 15693Check for End-Of-Buffer failure case in the WalkResources interface. 15694 15695Integrated fix for 64-bit alignment issue in acglobal.h by moving two 15696structures to the beginning of the file. 15697 15698After wake, clear GPE status register(s) before enabling GPEs. 15699 15700After wake, clear/enable power button. (Perhaps we should clear/enable 15701all 15702fixed events upon wake.) 15703 15704Fixed a couple of possible memory leaks in the Namespace manager. 15705 15706Integrated latest acnetbsd.h file. 15707 15708---------------------------------------- 1570911 February 2004. Summary of changes for version 20040211: 15710 15711 157121) ACPI CA Core Subsystem: 15713 15714Completed investigation and implementation of the call-by-reference 15715mechanism for control method arguments. 15716 15717Fixed a problem where a store of an object into an indexed package could 15718fail if the store occurs within a different method than the method that 15719created the package. 15720 15721Fixed a problem where the ToDecimal operator could return incorrect 15722results. 15723 15724Fixed a problem where the CopyObject operator could fail on some of the 15725more 15726obscure objects (e.g., Reference objects.) 15727 15728Improved the output of the Debug object to display buffer, package, and 15729index objects. 15730 15731Fixed a problem where constructs of the form "RefOf (ArgX)" did not 15732return 15733the expected result. 15734 15735Added permanent ACPI_REPORT_ERROR macros for all instances of the 15736ACPI_AML_INTERNAL exception. 15737 15738Integrated latest version of acfreebsd.h 15739 15740---------------------------------------- 1574116 January 2004. Summary of changes for version 20040116: 15742 15743The purpose of this release is primarily to update the copyright years in 15744each module, thus causing a huge number of diffs. There are a few small 15745functional changes, however. 15746 157471) ACPI CA Core Subsystem: 15748 15749Improved error messages when there is a problem finding one or more of 15750the 15751required base ACPI tables 15752 15753Reintroduced the definition of APIC_HEADER in actbl.h 15754 15755Changed definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 15756 15757Removed extraneous reference to NewObj in dsmthdat.c 15758 157592) iASL compiler 15760 15761Fixed a problem introduced in December that disabled the correct 15762disassembly 15763of Resource Templates 15764 15765 15766---------------------------------------- 1576703 December 2003. Summary of changes for version 20031203: 15768 157691) ACPI CA Core Subsystem: 15770 15771Changed the initialization of Operation Regions during subsystem 15772init to perform two entire walks of the ACPI namespace; The first 15773to initialize the regions themselves, the second to execute the 15774_REG methods. This fixed some interdependencies across _REG 15775methods found on some machines. 15776 15777Fixed a problem where a Store(Local0, Local1) could simply update 15778the object reference count, and not create a new copy of the 15779object if the Local1 is uninitialized. 15780 15781Implemented support for the _SST reserved method during sleep 15782transitions. 15783 15784Implemented support to clear the SLP_TYP and SLP_EN bits when 15785waking up, this is apparently required by some machines. 15786 15787When sleeping, clear the wake status only if SleepState is not S5. 15788 15789Fixed a problem in AcpiRsExtendedIrqResource() where an incorrect 15790pointer arithmetic advanced a string pointer too far. 15791 15792Fixed a problem in AcpiTbGetTablePtr() where a garbage pointer 15793could be returned if the requested table has not been loaded. 15794 15795Within the support for IRQ resources, restructured the handling of 15796the active and edge/level bits. 15797 15798Fixed a few problems in AcpiPsxExecute() where memory could be 15799leaked under certain error conditions. 15800 15801Improved error messages for the cases where the ACPI mode could 15802not be entered. 15803 15804Code and Data Size: Current and previous core subsystem library 15805sizes are shown below. These are the code and data sizes for the 15806acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15807these values do not include any ACPI driver or OSPM code. The 15808debug version of the code includes the debug output trace 15809mechanism and has a much larger code and data size. Note that 15810these values will vary depending on the efficiency of the compiler 15811and the compiler options used during generation. 15812 15813 Previous Release (20031029): 15814 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15815 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15816 Current Release: 15817 Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 15818 Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 15819 158202) iASL Compiler/Disassembler: 15821 15822Implemented a fix for the iASL disassembler where a bad index was 15823generated. This was most noticeable on 64-bit platforms 15824 15825 15826---------------------------------------- 1582729 October 2003. Summary of changes for version 20031029: 15828 158291) ACPI CA Core Subsystem: 15830 15831 15832Fixed a problem where a level-triggered GPE with an associated 15833_Lxx control method was incorrectly cleared twice. 15834 15835Fixed a problem with the Field support code where an access can 15836occur beyond the end-of-region if the field is non-aligned but 15837extends to the very end of the parent region (resulted in an 15838AE_AML_REGION_LIMIT exception.) 15839 15840Fixed a problem with ACPI Fixed Events where an RT Clock handler 15841would not get invoked on an RTC event. The RTC event bitmasks for 15842the PM1 registers were not being initialized properly. 15843 15844Implemented support for executing _STA and _INI methods for 15845Processor objects. Although this is currently not part of the 15846ACPI specification, there is existing ASL code that depends on the 15847init-time execution of these methods. 15848 15849Implemented and deployed a GetDescriptorName function to decode 15850the various types of internal descriptors. Guards against null 15851descriptors during debug output also. 15852 15853Implemented and deployed a GetNodeName function to extract the 4- 15854character namespace node name. This function simplifies the debug 15855and error output, as well as guarding against null pointers during 15856output. 15857 15858Implemented and deployed the ACPI_FORMAT_UINT64 helper macro to 15859simplify the debug and error output of 64-bit integers. This 15860macro replaces the HIDWORD and LODWORD macros for dumping these 15861integers. 15862 15863Updated the implementation of the Stall() operator to only call 15864AcpiOsStall(), and also return an error if the operand is larger 15865than 255. This preserves the required behavior of not 15866relinquishing the processor, as would happen if AcpiOsSleep() was 15867called for "long stalls". 15868 15869Constructs of the form "Store(LocalX,LocalX)" where LocalX is not 15870initialized are now treated as NOOPs. 15871 15872Cleaned up a handful of warnings during 64-bit generation. 15873 15874Fixed a reported error where and incorrect GPE number was passed 15875to the GPE dispatch handler. This value is only used for error 15876output, however. Used this opportunity to clean up and streamline 15877the GPE dispatch code. 15878 15879Code and Data Size: Current and previous core subsystem library 15880sizes are shown below. These are the code and data sizes for the 15881acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15882these values do not include any ACPI driver or OSPM code. The 15883 15884debug version of the code includes the debug output trace 15885mechanism and has a much larger code and data size. Note that 15886these values will vary depending on the efficiency of the compiler 15887and the compiler options used during generation. 15888 15889 Previous Release (20031002): 15890 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15891 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15892 Current Release: 15893 Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 15894 Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 15895 15896 158972) iASL Compiler/Disassembler: 15898 15899Updated the iASL compiler to return an error if the operand to the 15900Stall() operator is larger than 255. 15901 15902 15903---------------------------------------- 1590402 October 2003. Summary of changes for version 20031002: 15905 15906 159071) ACPI CA Core Subsystem: 15908 15909Fixed a problem with Index Fields where the index was not 15910incremented for fields that require multiple writes to the 15911index/data registers (Fields that are wider than the data 15912register.) 15913 15914Fixed a problem with all Field objects where a write could go 15915beyond the end-of-field if the field was larger than the access 15916granularity and therefore required multiple writes to complete the 15917request. An extra write beyond the end of the field could happen 15918inadvertently. 15919 15920Fixed a problem with Index Fields where a BUFFER_OVERFLOW error 15921would incorrectly be returned if the width of the Data Register 15922was larger than the specified field access width. 15923 15924Completed fixes for LoadTable() and Unload() and verified their 15925operation. Implemented full support for the "DdbHandle" object 15926throughout the ACPI CA subsystem. 15927 15928Implemented full support for the MADT and ECDT tables in the ACPI 15929CA header files. Even though these tables are not directly 15930consumed by ACPI CA, the header definitions are useful for ACPI 15931device drivers. 15932 15933Integrated resource descriptor fixes posted to the Linux ACPI 15934list. This included checks for minimum descriptor length, and 15935support for trailing NULL strings within descriptors that have 15936optional string elements. 15937 15938Code and Data Size: Current and previous core subsystem library 15939sizes are shown below. These are the code and data sizes for the 15940acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15941these values do not include any ACPI driver or OSPM code. The 15942debug version of the code includes the debug output trace 15943mechanism and has a much larger code and data size. Note that 15944these values will vary depending on the efficiency of the compiler 15945and the compiler options used during generation. 15946 15947 Previous Release (20030918): 15948 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 15949 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 15950 Current Release: 15951 Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 15952 Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 15953 15954 159552) iASL Compiler: 15956 15957Implemented detection of non-ASCII characters within the input 15958source ASL file. This catches attempts to compile binary (AML) 15959files early in the compile, with an informative error message. 15960 15961Fixed a problem where the disassembler would fault if the output 15962filename could not be generated or if the output file could not be 15963opened. 15964 15965---------------------------------------- 1596618 September 2003. Summary of changes for version 20030918: 15967 15968 159691) ACPI CA Core Subsystem: 15970 15971Found and fixed a longstanding problem with the late execution of 15972the various deferred AML opcodes (such as Operation Regions, 15973Buffer Fields, Buffers, and Packages). If the name string 15974specified for the name of the new object placed the object in a 15975scope other than the current scope, the initialization/execution 15976of the opcode failed. The solution to this problem was to 15977implement a mechanism where the late execution of such opcodes 15978does not attempt to lookup/create the name a second time in an 15979incorrect scope. This fixes the "region size computed 15980incorrectly" problem. 15981 15982Fixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 15983Global Lock AE_BAD_PARAMETER error. 15984 15985Fixed several 64-bit issues with prototypes, casting and data 15986types. 15987 15988Removed duplicate prototype from acdisasm.h 15989 15990Fixed an issue involving EC Operation Region Detach (Shaohua Li) 15991 15992Code and Data Size: Current and previous core subsystem library 15993sizes are shown below. These are the code and data sizes for the 15994acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 15995these values do not include any ACPI driver or OSPM code. The 15996debug version of the code includes the debug output trace 15997mechanism and has a much larger code and data size. Note that 15998these values will vary depending on the efficiency of the compiler 15999and the compiler options used during generation. 16000 16001 Previous Release: 16002 16003 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 16004 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 16005 Current Release: 16006 Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 16007 Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 16008 16009 160102) Linux: 16011 16012Fixed the AcpiOsSleep implementation in osunixxf.c to pass the 16013correct sleep time in seconds. 16014 16015---------------------------------------- 1601614 July 2003. Summary of changes for version 20030619: 16017 160181) ACPI CA Core Subsystem: 16019 16020Parse SSDTs in order discovered, as opposed to reverse order 16021(Hrvoje Habjanic) 16022 16023Fixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 16024Klausner, 16025 Nate Lawson) 16026 16027 160282) Linux: 16029 16030Dynamically allocate SDT list (suggested by Andi Kleen) 16031 16032proc function return value cleanups (Andi Kleen) 16033 16034Correctly handle NMI watchdog during long stalls (Andrew Morton) 16035 16036Make it so acpismp=force works (reported by Andrew Morton) 16037 16038 16039---------------------------------------- 1604019 June 2003. Summary of changes for version 20030619: 16041 160421) ACPI CA Core Subsystem: 16043 16044Fix To/FromBCD, eliminating the need for an arch-specific #define. 16045 16046Do not acquire a semaphore in the S5 shutdown path. 16047 16048Fix ex_digits_needed for 0. (Takayoshi Kochi) 16049 16050Fix sleep/stall code reversal. (Andi Kleen) 16051 16052Revert a change having to do with control method calling 16053semantics. 16054 160552) Linux: 16056 16057acpiphp update (Takayoshi Kochi) 16058 16059Export acpi_disabled for sonypi (Stelian Pop) 16060 16061Mention acpismp=force in config help 16062 16063Re-add acpitable.c and acpismp=force. This improves backwards 16064 16065compatibility and also cleans up the code to a significant degree. 16066 16067Add ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 16068 16069---------------------------------------- 1607022 May 2003. Summary of changes for version 20030522: 16071 160721) ACPI CA Core Subsystem: 16073 16074Found and fixed a reported problem where an AE_NOT_FOUND error 16075occurred occasionally during _BST evaluation. This turned out to 16076be an Owner ID allocation issue where a called method did not get 16077a new ID assigned to it. Eventually, (after 64k calls), the Owner 16078ID UINT16 would wraparound so that the ID would be the same as the 16079caller's and the called method would delete the caller's 16080namespace. 16081 16082Implemented extended error reporting for control methods that are 16083aborted due to a run-time exception. Output includes the exact 16084AML instruction that caused the method abort, a dump of the method 16085locals and arguments at the time of the abort, and a trace of all 16086nested control method calls. 16087 16088Modified the interpreter to allow the creation of buffers of zero 16089length from the AML code. Implemented new code to ensure that no 16090attempt is made to actually allocate a memory buffer (of length 16091zero) - instead, a simple buffer object with a NULL buffer pointer 16092and length zero is created. A warning is no longer issued when 16093the AML attempts to create a zero-length buffer. 16094 16095Implemented a workaround for the "leading asterisk issue" in 16096_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 16097asterisk is automatically removed if present in any HID, UID, or 16098CID strings. The iASL compiler will still flag this asterisk as 16099an error, however. 16100 16101Implemented full support for _CID methods that return a package of 16102multiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 16103now additionally returns a device _CID list if present. This 16104required a change to the external interface in order to pass an 16105ACPI_BUFFER object as a parameter since the _CID list is of 16106variable length. 16107 16108Fixed a problem with the new AE_SAME_HANDLER exception where 16109handler initialization code did not know about this exception. 16110 16111Code and Data Size: Current and previous core subsystem library 16112sizes are shown below. These are the code and data sizes for the 16113acpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 16114these values do not include any ACPI driver or OSPM code. The 16115debug version of the code includes the debug output trace 16116mechanism and has a much larger code and data size. Note that 16117these values will vary depending on the efficiency of the compiler 16118and the compiler options used during generation. 16119 16120 Previous Release (20030509): 16121 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 16122 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 16123 Current Release: 16124 Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 16125 Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 16126 16127 161282) Linux: 16129 16130Fixed a bug in which we would reinitialize the ACPI interrupt 16131after it was already working, thus disabling all ACPI and the IRQs 16132for any other device sharing the interrupt. (Thanks to Stian 16133Jordet) 16134 16135Toshiba driver update (John Belmonte) 16136 16137Return only 0 or 1 for our interrupt handler status (Andrew 16138Morton) 16139 16140 161413) iASL Compiler: 16142 16143Fixed a reported problem where multiple (nested) ElseIf() 16144statements were not handled correctly by the compiler, resulting 16145in incorrect warnings and incorrect AML code. This was a problem 16146in both the ASL parser and the code generator. 16147 16148 161494) Documentation: 16150 16151Added changes to existing interfaces, new exception codes, and new 16152text concerning reference count object management versus garbage 16153collection. 16154 16155---------------------------------------- 1615609 May 2003. Summary of changes for version 20030509. 16157 16158 161591) ACPI CA Core Subsystem: 16160 16161Changed the subsystem initialization sequence to hold off 16162installation of address space handlers until the hardware has been 16163initialized and the system has entered ACPI mode. This is because 16164the installation of space handlers can cause _REG methods to be 16165run. Previously, the _REG methods could potentially be run before 16166ACPI mode was enabled. 16167 16168Fixed some memory leak issues related to address space handler and 16169notify handler installation. There were some problems with the 16170reference count mechanism caused by the fact that the handler 16171objects are shared across several namespace objects. 16172 16173Fixed a reported problem where reference counts within the 16174namespace were not properly updated when named objects created by 16175method execution were deleted. 16176 16177Fixed a reported problem where multiple SSDTs caused a deletion 16178issue during subsystem termination. Restructured the table data 16179structures to simplify the linked lists and the related code. 16180 16181Fixed a problem where the table ID associated with secondary 16182tables (SSDTs) was not being propagated into the namespace objects 16183created by those tables. This would only present a problem for 16184tables that are unloaded at run-time, however. 16185 16186Updated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 16187type as the length parameter (instead of UINT32). 16188 16189Solved a long-standing problem where an ALREADY_EXISTS error 16190appears on various systems. This problem could happen when there 16191are multiple PCI_Config operation regions under a single PCI root 16192bus. This doesn't happen very frequently, but there are some 16193systems that do this in the ASL. 16194 16195Fixed a reported problem where the internal DeleteNode function 16196was incorrectly handling the case where a namespace node was the 16197first in the parent's child list, and had additional peers (not 16198the only child, but first in the list of children.) 16199 16200Code and Data Size: Current core subsystem library sizes are shown 16201below. These are the code and data sizes for the acpica.lib 16202produced by the Microsoft Visual C++ 6.0 compiler, and these 16203values do not include any ACPI driver or OSPM code. The debug 16204version of the code includes the debug output trace mechanism and 16205has a much larger code and data size. Note that these values will 16206vary depending on the efficiency of the compiler and the compiler 16207options used during generation. 16208 16209 Previous Release 16210 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 16211 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 16212 Current Release: 16213 Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 16214 Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 16215 16216 162172) Linux: 16218 16219Allow ":" in OS override string (Ducrot Bruno) 16220 16221Kobject fix (Greg KH) 16222 16223 162243 iASL Compiler/Disassembler: 16225 16226Fixed a problem in the generation of the C source code files (AML 16227is emitted in C source statements for BIOS inclusion) where the 16228Ascii dump that appears within a C comment at the end of each line 16229could cause a compile time error if the AML sequence happens to 16230have an open comment or close comment sequence embedded. 16231 16232 16233---------------------------------------- 1623424 April 2003. Summary of changes for version 20030424. 16235 16236 162371) ACPI CA Core Subsystem: 16238 16239Support for big-endian systems has been implemented. Most of the 16240support has been invisibly added behind big-endian versions of the 16241ACPI_MOVE_* macros. 16242 16243Fixed a problem in AcpiHwDisableGpeBlock() and 16244AcpiHwClearGpeBlock() where an incorrect offset was passed to the 16245low level hardware write routine. The offset parameter was 16246actually eliminated from the low level read/write routines because 16247they had become obsolete. 16248 16249Fixed a problem where a handler object was deleted twice during 16250the removal of a fixed event handler. 16251 16252 162532) Linux: 16254 16255A fix for SMP systems with link devices was contributed by 16256 16257Compaq's Dan Zink. 16258 16259(2.5) Return whether we handled the interrupt in our IRQ handler. 16260(Linux ISRs no longer return void, so we can propagate the handler 16261return value from the ACPI CA core back to the OS.) 16262 16263 16264 162653) Documentation: 16266 16267The ACPI CA Programmer Reference has been updated to reflect new 16268interfaces and changes to existing interfaces. 16269 16270---------------------------------------- 1627128 March 2003. Summary of changes for version 20030328. 16272 162731) ACPI CA Core Subsystem: 16274 16275The GPE Block Device support has been completed. New interfaces 16276are AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 16277interfaces (enable, disable, clear, getstatus) have been split 16278into separate interfaces for Fixed Events and General Purpose 16279Events (GPEs) in order to support GPE Block Devices properly. 16280 16281Fixed a problem where the error message "Failed to acquire 16282semaphore" would appear during operations on the embedded 16283controller (EC). 16284 16285Code and Data Size: Current core subsystem library sizes are shown 16286below. These are the code and data sizes for the acpica.lib 16287produced by the Microsoft Visual C++ 6.0 compiler, and these 16288values do not include any ACPI driver or OSPM code. The debug 16289version of the code includes the debug output trace mechanism and 16290has a much larger code and data size. Note that these values will 16291vary depending on the efficiency of the compiler and the compiler 16292options used during generation. 16293 16294 Previous Release 16295 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 16296 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 16297 Current Release: 16298 Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 16299 Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 16300 16301 16302---------------------------------------- 1630328 February 2003. Summary of changes for version 20030228. 16304 16305 163061) ACPI CA Core Subsystem: 16307 16308The GPE handling and dispatch code has been completely overhauled 16309in preparation for support of GPE Block Devices (ID ACPI0006). 16310This affects internal data structures and code only; there should 16311be no differences visible externally. One new file has been 16312added, evgpeblk.c 16313 16314The FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 16315fields that are used to determine the GPE block lengths. The 16316REGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 16317structures are ignored. This is per the ACPI specification but it 16318isn't very clear. The full 256 Block 0/1 GPEs are now supported 16319(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 16320 16321In the SCI interrupt handler, removed the read of the PM1_CONTROL 16322register to look at the SCI_EN bit. On some machines, this read 16323causes an SMI event and greatly slows down SCI events. (This may 16324in fact be the cause of slow battery status response on some 16325systems.) 16326 16327Fixed a problem where a store of a NULL string to a package object 16328could cause the premature deletion of the object. This was seen 16329during execution of the battery _BIF method on some systems, 16330resulting in no battery data being returned. 16331 16332Added AcpiWalkResources interface to simplify parsing of resource 16333lists. 16334 16335Code and Data Size: Current core subsystem library sizes are shown 16336below. These are the code and data sizes for the acpica.lib 16337produced by the Microsoft Visual C++ 6.0 compiler, and these 16338values do not include any ACPI driver or OSPM code. The debug 16339version of the code includes the debug output trace mechanism and 16340has a much larger code and data size. Note that these values will 16341vary depending on the efficiency of the compiler and the compiler 16342options used during generation. 16343 16344 Previous Release 16345 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16346 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16347 Current Release: 16348 Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 16349 Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 16350 16351 163522) Linux 16353 16354S3 fixes (Ole Rohne) 16355 16356Update ACPI PHP driver with to use new acpi_walk_resource API 16357(Bjorn Helgaas) 16358 16359Add S4BIOS support (Pavel Machek) 16360 16361Map in entire table before performing checksum (John Stultz) 16362 16363Expand the mem= cmdline to allow the specification of reserved and 16364ACPI DATA blocks (Pavel Machek) 16365 16366Never use ACPI on VISWS 16367 16368Fix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 16369 16370Revert a change that allowed P_BLK lengths to be 4 or 5. This is 16371causing us to think that some systems support C2 when they really 16372don't. 16373 16374Do not count processor objects for non-present CPUs (Thanks to 16375Dominik Brodowski) 16376 16377 163783) iASL Compiler: 16379 16380Fixed a problem where ASL include files could not be found and 16381opened. 16382 16383Added support for the _PDC reserved name. 16384 16385 16386---------------------------------------- 1638722 January 2003. Summary of changes for version 20030122. 16388 16389 163901) ACPI CA Core Subsystem: 16391 16392Added a check for constructs of the form: Store (Local0, Local0) 16393where Local0 is not initialized. Apparently, some BIOS 16394programmers believe that this is a NOOP. Since this store doesn't 16395do anything anyway, the new prototype behavior will ignore this 16396error. This is a case where we can relax the strict checking in 16397the interpreter in the name of compatibility. 16398 16399 164002) Linux 16401 16402The AcpiSrc Source Conversion Utility has been released with the 16403Linux package for the first time. This is the utility that is 16404used to convert the ACPI CA base source code to the Linux version. 16405 16406(Both) Handle P_BLK lengths shorter than 6 more gracefully 16407 16408(Both) Move more headers to include/acpi, and delete an unused 16409header. 16410 16411(Both) Move drivers/acpi/include directory to include/acpi 16412 16413(Both) Boot functions don't use cmdline, so don't pass it around 16414 16415(Both) Remove include of unused header (Adrian Bunk) 16416 16417(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 16418the 16419former now also includes the latter, acpiphp.h only needs the one, 16420now. 16421 16422(2.5) Make it possible to select method of bios restoring after S3 16423resume. [=> no more ugly ifdefs] (Pavel Machek) 16424 16425(2.5) Make proc write interfaces work (Pavel Machek) 16426 16427(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 16428 16429(2.5) Break out ACPI Perf code into its own module, under cpufreq 16430(Dominik Brodowski) 16431 16432(2.4) S4BIOS support (Ducrot Bruno) 16433 16434(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 16435Visinoni) 16436 16437 164383) iASL Compiler: 16439 16440Added support to disassemble SSDT and PSDTs. 16441 16442Implemented support to obtain SSDTs from the Windows registry if 16443available. 16444 16445 16446---------------------------------------- 1644709 January 2003. Summary of changes for version 20030109. 16448 164491) ACPI CA Core Subsystem: 16450 16451Changed the behavior of the internal Buffer-to-String conversion 16452function. The current ACPI specification states that the contents 16453of the buffer are "converted to a string of two-character 16454hexadecimal numbers, each separated by a space". Unfortunately, 16455this definition is not backwards compatible with existing ACPI 1.0 16456implementations (although the behavior was not defined in the ACPI 164571.0 specification). The new behavior simply copies data from the 16458buffer to the string until a null character is found or the end of 16459the buffer is reached. The new String object is always null 16460terminated. This problem was seen during the generation of _BIF 16461battery data where incorrect strings were returned for battery 16462type, etc. This will also require an errata to the ACPI 16463specification. 16464 16465Renamed all instances of NATIVE_UINT and NATIVE_INT to 16466ACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 16467 16468Copyright in all module headers (both Linux and non-Linux) has be 16469updated to 2003. 16470 16471Code and Data Size: Current core subsystem library sizes are shown 16472below. These are the code and data sizes for the acpica.lib 16473produced by the Microsoft Visual C++ 6.0 compiler, and these 16474values do not include any ACPI driver or OSPM code. The debug 16475version of the code includes the debug output trace mechanism and 16476has a much larger code and data size. Note that these values will 16477vary depending on the efficiency of the compiler and the compiler 16478options used during generation. 16479 16480 Previous Release 16481 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16482 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16483 Current Release: 16484 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16485 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16486 16487 164882) Linux 16489 16490Fixed an oops on module insertion/removal (Matthew Tippett) 16491 16492(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 16493 16494(2.5) Replace pr_debug (Randy Dunlap) 16495 16496(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 16497 16498(Both) Eliminate spawning of thread from timer callback, in favor 16499of schedule_work() 16500 16501(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 16502 16503(Both) Added define for Fixed Function HW region (Matthew Wilcox) 16504 16505(Both) Add missing statics to button.c (Pavel Machek) 16506 16507Several changes have been made to the source code translation 16508utility that generates the Linux Code in order to make the code 16509more "Linux-like": 16510 16511All typedefs on structs and unions have been removed in keeping 16512with the Linux coding style. 16513 16514Removed the non-Linux SourceSafe module revision number from each 16515module header. 16516 16517Completed major overhaul of symbols to be lowercase for linux. 16518Doubled the number of symbols that are lowercase. 16519 16520Fixed a problem where identifiers within procedure headers and 16521within quotes were not fully lower cased (they were left with a 16522starting capital.) 16523 16524Some C macros whose only purpose is to allow the generation of 16- 16525bit code are now completely removed in the Linux code, increasing 16526readability and maintainability. 16527 16528---------------------------------------- 16529 1653012 December 2002. Summary of changes for version 20021212. 16531 16532 165331) ACPI CA Core Subsystem: 16534 16535Fixed a problem where the creation of a zero-length AML Buffer 16536would cause a fault. 16537 16538Fixed a problem where a Buffer object that pointed to a static AML 16539buffer (in an ACPI table) could inadvertently be deleted, causing 16540memory corruption. 16541 16542Fixed a problem where a user buffer (passed in to the external 16543ACPI CA interfaces) could be overwritten if the buffer was too 16544small to complete the operation, causing memory corruption. 16545 16546Fixed a problem in the Buffer-to-String conversion code where a 16547string of length one was always returned, regardless of the size 16548of the input Buffer object. 16549 16550Removed the NATIVE_CHAR data type across the entire source due to 16551lack of need and lack of consistent use. 16552 16553Code and Data Size: Current core subsystem library sizes are shown 16554below. These are the code and data sizes for the acpica.lib 16555produced by the Microsoft Visual C++ 6.0 compiler, and these 16556values do not include any ACPI driver or OSPM code. The debug 16557version of the code includes the debug output trace mechanism and 16558has a much larger code and data size. Note that these values will 16559vary depending on the efficiency of the compiler and the compiler 16560options used during generation. 16561 16562 Previous Release 16563 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 16564 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 16565 Current Release: 16566 Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 16567 Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 16568 16569 16570---------------------------------------- 1657105 December 2002. Summary of changes for version 20021205. 16572 165731) ACPI CA Core Subsystem: 16574 16575Fixed a problem where a store to a String or Buffer object could 16576cause corruption of the DSDT if the object type being stored was 16577the same as the target object type and the length of the object 16578being stored was equal to or smaller than the original (existing) 16579target object. This was seen to cause corruption of battery _BIF 16580buffers if the _BIF method modified the buffer on the fly. 16581 16582Fixed a problem where an internal error was generated if a control 16583method invocation was used in an OperationRegion, Buffer, or 16584Package declaration. This was caused by the deferred parsing of 16585the control method and thus the deferred creation of the internal 16586method object. The solution to this problem was to create the 16587internal method object at the moment the method is encountered in 16588the first pass - so that subsequent references to the method will 16589able to obtain the required parameter count and thus properly 16590parse the method invocation. This problem presented itself as an 16591AE_AML_INTERNAL during the pass 1 parse phase during table load. 16592 16593Fixed a problem where the internal String object copy routine did 16594not always allocate sufficient memory for the target String object 16595and caused memory corruption. This problem was seen to cause 16596"Allocation already present in list!" errors as memory allocation 16597became corrupted. 16598 16599Implemented a new function for the evaluation of namespace objects 16600that allows the specification of the allowable return object 16601types. This simplifies a lot of code that checks for a return 16602object of one or more specific objects returned from the 16603evaluation (such as _STA, etc.) This may become and external 16604function if it would be useful to ACPI-related drivers. 16605 16606Completed another round of prefixing #defines with "ACPI_" for 16607clarity. 16608 16609Completed additional code restructuring to allow more modular 16610linking for iASL compiler and AcpiExec. Several files were split 16611creating new files. New files: nsparse.c dsinit.c evgpe.c 16612 16613Implemented an abort mechanism to terminate an executing control 16614method via the AML debugger. This feature is useful for debugging 16615control methods that depend (wait) for specific hardware 16616responses. 16617 16618Code and Data Size: Current core subsystem library sizes are shown 16619below. These are the code and data sizes for the acpica.lib 16620produced by the Microsoft Visual C++ 6.0 compiler, and these 16621values do not include any ACPI driver or OSPM code. The debug 16622version of the code includes the debug output trace mechanism and 16623has a much larger code and data size. Note that these values will 16624vary depending on the efficiency of the compiler and the compiler 16625options used during generation. 16626 16627 Previous Release 16628 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16629 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 16630 Current Release: 16631 Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 16632 Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 16633 16634 166352) iASL Compiler/Disassembler 16636 16637Fixed a compiler code generation problem for "Interrupt" Resource 16638Descriptors. If specified in the ASL, the optional "Resource 16639Source Index" and "Resource Source" fields were not inserted into 16640the correct location within the AML resource descriptor, creating 16641an invalid descriptor. 16642 16643Fixed a disassembler problem for "Interrupt" resource descriptors. 16644The optional "Resource Source Index" and "Resource Source" fields 16645were ignored. 16646 16647 16648---------------------------------------- 1664922 November 2002. Summary of changes for version 20021122. 16650 16651 166521) ACPI CA Core Subsystem: 16653 16654Fixed a reported problem where an object stored to a Method Local 16655or Arg was not copied to a new object during the store - the 16656object pointer was simply copied to the Local/Arg. This caused 16657all subsequent operations on the Local/Arg to also affect the 16658original source of the store operation. 16659 16660Fixed a problem where a store operation to a Method Local or Arg 16661was not completed properly if the Local/Arg contained a reference 16662(from RefOf) to a named field. The general-purpose store-to- 16663namespace-node code is now used so that this case is handled 16664automatically. 16665 16666Fixed a problem where the internal object copy routine would cause 16667a protection fault if the object being copied was a Package and 16668contained either 1) a NULL package element or 2) a nested sub- 16669package. 16670 16671Fixed a problem with the GPE initialization that resulted from an 16672ambiguity in the ACPI specification. One section of the 16673specification states that both the address and length of the GPE 16674block must be zero if the block is not supported. Another section 16675implies that only the address need be zero if the block is not 16676supported. The code has been changed so that both the address and 16677the length must be non-zero to indicate a valid GPE block (i.e., 16678if either the address or the length is zero, the GPE block is 16679invalid.) 16680 16681Code and Data Size: Current core subsystem library sizes are shown 16682below. These are the code and data sizes for the acpica.lib 16683produced by the Microsoft Visual C++ 6.0 compiler, and these 16684values do not include any ACPI driver or OSPM code. The debug 16685version of the code includes the debug output trace mechanism and 16686has a much larger code and data size. Note that these values will 16687vary depending on the efficiency of the compiler and the compiler 16688options used during generation. 16689 16690 Previous Release 16691 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 16692 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 16693 Current Release: 16694 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16695 Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 16696 16697 166982) Linux 16699 16700Cleaned up EC driver. Exported an external EC read/write 16701interface. By going through this, other drivers (most notably 16702sonypi) will be able to serialize access to the EC. 16703 16704 167053) iASL Compiler/Disassembler 16706 16707Implemented support to optionally generate include files for both 16708ASM and C (the -i switch). This simplifies BIOS development by 16709automatically creating include files that contain external 16710declarations for the symbols that are created within the 16711 16712(optionally generated) ASM and C AML source files. 16713 16714 16715---------------------------------------- 1671615 November 2002. Summary of changes for version 20021115. 16717 167181) ACPI CA Core Subsystem: 16719 16720Fixed a memory leak problem where an error during resolution of 16721 16722method arguments during a method invocation from another method 16723failed to cleanup properly by deleting all successfully resolved 16724argument objects. 16725 16726Fixed a problem where the target of the Index() operator was not 16727correctly constructed if the source object was a package. This 16728problem has not been detected because the use of a target operand 16729with Index() is very rare. 16730 16731Fixed a problem with the Index() operator where an attempt was 16732made to delete the operand objects twice. 16733 16734Fixed a problem where an attempt was made to delete an operand 16735twice during execution of the CondRefOf() operator if the target 16736did not exist. 16737 16738Implemented the first of perhaps several internal create object 16739functions that create and initialize a specific object type. This 16740consolidates duplicated code wherever the object is created, thus 16741shrinking the size of the subsystem. 16742 16743Implemented improved debug/error messages for errors that occur 16744during nested method invocations. All executing method pathnames 16745are displayed (with the error) as the call stack is unwound - thus 16746simplifying debug. 16747 16748Fixed a problem introduced in the 10/02 release that caused 16749premature deletion of a buffer object if a buffer was used as an 16750ASL operand where an integer operand is required (Thus causing an 16751implicit object conversion from Buffer to Integer.) The change in 16752the 10/02 release was attempting to fix a memory leak (albeit 16753incorrectly.) 16754 16755Code and Data Size: Current core subsystem library sizes are shown 16756below. These are the code and data sizes for the acpica.lib 16757produced by the Microsoft Visual C++ 6.0 compiler, and these 16758values do not include any ACPI driver or OSPM code. The debug 16759version of the code includes the debug output trace mechanism and 16760has a much larger code and data size. Note that these values will 16761vary depending on the efficiency of the compiler and the compiler 16762options used during generation. 16763 16764 Previous Release 16765 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16766 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16767 Current Release: 16768 Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 16769 Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 16770 16771 167722) Linux 16773 16774Changed the implementation of the ACPI semaphores to use down() 16775instead of down_interruptable(). It is important that the 16776execution of ACPI control methods not be interrupted by signals. 16777Methods must run to completion, or the system may be left in an 16778unknown/unstable state. 16779 16780Fixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 16781(Shawn Starr) 16782 16783 167843) iASL Compiler/Disassembler 16785 16786 16787Changed the default location of output files. All output files 16788are now placed in the current directory by default instead of in 16789the directory of the source file. This change may affect some 16790existing makefiles, but it brings the behavior of the compiler in 16791line with other similar tools. The location of the output files 16792can be overridden with the -p command line switch. 16793 16794 16795---------------------------------------- 1679611 November 2002. Summary of changes for version 20021111. 16797 16798 167990) ACPI Specification 2.0B is released and is now available at: 16800http://www.acpi.info/index.html 16801 16802 168031) ACPI CA Core Subsystem: 16804 16805Implemented support for the ACPI 2.0 SMBus Operation Regions. 16806This includes the early detection and handoff of the request to 16807the SMBus region handler (avoiding all of the complex field 16808support code), and support for the bidirectional return packet 16809from an SMBus write operation. This paves the way for the 16810development of SMBus drivers in each host operating system. 16811 16812Fixed a problem where the semaphore WAIT_FOREVER constant was 16813defined as 32 bits, but must be 16 bits according to the ACPI 16814specification. This had the side effect of causing ASL 16815Mutex/Event timeouts even though the ASL code requested a wait 16816forever. Changed all internal references to the ACPI timeout 16817parameter to 16 bits to prevent future problems. Changed the name 16818of WAIT_FOREVER to ACPI_WAIT_FOREVER. 16819 16820Code and Data Size: Current core subsystem library sizes are shown 16821below. These are the code and data sizes for the acpica.lib 16822produced by the Microsoft Visual C++ 6.0 compiler, and these 16823values do not include any ACPI driver or OSPM code. The debug 16824version of the code includes the debug output trace mechanism and 16825has a much larger code and data size. Note that these values will 16826vary depending on the efficiency of the compiler and the compiler 16827options used during generation. 16828 16829 Previous Release 16830 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16831 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16832 Current Release: 16833 Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 16834 Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 16835 16836 168372) Linux 16838 16839Module loading/unloading fixes (John Cagle) 16840 16841 168423) iASL Compiler/Disassembler 16843 16844Added support for the SMBBlockProcessCall keyword (ACPI 2.0) 16845 16846Implemented support for the disassembly of all SMBus protocol 16847keywords (SMBQuick, SMBWord, etc.) 16848 16849---------------------------------------- 1685001 November 2002. Summary of changes for version 20021101. 16851 16852 168531) ACPI CA Core Subsystem: 16854 16855Fixed a problem where platforms that have a GPE1 block but no GPE0 16856block were not handled correctly. This resulted in a "GPE 16857overlap" error message. GPE0 is no longer required. 16858 16859Removed code added in the previous release that inserted nodes 16860into the namespace in alphabetical order. This caused some side- 16861effects on various machines. The root cause of the problem is 16862still under investigation since in theory, the internal ordering 16863of the namespace nodes should not matter. 16864 16865 16866Enhanced error reporting for the case where a named object is not 16867found during control method execution. The full ACPI namepath 16868(name reference) of the object that was not found is displayed in 16869this case. 16870 16871Note: as a result of the overhaul of the namespace object types in 16872the previous release, the namespace nodes for the predefined 16873scopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 16874instead of ACPI_TYPE_ANY. This simplifies the namespace 16875management code but may affect code that walks the namespace tree 16876looking for specific object types. 16877 16878Code and Data Size: Current core subsystem library sizes are shown 16879below. These are the code and data sizes for the acpica.lib 16880produced by the Microsoft Visual C++ 6.0 compiler, and these 16881values do not include any ACPI driver or OSPM code. The debug 16882version of the code includes the debug output trace mechanism and 16883has a much larger code and data size. Note that these values will 16884vary depending on the efficiency of the compiler and the compiler 16885options used during generation. 16886 16887 Previous Release 16888 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 16889 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 16890 Current Release: 16891 Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 16892 Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 16893 16894 168952) Linux 16896 16897Fixed a problem introduced in the previous release where the 16898Processor and Thermal objects were not recognized and installed in 16899/proc. This was related to the scope type change described above. 16900 16901 169023) iASL Compiler/Disassembler 16903 16904Implemented the -g option to get all of the required ACPI tables 16905from the registry and save them to files (Windows version of the 16906compiler only.) The required tables are the FADT, FACS, and DSDT. 16907 16908Added ACPI table checksum validation during table disassembly in 16909order to catch corrupted tables. 16910 16911 16912---------------------------------------- 1691322 October 2002. Summary of changes for version 20021022. 16914 169151) ACPI CA Core Subsystem: 16916 16917Implemented a restriction on the Scope operator that the target 16918must already exist in the namespace at the time the operator is 16919encountered (during table load or method execution). In other 16920words, forward references are not allowed and Scope() cannot 16921create a new object. This changes the previous behavior where the 16922interpreter would create the name if not found. This new behavior 16923correctly enables the search-to-root algorithm during namespace 16924lookup of the target name. Because of this upsearch, this fixes 16925the known Compaq _SB_.OKEC problem and makes both the AML 16926interpreter and iASL compiler compatible with other ACPI 16927implementations. 16928 16929Completed a major overhaul of the internal ACPI object types for 16930the ACPI Namespace and the associated operand objects. Many of 16931these types had become obsolete with the introduction of the two- 16932pass namespace load. This cleanup simplifies the code and makes 16933the entire namespace load mechanism much clearer and easier to 16934understand. 16935 16936Improved debug output for tracking scope opening/closing to help 16937diagnose scoping issues. The old scope name as well as the new 16938scope name are displayed. Also improved error messages for 16939problems with ASL Mutex objects and error messages for GPE 16940problems. 16941 16942Cleaned up the namespace dump code, removed obsolete code. 16943 16944All string output (for all namespace/object dumps) now uses the 16945common ACPI string output procedure which handles escapes properly 16946and does not emit non-printable characters. 16947 16948Fixed some issues with constants in the 64-bit version of the 16949local C library (utclib.c) 16950 16951 169522) Linux 16953 16954EC Driver: No longer attempts to acquire the Global Lock at 16955interrupt level. 16956 16957 169583) iASL Compiler/Disassembler 16959 16960Implemented ACPI 2.0B grammar change that disallows all Type 1 and 169612 opcodes outside of a control method. This means that the 16962"executable" operators (versus the "namespace" operators) cannot 16963be used at the table level; they can only be used within a control 16964method. 16965 16966Implemented the restriction on the Scope() operator where the 16967target must already exist in the namespace at the time the 16968operator is encountered (during ASL compilation). In other words, 16969forward references are not allowed and Scope() cannot create a new 16970object. This makes the iASL compiler compatible with other ACPI 16971implementations and makes the Scope() implementation adhere to the 16972ACPI specification. 16973 16974Fixed a problem where namepath optimization for the Alias operator 16975was optimizing the wrong path (of the two namepaths.) This caused 16976a "Missing alias link" error message. 16977 16978Fixed a problem where an "unknown reserved name" warning could be 16979incorrectly generated for names like "_SB" when the trailing 16980underscore is not used in the original ASL. 16981 16982Fixed a problem where the reserved name check did not handle 16983NamePaths with multiple NameSegs correctly. The first nameseg of 16984the NamePath was examined instead of the last NameSeg. 16985 16986 16987---------------------------------------- 16988 1698902 October 2002. Summary of changes for this release. 16990 16991 169921) ACPI CA Core Subsystem version 20021002: 16993 16994Fixed a problem where a store/copy of a string to an existing 16995string did not always set the string length properly in the String 16996object. 16997 16998Fixed a reported problem with the ToString operator where the 16999behavior was identical to the ToHexString operator instead of just 17000simply converting a raw buffer to a string data type. 17001 17002Fixed a problem where CopyObject and the other "explicit" 17003conversion operators were not updating the internal namespace node 17004type as part of the store operation. 17005 17006Fixed a memory leak during implicit source operand conversion 17007where the original object was not deleted if it was converted to a 17008new object of a different type. 17009 17010Enhanced error messages for all problems associated with namespace 17011lookups. Common procedure generates and prints the lookup name as 17012well as the formatted status. 17013 17014Completed implementation of a new design for the Alias support 17015within the namespace. The existing design did not handle the case 17016where a new object was assigned to one of the two names due to the 17017use of an explicit conversion operator, resulting in the two names 17018pointing to two different objects. The new design simply points 17019the Alias name to the original name node - not to the object. 17020This results in a level of indirection that must be handled in the 17021name resolution mechanism. 17022 17023Code and Data Size: Current core subsystem library sizes are shown 17024below. These are the code and data sizes for the acpica.lib 17025produced by the Microsoft Visual C++ 6.0 compiler, and these 17026values do not include any ACPI driver or OSPM code. The debug 17027version of the code includes the debug output trace mechanism and 17028has a larger code and data size. Note that these values will vary 17029depending on the efficiency of the compiler and the compiler 17030options used during generation. 17031 17032 Previous Release 17033 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 17034 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 17035 Current Release: 17036 Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 17037 Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 17038 17039 170402) Linux 17041 17042Initialize thermal driver's timer before it is used. (Knut 17043Neumann) 17044 17045Allow handling negative celsius values. (Kochi Takayoshi) 17046 17047Fix thermal management and make trip points. R/W (Pavel Machek) 17048 17049Fix /proc/acpi/sleep. (P. Christeas) 17050 17051IA64 fixes. (David Mosberger) 17052 17053Fix reversed logic in blacklist code. (Sergio Monteiro Basto) 17054 17055Replace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 17056Brodowski) 17057 17058 170593) iASL Compiler/Disassembler 17060 17061Clarified some warning/error messages. 17062 17063 17064---------------------------------------- 1706518 September 2002. Summary of changes for this release. 17066 17067 170681) ACPI CA Core Subsystem version 20020918: 17069 17070Fixed a reported problem with reference chaining (via the Index() 17071and RefOf() operators) in the ObjectType() and SizeOf() operators. 17072The definition of these operators includes the dereferencing of 17073all chained references to return information on the base object. 17074 17075Fixed a problem with stores to indexed package elements - the 17076existing code would not complete the store if an "implicit 17077conversion" was not performed. In other words, if the existing 17078object (package element) was to be replaced completely, the code 17079didn't handle this case. 17080 17081Relaxed typechecking on the ASL "Scope" operator to allow the 17082target name to refer to an object of type Integer, String, or 17083Buffer, in addition to the scoping object types (Device, 17084predefined Scopes, Processor, PowerResource, and ThermalZone.) 17085This allows existing AML code that has workarounds for a bug in 17086Windows to function properly. A warning is issued, however. This 17087affects both the AML interpreter and the iASL compiler. Below is 17088an example of this type of ASL code: 17089 17090 Name(DEB,0x00) 17091 Scope(DEB) 17092 { 17093 17094Fixed some reported problems with 64-bit integer support in the 17095local implementation of C library functions (clib.c) 17096 17097 170982) Linux 17099 17100Use ACPI fix map region instead of IOAPIC region, since it is 17101undefined in non-SMP. 17102 17103Ensure that the SCI has the proper polarity and trigger, even on 17104systems that do not have an interrupt override entry in the MADT. 17105 171062.5 big driver reorganization (Pat Mochel) 17107 17108Use early table mapping code from acpitable.c (Andi Kleen) 17109 17110New blacklist entries (Andi Kleen) 17111 17112Blacklist improvements. Split blacklist code out into a separate 17113file. Move checking the blacklist to very early. Previously, we 17114would use ACPI tables, and then halfway through init, check the 17115blacklist -- too late. Now, it's early enough to completely fall- 17116back to non-ACPI. 17117 17118 171193) iASL Compiler/Disassembler version 20020918: 17120 17121Fixed a problem where the typechecking code didn't know that an 17122alias could point to a method. In other words, aliases were not 17123being dereferenced during typechecking. 17124 17125 17126---------------------------------------- 1712729 August 2002. Summary of changes for this release. 17128 171291) ACPI CA Core Subsystem Version 20020829: 17130 17131If the target of a Scope() operator already exists, it must be an 17132object type that actually opens a scope -- such as a Device, 17133Method, Scope, etc. This is a fatal runtime error. Similar error 17134check has been added to the iASL compiler also. 17135 17136Tightened up the namespace load to disallow multiple names in the 17137same scope. This previously was allowed if both objects were of 17138the same type. (i.e., a lookup was the same as entering a new 17139name). 17140 17141 171422) Linux 17143 17144Ensure that the ACPI interrupt has the proper trigger and 17145polarity. 17146 17147local_irq_disable is extraneous. (Matthew Wilcox) 17148 17149Make "acpi=off" actually do what it says, and not use the ACPI 17150interpreter *or* the tables. 17151 17152Added arch-neutral support for parsing SLIT and SRAT tables (Kochi 17153Takayoshi) 17154 17155 171563) iASL Compiler/Disassembler Version 20020829: 17157 17158Implemented namepath optimization for name declarations. For 17159example, a declaration like "Method (\_SB_.ABCD)" would get 17160optimized to "Method (ABCD)" if the declaration is within the 17161\_SB_ scope. This optimization is in addition to the named 17162reference path optimization first released in the previous 17163version. This would seem to complete all possible optimizations 17164for namepaths within the ASL/AML. 17165 17166If the target of a Scope() operator already exists, it must be an 17167object type that actually opens a scope -- such as a Device, 17168Method, Scope, etc. 17169 17170Implemented a check and warning for unreachable code in the same 17171block below a Return() statement. 17172 17173Fixed a problem where the listing file was not generated if the 17174compiler aborted if the maximum error count was exceeded (200). 17175 17176Fixed a problem where the typechecking of method return values was 17177broken. This includes the check for a return value when the 17178method is invoked as a TermArg (a return value is expected.) 17179 17180Fixed a reported problem where EOF conditions during a quoted 17181string or comment caused a fault. 17182 17183 17184---------------------------------------- 1718515 August 2002. Summary of changes for this release. 17186 171871) ACPI CA Core Subsystem Version 20020815: 17188 17189Fixed a reported problem where a Store to a method argument that 17190contains a reference did not perform the indirect store correctly. 17191This problem was created during the conversion to the new 17192reference object model - the indirect store to a method argument 17193code was not updated to reflect the new model. 17194 17195Reworked the ACPI mode change code to better conform to ACPI 2.0, 17196handle corner cases, and improve code legibility (Kochi Takayoshi) 17197 17198Fixed a problem with the pathname parsing for the carat (^) 17199prefix. The heavy use of the carat operator by the new namepath 17200optimization in the iASL compiler uncovered a problem with the AML 17201interpreter handling of this prefix. In the case where one or 17202more carats precede a single nameseg, the nameseg was treated as 17203standalone and the search rule (to root) was inadvertently 17204applied. This could cause both the iASL compiler and the 17205interpreter to find the wrong object or to miss the error that 17206should occur if the object does not exist at that exact pathname. 17207 17208Found and fixed the problem where the HP Pavilion DSDT would not 17209load. This was a relatively minor tweak to the table loading code 17210(a problem caused by the unexpected encounter with a method 17211invocation not within a control method), but it does not solve the 17212overall issue of the execution of AML code at the table level. 17213This investigation is still ongoing. 17214 17215Code and Data Size: Current core subsystem library sizes are shown 17216below. These are the code and data sizes for the acpica.lib 17217produced by the Microsoft Visual C++ 6.0 compiler, and these 17218values do not include any ACPI driver or OSPM code. The debug 17219version of the code includes the debug output trace mechanism and 17220has a larger code and data size. Note that these values will vary 17221depending on the efficiency of the compiler and the compiler 17222options used during generation. 17223 17224 Previous Release 17225 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 17226 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 17227 Current Release: 17228 Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 17229 Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 17230 17231 172322) Linux 17233 17234Remove redundant slab.h include (Brad Hards) 17235 17236Fix several bugs in thermal.c (Herbert Nachtnebel) 17237 17238Make CONFIG_ACPI_BOOT work properly (Pavel Machek) 17239 17240Change acpi_system_suspend to use updated irq functions (Pavel 17241Machek) 17242 17243Export acpi_get_firmware_table (Matthew Wilcox) 17244 17245Use proper root proc entry for ACPI (Kochi Takayoshi) 17246 17247Fix early-boot table parsing (Bjorn Helgaas) 17248 17249 172503) iASL Compiler/Disassembler 17251 17252Reworked the compiler options to make them more consistent and to 17253use two-letter options where appropriate. We were running out of 17254sensible letters. This may break some makefiles, so check the 17255current options list by invoking the compiler with no parameters. 17256 17257Completed the design and implementation of the ASL namepath 17258optimization option for the compiler. This option optimizes all 17259references to named objects to the shortest possible path. The 17260first attempt tries to utilize a single nameseg (4 characters) and 17261the "search-to-root" algorithm used by the interpreter. If that 17262cannot be used (because either the name is not in the search path 17263or there is a conflict with another object with the same name), 17264the pathname is optimized using the carat prefix (usually a 17265shorter string than specifying the entire path from the root.) 17266 17267Implemented support to obtain the DSDT from the Windows registry 17268(when the disassembly option is specified with no input file). 17269Added this code as the implementation for AcpiOsTableOverride in 17270the Windows OSL. Migrated the 16-bit code (used in the AcpiDump 17271utility) to scan memory for the DSDT to the AcpiOsTableOverride 17272function in the DOS OSL to make the disassembler truly OS 17273independent. 17274 17275Implemented a new option to disassemble and compile in one step. 17276When used without an input filename, this option will grab the 17277DSDT from the local machine, disassemble it, and compile it in one 17278step. 17279 17280Added a warning message for invalid escapes (a backslash followed 17281by any character other than the allowable escapes). This catches 17282the quoted string error "\_SB_" (which should be "\\_SB_" ). 17283 17284Also, there are numerous instances in the ACPI specification where 17285this error occurs. 17286 17287Added a compiler option to disable all optimizations. This is 17288basically the "compatibility mode" because by using this option, 17289the AML code will come out exactly the same as other ASL 17290compilers. 17291 17292Added error messages for incorrectly ordered dependent resource 17293functions. This includes: missing EndDependentFn macro at end of 17294dependent resource list, nested dependent function macros (both 17295start and end), and missing StartDependentFn macro. These are 17296common errors that should be caught at compile time. 17297 17298Implemented _OSI support for the disassembler and compiler. _OSI 17299must be included in the namespace for proper disassembly (because 17300the disassembler must know the number of arguments.) 17301 17302Added an "optimization" message type that is optional (off by 17303default). This message is used for all optimizations - including 17304constant folding, integer optimization, and namepath optimization. 17305 17306---------------------------------------- 1730725 July 2002. Summary of changes for this release. 17308 17309 173101) ACPI CA Core Subsystem Version 20020725: 17311 17312The AML Disassembler has been enhanced to produce compilable ASL 17313code and has been integrated into the iASL compiler (see below) as 17314well as the single-step disassembly for the AML debugger and the 17315disassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 17316resource templates and macros are fully supported. The 17317disassembler has been tested on over 30 different AML files, 17318producing identical AML when the resulting disassembled ASL file 17319is recompiled with the same ASL compiler. 17320 17321Modified the Resource Manager to allow zero interrupts and zero 17322dma channels during the GetCurrentResources call. This was 17323causing problems on some platforms. 17324 17325Added the AcpiOsRedirectOutput interface to the OSL to simplify 17326output redirection for the AcpiOsPrintf and AcpiOsVprintf 17327interfaces. 17328 17329Code and Data Size: Current core subsystem library sizes are shown 17330below. These are the code and data sizes for the acpica.lib 17331produced by the Microsoft Visual C++ 6.0 compiler, and these 17332values do not include any ACPI driver or OSPM code. The debug 17333version of the code includes the debug output trace mechanism and 17334has a larger code and data size. Note that these values will vary 17335depending on the efficiency of the compiler and the compiler 17336options used during generation. 17337 17338 Previous Release 17339 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 17340 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 17341 Current Release: 17342 Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 17343 Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 17344 17345 173462) Linux 17347 17348Fixed a panic in the EC driver (Dominik Brodowski) 17349 17350Implemented checksum of the R/XSDT itself during Linux table scan 17351(Richard Schaal) 17352 17353 173543) iASL compiler 17355 17356The AML disassembler is integrated into the compiler. The "-d" 17357option invokes the disassembler to completely disassemble an 17358input AML file, producing as output a text ASL file with the 17359extension ".dsl" (to avoid name collisions with existing .asl 17360source files.) A future enhancement will allow the disassembler 17361to obtain the BIOS DSDT from the registry under Windows. 17362 17363Fixed a problem with the VendorShort and VendorLong resource 17364descriptors where an invalid AML sequence was created. 17365 17366Implemented a fix for BufferData term in the ASL parser. It was 17367inadvertently defined twice, allowing invalid syntax to pass and 17368causing reduction conflicts. 17369 17370Fixed a problem where the Ones opcode could get converted to a 17371value of zero if "Ones" was used where a byte, word or dword value 17372was expected. The 64-bit value is now truncated to the correct 17373size with the correct value. 17374 17375 17376 17377---------------------------------------- 1737802 July 2002. Summary of changes for this release. 17379 17380 173811) ACPI CA Core Subsystem Version 20020702: 17382 17383The Table Manager code has been restructured to add several new 17384features. Tables that are not required by the core subsystem 17385(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 17386validated in any way and are returned from AcpiGetFirmwareTable if 17387requested. The AcpiOsTableOverride interface is now called for 17388each table that is loaded by the subsystem in order to allow the 17389host to override any table it chooses. Previously, only the DSDT 17390could be overridden. Added one new files, tbrsdt.c and 17391tbgetall.c. 17392 17393Fixed a problem with the conversion of internal package objects to 17394external objects (when a package is returned from a control 17395method.) The return buffer length was set to zero instead of the 17396proper length of the package object. 17397 17398Fixed a reported problem with the use of the RefOf and DeRefOf 17399operators when passing reference arguments to control methods. A 17400new type of Reference object is used internally for references 17401produced by the RefOf operator. 17402 17403Added additional error messages in the Resource Manager to explain 17404AE_BAD_DATA errors when they occur during resource parsing. 17405 17406Split the AcpiEnableSubsystem into two primitives to enable a 17407finer granularity initialization sequence. These two calls should 17408be called in this order: AcpiEnableSubsystem (flags), 17409AcpiInitializeObjects (flags). The flags parameter remains the 17410same. 17411 17412 174132) Linux 17414 17415Updated the ACPI utilities module to understand the new style of 17416fully resolved package objects that are now returned from the core 17417subsystem. This eliminates errors of the form: 17418 17419 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 17420 acpi_utils-0430 [145] acpi_evaluate_reference: 17421 Invalid element in package (not a device reference) 17422 17423The method evaluation utility uses the new buffer allocation 17424scheme instead of calling AcpiEvaluate Object twice. 17425 17426Added support for ECDT. This allows the use of the Embedded 17427 17428Controller before the namespace has been fully initialized, which 17429is necessary for ACPI 2.0 support, and for some laptops to 17430initialize properly. (Laptops using ECDT are still rare, so only 17431limited testing was performed of the added functionality.) 17432 17433Fixed memory leaks in the EC driver. 17434 17435Eliminated a brittle code structure in acpi_bus_init(). 17436 17437Eliminated the acpi_evaluate() helper function in utils.c. It is 17438no longer needed since acpi_evaluate_object can optionally 17439allocate memory for the return object. 17440 17441Implemented fix for keyboard hang when getting battery readings on 17442some systems (Stephen White) 17443 17444PCI IRQ routing update (Dominik Brodowski) 17445 17446Fix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 17447support 17448 17449---------------------------------------- 1745011 June 2002. Summary of changes for this release. 17451 17452 174531) ACPI CA Core Subsystem Version 20020611: 17454 17455Fixed a reported problem where constants such as Zero and One 17456appearing within _PRT packages were not handled correctly within 17457the resource manager code. Originally reported against the ASL 17458compiler because the code generator now optimizes integers to 17459their minimal AML representation (i.e. AML constants if possible.) 17460The _PRT code now handles all AML constant opcodes correctly 17461(Zero, One, Ones, Revision). 17462 17463Fixed a problem with the Concatenate operator in the AML 17464interpreter where a buffer result object was incorrectly marked as 17465not fully evaluated, causing a run-time error of AE_AML_INTERNAL. 17466 17467All package sub-objects are now fully resolved before they are 17468returned from the external ACPI interfaces. This means that name 17469strings are resolved to object handles, and constant operators 17470(Zero, One, Ones, Revision) are resolved to Integers. 17471 17472Implemented immediate resolution of the AML Constant opcodes 17473(Zero, One, Ones, Revision) to Integer objects upon detection 17474within the AML stream. This has simplified and reduced the 17475generated code size of the subsystem by eliminating about 10 17476switch statements for these constants (which previously were 17477contained in Reference objects.) The complicating issues are that 17478the Zero opcode is used as a "placeholder" for unspecified 17479optional target operands and stores to constants are defined to be 17480no-ops. 17481 17482Code and Data Size: Current core subsystem library sizes are shown 17483below. These are the code and data sizes for the acpica.lib 17484produced by the Microsoft Visual C++ 6.0 compiler, and these 17485values do not include any ACPI driver or OSPM code. The debug 17486version of the code includes the debug output trace mechanism and 17487has a larger code and data size. Note that these values will vary 17488depending on the efficiency of the compiler and the compiler 17489options used during generation. 17490 17491 Previous Release 17492 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 17493 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 17494 Current Release: 17495 Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 17496 Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 17497 17498 174992) Linux 17500 17501 17502Added preliminary support for obtaining _TRA data for PCI root 17503bridges (Bjorn Helgaas). 17504 17505 175063) iASL Compiler Version X2046: 17507 17508Fixed a problem where the "_DDN" reserved name was defined to be a 17509control method with one argument. There are no arguments, and 17510_DDN does not have to be a control method. 17511 17512Fixed a problem with the Linux version of the compiler where the 17513source lines printed with error messages were the wrong lines. 17514This turned out to be the "LF versus CR/LF" difference between 17515Windows and Unix. This appears to be the longstanding issue 17516concerning listing output and error messages. 17517 17518Fixed a problem with the Linux version of compiler where opcode 17519names within error messages were wrong. This was caused by a 17520slight difference in the output of the Flex tool on Linux versus 17521Windows. 17522 17523Fixed a problem with the Linux compiler where the hex output files 17524contained some garbage data caused by an internal buffer overrun. 17525 17526 17527---------------------------------------- 1752817 May 2002. Summary of changes for this release. 17529 17530 175311) ACPI CA Core Subsystem Version 20020517: 17532 17533Implemented a workaround to an BIOS bug discovered on the HP 17534OmniBook where the FADT revision number and the table size are 17535inconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 17536behavior is to fallback to using only the ACPI 1.0 fields of the 17537FADT if the table is too small to be a ACPI 2.0 table as claimed 17538by the revision number. Although this is a BIOS bug, this is a 17539case where the workaround is simple enough and with no side 17540effects, so it seemed prudent to add it. A warning message is 17541issued, however. 17542 17543Implemented minimum size checks for the fixed-length ACPI tables - 17544- the FADT and FACS, as well as consistency checks between the 17545revision number and the table size. 17546 17547Fixed a reported problem in the table override support where the 17548new table pointer was incorrectly treated as a physical address 17549instead of a logical address. 17550 17551Eliminated the use of the AE_AML_ERROR exception and replaced it 17552with more descriptive codes. 17553 17554Fixed a problem where an exception would occur if an ASL Field was 17555defined with no named Field Units underneath it (used by some 17556index fields). 17557 17558Code and Data Size: Current core subsystem library sizes are shown 17559below. These are the code and data sizes for the acpica.lib 17560produced by the Microsoft Visual C++ 6.0 compiler, and these 17561values do not include any ACPI driver or OSPM code. The debug 17562version of the code includes the debug output trace mechanism and 17563has a larger code and data size. Note that these values will vary 17564depending on the efficiency of the compiler and the compiler 17565options used during generation. 17566 17567 Previous Release 17568 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 17569 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 17570 Current Release: 17571 Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 17572 Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 17573 17574 17575 175762) Linux 17577 17578Much work done on ACPI init (MADT and PCI IRQ routing support). 17579(Paul D. and Dominik Brodowski) 17580 17581Fix PCI IRQ-related panic on boot (Sam Revitch) 17582 17583Set BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 17584 17585Fix "MHz" typo (Dominik Brodowski) 17586 17587Fix RTC year 2000 issue (Dominik Brodowski) 17588 17589Preclude multiple button proc entries (Eric Brunet) 17590 17591Moved arch-specific code out of include/platform/aclinux.h 17592 175933) iASL Compiler Version X2044: 17594 17595Implemented error checking for the string used in the EISAID macro 17596(Usually used in the definition of the _HID object.) The code now 17597strictly enforces the PnP format - exactly 7 characters, 3 17598uppercase letters and 4 hex digits. 17599 17600If a raw string is used in the definition of the _HID object 17601(instead of the EISAID macro), the string must contain all 17602alphanumeric characters (e.g., "*PNP0011" is not allowed because 17603of the asterisk.) 17604 17605Implemented checking for invalid use of ACPI reserved names for 17606most of the name creation operators (Name, Device, Event, Mutex, 17607OperationRegion, PowerResource, Processor, and ThermalZone.) 17608Previously, this check was only performed for control methods. 17609 17610Implemented an additional check on the Name operator to emit an 17611error if a reserved name that must be implemented in ASL as a 17612control method is used. We know that a reserved name must be a 17613method if it is defined with input arguments. 17614 17615The warning emitted when a namespace object reference is not found 17616during the cross reference phase has been changed into an error. 17617The "External" directive should be used for names defined in other 17618modules. 17619 17620 176214) Tools and Utilities 17622 17623The 16-bit tools (adump16 and aexec16) have been regenerated and 17624tested. 17625 17626Fixed a problem with the output of both acpidump and adump16 where 17627the indentation of closing parentheses and brackets was not 17628 17629aligned properly with the parent block. 17630 17631 17632---------------------------------------- 1763303 May 2002. Summary of changes for this release. 17634 17635 176361) ACPI CA Core Subsystem Version 20020503: 17637 17638Added support a new OSL interface that allows the host operating 17639 17640system software to override the DSDT found in the firmware - 17641AcpiOsTableOverride. With this interface, the OSL can examine the 17642version of the firmware DSDT and replace it with a different one 17643if desired. 17644 17645Added new external interfaces for accessing ACPI registers from 17646device drivers and other system software - AcpiGetRegister and 17647AcpiSetRegister. This was simply an externalization of the 17648existing AcpiHwBitRegister interfaces. 17649 17650Fixed a regression introduced in the previous build where the 17651ASL/AML CreateField operator always returned an error, 17652"destination must be a NS Node". 17653 17654Extended the maximum time (before failure) to successfully enable 17655ACPI mode to 3 seconds. 17656 17657Code and Data Size: Current core subsystem library sizes are shown 17658below. These are the code and data sizes for the acpica.lib 17659produced by the Microsoft Visual C++ 6.0 compiler, and these 17660values do not include any ACPI driver or OSPM code. The debug 17661version of the code includes the debug output trace mechanism and 17662has a larger code and data size. Note that these values will vary 17663depending on the efficiency of the compiler and the compiler 17664options used during generation. 17665 17666 Previous Release 17667 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 17668 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 17669 Current Release: 17670 Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 17671 Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 17672 17673 176742) Linux 17675 17676Enhanced ACPI init code for SMP. We are now fully MPS and $PIR- 17677free. While 3 out of 4 of our in-house systems work fine, the last 17678one still hangs when testing the LAPIC timer. 17679 17680Renamed many files in 2.5 kernel release to omit "acpi_" from the 17681name. 17682 17683Added warning on boot for Presario 711FR. 17684 17685Sleep improvements (Pavel Machek) 17686 17687ACPI can now be built without CONFIG_PCI enabled. 17688 17689IA64: Fixed memory map functions (JI Lee) 17690 17691 176923) iASL Compiler Version X2043: 17693 17694Added support to allow the compiler to be integrated into the MS 17695VC++ development environment for one-button compilation of single 17696files or entire projects -- with error-to-source-line mapping. 17697 17698Implemented support for compile-time constant folding for the 17699Type3, Type4, and Type5 opcodes first defined in the ACPI 2.0 17700specification. This allows the ASL writer to use expressions 17701instead of Integer/Buffer/String constants in terms that must 17702evaluate to constants at compile time and will also simplify the 17703emitted AML in any such sub-expressions that can be folded 17704(evaluated at compile-time.) This increases the size of the 17705compiler significantly because a portion of the ACPI CA AML 17706interpreter is included within the compiler in order to pre- 17707evaluate constant expressions. 17708 17709 17710Fixed a problem with the "Unicode" ASL macro that caused the 17711compiler to fault. (This macro is used in conjunction with the 17712_STR reserved name.) 17713 17714Implemented an AML opcode optimization to use the Zero, One, and 17715Ones opcodes where possible to further reduce the size of integer 17716constants and thus reduce the overall size of the generated AML 17717code. 17718 17719Implemented error checking for new reserved terms for ACPI version 177202.0A. 17721 17722Implemented the -qr option to display the current list of ACPI 17723reserved names known to the compiler. 17724 17725Implemented the -qc option to display the current list of ASL 17726operators that are allowed within constant expressions and can 17727therefore be folded at compile time if the operands are constants. 17728 17729 177304) Documentation 17731 17732Updated the Programmer's Reference for new interfaces, data types, 17733and memory allocation model options. 17734 17735Updated the iASL Compiler User Reference to apply new format and 17736add information about new features and options. 17737 17738---------------------------------------- 1773919 April 2002. Summary of changes for this release. 17740 177411) ACPI CA Core Subsystem Version 20020419: 17742 17743The source code base for the Core Subsystem has been completely 17744cleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 17745versions. The Lint option files used are included in the 17746/acpi/generate/lint directory. 17747 17748Implemented enhanced status/error checking across the entire 17749Hardware manager subsystem. Any hardware errors (reported from 17750the OSL) are now bubbled up and will abort a running control 17751method. 17752 17753 17754Fixed a problem where the per-ACPI-table integer width (32 or 64) 17755was stored only with control method nodes, causing a fault when 17756non-control method code was executed during table loading. The 17757solution implemented uses a global variable to indicate table 17758width across the entire ACPI subsystem. Therefore, ACPI CA does 17759not support mixed integer widths across different ACPI tables 17760(DSDT, SSDT). 17761 17762Fixed a problem where NULL extended fields (X fields) in an ACPI 177632.0 ACPI FADT caused the table load to fail. Although the 17764existing ACPI specification is a bit fuzzy on this topic, the new 17765behavior is to fall back on a ACPI 1.0 field if the corresponding 17766ACPI 2.0 X field is zero (even though the table revision indicates 17767a full ACPI 2.0 table.) The ACPI specification will be updated to 17768clarify this issue. 17769 17770Fixed a problem with the SystemMemory operation region handler 17771where memory was always accessed byte-wise even if the AML- 17772specified access width was larger than a byte. This caused 17773problems on systems with memory-mapped I/O. Memory is now 17774accessed with the width specified. On systems that do not support 17775non-aligned transfers, a check is made to guarantee proper address 17776alignment before proceeding in order to avoid an AML-caused 17777alignment fault within the kernel. 17778 17779 17780Fixed a problem with the ExtendedIrq resource where only one byte 17781of the 4-byte Irq field was extracted. 17782 17783Fixed the AcpiExDigitsNeeded() procedure to support _UID. This 17784function was out of date and required a rewrite. 17785 17786Code and Data Size: Current core subsystem library sizes are shown 17787below. These are the code and data sizes for the acpica.lib 17788produced by the Microsoft Visual C++ 6.0 compiler, and these 17789values do not include any ACPI driver or OSPM code. The debug 17790version of the code includes the debug output trace mechanism and 17791has a larger code and data size. Note that these values will vary 17792depending on the efficiency of the compiler and the compiler 17793options used during generation. 17794 17795 Previous Release 17796 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17797 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17798 Current Release: 17799 Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 17800 Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 17801 17802 178032) Linux 17804 17805PCI IRQ routing fixes (Dominik Brodowski) 17806 17807 178083) iASL Compiler Version X2042: 17809 17810Implemented an additional compile-time error check for a field 17811unit whose size + minimum access width would cause a run-time 17812access beyond the end-of-region. Previously, only the field size 17813itself was checked. 17814 17815The Core subsystem and iASL compiler now share a common parse 17816object in preparation for compile-time evaluation of the type 178173/4/5 ASL operators. 17818 17819 17820---------------------------------------- 17821Summary of changes for this release: 03_29_02 17822 178231) ACPI CA Core Subsystem Version 20020329: 17824 17825Implemented support for late evaluation of TermArg operands to 17826Buffer and Package objects. This allows complex expressions to be 17827used in the declarations of these object types. 17828 17829Fixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 178301.0, if the field was larger than 32 bits, it was returned as a 17831buffer - otherwise it was returned as an integer. In ACPI 2.0, 17832the field is returned as a buffer only if the field is larger than 1783364 bits. The TableRevision is now considered when making this 17834conversion to avoid incompatibility with existing ASL code. 17835 17836Implemented logical addressing for AcpiOsGetRootPointer. This 17837allows an RSDP with either a logical or physical address. With 17838this support, the host OS can now override all ACPI tables with 17839one logical RSDP. Includes implementation of "typed" pointer 17840support to allow a common data type for both physical and logical 17841pointers internally. This required a change to the 17842AcpiOsGetRootPointer interface. 17843 17844Implemented the use of ACPI 2.0 Generic Address Structures for all 17845GPE, Fixed Event, and PM Timer I/O. This allows the use of memory 17846mapped I/O for these ACPI features. 17847 17848Initialization now ignores not only non-required tables (All 17849tables other than the FADT, FACS, DSDT, and SSDTs), but also does 17850not validate the table headers of unrecognized tables. 17851 17852Fixed a problem where a notify handler could only be 17853installed/removed on an object of type Device. All "notify" 17854 17855objects are now supported -- Devices, Processor, Power, and 17856Thermal. 17857 17858Removed most verbosity from the ACPI_DB_INFO debug level. Only 17859critical information is returned when this debug level is enabled. 17860 17861Code and Data Size: Current core subsystem library sizes are shown 17862below. These are the code and data sizes for the acpica.lib 17863produced by the Microsoft Visual C++ 6.0 compiler, and these 17864values do not include any ACPI driver or OSPM code. The debug 17865version of the code includes the debug output trace mechanism and 17866has a larger code and data size. Note that these values will vary 17867depending on the efficiency of the compiler and the compiler 17868options used during generation. 17869 17870 Previous Release 17871 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 17872 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 17873 Current Release: 17874 Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 17875 Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 17876 17877 178782) Linux: 17879 17880The processor driver (acpi_processor.c) now fully supports ACPI 178812.0-based processor performance control (e.g. Intel(R) 17882SpeedStep(TM) technology) Note that older laptops that only have 17883the Intel "applet" interface are not supported through this. The 17884'limit' and 'performance' interface (/proc) are fully functional. 17885[Note that basic policy for controlling performance state 17886transitions will be included in the next version of ospmd.] The 17887idle handler was modified to more aggressively use C2, and PIIX4 17888errata handling underwent a complete overhaul (big thanks to 17889Dominik Brodowski). 17890 17891Added support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 17892based devices in the ACPI namespace are now dynamically bound 17893(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 17894This allows, among other things, ACPI to resolve bus numbers for 17895subordinate PCI bridges. 17896 17897Enhanced PCI IRQ routing to get the proper bus number for _PRT 17898entries defined underneath PCI bridges. 17899 17900Added IBM 600E to bad bios list due to invalid _ADR value for 17901PIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 17902 17903In the process of adding full MADT support (e.g. IOAPIC) for IA32 17904(acpi.c, mpparse.c) -- stay tuned. 17905 17906Added back visual differentiation between fixed-feature and 17907control-method buttons in dmesg. Buttons are also subtyped (e.g. 17908button/power/PWRF) to simplify button identification. 17909 17910We no longer use -Wno-unused when compiling debug. Please ignore 17911any "_THIS_MODULE defined but not used" messages. 17912 17913Can now shut down the system using "magic sysrq" key. 17914 17915 179163) iASL Compiler version 2041: 17917 17918Fixed a problem where conversion errors for hex/octal/decimal 17919constants were not reported. 17920 17921Implemented a fix for the General Register template Address field. 17922This field was 8 bits when it should be 64. 17923 17924Fixed a problem where errors/warnings were no longer being emitted 17925within the listing output file. 17926 17927Implemented the ACPI 2.0A restriction on ACPI Table Signatures to 17928exactly 4 characters, alphanumeric only. 17929 17930 17931 17932 17933---------------------------------------- 17934Summary of changes for this release: 03_08_02 17935 17936 179371) ACPI CA Core Subsystem Version 20020308: 17938 17939Fixed a problem with AML Fields where the use of the "AccessAny" 17940keyword could cause an interpreter error due to attempting to read 17941or write beyond the end of the parent Operation Region. 17942 17943Fixed a problem in the SystemMemory Operation Region handler where 17944an attempt was made to map memory beyond the end of the region. 17945This was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 17946errors on some Linux systems. 17947 17948Fixed a problem where the interpreter/namespace "search to root" 17949algorithm was not functioning for some object types. Relaxed the 17950internal restriction on the search to allow upsearches for all 17951external object types as well as most internal types. 17952 17953 179542) Linux: 17955 17956We now use safe_halt() macro versus individual calls to sti | hlt. 17957 17958Writing to the processor limit interface should now work. "echo 1" 17959will increase the limit, 2 will decrease, and 0 will reset to the 17960 17961default. 17962 17963 179643) ASL compiler: 17965 17966Fixed segfault on Linux version. 17967 17968 17969---------------------------------------- 17970Summary of changes for this release: 02_25_02 17971 179721) ACPI CA Core Subsystem: 17973 17974 17975Fixed a problem where the GPE bit masks were not initialized 17976properly, causing erratic GPE behavior. 17977 17978Implemented limited support for multiple calling conventions. The 17979code can be generated with either the VPL (variable parameter 17980list, or "C") convention, or the FPL (fixed parameter list, or 17981"Pascal") convention. The core subsystem is about 3.4% smaller 17982when generated with FPL. 17983 17984 179852) Linux 17986 17987Re-add some /proc/acpi/event functionality that was lost during 17988the rewrite 17989 17990Resolved issue with /proc events for fixed-feature buttons showing 17991up as the system device. 17992 17993Fixed checks on C2/C3 latencies to be inclusive of maximum values. 17994 17995Replaced AE_ERRORs in acpi_osl.c with more specific error codes. 17996 17997Changed ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 17998 17999Fixed limit interface & usage to fix bugs with passive cooling 18000hysterisis. 18001 18002Restructured PRT support. 18003 18004 18005---------------------------------------- 18006Summary of changes for this label: 02_14_02 18007 18008 180091) ACPI CA Core Subsystem: 18010 18011Implemented support in AcpiLoadTable to allow loading of FACS and 18012FADT tables. 18013 18014Support for the now-obsolete interim 0.71 64-bit ACPI tables has 18015been removed. All 64-bit platforms should be migrated to the ACPI 180162.0 tables. The actbl71.h header has been removed from the source 18017tree. 18018 18019All C macros defined within the subsystem have been prefixed with 18020"ACPI_" to avoid collision with other system include files. 18021 18022Removed the return value for the two AcpiOsPrint interfaces, since 18023it is never used and causes lint warnings for ignoring the return 18024value. 18025 18026Added error checking to all internal mutex acquire and release 18027calls. Although a failure from one of these interfaces is 18028probably a fatal system error, these checks will cause the 18029immediate abort of the currently executing method or interface. 18030 18031Fixed a problem where the AcpiSetCurrentResources interface could 18032fault. This was a side effect of the deployment of the new memory 18033allocation model. 18034 18035Fixed a couple of problems with the Global Lock support introduced 18036in the last major build. The "common" (1.0/2.0) internal FACS was 18037being overwritten with the FACS signature and clobbering the 18038Global Lock pointer. Also, the actual firmware FACS was being 18039unmapped after construction of the "common" FACS, preventing 18040access to the actual Global Lock field within it. The "common" 18041internal FACS is no longer installed as an actual ACPI table; it 18042is used simply as a global. 18043 18044Code and Data Size: Current core subsystem library sizes are shown 18045below. These are the code and data sizes for the acpica.lib 18046produced by the Microsoft Visual C++ 6.0 compiler, and these 18047values do not include any ACPI driver or OSPM code. The debug 18048version of the code includes the debug output trace mechanism and 18049has a larger code and data size. Note that these values will vary 18050depending on the efficiency of the compiler and the compiler 18051options used during generation. 18052 18053 Previous Release (02_07_01) 18054 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 18055 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 18056 Current Release: 18057 Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 18058 Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 18059 18060 180612) Linux 18062 18063Updated Linux-specific code for core macro and OSL interface 18064changes described above. 18065 18066Improved /proc/acpi/event. It now can be opened only once and has 18067proper poll functionality. 18068 18069Fixed and restructured power management (acpi_bus). 18070 18071Only create /proc "view by type" when devices of that class exist. 18072 18073Fixed "charging/discharging" bug (and others) in acpi_battery. 18074 18075Improved thermal zone code. 18076 18077 180783) ASL Compiler, version X2039: 18079 18080 18081Implemented the new compiler restriction on ASL String hex/octal 18082escapes to non-null, ASCII values. An error results if an invalid 18083value is used. (This will require an ACPI 2.0 specification 18084change.) 18085 18086AML object labels that are output to the optional C and ASM source 18087are now prefixed with both the ACPI table signature and table ID 18088to help guarantee uniqueness within a large BIOS project. 18089 18090 18091---------------------------------------- 18092Summary of changes for this label: 02_01_02 18093 180941) ACPI CA Core Subsystem: 18095 18096ACPI 2.0 support is complete in the entire Core Subsystem and the 18097ASL compiler. All new ACPI 2.0 operators are implemented and all 18098other changes for ACPI 2.0 support are complete. With 18099simultaneous code and data optimizations throughout the subsystem, 18100ACPI 2.0 support has been implemented with almost no additional 18101cost in terms of code and data size. 18102 18103Implemented a new mechanism for allocation of return buffers. If 18104the buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 18105be allocated on behalf of the caller. Consolidated all return 18106buffer validation and allocation to a common procedure. Return 18107buffers will be allocated via the primary OSL allocation interface 18108since it appears that a separate pool is not needed by most users. 18109If a separate pool is required for these buffers, the caller can 18110still use the original mechanism and pre-allocate the buffer(s). 18111 18112Implemented support for string operands within the DerefOf 18113operator. 18114 18115Restructured the Hardware and Event managers to be table driven, 18116simplifying the source code and reducing the amount of generated 18117code. 18118 18119Split the common read/write low-level ACPI register bitfield 18120procedure into a separate read and write, simplifying the code 18121considerably. 18122 18123Obsoleted the AcpiOsCallocate OSL interface. This interface was 18124used only a handful of times and didn't have enough critical mass 18125for a separate interface. Replaced with a common calloc procedure 18126in the core. 18127 18128Fixed a reported problem with the GPE number mapping mechanism 18129that allows GPE1 numbers to be non-contiguous with GPE0. 18130Reorganized the GPE information and shrunk a large array that was 18131originally large enough to hold info for all possible GPEs (256) 18132to simply large enough to hold all GPEs up to the largest GPE 18133number on the machine. 18134 18135Fixed a reported problem with resource structure alignment on 64- 18136bit platforms. 18137 18138Changed the AcpiEnableEvent and AcpiDisableEvent external 18139interfaces to not require any flags for the common case of 18140enabling/disabling a GPE. 18141 18142Implemented support to allow a "Notify" on a Processor object. 18143 18144Most TBDs in comments within the source code have been resolved 18145and eliminated. 18146 18147 18148Fixed a problem in the interpreter where a standalone parent 18149prefix (^) was not handled correctly in the interpreter and 18150debugger. 18151 18152Removed obsolete and unnecessary GPE save/restore code. 18153 18154Implemented Field support in the ASL Load operator. This allows a 18155table to be loaded from a named field, in addition to loading a 18156table directly from an Operation Region. 18157 18158Implemented timeout and handle support in the external Global Lock 18159interfaces. 18160 18161Fixed a problem in the AcpiDump utility where pathnames were no 18162longer being generated correctly during the dump of named objects. 18163 18164Modified the AML debugger to give a full display of if/while 18165predicates instead of just one AML opcode at a time. (The 18166predicate can have several nested ASL statements.) The old method 18167was confusing during single stepping. 18168 18169Code and Data Size: Current core subsystem library sizes are shown 18170below. These are the code and data sizes for the acpica.lib 18171produced by the Microsoft Visual C++ 6.0 compiler, and these 18172values do not include any ACPI driver or OSPM code. The debug 18173version of the code includes the debug output trace mechanism and 18174has a larger code and data size. Note that these values will vary 18175depending on the efficiency of the compiler and the compiler 18176options used during generation. 18177 18178 Previous Release (12_18_01) 18179 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 18180 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 18181 Current Release: 18182 Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 18183 Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 18184 181852) Linux 18186 18187 Implemented fix for PIIX reverse throttling errata (Processor 18188driver) 18189 18190Added new Limit interface (Processor and Thermal drivers) 18191 18192New thermal policy (Thermal driver) 18193 18194Many updates to /proc 18195 18196Battery "low" event support (Battery driver) 18197 18198Supports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 18199 18200IA32 - IA64 initialization unification, no longer experimental 18201 18202Menuconfig options redesigned 18203 182043) ASL Compiler, version X2037: 18205 18206Implemented several new output features to simplify integration of 18207AML code into firmware: 1) Output the AML in C source code with 18208labels for each named ASL object. The original ASL source code 18209is interleaved as C comments. 2) Output the AML in ASM source code 18210with labels and interleaved ASL source. 3) Output the AML in 18211raw hex table form, in either C or ASM. 18212 18213Implemented support for optional string parameters to the 18214LoadTable operator. 18215 18216Completed support for embedded escape sequences within string 18217literals. The compiler now supports all single character escapes 18218as well as the Octal and Hex escapes. Note: the insertion of a 18219null byte into a string literal (via the hex/octal escape) causes 18220the string to be immediately terminated. A warning is issued. 18221 18222Fixed a problem where incorrect AML was generated for the case 18223where an ASL namepath consists of a single parent prefix ( 18224 18225) with no trailing name segments. 18226 18227The compiler has been successfully generated with a 64-bit C 18228compiler. 18229 18230 18231 18232 18233---------------------------------------- 18234Summary of changes for this label: 12_18_01 18235 182361) Linux 18237 18238Enhanced blacklist with reason and severity fields. Any table's 18239signature may now be used to identify a blacklisted system. 18240 18241Call _PIC control method to inform the firmware which interrupt 18242model the OS is using. Turn on any disabled link devices. 18243 18244Cleaned up busmgr /proc error handling (Andreas Dilger) 18245 18246 2) ACPI CA Core Subsystem: 18247 18248Implemented ACPI 2.0 semantics for the "Break" operator (Exit from 18249while loop) 18250 18251Completed implementation of the ACPI 2.0 "Continue", 18252"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 18253operators. All new ACPI 2.0 operators are now implemented in both 18254the ASL compiler and the AML interpreter. The only remaining ACPI 182552.0 task is support for the String data type in the DerefOf 18256operator. Fixed a problem with AcquireMutex where the status code 18257was lost if the caller had to actually wait for the mutex. 18258 18259Increased the maximum ASL Field size from 64K bits to 4G bits. 18260 18261Completed implementation of the external Global Lock interfaces -- 18262AcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 18263Handler parameters were added. 18264 18265Completed another pass at removing warnings and issues when 18266compiling with 64-bit compilers. The code now compiles cleanly 18267with the Intel 64-bit C/C++ compiler. Most notably, the pointer 18268add and subtract (diff) macros have changed considerably. 18269 18270 18271Created and deployed a new ACPI_SIZE type that is 64-bits wide on 1827264-bit platforms, 32-bits on all others. This type is used 18273wherever memory allocation and/or the C sizeof() operator is used, 18274and affects the OSL memory allocation interfaces AcpiOsAllocate 18275and AcpiOsCallocate. 18276 18277Implemented sticky user breakpoints in the AML debugger. 18278 18279Code and Data Size: Current core subsystem library sizes are shown 18280below. These are the code and data sizes for the acpica.lib 18281produced by the Microsoft Visual C++ 6.0 compiler, and these 18282values do not include any ACPI driver or OSPM code. The debug 18283version of the code includes the debug output trace mechanism and 18284has a larger code and data size. Note that these values will vary 18285depending on the efficiency of the compiler and the compiler 18286options used during generation. 18287 18288 Previous Release (12_05_01) 18289 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 18290 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 18291 Current Release: 18292 Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 18293 Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 18294 18295 3) ASL Compiler, version X2034: 18296 18297Now checks for (and generates an error if detected) the use of a 18298Break or Continue statement without an enclosing While statement. 18299 18300 18301Successfully generated the compiler with the Intel 64-bit C 18302compiler. 18303 18304 ---------------------------------------- 18305Summary of changes for this label: 12_05_01 18306 18307 1) ACPI CA Core Subsystem: 18308 18309The ACPI 2.0 CopyObject operator is fully implemented. This 18310operator creates a new copy of an object (and is also used to 18311bypass the "implicit conversion" mechanism of the Store operator.) 18312 18313The ACPI 2.0 semantics for the SizeOf operator are fully 18314implemented. The change is that performing a SizeOf on a 18315reference object causes an automatic dereference of the object to 18316the actual value before the size is evaluated. This behavior was 18317undefined in ACPI 1.0. 18318 18319The ACPI 2.0 semantics for the Extended IRQ resource descriptor 18320have been implemented. The interrupt polarity and mode are now 18321independently set. 18322 18323Fixed a problem where ASL Constants (Zero, One, Ones, Revision) 18324appearing in Package objects were not properly converted to 18325integers when the internal Package was converted to an external 18326object (via the AcpiEvaluateObject interface.) 18327 18328Fixed a problem with the namespace object deletion mechanism for 18329objects created by control methods. There were two parts to this 18330problem: 1) Objects created during the initialization phase method 18331parse were not being deleted, and 2) The object owner ID mechanism 18332to track objects was broken. 18333 18334Fixed a problem where the use of the ASL Scope operator within a 18335control method would result in an invalid opcode exception. 18336 18337Fixed a problem introduced in the previous label where the buffer 18338length required for the _PRT structure was not being returned 18339correctly. 18340 18341Code and Data Size: Current core subsystem library sizes are shown 18342below. These are the code and data sizes for the acpica.lib 18343produced by the Microsoft Visual C++ 6.0 compiler, and these 18344values do not include any ACPI driver or OSPM code. The debug 18345version of the code includes the debug output trace mechanism and 18346has a larger code and data size. Note that these values will vary 18347depending on the efficiency of the compiler and the compiler 18348options used during generation. 18349 18350 Previous Release (11_20_01) 18351 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 18352 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 18353 18354 Current Release: 18355 Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 18356 Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 18357 18358 2) Linux: 18359 18360Updated all files to apply cleanly against 2.4.16. 18361 18362Added basic PCI Interrupt Routing Table (PRT) support for IA32 18363(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 18364version supports both static and dynamic PRT entries, but dynamic 18365entries are treated as if they were static (not yet 18366reconfigurable). Architecture- specific code to use this data is 18367absent on IA32 but should be available shortly. 18368 18369Changed the initialization sequence to start the ACPI interpreter 18370(acpi_init) prior to initialization of the PCI driver (pci_init) 18371in init/main.c. This ordering is required to support PRT and 18372facilitate other (future) enhancement. A side effect is that the 18373ACPI bus driver and certain device drivers can no longer be loaded 18374as modules. 18375 18376Modified the 'make menuconfig' options to allow PCI Interrupt 18377Routing support to be included without the ACPI Bus and other 18378device drivers. 18379 18380 3) ASL Compiler, version X2033: 18381 18382Fixed some issues with the use of the new CopyObject and 18383DataTableRegion operators. Both are fully functional. 18384 18385 ---------------------------------------- 18386Summary of changes for this label: 11_20_01 18387 18388 20 November 2001. Summary of changes for this release. 18389 18390 1) ACPI CA Core Subsystem: 18391 18392Updated Index support to match ACPI 2.0 semantics. Storing a 18393Integer, String, or Buffer to an Index of a Buffer will store only 18394the least-significant byte of the source to the Indexed buffer 18395byte. Multiple writes are not performed. 18396 18397Fixed a problem where the access type used in an AccessAs ASL 18398operator was not recorded correctly into the field object. 18399 18400Fixed a problem where ASL Event objects were created in a 18401signalled state. Events are now created in an unsignalled state. 18402 18403The internal object cache is now purged after table loading and 18404initialization to reduce the use of dynamic kernel memory -- on 18405the assumption that object use is greatest during the parse phase 18406of the entire table (versus the run-time use of individual control 18407methods.) 18408 18409ACPI 2.0 variable-length packages are now fully operational. 18410 18411Code and Data Size: Code and Data optimizations have permitted new 18412feature development with an actual reduction in the library size. 18413Current core subsystem library sizes are shown below. These are 18414the code and data sizes for the acpica.lib produced by the 18415Microsoft Visual C++ 6.0 compiler, and these values do not include 18416any ACPI driver or OSPM code. The debug version of the code 18417includes the debug output trace mechanism and has a larger code 18418and data size. Note that these values will vary depending on the 18419efficiency of the compiler and the compiler options used during 18420generation. 18421 18422 Previous Release (11_09_01): 18423 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 18424 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 18425 18426 Current Release: 18427 Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 18428 Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 18429 18430 2) Linux: 18431 18432Enhanced the ACPI boot-time initialization code to allow the use 18433of Local APIC tables for processor enumeration on IA-32, and to 18434pave the way for a fully MPS-free boot (on SMP systems) in the 18435near future. This functionality replaces 18436arch/i386/kernel/acpitables.c, which was introduced in an earlier 184372.4.15-preX release. To enable this feature you must add 18438"acpi_boot=on" to the kernel command line -- see the help entry 18439for CONFIG_ACPI_BOOT for more information. An IA-64 release is in 18440the works... 18441 18442Restructured the configuration options to allow boot-time table 18443parsing support without inclusion of the ACPI Interpreter (and 18444other) code. 18445 18446NOTE: This release does not include fixes for the reported events, 18447power-down, and thermal passive cooling issues (coming soon). 18448 18449 3) ASL Compiler: 18450 18451Added additional typechecking for Fields within restricted access 18452Operation Regions. All fields within EC and CMOS regions must be 18453declared with ByteAcc. All fields within SMBus regions must be 18454declared with the BufferAcc access type. 18455 18456Fixed a problem where the listing file output of control methods 18457no longer interleaved the actual AML code with the ASL source 18458code. 18459 18460 18461 18462 18463---------------------------------------- 18464Summary of changes for this label: 11_09_01 18465 184661) ACPI CA Core Subsystem: 18467 18468Implemented ACPI 2.0-defined support for writes to fields with a 18469Buffer, String, or Integer source operand that is smaller than the 18470target field. In these cases, the source operand is zero-extended 18471to fill the target field. 18472 18473Fixed a problem where a Field starting bit offset (within the 18474parent operation region) was calculated incorrectly if the 18475 18476alignment of the field differed from the access width. This 18477affected CreateWordField, CreateDwordField, CreateQwordField, and 18478possibly other fields that use the "AccessAny" keyword. 18479 18480Fixed a problem introduced in the 11_02_01 release where indirect 18481stores through method arguments did not operate correctly. 18482 184832) Linux: 18484 18485Implemented boot-time ACPI table parsing support 18486(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 18487facilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 18488legacy BIOS interfaces (e.g. MPS) for the configuration of system 18489processors, memory, and interrupts during setup_arch(). Note that 18490this patch does not include the required architecture-specific 18491changes required to apply this information -- subsequent patches 18492will be posted for both IA32 and IA64 to achieve this. 18493 18494Added low-level sleep support for IA32 platforms, courtesy of Pat 18495Mochel. This allows IA32 systems to transition to/from various 18496sleeping states (e.g. S1, S3), although the lack of a centralized 18497driver model and power-manageable drivers will prevent its 18498(successful) use on most systems. 18499 18500Revamped the ACPI 'menuconfig' layout: created new "ACPI Support" 18501submenu, unified IA32 and IA64 options, added new "Boot using ACPI 18502tables" option, etc. 18503 18504Increased the default timeout for the EC driver from 1ms to 10ms 18505(1000 cycles of 10us) to try to address AE_TIME errors during EC 18506transactions. 18507 18508 ---------------------------------------- 18509Summary of changes for this label: 11_02_01 18510 185111) ACPI CA Core Subsystem: 18512 18513ACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 18514(QWordAcc keyword). All ACPI 2.0 64-bit support is now 18515implemented. 18516 18517OSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 18518changes to support ACPI 2.0 Qword field access. Read/Write 18519PciConfiguration(), Read/Write Memory(), and Read/Write Port() now 18520accept an ACPI_INTEGER (64 bits) as the value parameter. Also, 18521the value parameter for the address space handler interface is now 18522an ACPI_INTEGER. OSL implementations of these interfaces must now 18523handle the case where the Width parameter is 64. 18524 18525Index Fields: Fixed a problem where unaligned bit assembly and 18526disassembly for IndexFields was not supported correctly. 18527 18528Index and Bank Fields: Nested Index and Bank Fields are now 18529supported. During field access, a check is performed to ensure 18530that the value written to an Index or Bank register is not out of 18531the range of the register. The Index (or Bank) register is 18532written before each access to the field data. Future support will 18533include allowing individual IndexFields to be wider than the 18534DataRegister width. 18535 18536Fields: Fixed a problem where the AML interpreter was incorrectly 18537attempting to write beyond the end of a Field/OpRegion. This was 18538a boundary case that occurred when a DWORD field was written to a 18539BYTE access OpRegion, forcing multiple writes and causing the 18540interpreter to write one datum too many. 18541 18542Fields: Fixed a problem with Field/OpRegion access where the 18543starting bit address of a field was incorrectly calculated if the 18544current access type was wider than a byte (WordAcc, DwordAcc, or 18545QwordAcc). 18546 18547Fields: Fixed a problem where forward references to individual 18548FieldUnits (individual Field names within a Field definition) were 18549not resolved during the AML table load. 18550 18551Fields: Fixed a problem where forward references from a Field 18552definition to the parent Operation Region definition were not 18553resolved during the AML table load. 18554 18555Fields: Duplicate FieldUnit names within a scope are now detected 18556during AML table load. 18557 18558Acpi Interfaces: Fixed a problem where the AcpiGetName() interface 18559returned an incorrect name for the root node. 18560 18561Code and Data Size: Code and Data optimizations have permitted new 18562feature development with an actual reduction in the library size. 18563Current core subsystem library sizes are shown below. These are 18564the code and data sizes for the acpica.lib produced by the 18565Microsoft Visual C++ 6.0 compiler, and these values do not include 18566any ACPI driver or OSPM code. The debug version of the code 18567includes the debug output trace mechanism and has a larger code 18568and data size. Note that these values will vary depending on the 18569efficiency of the compiler and the compiler options used during 18570generation. 18571 18572 Previous Release (10_18_01): 18573 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 18574 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 18575 18576 Current Release: 18577 Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 18578 Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 18579 18580 2) Linux: 18581 18582Improved /proc processor output (Pavel Machek) Re-added 18583MODULE_LICENSE("GPL") to all modules. 18584 18585 3) ASL Compiler version X2030: 18586 18587Duplicate FieldUnit names within a scope are now detected and 18588flagged as errors. 18589 18590 4) Documentation: 18591 18592Programmer Reference updated to reflect OSL and address space 18593handler interface changes described above. 18594 18595---------------------------------------- 18596Summary of changes for this label: 10_18_01 18597 18598ACPI CA Core Subsystem: 18599 18600Fixed a problem with the internal object reference count mechanism 18601that occasionally caused premature object deletion. This resolves 18602all of the outstanding problem reports where an object is deleted 18603in the middle of an interpreter evaluation. Although this problem 18604only showed up in rather obscure cases, the solution to the 18605problem involved an adjustment of all reference counts involving 18606objects attached to namespace nodes. 18607 18608Fixed a problem with Field support in the interpreter where 18609writing to an aligned field whose length is an exact multiple (2 18610or greater) of the field access granularity would cause an attempt 18611to write beyond the end of the field. 18612 18613The top level AML opcode execution functions within the 18614interpreter have been renamed with a more meaningful and 18615consistent naming convention. The modules exmonad.c and 18616exdyadic.c were eliminated. New modules are exoparg1.c, 18617exoparg2.c, exoparg3.c, and exoparg6.c. 18618 18619Support for the ACPI 2.0 "Mid" ASL operator has been implemented. 18620 18621Fixed a problem where the AML debugger was causing some internal 18622objects to not be deleted during subsystem termination. 18623 18624Fixed a problem with the external AcpiEvaluateObject interface 18625where the subsystem would fault if the named object to be 18626evaluated referred to a constant such as Zero, Ones, etc. 18627 18628Fixed a problem with IndexFields and BankFields where the 18629subsystem would fault if the index, data, or bank registers were 18630not defined in the same scope as the field itself. 18631 18632Added printf format string checking for compilers that support 18633this feature. Corrected more than 50 instances of issues with 18634format specifiers within invocations of ACPI_DEBUG_PRINT 18635throughout the core subsystem code. 18636 18637The ASL "Revision" operator now returns the ACPI support level 18638implemented in the core - the value "2" since the ACPI 2.0 support 18639is more than 50% implemented. 18640 18641Enhanced the output of the AML debugger "dump namespace" command 18642to output in a more human-readable form. 18643 18644Current core subsystem library code sizes are shown below. These 18645 18646are the code and data sizes for the acpica.lib produced by the 18647Microsoft Visual C++ 6.0 compiler, and these values do not include 18648any ACPI driver or OSPM code. The debug version of the code 18649includes the full debug trace mechanism -- leading to a much 18650 18651larger code and data size. Note that these values will vary 18652depending on the efficiency of the compiler and the compiler 18653options used during generation. 18654 18655 Previous Label (09_20_01): 18656 Non-Debug Version: 65K Code, 5K Data, 70K Total 18657 Debug Version: 138K Code, 58K Data, 196K Total 18658 18659 This Label: 18660 18661 Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 18662 Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 18663 18664Linux: 18665 18666Implemented a "Bad BIOS Blacklist" to track machines that have 18667known ASL/AML problems. 18668 18669Enhanced the /proc interface for the thermal zone driver and added 18670support for _HOT (the critical suspend trip point). The 'info' 18671file now includes threshold/policy information, and allows setting 18672of _SCP (cooling preference) and _TZP (polling frequency) values 18673to the 'info' file. Examples: "echo tzp=5 > info" sets the polling 18674frequency to 5 seconds, and "echo scp=1 > info" sets the cooling 18675preference to the passive/quiet mode (if supported by the ASL). 18676 18677Implemented a workaround for a gcc bug that resuted in an OOPs 18678when loading the control method battery driver. 18679 18680 ---------------------------------------- 18681Summary of changes for this label: 09_20_01 18682 18683 ACPI CA Core Subsystem: 18684 18685The AcpiEnableEvent and AcpiDisableEvent interfaces have been 18686modified to allow individual GPE levels to be flagged as wake- 18687enabled (i.e., these GPEs are to remain enabled when the platform 18688sleeps.) 18689 18690The AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 18691support wake-enabled GPEs. This means that upon entering the 18692sleep state, all GPEs that are not wake-enabled are disabled. 18693When leaving the sleep state, these GPEs are re-enabled. 18694 18695A local double-precision divide/modulo module has been added to 18696enhance portability to OS kernels where a 64-bit math library is 18697not available. The new module is "utmath.c". 18698 18699Several optimizations have been made to reduce the use of CPU 18700stack. Originally over 2K, the maximum stack usage is now below 187012K at 1860 bytes (1.82k) 18702 18703Fixed a problem with the AcpiGetFirmwareTable interface where the 18704root table pointer was not mapped into a logical address properly. 18705 18706Fixed a problem where a NULL pointer was being dereferenced in the 18707interpreter code for the ASL Notify operator. 18708 18709Fixed a problem where the use of the ASL Revision operator 18710returned an error. This operator now returns the current version 18711of the ACPI CA core subsystem. 18712 18713Fixed a problem where objects passed as control method parameters 18714to AcpiEvaluateObject were always deleted at method termination. 18715However, these objects may end up being stored into the namespace 18716by the called method. The object reference count mechanism was 18717applied to these objects instead of a force delete. 18718 18719Fixed a problem where static strings or buffers (contained in the 18720AML code) that are declared as package elements within the ASL 18721code could cause a fault because the interpreter would attempt to 18722delete them. These objects are now marked with the "static 18723object" flag to prevent any attempt to delete them. 18724 18725Implemented an interpreter optimization to use operands directly 18726from the state object instead of extracting the operands to local 18727variables. This reduces stack use and code size, and improves 18728performance. 18729 18730The module exxface.c was eliminated as it was an unnecessary extra 18731layer of code. 18732 18733Current core subsystem library code sizes are shown below. These 18734are the code and data sizes for the acpica.lib produced by the 18735Microsoft Visual C++ 6.0 compiler, and these values do not include 18736any ACPI driver or OSPM code. The debug version of the code 18737includes the full debug trace mechanism -- leading to a much 18738larger code and data size. Note that these values will vary 18739depending on the efficiency of the compiler and the compiler 18740options used during generation. 18741 18742 Non-Debug Version: 65K Code, 5K Data, 70K Total 18743(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 18744Total (Previously 195K) 18745 18746Linux: 18747 18748Support for ACPI 2.0 64-bit integers has been added. All ACPI 18749Integer objects are now 64 bits wide 18750 18751All Acpi data types and structures are now in lower case. Only 18752Acpi macros are upper case for differentiation. 18753 18754 Documentation: 18755 18756Changes to the external interfaces as described above. 18757 18758 ---------------------------------------- 18759Summary of changes for this label: 08_31_01 18760 18761 ACPI CA Core Subsystem: 18762 18763A bug with interpreter implementation of the ASL Divide operator 18764was found and fixed. The implicit function return value (not the 18765explicit store operands) was returning the remainder instead of 18766the quotient. This was a longstanding bug and it fixes several 18767known outstanding issues on various platforms. 18768 18769The ACPI_DEBUG_PRINT and function trace entry/exit macros have 18770been further optimized for size. There are 700 invocations of the 18771DEBUG_PRINT macro alone, so each optimization reduces the size of 18772the debug version of the subsystem significantly. 18773 18774A stack trace mechanism has been implemented. The maximum stack 18775usage is about 2K on 32-bit platforms. The debugger command "stat 18776stack" will display the current maximum stack usage. 18777 18778All public symbols and global variables within the subsystem are 18779now prefixed with the string "Acpi". This keeps all of the 18780symbols grouped together in a kernel map, and avoids conflicts 18781with other kernel subsystems. 18782 18783Most of the internal fixed lookup tables have been moved into the 18784code segment via the const operator. 18785 18786Several enhancements have been made to the interpreter to both 18787reduce the code size and improve performance. 18788 18789Current core subsystem library code sizes are shown below. These 18790are the code and data sizes for the acpica.lib produced by the 18791Microsoft Visual C++ 6.0 compiler, and these values do not include 18792any ACPI driver or OSPM code. The debug version of the code 18793includes the full debug trace mechanism which contains over 700 18794invocations of the DEBUG_PRINT macro, 500 function entry macro 18795invocations, and over 900 function exit macro invocations -- 18796leading to a much larger code and data size. Note that these 18797values will vary depending on the efficiency of the compiler and 18798the compiler options used during generation. 18799 18800 Non-Debug Version: 64K Code, 5K Data, 69K Total 18801Debug Version: 137K Code, 58K Data, 195K Total 18802 18803 Linux: 18804 18805Implemented wbinvd() macro, pending a kernel-wide definition. 18806 18807Fixed /proc/acpi/event to handle poll() and short reads. 18808 18809 ASL Compiler, version X2026: 18810 18811Fixed a problem introduced in the previous label where the AML 18812 18813code emitted for package objects produced packages with zero 18814length. 18815 18816 ---------------------------------------- 18817Summary of changes for this label: 08_16_01 18818 18819ACPI CA Core Subsystem: 18820 18821The following ACPI 2.0 ASL operators have been implemented in the 18822AML interpreter (These are already supported by the Intel ASL 18823compiler): ToDecimalString, ToHexString, ToString, ToInteger, and 18824ToBuffer. Support for 64-bit AML constants is implemented in the 18825AML parser, debugger, and disassembler. 18826 18827The internal memory tracking mechanism (leak detection code) has 18828been upgraded to reduce the memory overhead (a separate tracking 18829block is no longer allocated for each memory allocation), and now 18830supports all of the internal object caches. 18831 18832The data structures and code for the internal object caches have 18833been coelesced and optimized so that there is a single cache and 18834memory list data structure and a single group of functions that 18835implement generic cache management. This has reduced the code 18836size in both the debug and release versions of the subsystem. 18837 18838The DEBUG_PRINT macro(s) have been optimized for size and replaced 18839by ACPI_DEBUG_PRINT. The syntax for this macro is slightly 18840different, because it generates a single call to an internal 18841function. This results in a savings of about 90 bytes per 18842invocation, resulting in an overall code and data savings of about 1884316% in the debug version of the subsystem. 18844 18845 Linux: 18846 18847Fixed C3 disk corruption problems and re-enabled C3 on supporting 18848machines. 18849 18850Integrated low-level sleep code by Patrick Mochel. 18851 18852Further tweaked source code Linuxization. 18853 18854Other minor fixes. 18855 18856 ASL Compiler: 18857 18858Support for ACPI 2.0 variable length packages is fixed/completed. 18859 18860Fixed a problem where the optional length parameter for the ACPI 188612.0 ToString operator. 18862 18863Fixed multiple extraneous error messages when a syntax error is 18864detected within the declaration line of a control method. 18865 18866 ---------------------------------------- 18867Summary of changes for this label: 07_17_01 18868 18869ACPI CA Core Subsystem: 18870 18871Added a new interface named AcpiGetFirmwareTable to obtain any 18872ACPI table via the ACPI signature. The interface can be called at 18873any time during kernel initialization, even before the kernel 18874virtual memory manager is initialized and paging is enabled. This 18875allows kernel subsystems to obtain ACPI tables very early, even 18876before the ACPI CA subsystem is initialized. 18877 18878Fixed a problem where Fields defined with the AnyAcc attribute 18879could be resolved to the incorrect address under the following 18880conditions: 1) the field width is larger than 8 bits and 2) the 18881parent operation region is not defined on a DWORD boundary. 18882 18883Fixed a problem where the interpreter is not being locked during 18884namespace initialization (during execution of the _INI control 18885methods), causing an error when an attempt is made to release it 18886later. 18887 18888ACPI 2.0 support in the AML Interpreter has begun and will be 18889ongoing throughout the rest of this year. In this label, The Mod 18890operator is implemented. 18891 18892Added a new data type to contain full PCI addresses named 18893ACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 18894and Function values. 18895 18896 Linux: 18897 18898Enhanced the Linux version of the source code to change most 18899capitalized ACPI type names to lowercase. For example, all 18900instances of ACPI_STATUS are changed to acpi_status. This will 18901result in a large diff, but the change is strictly cosmetic and 18902aligns the CA code closer to the Linux coding standard. 18903 18904OSL Interfaces: 18905 18906The interfaces to the PCI configuration space have been changed to 18907add the PCI Segment number and to split the single 32-bit combined 18908DeviceFunction field into two 16-bit fields. This was 18909accomplished by moving the four values that define an address in 18910PCI configuration space (segment, bus, device, and function) to 18911the new ACPI_PCI_ID structure. 18912 18913The changes to the PCI configuration space interfaces led to a 18914reexamination of the complete set of address space access 18915interfaces for PCI, I/O, and Memory. The previously existing 18 18916interfaces have proven difficult to maintain (any small change 18917must be propagated across at least 6 interfaces) and do not easily 18918allow for future expansion to 64 bits if necessary. Also, on some 18919systems, it would not be appropriate to demultiplex the access 18920width (8, 16, 32,or 64) before calling the OSL if the 18921corresponding native OS interfaces contain a similar access width 18922parameter. For these reasons, the 18 address space interfaces 18923have been replaced by these 6 new ones: 18924 18925AcpiOsReadPciConfiguration 18926AcpiOsWritePciConfiguration 18927AcpiOsReadMemory 18928AcpiOsWriteMemory 18929AcpiOsReadPort 18930AcpiOsWritePort 18931 18932Added a new interface named AcpiOsGetRootPointer to allow the OSL 18933to perform the platform and/or OS-specific actions necessary to 18934obtain the ACPI RSDP table pointer. On IA-32 platforms, this 18935interface will simply call down to the CA core to perform the low- 18936memory search for the table. On IA-64, the RSDP is obtained from 18937EFI. Migrating this interface to the OSL allows the CA core to 18938 18939remain OS and platform independent. 18940 18941Added a new interface named AcpiOsSignal to provide a generic 18942"function code and pointer" interface for various miscellaneous 18943signals and notifications that must be made to the host OS. The 18944first such signals are intended to support the ASL Fatal and 18945Breakpoint operators. In the latter case, the AcpiOsBreakpoint 18946interface has been obsoleted. 18947 18948The definition of the AcpiFormatException interface has been 18949changed to simplify its use. The caller no longer must supply a 18950buffer to the call; A pointer to a const string is now returned 18951directly. This allows the call to be easily used in printf 18952statements, etc. since the caller does not have to manage a local 18953buffer. 18954 18955 18956 ASL Compiler, Version X2025: 18957 18958The ACPI 2.0 Switch/Case/Default operators have been implemented 18959and are fully functional. They will work with all ACPI 1.0 18960interpreters, since the operators are simply translated to If/Else 18961pairs. 18962 18963The ACPI 2.0 ElseIf operator is implemented and will also work 18964with 1.0 interpreters, for the same reason. 18965 18966Implemented support for ACPI 2.0 variable-length packages. These 18967packages have a separate opcode, and their size is determined by 18968the interpreter at run-time. 18969 18970Documentation The ACPI CA Programmer Reference has been updated to 18971reflect the new interfaces and changes to existing interfaces. 18972 18973 ------------------------------------------ 18974Summary of changes for this label: 06_15_01 18975 18976 ACPI CA Core Subsystem: 18977 18978Fixed a problem where a DWORD-accessed field within a Buffer 18979object would get its byte address inadvertently rounded down to 18980the nearest DWORD. Buffers are always Byte-accessible. 18981 18982 ASL Compiler, version X2024: 18983 18984Fixed a problem where the Switch() operator would either fault or 18985hang the compiler. Note however, that the AML code for this ACPI 189862.0 operator is not yet implemented. 18987 18988Compiler uses the new AcpiOsGetTimer interface to obtain compile 18989timings. 18990 18991Implementation of the CreateField operator automatically converts 18992a reference to a named field within a resource descriptor from a 18993byte offset to a bit offset if required. 18994 18995Added some missing named fields from the resource descriptor 18996support. These are the names that are automatically created by the 18997compiler to reference fields within a descriptor. They are only 18998valid at compile time and are not passed through to the AML 18999interpreter. 19000 19001Resource descriptor named fields are now typed as Integers and 19002subject to compile-time typechecking when used in expressions. 19003 19004 ------------------------------------------ 19005Summary of changes for this label: 05_18_01 19006 19007 ACPI CA Core Subsystem: 19008 19009Fixed a couple of problems in the Field support code where bits 19010from adjacent fields could be returned along with the proper field 19011bits. Restructured the field support code to improve performance, 19012readability and maintainability. 19013 19014New DEBUG_PRINTP macro automatically inserts the procedure name 19015into the output, saving hundreds of copies of procedure name 19016strings within the source, shrinking the memory footprint of the 19017debug version of the core subsystem. 19018 19019 Source Code Structure: 19020 19021The source code directory tree was restructured to reflect the 19022current organization of the component architecture. Some files 19023and directories have been moved and/or renamed. 19024 19025 Linux: 19026 19027Fixed leaking kacpidpc processes. 19028 19029Fixed queueing event data even when /proc/acpi/event is not 19030opened. 19031 19032 ASL Compiler, version X2020: 19033 19034Memory allocation performance enhancement - over 24X compile time 19035improvement on large ASL files. Parse nodes and namestring 19036buffers are now allocated from a large internal compiler buffer. 19037 19038The temporary .SRC file is deleted unless the "-s" option is 19039specified 19040 19041The "-d" debug output option now sends all output to the .DBG file 19042instead of the console. 19043 19044"External" second parameter is now optional 19045 19046"ElseIf" syntax now properly allows the predicate 19047 19048Last operand to "Load" now recognized as a Target operand 19049 19050Debug object can now be used anywhere as a normal object. 19051 19052ResourceTemplate now returns an object of type BUFFER 19053 19054EISAID now returns an object of type INTEGER 19055 19056"Index" now works with a STRING operand 19057 19058"LoadTable" now accepts optional parameters 19059 19060"ToString" length parameter is now optional 19061 19062"Interrupt (ResourceType," parse error fixed. 19063 19064"Register" with a user-defined region space parse error fixed 19065 19066Escaped backslash at the end of a string ("\\") scan/parse error 19067fixed 19068 19069"Revision" is now an object of type INTEGER. 19070 19071 19072 19073------------------------------------------ 19074Summary of changes for this label: 05_02_01 19075 19076Linux: 19077 19078/proc/acpi/event now blocks properly. 19079 19080Removed /proc/sys/acpi. You can still dump your DSDT from 19081/proc/acpi/dsdt. 19082 19083 ACPI CA Core Subsystem: 19084 19085Fixed a problem introduced in the previous label where some of the 19086"small" resource descriptor types were not recognized. 19087 19088Improved error messages for the case where an ASL Field is outside 19089the range of the parent operation region. 19090 19091 ASL Compiler, version X2018: 19092 19093 19094Added error detection for ASL Fields that extend beyond the length 19095of the parent operation region (only if the length of the region 19096is known at compile time.) This includes fields that have a 19097minimum access width that is smaller than the parent region, and 19098individual field units that are partially or entirely beyond the 19099extent of the parent. 19100 19101 19102 19103------------------------------------------ 19104Summary of changes for this label: 04_27_01 19105 19106 ACPI CA Core Subsystem: 19107 19108Fixed a problem where the namespace mutex could be released at the 19109wrong time during execution of AcpiRemoveAddressSpaceHandler. 19110 19111Added optional thread ID output for debug traces, to simplify 19112debugging of multiple threads. Added context switch notification 19113when the debug code realizes that a different thread is now 19114executing ACPI code. 19115 19116Some additional external data types have been prefixed with the 19117string "ACPI_" for consistency. This may effect existing code. 19118The data types affected are the external callback typedefs - e.g., 19119 19120WALK_CALLBACK becomes ACPI_WALK_CALLBACK. 19121 19122 Linux: 19123 19124Fixed an issue with the OSL semaphore implementation where a 19125thread was waking up with an error from receiving a SIGCHLD 19126signal. 19127 19128Linux version of ACPI CA now uses the system C library for string 19129manipulation routines instead of a local implementation. 19130 19131Cleaned up comments and removed TBDs. 19132 19133 ASL Compiler, version X2017: 19134 19135Enhanced error detection and reporting for all file I/O 19136operations. 19137 19138 Documentation: 19139 19140Programmer Reference updated to version 1.06. 19141 19142 19143 19144------------------------------------------ 19145Summary of changes for this label: 04_13_01 19146 19147 ACPI CA Core Subsystem: 19148 19149Restructured support for BufferFields and RegionFields. 19150BankFields support is now fully operational. All known 32-bit 19151limitations on field sizes have been removed. Both BufferFields 19152and (Operation) RegionFields are now supported by the same field 19153management code. 19154 19155Resource support now supports QWORD address and IO resources. The 1915616/32/64 bit address structures and the Extended IRQ structure 19157have been changed to properly handle Source Resource strings. 19158 19159A ThreadId of -1 is now used to indicate a "mutex not acquired" 19160condition internally and must never be returned by AcpiOsThreadId. 19161This reserved value was changed from 0 since Unix systems allow a 19162thread ID of 0. 19163 19164Linux: 19165 19166Driver code reorganized to enhance portability 19167 19168Added a kernel configuration option to control ACPI_DEBUG 19169 19170Fixed the EC driver to honor _GLK. 19171 19172ASL Compiler, version X2016: 19173 19174Fixed support for the "FixedHw" keyword. Previously, the FixedHw 19175address space was set to 0, not 0x7f as it should be. 19176 19177 ------------------------------------------ 19178Summary of changes for this label: 03_13_01 19179 19180 ACPI CA Core Subsystem: 19181 19182During ACPI initialization, the _SB_._INI method is now run if 19183present. 19184 19185Notify handler fix - notifies are deferred until the parent method 19186completes execution. This fixes the "mutex already acquired" 19187issue seen occasionally. 19188 19189Part of the "implicit conversion" rules in ACPI 2.0 have been 19190found to cause compatibility problems with existing ASL/AML. The 19191convert "result-to-target-type" implementation has been removed 19192for stores to method Args and Locals. Source operand conversion 19193is still fully implemented. Possible changes to ACPI 2.0 19194specification pending. 19195 19196Fix to AcpiRsCalculatePciRoutingTableLength to return correct 19197length. 19198 19199Fix for compiler warnings for 64-bit compiles. 19200 19201 Linux: 19202 19203/proc output aligned for easier parsing. 19204 19205Release-version compile problem fixed. 19206 19207New kernel configuration options documented in Configure.help. 19208 19209IBM 600E - Fixed Sleep button may generate "Invalid <NULL> 19210context" message. 19211 19212 OSPM: 19213 19214Power resource driver integrated with bus manager. 19215 19216Fixed kernel fault during active cooling for thermal zones. 19217 19218Source Code: 19219 19220The source code tree has been restructured. 19221 19222 19223 19224------------------------------------------ 19225Summary of changes for this label: 03_02_01 19226 19227 Linux OS Services Layer (OSL): 19228 19229Major revision of all Linux-specific code. 19230 19231Modularized all ACPI-specific drivers. 19232 19233Added new thermal zone and power resource drivers. 19234 19235Revamped /proc interface (new functionality is under /proc/acpi). 19236 19237New kernel configuration options. 19238 19239 Linux known issues: 19240 19241New kernel configuration options not documented in Configure.help 19242yet. 19243 19244 19245Module dependencies not currently implemented. If used, they 19246should be loaded in this order: busmgr, power, ec, system, 19247processor, battery, ac_adapter, button, thermal. 19248 19249Modules will not load if CONFIG_MODVERSION is set. 19250 19251IBM 600E - entering S5 may reboot instead of shutting down. 19252 19253IBM 600E - Sleep button may generate "Invalid <NULL> context" 19254message. 19255 19256Some systems may fail with "execution mutex already acquired" 19257message. 19258 19259 ACPI CA Core Subsystem: 19260 19261Added a new OSL Interface, AcpiOsGetThreadId. This was required 19262for the deadlock detection code. Defined to return a non-zero, 32- 19263bit thread ID for the currently executing thread. May be a non- 19264zero constant integer on single-thread systems. 19265 19266Implemented deadlock detection for internal subsystem mutexes. We 19267may add conditional compilation for this code (debug only) later. 19268 19269ASL/AML Mutex object semantics are now fully supported. This 19270includes multiple acquires/releases by owner and support for the 19271 19272Mutex SyncLevel parameter. 19273 19274A new "Force Release" mechanism automatically frees all ASL 19275Mutexes that have been acquired but not released when a thread 19276exits the interpreter. This forces conformance to the ACPI spec 19277("All mutexes must be released when an invocation exits") and 19278prevents deadlocked ASL threads. This mechanism can be expanded 19279(later) to monitor other resource acquisitions if OEM ASL code 19280continues to misbehave (which it will). 19281 19282Several new ACPI exception codes have been added for the Mutex 19283support. 19284 19285Recursive method calls are now allowed and supported (the ACPI 19286spec does in fact allow recursive method calls.) The number of 19287recursive calls is subject to the restrictions imposed by the 19288SERIALIZED method keyword and SyncLevel (ACPI 2.0) method 19289parameter. 19290 19291Implemented support for the SyncLevel parameter for control 19292methods (ACPI 2.0 feature) 19293 19294Fixed a deadlock problem when multiple threads attempted to use 19295the interpreter. 19296 19297Fixed a problem where the string length of a String package 19298element was not always set in a package returned from 19299AcpiEvaluateObject. 19300 19301Fixed a problem where the length of a String package element was 19302not always included in the length of the overall package returned 19303from AcpiEvaluateObject. 19304 19305Added external interfaces (Acpi*) to the ACPI debug memory 19306manager. This manager keeps a list of all outstanding 19307allocations, and can therefore detect memory leaks and attempts to 19308free memory blocks more than once. Useful for code such as the 19309power manager, etc. May not be appropriate for device drivers. 19310Performance with the debug code enabled is slow. 19311 19312The ACPI Global Lock is now an optional hardware element. 19313 19314 ASL Compiler Version X2015: 19315 19316Integrated changes to allow the compiler to be generated on 19317multiple platforms. 19318 19319Linux makefile added to generate the compiler on Linux 19320 19321 Source Code: 19322 19323All platform-specific headers have been moved to their own 19324subdirectory, Include/Platform. 19325 19326New source file added, Interpreter/ammutex.c 19327 19328New header file, Include/acstruct.h 19329 19330 Documentation: 19331 19332The programmer reference has been updated for the following new 19333interfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 19334 19335 ------------------------------------------ 19336Summary of changes for this label: 02_08_01 19337 19338Core ACPI CA Subsystem: Fixed a problem where an error was 19339incorrectly returned if the return resource buffer was larger than 19340the actual data (in the resource interfaces). 19341 19342References to named objects within packages are resolved to the 19343 19344full pathname string before packages are returned directly (via 19345the AcpiEvaluateObject interface) or indirectly via the resource 19346interfaces. 19347 19348Linux OS Services Layer (OSL): 19349 19350Improved /proc battery interface. 19351 19352 19353Added C-state debugging output and other miscellaneous fixes. 19354 19355ASL Compiler Version X2014: 19356 19357All defined method arguments can now be used as local variables, 19358including the ones that are not actually passed in as parameters. 19359The compiler tracks initialization of the arguments and issues an 19360exception if they are used without prior assignment (just like 19361locals). 19362 19363The -o option now specifies a filename prefix that is used for all 19364output files, including the AML output file. Otherwise, the 19365default behavior is as follows: 1) the AML goes to the file 19366specified in the DSDT. 2) all other output files use the input 19367source filename as the base. 19368 19369 ------------------------------------------ 19370Summary of changes for this label: 01_25_01 19371 19372Core ACPI CA Subsystem: Restructured the implementation of object 19373store support within the interpreter. This includes support for 19374the Store operator as well as any ASL operators that include a 19375target operand. 19376 19377Partially implemented support for Implicit Result-to-Target 19378conversion. This is when a result object is converted on the fly 19379to the type of an existing target object. Completion of this 19380support is pending further analysis of the ACPI specification 19381concerning this matter. 19382 19383CPU-specific code has been removed from the subsystem (hardware 19384directory). 19385 19386New Power Management Timer functions added 19387 19388Linux OS Services Layer (OSL): Moved system state transition code 19389to the core, fixed it, and modified Linux OSL accordingly. 19390 19391Fixed C2 and C3 latency calculations. 19392 19393 19394We no longer use the compilation date for the version message on 19395initialization, but retrieve the version from AcpiGetSystemInfo(). 19396 19397Incorporated for fix Sony VAIO machines. 19398 19399Documentation: The Programmer Reference has been updated and 19400reformatted. 19401 19402 19403ASL Compiler: Version X2013: Fixed a problem where the line 19404numbering and error reporting could get out of sync in the 19405presence of multiple include files. 19406 19407 ------------------------------------------ 19408Summary of changes for this label: 01_15_01 19409 19410Core ACPI CA Subsystem: 19411 19412Implemented support for type conversions in the execution of the 19413ASL Concatenate operator (The second operand is converted to 19414match the type of the first operand before concatenation.) 19415 19416Support for implicit source operand conversion is partially 19417implemented. The ASL source operand types Integer, Buffer, and 19418String are freely interchangeable for most ASL operators and are 19419converted by the interpreter on the fly as required. Implicit 19420Target operand conversion (where the result is converted to the 19421target type before storing) is not yet implemented. 19422 19423Support for 32-bit and 64-bit BCD integers is implemented. 19424 19425Problem fixed where a field read on an aligned field could cause a 19426read past the end of the field. 19427 19428New exception, AE_AML_NO_RETURN_VALUE, is returned when a method 19429does not return a value, but the caller expects one. (The ASL 19430compiler flags this as a warning.) 19431 19432ASL Compiler: 19433 19434Version X2011: 194351. Static typechecking of all operands is implemented. This 19436prevents the use of invalid objects (such as using a Package where 19437an Integer is required) at compile time instead of at interpreter 19438run-time. 194392. The ASL source line is printed with ALL errors and warnings. 194403. Bug fix for source EOF without final linefeed. 194414. Debug option is split into a parse trace and a namespace trace. 194425. Namespace output option (-n) includes initial values for 19443integers and strings. 194446. Parse-only option added for quick syntax checking. 194457. Compiler checks for duplicate ACPI name declarations 19446 19447Version X2012: 194481. Relaxed typechecking to allow interchangeability between 19449strings, integers, and buffers. These types are now converted by 19450the interpreter at runtime. 194512. Compiler reports time taken by each internal subsystem in the 19452debug output file. 19453 19454 19455 ------------------------------------------ 19456Summary of changes for this label: 12_14_00 19457 19458ASL Compiler: 19459 19460This is the first official release of the compiler. Since the 19461compiler requires elements of the Core Subsystem, this label 19462synchronizes everything. 19463 19464------------------------------------------ 19465Summary of changes for this label: 12_08_00 19466 19467 19468Fixed a problem where named references within the ASL definition 19469of both OperationRegions and CreateXXXFields did not work 19470properly. The symptom was an AE_AML_OPERAND_TYPE during 19471initialization of the region/field. This is similar (but not 19472related internally) to the problem that was fixed in the last 19473label. 19474 19475Implemented both 32-bit and 64-bit support for the BCD ASL 19476functions ToBCD and FromBCD. 19477 19478Updated all legal headers to include "2000" in the copyright 19479years. 19480 19481 ------------------------------------------ 19482Summary of changes for this label: 12_01_00 19483 19484Fixed a problem where method invocations within the ASL definition 19485of both OperationRegions and CreateXXXFields did not work 19486properly. The symptom was an AE_AML_OPERAND_TYPE during 19487initialization of the region/field: 19488 19489 nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 19490[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 19491(0x3005) 19492 19493Fixed a problem where operators with more than one nested 19494subexpression would fail. The symptoms were varied, by mostly 19495AE_AML_OPERAND_TYPE errors. This was actually a rather serious 19496problem that has gone unnoticed until now. 19497 19498 Subtract (Add (1,2), Multiply (3,4)) 19499 19500Fixed a problem where AcpiGetHandle didn't quite get fixed in the 19501previous build (The prefix part of a relative path was handled 19502incorrectly). 19503 19504Fixed a problem where Operation Region initialization failed if 19505the operation region name was a "namepath" instead of a simple 19506"nameseg". Symptom was an AE_NO_OPERAND error. 19507 19508Fixed a problem where an assignment to a local variable via the 19509indirect RefOf mechanism only worked for the first such 19510assignment. Subsequent assignments were ignored. 19511 19512 ------------------------------------------ 19513Summary of changes for this label: 11_15_00 19514 19515ACPI 2.0 table support with backwards support for ACPI 1.0 and the 195160.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 19517the AML interpreter does NOT have support for the new 2.0 ASL 19518grammar terms at this time. 19519 19520All ACPI hardware access is via the GAS structures in the ACPI 2.0 19521FADT. 19522 19523All physical memory addresses across all platforms are now 64 bits 19524wide. Logical address width remains dependent on the platform 19525(i.e., "void *"). 19526 19527AcpiOsMapMemory interface changed to a 64-bit physical address. 19528 19529The AML interpreter integer size is now 64 bits, as per the ACPI 195302.0 specification. 19531 19532For backwards compatibility with ACPI 1.0, ACPI tables with a 19533revision number less than 2 use 32-bit integers only. 19534 19535Fixed a problem where the evaluation of OpRegion operands did not 19536always resolve them to numbers properly. 19537 19538------------------------------------------ 19539Summary of changes for this label: 10_20_00 19540 19541Fix for CBN_._STA issue. This fix will allow correct access to 19542CBN_ OpRegions when the _STA returns 0x8. 19543 19544Support to convert ACPI constants (Ones, Zeros, One) to actual 19545values before a package object is returned 19546 19547Fix for method call as predicate to if/while construct causing 19548incorrect if/while behavior 19549 19550Fix for Else block package lengths sometimes calculated wrong (if 19551block > 63 bytes) 19552 19553Fix for Processor object length field, was always zero 19554 19555Table load abort if FACP sanity check fails 19556 19557Fix for problem with Scope(name) if name already exists 19558 19559Warning emitted if a named object referenced cannot be found 19560(resolved) during method execution. 19561 19562 19563 19564 19565 19566------------------------------------------ 19567Summary of changes for this label: 9_29_00 19568 19569New table initialization interfaces: AcpiInitializeSubsystem no 19570longer has any parameters AcpiFindRootPointer - Find the RSDP (if 19571necessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 19572>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 19573AcpiLoadTables 19574 19575Note: These interface changes require changes to all existing OSDs 19576 19577The PCI_Config default address space handler is always installed 19578at the root namespace object. 19579 19580------------------------------------------- 19581Summary of changes for this label: 09_15_00 19582 19583The new initialization architecture is implemented. New 19584interfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 19585AcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 19586 19587(Namespace is automatically loaded when a table is loaded) 19588 19589The ACPI_OPERAND_OBJECT has been optimized to shrink its size from 1959052 bytes to 32 bytes. There is usually one of these for every 19591namespace object, so the memory savings is significant. 19592 19593Implemented just-in-time evaluation of the CreateField operators. 19594 19595Bug fixes for IA-64 support have been integrated. 19596 19597Additional code review comments have been implemented 19598 19599The so-called "third pass parse" has been replaced by a final walk 19600through the namespace to initialize all operation regions (address 19601spaces) and fields that have not yet been initialized during the 19602execution of the various _INI and REG methods. 19603 19604New file - namespace/nsinit.c 19605 19606------------------------------------------- 19607Summary of changes for this label: 09_01_00 19608 19609Namespace manager data structures have been reworked to change the 19610primary object from a table to a single object. This has 19611resulted in dynamic memory savings of 3X within the namespace and 196122X overall in the ACPI CA subsystem. 19613 19614Fixed problem where the call to AcpiEvFindPciRootBuses was 19615inadvertently left commented out. 19616 19617Reduced the warning count when generating the source with the GCC 19618compiler. 19619 19620Revision numbers added to each module header showing the 19621SourceSafe version of the file. Please refer to this version 19622number when giving us feedback or comments on individual modules. 19623 19624The main object types within the subsystem have been renamed to 19625clarify their purpose: 19626 19627ACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 19628ACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 19629ACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 19630 19631NOTE: no changes to the initialization sequence are included in 19632this label. 19633 19634------------------------------------------- 19635Summary of changes for this label: 08_23_00 19636 19637Fixed problem where TerminateControlMethod was being called 19638multiple times per method 19639 19640Fixed debugger problem where single stepping caused a semaphore to 19641be oversignalled 19642 19643Improved performance through additional parse object caching - 19644added ACPI_EXTENDED_OP type 19645 19646------------------------------------------- 19647Summary of changes for this label: 08_10_00 19648 19649Parser/Interpreter integration: Eliminated the creation of 19650complete parse trees for ACPI tables and control methods. 19651Instead, parse subtrees are created and then deleted as soon as 19652they are processed (Either entered into the namespace or executed 19653by the interpreter). This reduces the use of dynamic kernel 19654memory significantly. (about 10X) 19655 19656Exception codes broken into classes and renumbered. Be sure to 19657recompile all code that includes acexcep.h. Hopefully we won't 19658have to renumber the codes again now that they are split into 19659classes (environment, programmer, AML code, ACPI table, and 19660internal). 19661 19662Fixed some additional alignment issues in the Resource Manager 19663subcomponent 19664 19665Implemented semaphore tracking in the AcpiExec utility, and fixed 19666several places where mutexes/semaphores were being unlocked 19667without a corresponding lock operation. There are no known 19668semaphore or mutex "leaks" at this time. 19669 19670Fixed the case where an ASL Return operator is used to return an 19671unnamed package. 19672 19673------------------------------------------- 19674Summary of changes for this label: 07_28_00 19675 19676Fixed a problem with the way addresses were calculated in 19677AcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 19678manifested itself when a Field was created with WordAccess or 19679DwordAccess, but the field unit defined within the Field was less 19680 19681than a Word or Dword. 19682 19683Fixed a problem in AmlDumpOperands() module's loop to pull 19684operands off of the operand stack to display information. The 19685problem manifested itself as a TLB error on 64-bit systems when 19686accessing an operand stack with two or more operands. 19687 19688Fixed a problem with the PCI configuration space handlers where 19689context was getting confused between accesses. This required a 19690change to the generic address space handler and address space 19691setup definitions. Handlers now get both a global handler context 19692(this is the one passed in by the user when executing 19693AcpiInstallAddressSpaceHandler() and a specific region context 19694that is unique to each region (For example, the _ADR, _SEG and 19695_BBN values associated with a specific region). The generic 19696function definitions have changed to the following: 19697 19698typedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 19699UINT32 Address, UINT32 BitWidth, UINT32 *Value, void 19700*HandlerContext, // This used to be void *Context void 19701*RegionContext); // This is an additional parameter 19702 19703typedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 19704RegionHandle, UINT32 Function, void *HandlerContext, void 19705**RegionContext); // This used to be **ReturnContext 19706 19707------------------------------------------- 19708Summary of changes for this label: 07_21_00 19709 19710Major file consolidation and rename. All files within the 19711interpreter have been renamed as well as most header files. This 19712was done to prevent collisions with existing files in the host 19713OSs -- filenames such as "config.h" and "global.h" seem to be 19714quite common. The VC project files have been updated. All 19715makefiles will require modification. 19716 19717The parser/interpreter integration continues in Phase 5 with the 19718implementation of a complete 2-pass parse (the AML is parsed 19719twice) for each table; This avoids the construction of a huge 19720parse tree and therefore reduces the amount of dynamic memory 19721required by the subsystem. Greater use of the parse object cache 19722means that performance is unaffected. 19723 19724Many comments from the two code reviews have been rolled in. 19725 19726The 64-bit alignment support is complete. 19727 19728------------------------------------------- 19729Summary of changes for this label: 06_30_00 19730 19731With a nod and a tip of the hat to the technology of yesteryear, 19732we've added support in the source code for 80 column output 19733devices. The code is now mostly constrained to 80 columns or 19734less to support environments and editors that 1) cannot display 19735or print more than 80 characters on a single line, and 2) cannot 19736disable line wrapping. 19737 19738A major restructuring of the namespace data structure has been 19739completed. The result is 1) cleaner and more 19740understandable/maintainable code, and 2) a significant reduction 19741in the dynamic memory requirement for each named ACPI object 19742(almost half). 19743 19744------------------------------------------- 19745Summary of changes for this label: 06_23_00 19746 19747Linux support has been added. In order to obtain approval to get 19748the ACPI CA subsystem into the Linux kernel, we've had to make 19749quite a few changes to the base subsystem that will affect all 19750users (all the changes are generic and OS- independent). The 19751effects of these global changes have been somewhat far reaching. 19752Files have been merged and/or renamed and interfaces have been 19753renamed. The major changes are described below. 19754 19755Osd* interfaces renamed to AcpiOs* to eliminate namespace 19756pollution/confusion within our target kernels. All OSD 19757interfaces must be modified to match the new naming convention. 19758 19759Files merged across the subsystem. A number of the smaller source 19760and header files have been merged to reduce the file count and 19761increase the density of the existing files. There are too many 19762to list here. In general, makefiles that call out individual 19763files will require rebuilding. 19764 19765Interpreter files renamed. All interpreter files now have the 19766prefix am* instead of ie* and is*. 19767 19768Header files renamed: The acapi.h file is now acpixf.h. The 19769acpiosd.h file is now acpiosxf.h. We are removing references to 19770the acronym "API" since it is somewhat windowsy. The new name is 19771"external interface" or xface or xf in the filenames.j 19772 19773 19774All manifest constants have been forced to upper case (some were 19775mixed case.) Also, the string "ACPI_" has been prepended to many 19776(not all) of the constants, typedefs, and structs. 19777 19778The globals "DebugLevel" and "DebugLayer" have been renamed 19779"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 19780 19781All other globals within the subsystem are now prefixed with 19782"AcpiGbl_" Internal procedures within the subsystem are now 19783prefixed with "Acpi" (with only a few exceptions). The original 19784two-letter abbreviation for the subcomponent remains after "Acpi" 19785- for example, CmCallocate became AcpiCmCallocate. 19786 19787Added a source code translation/conversion utility. Used to 19788generate the Linux source code, it can be modified to generate 19789other types of source as well. Can also be used to cleanup 19790existing source by removing extraneous spaces and blank lines. 19791Found in tools/acpisrc/* 19792 19793OsdUnMapMemory was renamed to OsdUnmapMemory and then 19794AcpiOsUnmapMemory. (UnMap became Unmap). 19795 19796A "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 19797When set to one, this indicates that the caller wants to use the 19798 19799semaphore as a mutex, not a counting semaphore. ACPI CA uses 19800both types. However, implementers of this call may want to use 19801different OS primitives depending on the type of semaphore 19802requested. For example, some operating systems provide separate 19803 19804"mutex" and "semaphore" interfaces - where the mutex interface is 19805much faster because it doesn't have all the overhead of a full 19806semaphore implementation. 19807 19808Fixed a deadlock problem where a method that accesses the PCI 19809address space can block forever if it is the first access to the 19810space. 19811 19812------------------------------------------- 19813Summary of changes for this label: 06_02_00 19814 19815Support for environments that cannot handle unaligned data 19816accesses (e.g. firmware and OS environments devoid of alignment 19817handler technology namely SAL/EFI and the IA-64 Linux kernel) has 19818been added (via configurable macros) in these three areas: - 19819Transfer of data from the raw AML byte stream is done via byte 19820moves instead of word/dword/qword moves. - External objects are 19821aligned within the user buffer, including package elements (sub- 19822objects). - Conversion of name strings to UINT32 Acpi Names is now 19823done byte-wise. 19824 19825The Store operator was modified to mimic Microsoft's 19826implementation when storing to a Buffer Field. 19827 19828Added a check of the BM_STS bit before entering C3. 19829 19830The methods subdirectory has been obsoleted and removed. A new 19831file, cmeval.c subsumes the functionality. 19832 19833A 16-bit (DOS) version of AcpiExec has been developed. The 19834makefile is under the acpiexec directory. 19835