changes.txt revision 197104
1117521Snjl---------------------------------------- 2197104Sjkim03 September 2009. Summary of changes for version 20090903: 3197104Sjkim 4197104SjkimThis release is available at www.acpica.org/downloads 5197104Sjkim 6197104Sjkim1) ACPI CA Core Subsystem: 7197104Sjkim 8197104SjkimFor Windows Vista compatibility, added the automatic execution of an _INI 9197104Sjkimmethod located at the namespace root (\_INI). This method is executed at 10197104Sjkimtable load time. This support is in addition to the automatic execution of 11197104Sjkim\_SB._INI. Lin Ming. 12197104Sjkim 13197104SjkimFixed a possible memory leak in the interpreter for AML package objects if 14197104Sjkimthe package initializer list is longer than the defined size of the package. 15197104SjkimThis apparently can only happen if the BIOS changes the package size on the 16197104Sjkimfly (seen in a _PSS object), as ASL compilers do not allow this. The 17197104Sjkiminterpreter will truncate the package to the defined size (and issue an error 18197104Sjkimmessage), but previously could leave the extra objects undeleted if they were 19197104Sjkimpre-created during the argument processing (such is the case if the package 20197104Sjkimconsists of a number of sub-packages as in the _PSS.) ACPICA BZ 805. 21197104Sjkim 22197104SjkimFixed a problem seen when a Buffer or String is stored to itself via ASL. 23197104SjkimThis has been reported in the field. Previously, ACPICA would zero out the 24197104Sjkimbuffer/string. Now, the operation is treated as a noop. Provides Windows 25197104Sjkimcompatibility. ACPICA BZ 803. Lin Ming. 26197104Sjkim 27197104SjkimRemoved an extraneous error message for ASL constructs of the form 28197104SjkimStore(LocalX,LocalX) when LocalX is uninitialized. These curious statements 29197104Sjkimare seen in many BIOSs and are once again treated as NOOPs and no error is 30197104Sjkimemitted when they are encountered. ACPICA BZ 785. 31197104Sjkim 32197104SjkimFixed an extraneous warning message if a _DSM reserved method returns a 33197104SjkimPackage object. _DSM can return any type of object, so validation on the 34197104Sjkimreturn type cannot be performed. ACPICA BZ 802. 35197104Sjkim 36197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 37197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 38197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 39197104Sjkimmuch larger code and data size. 40197104Sjkim 41197104Sjkim Previous Release: 42197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 43197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 44197104Sjkim Current Release: 45197104Sjkim Non-Debug Version: 85.6K Code, 18.0K Data, 103.6K Total 46197104Sjkim Debug Version: 161.7K Code, 50.9K Data, 212.6K Total 47197104Sjkim 48197104Sjkim2) iASL Compiler/Disassembler and Tools: 49197104Sjkim 50197104SjkimiASL: Fixed a problem with the use of the Alias operator and Resource 51197104SjkimTemplates. The correct alias is now constructed and no error is emitted. 52197104SjkimACPICA BZ 738. 53197104Sjkim 54197104SjkimiASL: Implemented the -I option to specify additional search directories for 55197104Sjkiminclude files. Allows multiple additional search paths for include files. 56197104SjkimDirectories are searched in the order specified on the command line (after 57197104Sjkimthe local directory is searched.) ACPICA BZ 800. 58197104Sjkim 59197104SjkimiASL: Fixed a problem where the full pathname for include files was not 60197104Sjkimemitted for warnings/errors. This caused the IDE support to not work 61197104Sjkimproperly. ACPICA BZ 765. 62197104Sjkim 63197104SjkimiASL: Implemented the -@ option to specify a Windows-style response file 64197104Sjkimcontaining additional command line options. ACPICA BZ 801. 65197104Sjkim 66197104SjkimAcpiExec: Added support to load multiple AML files simultaneously (such as a 67197104SjkimDSDT and multiple SSDTs). Also added support for wildcards within the AML 68197104Sjkimpathname. These features allow all machine tables to be easily loaded and 69197104Sjkimdebugged together. ACPICA BZ 804. 70197104Sjkim 71197104SjkimDisassembler: Added missing support for disassembly of HEST table Error Bank 72197104Sjkimsubtables. 73197104Sjkim 74197104Sjkim---------------------------------------- 75197104Sjkim30 July 2009. Summary of changes for version 20090730: 76197104Sjkim 77197104SjkimThis release is available at www.acpica.org/downloads 78197104Sjkim 79197104SjkimThe ACPI 4.0 implementation for ACPICA is complete with this release. 80197104Sjkim 81197104Sjkim1) ACPI CA Core Subsystem: 82197104Sjkim 83197104SjkimACPI 4.0: Added header file support for all new and changed ACPI tables. 84197104SjkimCompletely new tables are: IBFT, IVRS, MSCT, and WAET. Tables that are new 85197104Sjkimfor ACPI 4.0, but have previously been supported in ACPICA are: CPEP, BERT, 86197104SjkimEINJ, ERST, and HEST. Other newly supported tables are: UEFI and WDAT. There 87197104Sjkimhave been some ACPI 4.0 changes to other existing tables. Split the large 88197104Sjkimactbl1.h header into the existing actbl2.h header. ACPICA BZ 774. 89197104Sjkim 90197104SjkimACPI 4.0: Implemented predefined name validation for all new names. There are 91197104Sjkim31 new names in ACPI 4.0. The predefined validation module was split into two 92197104Sjkimfiles. The new file is namespace/nsrepair.c. ACPICA BZ 770. 93197104Sjkim 94197104SjkimImplemented support for so-called "module-level executable code". This is 95197104Sjkimexecutable AML code that exists outside of any control method and is intended 96197104Sjkimto be executed at table load time. Although illegal since ACPI 2.0, this type 97197104Sjkimof code still exists and is apparently still being created. Blocks of this 98197104Sjkimcode are now detected and executed as intended. Currently, the code blocks 99197104Sjkimmust exist under either an If, Else, or While construct; these are the 100197104Sjkimtypical cases seen in the field. ACPICA BZ 762. Lin Ming. 101197104Sjkim 102197104SjkimImplemented an automatic dynamic repair for predefined names that return 103197104Sjkimnested Package objects. This applies to predefined names that are defined to 104197104Sjkimreturn a variable-length Package of sub-packages. If the number of sub- 105197104Sjkimpackages is one, BIOS code is occasionally seen that creates a simple single 106197104Sjkimpackage with no sub-packages. This code attempts to fix the problem by 107197104Sjkimwrapping a new package object around the existing package. These methods can 108197104Sjkimbe repaired: _ALR, _CSD, _HPX, _MLS, _PRT, _PSS, _TRT, and _TSS. ACPICA BZ 109197104Sjkim790. 110197104Sjkim 111197104SjkimFixed a regression introduced in 20090625 for the AcpiGetDevices interface. 112197104SjkimThe _HID/_CID matching was broken and no longer matched IDs correctly. ACPICA 113197104SjkimBZ 793. 114197104Sjkim 115197104SjkimFixed a problem with AcpiReset where the reset would silently fail if the 116197104Sjkimregister was one of the protected I/O ports. AcpiReset now bypasses the port 117197104Sjkimvalidation mechanism. This may eventually be driven into the AcpiRead/Write 118197104Sjkiminterfaces. 119197104Sjkim 120197104SjkimFixed a regression related to the recent update of the AcpiRead/Write 121197104Sjkiminterfaces. A sleep/suspend could fail if the optional PM2 Control register 122197104Sjkimdoes not exist during an attempt to write the Bus Master Arbitration bit. 123197104Sjkim(However, some hosts already delete the code that writes this bit, and the 124197104Sjkimcode may in fact be obsolete at this date.) ACPICA BZ 799. 125197104Sjkim 126197104SjkimFixed a problem where AcpiTerminate could fault if inadvertently called twice 127197104Sjkimin succession. ACPICA BZ 795. 128197104Sjkim 129197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 130197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 131197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 132197104Sjkimmuch larger code and data size. 133197104Sjkim 134197104Sjkim Previous Release: 135197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 136197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 137197104Sjkim Current Release: 138197104Sjkim Non-Debug Version: 85.5K Code, 18.0K Data, 103.5K Total 139197104Sjkim Debug Version: 161.6K Code, 50.9K Data, 212.5K Total 140197104Sjkim 141197104Sjkim2) iASL Compiler/Disassembler and Tools: 142197104Sjkim 143197104SjkimACPI 4.0: Implemented disassembler support for all new ACPI tables and 144197104Sjkimchanges to existing tables. ACPICA BZ 775. 145197104Sjkim 146197104Sjkim---------------------------------------- 147197104Sjkim25 June 2009. Summary of changes for version 20090625: 148197104Sjkim 149197104SjkimThis release is available at www.acpica.org/downloads 150197104Sjkim 151197104SjkimThe ACPI 4.0 Specification was released on June 16 and is available at 152197104Sjkimwww.acpi.info. ACPICA implementation of ACPI 4.0 is underway and will 153197104Sjkimcontinue for the next few releases. 154197104Sjkim 155197104Sjkim1) ACPI CA Core Subsystem: 156197104Sjkim 157197104SjkimACPI 4.0: Implemented interpreter support for the IPMI operation region 158197104Sjkimaddress space. Includes support for bi-directional data buffers and an IPMI 159197104Sjkimaddress space handler (to be installed by an IPMI device driver.) ACPICA BZ 160197104Sjkim773. Lin Ming. 161197104Sjkim 162197104SjkimACPI 4.0: Added changes for existing ACPI tables - FACS and SRAT. Includes 163197104Sjkimsupport in both the header files and the disassembler. 164197104Sjkim 165197104SjkimCompleted a major update for the AcpiGetObjectInfo external interface. 166197104SjkimChanges include: 167197104Sjkim - Support for variable, unlimited length HID, UID, and CID strings. 168197104Sjkim - Support Processor objects the same as Devices (HID,UID,CID,ADR,STA, etc.) 169197104Sjkim - Call the _SxW power methods on behalf of a device object. 170197104Sjkim - Determine if a device is a PCI root bridge. 171197104Sjkim - Change the ACPI_BUFFER parameter to ACPI_DEVICE_INFO. 172197104SjkimThese changes will require an update to all callers of this interface. See 173197104Sjkimthe updated ACPICA Programmer Reference for details. One new source file has 174197104Sjkimbeen added - utilities/utids.c. ACPICA BZ 368, 780. 175197104Sjkim 176197104SjkimUpdated the AcpiRead and AcpiWrite external interfaces to support 64-bit 177197104Sjkimtransfers. The Value parameter has been extended from 32 bits to 64 bits in 178197104Sjkimorder to support new ACPI 4.0 tables. These changes will require an update to 179197104Sjkimall callers of these interfaces. See the ACPICA Programmer Reference for 180197104Sjkimdetails. ACPICA BZ 768. 181197104Sjkim 182197104SjkimFixed several problems with AcpiAttachData. The handler was not invoked when 183197104Sjkimthe host node was deleted. The data sub-object was not automatically deleted 184197104Sjkimwhen the host node was deleted. The interface to the handler had an unused 185197104Sjkimparameter, this was removed. ACPICA BZ 778. 186197104Sjkim 187197104SjkimEnhanced the function that dumps ACPI table headers. All non-printable 188197104Sjkimcharacters in the string fields are now replaced with '?' (Signature, OemId, 189197104SjkimOemTableId, and CompilerId.) ACPI tables with non-printable characters in 190197104Sjkimthese fields are occasionally seen in the field. ACPICA BZ 788. 191197104Sjkim 192197104SjkimFixed a problem with predefined method repair code where the code that 193197104Sjkimattempts to repair/convert an object of incorrect type is only executed on 194197104Sjkimthe first time the predefined method is called. The mechanism that disables 195197104Sjkimwarnings on subsequent calls was interfering with the repair mechanism. 196197104SjkimACPICA BZ 781. 197197104Sjkim 198197104SjkimFixed a possible memory leak in the predefined validation/repair code when a 199197104Sjkimbuffer is automatically converted to an expected string object. 200197104Sjkim 201197104SjkimRemoved obsolete 16-bit files from the distribution and from the current git 202197104Sjkimtree head. ACPICA BZ 776. 203197104Sjkim 204197104SjkimExample Code and Data Size: These are the sizes for the OS-independent 205197104Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 206197104Sjkimdebug version of the code includes the debug output trace mechanism and has a 207197104Sjkimmuch larger code and data size. 208197104Sjkim 209197104Sjkim Previous Release: 210197104Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 211197104Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 212197104Sjkim Current Release: 213197104Sjkim Non-Debug Version: 84.7K Code, 17.8K Data, 102.5K Total 214197104Sjkim Debug Version: 160.5K Code, 50.6K Data, 211.1K Total 215197104Sjkim 216197104Sjkim2) iASL Compiler/Disassembler and Tools: 217197104Sjkim 218197104SjkimACPI 4.0: iASL and Disassembler - implemented support for the new IPMI 219197104Sjkimoperation region keyword. ACPICA BZ 771, 772. Lin Ming. 220197104Sjkim 221197104SjkimACPI 4.0: iASL - implemented compile-time validation support for all new 222197104Sjkimpredefined names and control methods (31 total). ACPICA BZ 769. 223197104Sjkim 224197104Sjkim---------------------------------------- 225193267Sjkim21 May 2009. Summary of changes for version 20090521: 226193267Sjkim 227193267SjkimThis release is available at www.acpica.org/downloads 228193267Sjkim 229193267Sjkim1) ACPI CA Core Subsystem: 230193267Sjkim 231193267SjkimDisabled the preservation of the SCI enable bit in the PM1 control register. 232193267SjkimThe SCI enable bit (bit 0, SCI_EN) is defined by the ACPI specification to be 233193267Sjkima "preserved" bit - "OSPM always preserves this bit position", section 234193267Sjkim4.7.3.2.1. However, some machines fail if this bit is in fact preserved 235193267Sjkimbecause the bit needs to be explicitly set by the OS as a workaround. No 236193267Sjkimmachines fail if the bit is not preserved. Therefore, ACPICA no longer 237193267Sjkimattempts to preserve this bit. 238193267Sjkim 239193267SjkimFixed a problem in AcpiRsGetPciRoutingTableLength where an invalid or 240193267Sjkimincorrectly formed _PRT package could cause a fault. Added validation to 241193267Sjkimensure that each package element is actually a sub-package. 242193267Sjkim 243193267SjkimImplemented a new interface to install or override a single control method, 244193267SjkimAcpiInstallMethod. This interface is useful when debugging in order to repair 245193267Sjkiman existing method or to install a missing method without having to override 246193267Sjkimthe entire ACPI table. See the ACPICA Programmer Reference for use and 247193267Sjkimexamples. Lin Ming, Bob Moore. 248193267Sjkim 249193267SjkimFixed several reference count issues with the DdbHandle object that is 250193267Sjkimcreated from a Load or LoadTable operator. Prevent premature deletion of the 251193267Sjkimobject. Also, mark the object as invalid once the table has been unloaded. 252193267SjkimThis is needed because the handle itself may not be deleted after the table 253193267Sjkimunload, depending on whether it has been stored in a named object by the 254193267Sjkimcaller. Lin Ming. 255193267Sjkim 256193267SjkimFixed a problem with Mutex Sync Levels. Fixed a problem where if multiple 257193267Sjkimmutexes of the same sync level are acquired but then not released in strict 258193267Sjkimopposite order, the internally maintained Current Sync Level becomes confused 259193267Sjkimand can cause subsequent execution errors. ACPICA BZ 471. 260193267Sjkim 261193267SjkimChanged the allowable release order for ASL mutex objects. The ACPI 4.0 262193267Sjkimspecification has been changed to make the SyncLevel for mutex objects more 263193267Sjkimuseful. When releasing a mutex, the SyncLevel of the mutex must now be the 264193267Sjkimsame as the current sync level. This makes more sense than the previous rule 265193267Sjkim(SyncLevel less than or equal). This change updates the code to match the 266193267Sjkimspecification. 267193267Sjkim 268193267SjkimFixed a problem with the local version of the AcpiOsPurgeCache function. The 269193267Sjkim(local) cache must be locked during all cache object deletions. Andrew 270193267SjkimBaumann. 271193267Sjkim 272193267SjkimUpdated the Load operator to use operation region interfaces. This replaces 273193267Sjkimdirect memory mapping with region access calls. Now, all region accesses go 274193267Sjkimthrough the installed region handler as they should. 275193267Sjkim 276193267SjkimSimplified and optimized the NsGetNextNode function. Reduced parameter count 277193267Sjkimand reduced code for this frequently used function. 278193267Sjkim 279193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 280193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 281193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 282193267Sjkimmuch larger code and data size. 283193267Sjkim 284193267Sjkim Previous Release: 285193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 286193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 287193267Sjkim Current Release: 288193267Sjkim Non-Debug Version: 83.4K Code, 17.5K Data, 100.9K Total 289193267Sjkim Debug Version: 158.9K Code, 50.0K Data, 208.9K Total 290193267Sjkim 291193267Sjkim2) iASL Compiler/Disassembler and Tools: 292193267Sjkim 293193267SjkimDisassembler: Fixed some issues with DMAR, HEST, MADT tables. Some problems 294193267Sjkimwith sub-table disassembly and handling invalid sub-tables. Attempt recovery 295193267Sjkimafter an invalid sub-table ID. 296193267Sjkim 297193267Sjkim---------------------------------------- 298193267Sjkim22 April 2009. Summary of changes for version 20090422: 299193267Sjkim 300193267SjkimThis release is available at www.acpica.org/downloads 301193267Sjkim 302193267Sjkim1) ACPI CA Core Subsystem: 303193267Sjkim 304193267SjkimFixed a compatibility issue with the recently released I/O port protection 305193267Sjkimmechanism. For windows compatibility, 1) On a port protection violation, 306193267Sjkimsimply ignore the request and do not return an exception (allow the control 307193267Sjkimmethod to continue execution.) 2) If only part of the request overlaps a 308193267Sjkimprotected port, read/write the individual ports that are not protected. Linux 309193267SjkimBZ 13036. Lin Ming 310193267Sjkim 311193267SjkimEnhanced the execution of the ASL/AML BreakPoint operator so that it actually 312193267Sjkimbreaks into the AML debugger if the debugger is present. This matches the 313193267SjkimACPI-defined behavior. 314193267Sjkim 315193267SjkimFixed several possible warnings related to the use of the configurable 316193267SjkimACPI_THREAD_ID. This type can now be configured as either an integer or a 317193267Sjkimpointer with no warnings. Also fixes several warnings in printf-like 318193267Sjkimstatements for the 64-bit build when the type is configured as a pointer. 319193267SjkimACPICA BZ 766, 767. 320193267Sjkim 321193267SjkimFixed a number of possible warnings when compiling with gcc 4+ (depending on 322193267Sjkimwarning options.) Examples include printf formats, aliasing, unused globals, 323193267Sjkimmissing prototypes, missing switch default statements, use of non-ANSI 324193267Sjkimlibrary functions, use of non-ANSI constructs. See generate/unix/Makefile for 325193267Sjkima list of warning options used with gcc 3 and 4. ACPICA BZ 735. 326193267Sjkim 327193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 328193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 329193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 330193267Sjkimmuch larger code and data size. 331193267Sjkim 332193267Sjkim Previous Release: 333193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 334193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 335193267Sjkim Current Release: 336193267Sjkim Non-Debug Version: 82.8K Code, 17.5K Data, 100.3K Total 337193267Sjkim Debug Version: 158.0K Code, 49.9K Data, 207.9K Total 338193267Sjkim 339193267Sjkim2) iASL Compiler/Disassembler and Tools: 340193267Sjkim 341193267SjkimiASL: Fixed a generation warning from Bison 2.3 and fixed several warnings on 342193267Sjkimthe 64-bit build. 343193267Sjkim 344193267SjkimiASL: Fixed a problem where the Unix/Linux versions of the compiler could not 345193267Sjkimcorrectly digest Windows/DOS formatted files (with CR/LF). 346193267Sjkim 347193267SjkimiASL: Added a new option for "quiet mode" (-va) that produces only the 348193267Sjkimcompilation summary, not individual errors and warnings. Useful for large 349193267Sjkimbatch compilations. 350193267Sjkim 351193267SjkimAcpiExec: Implemented a new option (-z) to enable a forced semaphore/mutex 352193267Sjkimtimeout that can be used to detect hang conditions during execution of AML 353193267Sjkimcode (includes both internal semaphores and AML-defined mutexes and events.) 354193267Sjkim 355193267SjkimAdded new makefiles for the generation of acpica in a generic unix-like 356193267Sjkimenvironment. These makefiles are intended to generate the acpica tools and 357193267Sjkimutilities from the original acpica git source tree structure. 358193267Sjkim 359193267SjkimTest Suites: Updated and cleaned up the documentation files. Updated the 360193267Sjkimcopyrights to 2009, affecting all source files. Use the new version of iASL 361193267Sjkimwith quiet mode. Increased the number of available semaphores in the Windows 362193267SjkimOSL, allowing the aslts to execute fully on Windows. For the Unix OSL, added 363193267Sjkiman alternate implementation of the semaphore timeout to allow aslts to 364193267Sjkimexecute fully on Cygwin. 365193267Sjkim 366193267Sjkim---------------------------------------- 367193267Sjkim20 March 2009. Summary of changes for version 20090320: 368193267Sjkim 369193267Sjkim1) ACPI CA Core Subsystem: 370193267Sjkim 371193267SjkimFixed a possible race condition between AcpiWalkNamespace and dynamic table 372193267Sjkimunloads. Added a reader/writer locking mechanism to allow multiple concurrent 373193267Sjkimnamespace walks (readers), but block a dynamic table unload until it can gain 374193267Sjkimexclusive write access to the namespace. This fixes a problem where a table 375193267Sjkimunload could (possibly catastrophically) delete the portion of the namespace 376193267Sjkimthat is currently being examined by a walk. Adds a new file, utlock.c, that 377193267Sjkimimplements the reader/writer lock mechanism. ACPICA BZ 749. 378193267Sjkim 379193267SjkimFixed a regression introduced in version 20090220 where a change to the FADT 380193267Sjkimhandling could cause the ACPICA subsystem to access non-existent I/O ports. 381193267Sjkim 382193267SjkimModified the handling of FADT register and table (FACS/DSDT) addresses. The 383193267SjkimFADT can contain both 32-bit and 64-bit versions of these addresses. 384193267SjkimPreviously, the 64-bit versions were favored, meaning that if both 32 and 64 385193267Sjkimversions were valid, but not equal, the 64-bit version was used. This was 386193267Sjkimfound to cause some machines to fail. Now, in this case, the 32-bit version 387193267Sjkimis used instead. This now matches the Windows behavior. 388193267Sjkim 389193267SjkimImplemented a new mechanism to protect certain I/O ports. Provides Microsoft 390193267Sjkimcompatibility and protects the standard PC I/O ports from access via AML 391193267Sjkimcode. Adds a new file, hwvalid.c 392193267Sjkim 393193267SjkimFixed a possible extraneous warning message from the FADT support. The 394193267Sjkimmessage warns of a 32/64 length mismatch between the legacy and GAS 395193267Sjkimdefinitions for a register. 396193267Sjkim 397193267SjkimRemoved the obsolete AcpiOsValidateAddress OSL interface. This interface is 398193267Sjkimmade obsolete by the port protection mechanism above. It was previously used 399193267Sjkimto validate the entire address range of an operation region, which could be 400193267Sjkimincorrect if the range included illegal ports, but fields within the 401193267Sjkimoperation region did not actually access those ports. Validation is now 402193267Sjkimperformed on a per-field basis instead of the entire region. 403193267Sjkim 404193267SjkimModified the handling of the PM1 Status Register ignored bit (bit 11.) 405193267SjkimIgnored bits must be "preserved" according to the ACPI spec. Usually, this 406193267Sjkimmeans a read/modify/write when writing to the register. However, for status 407193267Sjkimregisters, writing a one means clear the event. Writing a zero means preserve 408193267Sjkimthe event (do not clear.) This behavior is clarified in the ACPI 4.0 spec, 409193267Sjkimand the ACPICA code now simply always writes a zero to the ignored bit. 410193267Sjkim 411193267SjkimModified the handling of ignored bits for the PM1 A/B Control Registers. As 412193267Sjkimper the ACPI specification, for the control registers, preserve 413193267Sjkim(read/modify/write) all bits that are defined as either reserved or ignored. 414193267Sjkim 415193267SjkimUpdated the handling of write-only bits in the PM1 A/B Control Registers. 416193267SjkimWhen reading the register, zero the write-only bits as per the ACPI spec. 417193267SjkimACPICA BZ 443. Lin Ming. 418193267Sjkim 419193267SjkimRemoved "Linux" from the list of supported _OSI strings. Linux no longer 420193267Sjkimwants to reply true to this request. The Windows strings are the only paths 421193267Sjkimthrough the AML that are tested and known to work properly. 422193267Sjkim 423193267Sjkim Previous Release: 424193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 425193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 426193267Sjkim Current Release: 427193267Sjkim Non-Debug Version: 82.6K Code, 17.6K Data, 100.2K Total 428193267Sjkim Debug Version: 157.7K Code, 49.9K Data, 207.6K Total 429193267Sjkim 430193267Sjkim2) iASL Compiler/Disassembler and Tools: 431193267Sjkim 432193267SjkimAcpiexec: Split the large aeexec.c file into two new files, aehandlers.c and 433193267Sjkimaetables.c 434193267Sjkim 435193267Sjkim---------------------------------------- 436193267Sjkim20 February 2009. Summary of changes for version 20090220: 437193267Sjkim 438193267Sjkim1) ACPI CA Core Subsystem: 439193267Sjkim 440193267SjkimOptimized the ACPI register locking. Removed locking for reads from the ACPI 441193267Sjkimbit registers in PM1 Status, Enable, Control, and PM2 Control. The lock is 442193267Sjkimnot required when reading the single-bit registers. The 443193267SjkimAcpiGetRegisterUnlocked function is no longer needed and has been removed. 444193267SjkimThis will improve performance for reads on these registers. ACPICA BZ 760. 445193267Sjkim 446193267SjkimFixed the parameter validation for AcpiRead/Write. Now return 447193267SjkimAE_BAD_PARAMETER if the input register pointer is null, and AE_BAD_ADDRESS if 448193267Sjkimthe register has an address of zero. Previously, these cases simply returned 449193267SjkimAE_OK. For optional registers such as PM1B status/enable/control, the caller 450193267Sjkimshould check for a valid register address before calling. ACPICA BZ 748. 451193267Sjkim 452193267SjkimRenamed the external ACPI bit register access functions. Renamed 453193267SjkimAcpiGetRegister and AcpiSetRegister to clarify the purpose of these 454193267Sjkimfunctions. The new names are AcpiReadBitRegister and AcpiWriteBitRegister. 455193267SjkimAlso, restructured the code for these functions by simplifying the code path 456193267Sjkimand condensing duplicate code to reduce code size. 457193267Sjkim 458193267SjkimAdded new functions to transparently handle the possibly split PM1 A/B 459193267Sjkimregisters. AcpiHwReadMultiple and AcpiHwWriteMultiple. These two functions 460193267Sjkimnow handle the split registers for PM1 Status, Enable, and Control. ACPICA BZ 461193267Sjkim746. 462193267Sjkim 463193267SjkimAdded a function to handle the PM1 control registers, AcpiHwWritePm1Control. 464193267SjkimThis function writes both of the PM1 control registers (A/B). These registers 465193267Sjkimare different than the PM1 A/B status and enable registers in that different 466193267Sjkimvalues can be written to the A/B registers. Most notably, the SLP_TYP bits 467193267Sjkimcan be different, as per the values returned from the _Sx predefined methods. 468193267Sjkim 469193267SjkimRemoved an extra register write within AcpiHwClearAcpiStatus. This function 470193267Sjkimwas writing an optional PM1B status register twice. The existing call to the 471193267Sjkimlow-level AcpiHwRegisterWrite automatically handles a possibly split PM1 A/B 472193267Sjkimregister. ACPICA BZ 751. 473193267Sjkim 474193267SjkimSplit out the PM1 Status registers from the FADT. Added new globals for these 475193267Sjkimregisters (A/B), similar to the way the PM1 Enable registers are handled. 476193267SjkimInstead of overloading the FADT Event Register blocks. This makes the code 477193267Sjkimclearer and less prone to error. 478193267Sjkim 479193267SjkimFixed the warning message for when the platform contains too many ACPI tables 480193267Sjkimfor the default size of the global root table data structure. The calculation 481193267Sjkimfor the truncation value was incorrect. 482193267Sjkim 483193267SjkimRemoved the ACPI_GET_OBJECT_TYPE macro. Removed all instances of this 484193267Sjkimobsolete macro, since it is now a simple reference to ->common.type. There 485193267Sjkimwere about 150 invocations of the macro across 41 files. ACPICA BZ 755. 486193267Sjkim 487193267SjkimRemoved the redundant ACPI_BITREG_SLEEP_TYPE_B. This type is the same as 488193267SjkimTYPE_A. Removed this and all related instances. Renamed SLEEP_TYPE_A to 489193267Sjkimsimply SLEEP_TYPE. ACPICA BZ 754. 490193267Sjkim 491193267SjkimConditionally compile the AcpiSetFirmwareWakingVector64 function. This 492193267Sjkimfunction is only needed on 64-bit host operating systems and is thus not 493193267Sjkimincluded for 32-bit hosts. 494193267Sjkim 495193267SjkimDebug output: print the input and result for invocations of the _OSI reserved 496193267Sjkimcontrol method via the ACPI_LV_INFO debug level. Also, reduced some of the 497193267Sjkimverbosity of this debug level. Len Brown. 498193267Sjkim 499193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 500193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 501193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 502193267Sjkimmuch larger code and data size. 503193267Sjkim 504193267Sjkim Previous Release: 505193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 506193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 507193267Sjkim Current Release: 508193267Sjkim Non-Debug Version: 82.0K Code, 17.5K Data, 99.5K Total 509193267Sjkim Debug Version: 156.9K Code, 49.8K Data, 206.7K Total 510193267Sjkim 511193267Sjkim2) iASL Compiler/Disassembler and Tools: 512193267Sjkim 513193267SjkimDisassembler: Decode the FADT PM_Profile field. Emit ascii names for the 514193267Sjkimvarious legal performance profiles. 515193267Sjkim 516193267Sjkim---------------------------------------- 517193267Sjkim23 January 2009. Summary of changes for version 20090123: 518193267Sjkim 519193267Sjkim1) ACPI CA Core Subsystem: 520193267Sjkim 521193267SjkimAdded the 2009 copyright to all module headers and signons. This affects 522193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 523193267Sjkimthe tools/utilities. 524193267Sjkim 525193267SjkimImplemented a change to allow the host to override any ACPI table, including 526193267Sjkimdynamically loaded tables. Previously, only the DSDT could be replaced by the 527193267Sjkimhost. With this change, the AcpiOsTableOverride interface is called for each 528193267Sjkimtable found in the RSDT/XSDT during ACPICA initialization, and also whenever 529193267Sjkima table is dynamically loaded via the AML Load operator. 530193267Sjkim 531193267SjkimUpdated FADT flag definitions, especially the Boot Architecture flags. 532193267Sjkim 533193267SjkimDebugger: For the Find command, automatically pad the input ACPI name with 534193267Sjkimunderscores if the name is shorter than 4 characters. This enables a match 535193267Sjkimwith the actual namespace entry which is itself padded with underscores. 536193267Sjkim 537193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 538193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 539193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 540193267Sjkimmuch larger code and data size. 541193267Sjkim 542193267Sjkim Previous Release: 543193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 544193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 545193267Sjkim Current Release: 546193267Sjkim Non-Debug Version: 82.3K Code, 17.5K Data, 99.8K Total 547193267Sjkim Debug Version: 157.3K Code, 49.8K Data, 207.1K Total 548193267Sjkim 549193267Sjkim2) iASL Compiler/Disassembler and Tools: 550193267Sjkim 551193267SjkimFix build error under Bison-2.4. 552193267Sjkim 553193267SjkimDissasembler: Enhanced FADT support. Added decoding of the Boot Architecture 554193267Sjkimflags. Now decode all flags, regardless of the FADT version. Flag output 555193267Sjkimincludes the FADT version which first defined each flag. 556193267Sjkim 557193267SjkimThe iASL -g option now dumps the RSDT to a file (in addition to the FADT and 558193267SjkimDSDT). Windows only. 559193267Sjkim 560193267Sjkim---------------------------------------- 561193267Sjkim04 December 2008. Summary of changes for version 20081204: 562193267Sjkim 563193267Sjkim1) ACPI CA Core Subsystem: 564193267Sjkim 565193267SjkimThe ACPICA Programmer Reference has been completely updated and revamped for 566193267Sjkimthis release. This includes updates to the external interfaces, OSL 567193267Sjkiminterfaces, the overview sections, and the debugger reference. 568193267Sjkim 569193267SjkimSeveral new ACPICA interfaces have been implemented and documented in the 570193267Sjkimprogrammer reference: 571193267SjkimAcpiReset - Writes the reset value to the FADT-defined reset register. 572193267SjkimAcpiDisableAllGpes - Disable all available GPEs. 573193267SjkimAcpiEnableAllRuntimeGpes - Enable all available runtime GPEs. 574193267SjkimAcpiGetGpeDevice - Get the GPE block device associated with a GPE. 575193267SjkimAcpiGbl_CurrentGpeCount - Tracks the current number of available GPEs. 576193267SjkimAcpiRead - Low-level read ACPI register (was HwLowLevelRead.) 577193267SjkimAcpiWrite - Low-level write ACPI register (was HwLowLevelWrite.) 578193267Sjkim 579193267SjkimMost of the public ACPI hardware-related interfaces have been moved to a new 580193267Sjkimfile, components/hardware/hwxface.c 581193267Sjkim 582193267SjkimEnhanced the FADT parsing and low-level ACPI register access: The ACPI 583193267Sjkimregister lengths within the FADT are now used, and the low level ACPI 584193267Sjkimregister access no longer hardcodes the ACPI register lengths. Given that 585193267Sjkimthere may be some risk in actually trusting the FADT register lengths, a run- 586193267Sjkimtime option was added to fall back to the default hardcoded lengths if the 587193267SjkimFADT proves to contain incorrect values - UseDefaultRegisterWidths. This 588193267Sjkimoption is set to true for now, and a warning is issued if a suspicious FADT 589193267Sjkimregister length is overridden with the default value. 590193267Sjkim 591193267SjkimFixed a reference count issue in NsRepairObject. This problem was introduced 592193267Sjkimin version 20081031 as part of a fix to repair Buffer objects within 593193267SjkimPackages. Lin Ming. 594193267Sjkim 595193267SjkimAdded semaphore support to the Linux/Unix application OS-services layer 596193267Sjkim(OSL). ACPICA BZ 448. Lin Ming. 597193267Sjkim 598193267SjkimAdded the ACPI_MUTEX_TYPE configuration option to select whether mutexes will 599193267Sjkimbe implemented in the OSL, or will binary semaphores be used instead. 600193267Sjkim 601193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 602193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 603193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 604193267Sjkimmuch larger code and data size. 605193267Sjkim 606193267Sjkim Previous Release: 607193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 608193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 609193267Sjkim Current Release: 610193267Sjkim Non-Debug Version: 82.3K Code, 17.4K Data, 99.7K Total 611193267Sjkim Debug Version: 157.1K Code, 49.7K Data, 206.8K Total 612193267Sjkim 613193267Sjkim2) iASL Compiler/Disassembler and Tools: 614193267Sjkim 615193267SjkimiASL: Completed the '-e' option to include additional ACPI tables in order to 616193267Sjkimaid with disassembly and External statement generation. ACPICA BZ 742. Lin 617193267SjkimMing. 618193267Sjkim 619193267SjkimiASL: Removed the "named object in while loop" error. The compiler cannot 620193267Sjkimdetermine how many times a loop will execute. ACPICA BZ 730. 621193267Sjkim 622193267SjkimDisassembler: Implemented support for FADT revision 2 (MS extension). ACPICA 623193267SjkimBZ 743. 624193267Sjkim 625193267SjkimDisassembler: Updates for several ACPI data tables (HEST, EINJ, and MCFG). 626193267Sjkim 627193267Sjkim---------------------------------------- 628193267Sjkim31 October 2008. Summary of changes for version 20081031: 629193267Sjkim 630193267Sjkim1) ACPI CA Core Subsystem: 631193267Sjkim 632193267SjkimRestructured the ACPICA header files into public/private. acpi.h now includes 633193267Sjkimonly the "public" acpica headers. All other acpica headers are "private" and 634193267Sjkimshould not be included by acpica users. One new file, accommon.h is used to 635193267Sjkiminclude the commonly used private headers for acpica code generation. Future 636193267Sjkimplans include moving all private headers to a new subdirectory. 637193267Sjkim 638193267SjkimImplemented an automatic Buffer->String return value conversion for 639193267Sjkimpredefined ACPI methods. For these methods (such as _BIF), added automatic 640193267Sjkimconversion for return objects that are required to be a String, but a Buffer 641193267Sjkimwas found instead. This can happen when reading string battery data from an 642193267Sjkimoperation region, because it used to be difficult to convert the data from 643193267Sjkimbuffer to string from within the ASL. Ensures that the host OS is provided 644193267Sjkimwith a valid null-terminated string. Linux BZ 11822. 645193267Sjkim 646193267SjkimUpdated the FACS waking vector interfaces. Split AcpiSetFirmwareWakingVector 647193267Sjkiminto two: one for the 32-bit vector, another for the 64-bit vector. This is 648193267Sjkimrequired because the host OS must setup the wake much differently for each 649193267Sjkimvector (real vs. protected mode, etc.) and the interface itself should not be 650193267Sjkimdeciding which vector to use. Also, eliminated the GetFirmwareWakingVector 651193267Sjkiminterface, as it served no purpose (only the firmware reads the vector, OS 652193267Sjkimonly writes the vector.) ACPICA BZ 731. 653193267Sjkim 654193267SjkimImplemented a mechanism to escape infinite AML While() loops. Added a loop 655193267Sjkimcounter to force exit from AML While loops if the count becomes too large. 656193267SjkimThis can occur in poorly written AML when the hardware does not respond 657193267Sjkimwithin a while loop and the loop does not implement a timeout. The maximum 658193267Sjkimloop count is configurable. A new exception code is returned when a loop is 659193267Sjkimbroken, AE_AML_INFINITE_LOOP. Alexey Starikovskiy, Bob Moore. 660193267Sjkim 661193267SjkimOptimized the execution of AML While loops. Previously, a control state 662193267Sjkimobject was allocated and freed for each execution of the loop. The 663193267Sjkimoptimization is to simply reuse the control state for each iteration. This 664193267Sjkimspeeds up the raw loop execution time by about 5%. 665193267Sjkim 666193267SjkimEnhanced the implicit return mechanism. For Windows compatibility, return an 667193267Sjkimimplicit integer of value zero for methods that contain no executable code. 668193267SjkimSuch methods are seen in the field as stubs (presumably), and can cause 669193267Sjkimdrivers to fail if they expect a return value. Lin Ming. 670193267Sjkim 671193267SjkimAllow multiple backslashes as root prefixes in namepaths. In a fully 672193267Sjkimqualified namepath, allow multiple backslash prefixes. This can happen (and 673193267Sjkimis seen in the field) because of the use of a double-backslash in strings 674193267Sjkim(since backslash is the escape character) causing confusion. ACPICA BZ 739 675193267SjkimLin Ming. 676193267Sjkim 677193267SjkimEmit a warning if two different FACS or DSDT tables are discovered in the 678193267SjkimFADT. Checks if there are two valid but different addresses for the FACS and 679193267SjkimDSDT within the FADT (mismatch between the 32-bit and 64-bit fields.) 680193267Sjkim 681193267SjkimConsolidated the method argument count validation code. Merged the code that 682193267Sjkimvalidates control method argument counts into the predefined validation 683193267Sjkimmodule. Eliminates possible multiple warnings for incorrect argument counts. 684193267Sjkim 685193267SjkimImplemented ACPICA example code. Includes code for ACPICA initialization, 686193267Sjkimhandler installation, and calling a control method. Available at 687193267Sjkimsource/tools/examples. 688193267Sjkim 689193267SjkimAdded a global pointer for FACS table to simplify internal FACS access. Use 690193267Sjkimthe global pointer instead of using AcpiGetTableByIndex for each FACS access. 691193267SjkimThis simplifies the code for the Global Lock and the Firmware Waking 692193267SjkimVector(s). 693193267Sjkim 694193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 695193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 696193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 697193267Sjkimmuch larger code and data size. 698193267Sjkim 699193267Sjkim Previous Release: 700193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 701193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 702193267Sjkim Current Release: 703193267Sjkim Non-Debug Version: 81.7K Code, 17.3K Data, 99.0K Total 704193267Sjkim Debug Version: 156.4K Code, 49.4K Data, 205.8K Total 705193267Sjkim 706193267Sjkim2) iASL Compiler/Disassembler and Tools: 707193267Sjkim 708193267SjkimiASL: Improved disassembly of external method calls. Added the -e option to 709193267Sjkimallow the inclusion of additional ACPI tables to help with the disassembly of 710193267Sjkimmethod invocations and the generation of external declarations during the 711193267Sjkimdisassembly. Certain external method invocations cannot be disassembled 712193267Sjkimproperly without the actual declaration of the method. Use the -e option to 713193267Sjkiminclude the table where the external method(s) are actually declared. Most 714193267Sjkimuseful for disassembling SSDTs that make method calls back to the master 715193267SjkimDSDT. Lin Ming. Example: To disassemble an SSDT with calls to DSDT: iasl -d 716193267Sjkim-e dsdt.aml ssdt1.aml 717193267Sjkim 718193267SjkimiASL: Fix to allow references to aliases within ASL namepaths. Fixes a 719193267Sjkimproblem where the use of an alias within a namepath would result in a not 720193267Sjkimfound error or cause the compiler to fault. Also now allows forward 721193267Sjkimreferences from the Alias operator itself. ACPICA BZ 738. 722193267Sjkim 723193267Sjkim---------------------------------------- 724193267Sjkim26 September 2008. Summary of changes for version 20080926: 725193267Sjkim 726193267Sjkim1) ACPI CA Core Subsystem: 727193267Sjkim 728193267SjkimDesigned and implemented a mechanism to validate predefined ACPI methods and 729193267Sjkimobjects. This code validates the predefined ACPI objects (objects whose names 730193267Sjkimstart with underscore) that appear in the namespace, at the time they are 731193267Sjkimevaluated. The argument count and the type of the returned object are 732193267Sjkimvalidated against the ACPI specification. The purpose of this validation is 733193267Sjkimto detect problems with the BIOS-implemented predefined ACPI objects before 734193267Sjkimthe results are returned to the ACPI-related drivers. Future enhancements may 735193267Sjkiminclude actual repair of incorrect return objects where possible. Two new 736193267Sjkimfiles are nspredef.c and acpredef.h. 737193267Sjkim 738193267SjkimFixed a fault in the AML parser if a memory allocation fails during the Op 739193267Sjkimcompletion routine AcpiPsCompleteThisOp. Lin Ming. ACPICA BZ 492. 740193267Sjkim 741193267SjkimFixed an issue with implicit return compatibility. This change improves the 742193267Sjkimimplicit return mechanism to be more compatible with the MS interpreter. Lin 743193267SjkimMing, ACPICA BZ 349. 744193267Sjkim 745193267SjkimImplemented support for zero-length buffer-to-string conversions. Allow zero 746193267Sjkimlength strings during interpreter buffer-to-string conversions. For example, 747193267Sjkimduring the ToDecimalString and ToHexString operators, as well as implicit 748193267Sjkimconversions. Fiodor Suietov, ACPICA BZ 585. 749193267Sjkim 750193267SjkimFixed two possible memory leaks in the error exit paths of 751193267SjkimAcpiUtUpdateObjectReference and AcpiUtWalkPackageTree. These functions are 752193267Sjkimsimilar in that they use a stack of state objects in order to eliminate 753193267Sjkimrecursion. The stack must be fully unwound and deallocated if an error 754193267Sjkimoccurs. Lin Ming. ACPICA BZ 383. 755193267Sjkim 756193267SjkimRemoved the unused ACPI_BITREG_WAKE_ENABLE definition and entry in the global 757193267SjkimACPI register table. This bit does not exist and is unused. Lin Ming, Bob 758193267SjkimMoore ACPICA BZ 442. 759193267Sjkim 760193267SjkimRemoved the obsolete version number in module headers. Removed the 761193267Sjkim"$Revision" number that appeared in each module header. This version number 762193267Sjkimwas useful under SourceSafe and CVS, but has no meaning under git. It is not 763193267Sjkimonly incorrect, it could also be misleading. 764193267Sjkim 765193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 766193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 767193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 768193267Sjkimmuch larger code and data size. 769193267Sjkim 770193267Sjkim Previous Release: 771193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 772193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 773193267Sjkim Current Release: 774193267Sjkim Non-Debug Version: 81.2K Code, 17.0K Data, 98.2K Total 775193267Sjkim Debug Version: 155.8K Code, 49.1K Data, 204.9K Total 776193267Sjkim 777193267Sjkim---------------------------------------- 778193267Sjkim29 August 2008. Summary of changes for version 20080829: 779193267Sjkim 780193267Sjkim1) ACPI CA Core Subsystem: 781193267Sjkim 782193267SjkimCompleted a major cleanup of the internal ACPI_OPERAND_OBJECT of type 783193267SjkimReference. Changes include the elimination of cheating on the Object field 784193267Sjkimfor the DdbHandle subtype, addition of a reference class field to 785193267Sjkimdifferentiate the various reference types (instead of an AML opcode), and the 786193267Sjkimcleanup of debug output for this object. Lin Ming, Bob Moore. BZ 723 787193267Sjkim 788193267SjkimReduce an error to a warning for an incorrect method argument count. 789193267SjkimPreviously aborted with an error if too few arguments were passed to a 790193267Sjkimcontrol method via the external ACPICA interface. Now issue a warning instead 791193267Sjkimand continue. Handles the case where the method inadvertently declares too 792193267Sjkimmany arguments, but does not actually use the extra ones. Applies mainly to 793193267Sjkimthe predefined methods. Lin Ming. Linux BZ 11032. 794193267Sjkim 795193267SjkimDisallow the evaluation of named object types with no intrinsic value. Return 796193267SjkimAE_TYPE for objects that have no value and therefore evaluation is undefined: 797193267SjkimDevice, Event, Mutex, Region, Thermal, and Scope. Previously, evaluation of 798193267Sjkimthese types were allowed, but an exception would be generated at some point 799193267Sjkimduring the evaluation. Now, the error is generated up front. 800193267Sjkim 801193267SjkimFixed a possible memory leak in the AcpiNsGetExternalPathname function 802193267Sjkim(nsnames.c). Fixes a leak in the error exit path. 803193267Sjkim 804193267SjkimRemoved the obsolete debug levels ACPI_DB_WARN and ACPI_DB_ERROR. These debug 805193267Sjkimlevels were made obsolete by the ACPI_WARNING, ACPI_ERROR, and ACPI_EXCEPTION 806193267Sjkiminterfaces. Also added ACPI_DB_EVENTS to correspond with the existing 807193267SjkimACPI_LV_EVENTS. 808193267Sjkim 809193267SjkimRemoved obsolete and/or unused exception codes from the acexcep.h header. 810193267SjkimThere is the possibility that certain device drivers may be affected if they 811193267Sjkimuse any of these exceptions. 812193267Sjkim 813193267SjkimThe ACPICA documentation has been added to the public git source tree, under 814193267Sjkimacpica/documents. Included are the ACPICA programmer reference, the iASL 815193267Sjkimcompiler reference, and the changes.txt release logfile. 816193267Sjkim 817193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 818193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 819193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 820193267Sjkimmuch larger code and data size. 821193267Sjkim 822193267Sjkim Previous Release: 823193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 824193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 825193267Sjkim Current Release: 826193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 827193267Sjkim Debug Version: 153.7K Code, 48.2K Data, 201.9K Total 828193267Sjkim 829193267Sjkim2) iASL Compiler/Disassembler and Tools: 830193267Sjkim 831193267SjkimAllow multiple argument counts for the predefined _SCP method. ACPI 3.0 832193267Sjkimdefines _SCP with 3 arguments. Previous versions defined it with only 1 833193267Sjkimargument. iASL now allows both definitions. 834193267Sjkim 835193267SjkimiASL/disassembler: avoid infinite loop on bad ACPI tables. Check for zero- 836193267Sjkimlength subtables when disassembling ACPI tables. Also fixed a couple of 837193267Sjkimerrors where a full 16-bit table type field was not extracted from the input 838193267Sjkimproperly. 839193267Sjkim 840193267Sjkimacpisrc: Improve comment counting mechanism for generating source code 841193267Sjkimstatistics. Count first and last lines of multi-line comments as whitespace, 842193267Sjkimnot comment lines. Handle Linux legal header in addition to standard acpica 843193267Sjkimheader. 844193267Sjkim 845193267Sjkim---------------------------------------- 846193267Sjkim 847193267Sjkim29 July 2008. Summary of changes for version 20080729: 848193267Sjkim 849193267SjkimThis release is available at http://acpica.org/downloads 850193267SjkimDirect git access via http://www.acpica.org/repos/acpica.git 851193267Sjkim 852193267Sjkim1) ACPI CA Core Subsystem: 853193267Sjkim 854193267SjkimFix a possible deadlock in the GPE dispatch. Remove call to 855193267SjkimAcpiHwDisableAllGpes during wake in AcpiEvGpeDispatch. This call will attempt 856193267Sjkimto acquire the GPE lock but can deadlock since the GPE lock is already held 857193267Sjkimat dispatch time. This code was introduced in version 20060831 as a response 858193267Sjkimto Linux BZ 6881 and has since been removed from Linux. 859193267Sjkim 860193267SjkimAdd a function to dereference returned reference objects. Examines the return 861193267Sjkimobject from a call to AcpiEvaluateObject. Any Index or RefOf references are 862193267Sjkimautomatically dereferenced in an attempt to return something useful (these 863193267Sjkimreference types cannot be converted into an external ACPI_OBJECT.) Provides 864193267SjkimMS compatibility. Lin Ming, Bob Moore. Linux BZ 11105 865193267Sjkim 866193267Sjkimx2APIC support: changes for MADT and SRAT ACPI tables. There are 2 new 867193267Sjkimsubtables for the MADT and one new subtable for the SRAT. Includes 868193267Sjkimdisassembler and AcpiSrc support. Data from the Intel 64 Architecture x2APIC 869193267SjkimSpecification, June 2008. 870193267Sjkim 871193267SjkimAdditional error checking for pathname utilities. Add error check after all 872193267Sjkimcalls to AcpiNsGetPathnameLength. Add status return from 873193267SjkimAcpiNsBuildExternalPath and check after all calls. Add parameter validation 874193267Sjkimto AcpiUtInitializeBuffer. Reported by and initial patch by Ingo Molnar. 875193267Sjkim 876193267SjkimReturn status from the global init function AcpiUtGlobalInitialize. This is 877193267Sjkimused by both the kernel subsystem and the utilities such as iASL compiler. 878193267SjkimThe function could possibly fail when the caches are initialized. Yang Yi. 879193267Sjkim 880193267SjkimAdd a function to decode reference object types to strings. Created for 881193267Sjkimimproved error messages. 882193267Sjkim 883193267SjkimImprove object conversion error messages. Better error messages during object 884193267Sjkimconversion from internal to the external ACPI_OBJECT. Used for external calls 885193267Sjkimto AcpiEvaluateObject. 886193267Sjkim 887193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 888193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 889193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 890193267Sjkimmuch larger code and data size. 891193267Sjkim 892193267Sjkim Previous Release: 893193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 894193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 895193267Sjkim Current Release: 896193267Sjkim Non-Debug Version: 79.7K Code, 16.4K Data, 96.1K Total 897193267Sjkim Debug Version: 153.9K Code, 48.4K Data, 202.3K Total 898193267Sjkim 899193267Sjkim2) iASL Compiler/Disassembler and Tools: 900193267Sjkim 901193267SjkimDebugger: fix a possible hang when evaluating non-methods. Fixes a problem 902193267Sjkimintroduced in version 20080701. If the object being evaluated (via execute 903193267Sjkimcommand) is not a method, the debugger can hang while trying to obtain non- 904193267Sjkimexistent parameters. 905193267Sjkim 906193267SjkimiASL: relax error for using reserved "_T_x" identifiers. These names can 907193267Sjkimappear in a disassembled ASL file if they were emitted by the original 908193267Sjkimcompiler. Instead of issuing an error or warning and forcing the user to 909193267Sjkimmanually change these names, issue a remark instead. 910193267Sjkim 911193267SjkimiASL: error if named object created in while loop. Emit an error if any named 912193267Sjkimobject is created within a While loop. If allowed, this code will generate a 913193267Sjkimrun-time error on the second iteration of the loop when an attempt is made to 914193267Sjkimcreate the same named object twice. ACPICA bugzilla 730. 915193267Sjkim 916193267SjkimiASL: Support absolute pathnames for include files. Add support for absolute 917193267Sjkimpathnames within the Include operator. previously, only relative pathnames 918193267Sjkimwere supported. 919193267Sjkim 920193267SjkimiASL: Enforce minimum 1 interrupt in interrupt macro and Resource Descriptor. 921193267SjkimThe ACPI spec requires one interrupt minimum. BZ 423 922193267Sjkim 923193267SjkimiASL: Handle a missing ResourceSource arg, with a present SourceIndex. 924193267SjkimHandles the case for the Interrupt Resource Descriptor where 925193267Sjkimthe ResourceSource argument is omitted but ResourceSourceIndex 926193267Sjkimis present. Now leave room for the Index. BZ 426 927193267Sjkim 928193267SjkimiASL: Prevent error message if CondRefOf target does not exist. Fixes cases 929193267Sjkimwhere an error message is emitted if the target does not exist. BZ 516 930193267Sjkim 931193267SjkimiASL: Fix broken -g option (get Windows ACPI tables). Fixes the -g option 932193267Sjkim(get ACPI tables on Windows). This was apparently broken in version 20070919. 933193267Sjkim 934193267SjkimAcpiXtract: Handle EOF while extracting data. Correctly handle the case where 935193267Sjkimthe EOF happens immediately after the last table in the input file. Print 936193267Sjkimcompletion message. Previously, no message was displayed in this case. 937193267Sjkim 938193267Sjkim---------------------------------------- 939193267Sjkim01 July 2008. Summary of changes for version 20080701: 940193267Sjkim 941193267SjkimThis release is available at http://acpica.org/downloads 942193267SjkimDirect git access via http://www.acpica.org/repos/acpica.git 943193267Sjkim 944193267Sjkim0) Git source tree / acpica.org 945193267Sjkim 946193267SjkimFixed a problem where a git-clone from http would not transfer the entire 947193267Sjkimsource tree. 948193267Sjkim 949193267Sjkim1) ACPI CA Core Subsystem: 950193267Sjkim 951193267SjkimImplemented a "careful" GPE disable in AcpiEvDisableGpe, only modify one 952193267Sjkimenable bit. Now performs a read-change-write of the enable register instead 953193267Sjkimof simply writing out the cached enable mask. This will prevent inadvertent 954193267Sjkimenabling of GPEs if a rogue GPE is received during initialization (before GPE 955193267Sjkimhandlers are installed.) 956193267Sjkim 957193267SjkimImplemented a copy for dynamically loaded tables. Previously, dynamically 958193267Sjkimloaded tables were simply mapped - but on some machines this memory is 959193267Sjkimcorrupted after suspend. Now copy the table to a local buffer. For the 960193267SjkimOpRegion case, added checksum verify. Use the table length from the table 961193267Sjkimheader, not the region length. For the Buffer case, use the table length 962193267Sjkimalso. Dennis Noordsij, Bob Moore. BZ 10734 963193267Sjkim 964193267SjkimFixed a problem where the same ACPI table could not be dynamically loaded and 965193267Sjkimunloaded more than once. Without this change, a table cannot be loaded again 966193267Sjkimonce it has been loaded/unloaded one time. The current mechanism does not 967193267Sjkimunregister a table upon an unload. During a load, if the same table is found, 968193267Sjkimthis no longer returns an exception. BZ 722 969193267Sjkim 970193267SjkimFixed a problem where the wrong descriptor length was calculated for the 971193267SjkimEndTag descriptor in 64-bit mode. The "minimal" descriptors such as EndTag 972193267Sjkimare calculated as 12 bytes long, but the actual length in the internal 973193267Sjkimdescriptor is 16 because of the round-up to 8 on the 64-bit build. Reported 974193267Sjkimby Linn Crosetto. BZ 728 975193267Sjkim 976193267SjkimFixed a possible memory leak in the Unload operator. The DdbHandle returned 977193267Sjkimby Load() did not have its reference count decremented during unload, leading 978193267Sjkimto a memory leak. Lin Ming. BZ 727 979193267Sjkim 980193267SjkimFixed a possible memory leak when deleting thermal/processor objects. Any 981193267Sjkimassociated notify handlers (and objects) were not being deleted. Fiodor 982193267SjkimSuietov. BZ 506 983193267Sjkim 984193267SjkimFixed the ordering of the ASCII names in the global mutex table to match the 985193267Sjkimactual mutex IDs. Used by AcpiUtGetMutexName, a function used for debug only. 986193267SjkimVegard Nossum. BZ 726 987193267Sjkim 988193267SjkimEnhanced the AcpiGetObjectInfo interface to return the number of required 989193267Sjkimarguments if the object is a control method. Added this call to the debugger 990193267Sjkimso the proper number of default arguments are passed to a method. This 991193267Sjkimprevents a warning when executing methods from AcpiExec. 992193267Sjkim 993193267SjkimAdded a check for an invalid handle in AcpiGetObjectInfo. Return 994193267SjkimAE_BAD_PARAMETER if input handle is invalid. BZ 474 995193267Sjkim 996193267SjkimFixed an extraneous warning from exconfig.c on the 64-bit build. 997193267Sjkim 998193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 999193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1000193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1001193267Sjkimmuch larger code and data size. 1002193267Sjkim 1003193267Sjkim Previous Release: 1004193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1005193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1006193267Sjkim Current Release: 1007193267Sjkim Non-Debug Version: 79.6K Code, 16.2K Data, 95.8K Total 1008193267Sjkim Debug Version: 153.5K Code, 48.2K Data, 201.7K Total 1009193267Sjkim 1010193267Sjkim2) iASL Compiler/Disassembler and Tools: 1011193267Sjkim 1012193267SjkimiASL: Added two missing ACPI reserved names. Added _MTP and _ASZ, both 1013193267Sjkimresource descriptor names. 1014193267Sjkim 1015193267SjkimiASL: Detect invalid ASCII characters in input (windows version). Removed the 1016193267Sjkim"-CF" flag from the flex compile, enables correct detection of non-ASCII 1017193267Sjkimcharacters in the input. BZ 441 1018193267Sjkim 1019193267SjkimiASL: Eliminate warning when result of LoadTable is not used. Eliminate the 1020193267Sjkim"result of operation not used" warning when the DDB handle returned from 1021193267SjkimLoadTable is not used. The warning is not needed. BZ 590 1022193267Sjkim 1023193267SjkimAcpiExec: Add support for dynamic table load/unload. Now calls _CFG method to 1024193267Sjkimpass address of table to the AML. Added option to disable OpRegion simulation 1025193267Sjkimto allow creation of an OpRegion with a real address that was passed to _CFG. 1026193267SjkimAll of this allows testing of the Load and Unload operators from AcpiExec. 1027193267Sjkim 1028193267SjkimDebugger: update tables command for unloaded tables. Handle unloaded tables 1029193267Sjkimand use the standard table header output routine. 1030193267Sjkim 1031193267Sjkim---------------------------------------- 1032193267Sjkim09 June 2008. Summary of changes for version 20080609: 1033193267Sjkim 1034193267Sjkim1) ACPI CA Core Subsystem: 1035193267Sjkim 1036193267SjkimImplemented a workaround for reversed _PRT entries. A significant number of 1037193267SjkimBIOSs erroneously reverse the _PRT SourceName and the SourceIndex. This 1038193267Sjkimchange dynamically detects and repairs this problem. Provides compatibility 1039193267Sjkimwith MS ACPI. BZ 6859 1040193267Sjkim 1041193267SjkimSimplified the internal ACPI hardware interfaces to eliminate the locking 1042193267Sjkimflag parameter from Register Read/Write. Added a new external interface, 1043193267SjkimAcpiGetRegisterUnlocked. 1044193267Sjkim 1045193267SjkimFixed a problem where the invocation of a GPE control method could hang. This 1046193267Sjkimwas a regression introduced in 20080514. The new method argument count 1047193267Sjkimvalidation mechanism can enter an infinite loop when a GPE method is 1048193267Sjkimdispatched. Problem fixed by removing the obsolete code that passed GPE block 1049193267Sjkiminformation to the notify handler via the control method parameter pointer. 1050193267Sjkim 1051193267SjkimFixed a problem where the _SST execution status was incorrectly returned to 1052193267Sjkimthe caller of AcpiEnterSleepStatePrep. This was a regression introduced in 1053193267Sjkim20080514. _SST is optional and a NOT_FOUND exception should never be 1054193267Sjkimreturned. BZ 716 1055193267Sjkim 1056193267SjkimFixed a problem where a deleted object could be accessed from within the AML 1057193267Sjkimparser. This was a regression introduced in version 20080123 as a fix for the 1058193267SjkimUnload operator. Lin Ming. BZ 10669 1059193267Sjkim 1060193267SjkimCleaned up the debug operand dump mechanism. Eliminated unnecessary operands 1061193267Sjkimand eliminated the use of a negative index in a loop. Operands are now 1062193267Sjkimdisplayed in the correct order, not backwards. This also fixes a regression 1063193267Sjkimintroduced in 20080514 on 64-bit systems where the elimination of 1064193267SjkimACPI_NATIVE_UINT caused the negative index to go large and positive. BZ 715 1065193267Sjkim 1066193267SjkimFixed a possible memory leak in EvPciConfigRegionSetup where the error exit 1067193267Sjkimpath did not delete a locally allocated structure. 1068193267Sjkim 1069193267SjkimUpdated definitions for the DMAR and SRAT tables to synchronize with the 1070193267Sjkimcurrent specifications. Includes disassembler support. 1071193267Sjkim 1072193267SjkimFixed a problem in the mutex debug code (in utmutex.c) where an incorrect 1073193267Sjkimloop termination value was used. Loop terminated on iteration early, missing 1074193267Sjkimone mutex. Linn Crosetto 1075193267Sjkim 1076193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1077193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1078193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1079193267Sjkimmuch larger code and data size. 1080193267Sjkim 1081193267Sjkim Previous Release: 1082193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1083193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1084193267Sjkim Current Release: 1085193267Sjkim Non-Debug Version: 79.3K Code, 16.2K Data, 95.5K Total 1086193267Sjkim Debug Version: 153.0K Code, 48.2K Data, 201.2K Total 1087193267Sjkim 1088193267Sjkim2) iASL Compiler/Disassembler and Tools: 1089193267Sjkim 1090193267SjkimDisassembler: Implemented support for EisaId() within _CID objects. Now 1091193267Sjkimdisassemble integer _CID objects back to EisaId invocations, including 1092193267Sjkimmultiple integers within _CID packages. Includes single-step support for 1093193267Sjkimdebugger also. 1094193267Sjkim 1095193267SjkimDisassembler: Added support for DMAR and SRAT table definition changes. 1096193267Sjkim 1097193267Sjkim---------------------------------------- 1098193267Sjkim14 May 2008. Summary of changes for version 20080514: 1099193267Sjkim 1100193267Sjkim1) ACPI CA Core Subsystem: 1101193267Sjkim 1102193267SjkimFixed a problem where GPEs were enabled too early during the ACPICA 1103193267Sjkiminitialization. This could lead to "handler not installed" errors on some 1104193267Sjkimmachines. Moved GPE enable until after _REG/_STA/_INI methods are run. This 1105193267Sjkimensures that all operation regions and devices throughout the namespace have 1106193267Sjkimbeen initialized before GPEs are enabled. Alexey Starikovskiy, BZ 9916. 1107193267Sjkim 1108193267SjkimImplemented a change to the enter sleep code. Moved execution of the _GTS 1109193267Sjkimmethod to just before setting sleep enable bit. The execution was moved from 1110193267SjkimAcpiEnterSleepStatePrep to AcpiEnterSleepState. _GTS is now executed 1111193267Sjkimimmediately before the SLP_EN bit is set, as per the ACPI specification. 1112193267SjkimLuming Yu, BZ 1653. 1113193267Sjkim 1114193267SjkimImplemented a fix to disable unknown GPEs (2nd version). Now always disable 1115193267Sjkimthe GPE, even if ACPICA thinks that that it is already disabled. It is 1116193267Sjkimpossible that the AML or some other code has enabled the GPE unbeknownst to 1117193267Sjkimthe ACPICA code. 1118193267Sjkim 1119193267SjkimFixed a problem with the Field operator where zero-length fields would return 1120193267Sjkiman AE_AML_NO_OPERAND exception during table load. Fix enables zero-length ASL 1121193267Sjkimfield declarations in Field(), BankField(), and IndexField(). BZ 10606. 1122193267Sjkim 1123193267SjkimImplemented a fix for the Load operator, now load the table at the namespace 1124193267Sjkimroot. This reverts a change introduced in version 20071019. The table is now 1125193267Sjkimloaded at the namespace root even though this goes against the ACPI 1126193267Sjkimspecification. This provides compatibility with other ACPI implementations. 1127193267SjkimThe ACPI specification will be updated to reflect this in ACPI 4.0. Lin Ming. 1128193267Sjkim 1129193267SjkimFixed a problem where ACPICA would not Load() tables with unusual signatures. 1130193267SjkimNow ignore ACPI table signature for Load() operator. Only "SSDT" is 1131193267Sjkimacceptable to the ACPI spec, but tables are seen with OEMx and null sigs. 1132193267SjkimTherefore, signature validation is worthless. Apparently MS ACPI accepts such 1133193267Sjkimsignatures, ACPICA must be compatible. BZ 10454. 1134193267Sjkim 1135193267SjkimFixed a possible negative array index in AcpiUtValidateException. Added NULL 1136193267Sjkimfields to the exception string arrays to eliminate a -1 subtraction on the 1137193267SjkimSubStatus field. 1138193267Sjkim 1139193267SjkimUpdated the debug tracking macros to reduce overall code and data size. 1140193267SjkimChanged ACPI_MODULE_NAME and ACPI_FUNCTION_NAME to use arrays of strings 1141193267Sjkiminstead of pointers to static strings. Jan Beulich and Bob Moore. 1142193267Sjkim 1143193267SjkimImplemented argument count checking in control method invocation via 1144193267SjkimAcpiEvaluateObject. Now emit an error if too few arguments, warning if too 1145193267Sjkimmany. This applies only to extern programmatic control method execution, not 1146193267Sjkimmethod-to-method calls within the AML. Lin Ming. 1147193267Sjkim 1148193267SjkimEliminated the ACPI_NATIVE_UINT type across all ACPICA code. This type is no 1149193267Sjkimlonger needed, especially with the removal of 16-bit support. It was replaced 1150193267Sjkimmostly with UINT32, but also ACPI_SIZE where a type that changes 32/64 bit on 1151193267Sjkim32/64-bit platforms is required. 1152193267Sjkim 1153193267SjkimAdded the C const qualifier for appropriate string constants -- mostly 1154193267SjkimMODULE_NAME and printf format strings. Jan Beulich. 1155193267Sjkim 1156193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1157193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1158193267Sjkimdebug version of the code includes the debug output trace mechanism and has a 1159193267Sjkimmuch larger code and data size. 1160193267Sjkim 1161193267Sjkim Previous Release: 1162193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1163193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1164193267Sjkim Current Release: 1165193267Sjkim Non-Debug Version: 79.5K Code, 16.2K Data, 95.7K Total 1166193267Sjkim Debug Version: 153.3K Code, 48.3K Data, 201.6K Total 1167193267Sjkim 1168193267Sjkim2) iASL Compiler/Disassembler and Tools: 1169193267Sjkim 1170193267SjkimImplemented ACPI table revision ID validation in the disassembler. Zero is 1171193267Sjkimalways invalid. For DSDTs, the ID controls the interpreter integer width. 1 1172193267Sjkimmeans 32-bit and this is unusual. 2 or greater is 64-bit. 1173193267Sjkim 1174193267Sjkim---------------------------------------- 1175193267Sjkim21 March 2008. Summary of changes for version 20080321: 1176193267Sjkim 1177193267Sjkim1) ACPI CA Core Subsystem: 1178193267Sjkim 1179193267SjkimImplemented an additional change to the GPE support in order to suppress 1180193267Sjkimspurious or stray GPEs. The AcpiEvDisableGpe function will now permanently 1181193267Sjkimdisable incoming GPEs that are neither enabled nor disabled -- meaning that 1182193267Sjkimthe GPE is unknown to the system. This should prevent future interrupt floods 1183193267Sjkimfrom that GPE. BZ 6217 (Zhang Rui) 1184193267Sjkim 1185193267SjkimFixed a problem where NULL package elements were not returned to the 1186193267SjkimAcpiEvaluateObject interface correctly. The element was simply ignored 1187193267Sjkiminstead of returning a NULL ACPI_OBJECT package element, potentially causing 1188193267Sjkima buffer overflow and/or confusing the caller who expected a fixed number of 1189193267Sjkimelements. BZ 10132 (Lin Ming, Bob Moore) 1190193267Sjkim 1191193267SjkimFixed a problem with the CreateField, CreateXXXField (Bit, Byte, Word, Dword, 1192193267SjkimQword), Field, BankField, and IndexField operators when invoked from inside 1193193267Sjkiman executing control method. In this case, these operators created namespace 1194193267Sjkimnodes that were incorrectly left marked as permanent nodes instead of 1195193267Sjkimtemporary nodes. This could cause a problem if there is race condition 1196193267Sjkimbetween an exiting control method and a running namespace walk. (Reported by 1197193267SjkimLinn Crosetto) 1198193267Sjkim 1199193267SjkimFixed a problem where the CreateField and CreateXXXField operators would 1200193267Sjkimincorrectly allow duplicate names (the name of the field) with no exception 1201193267Sjkimgenerated. 1202193267Sjkim 1203193267SjkimImplemented several changes for Notify handling. Added support for new Notify 1204193267Sjkimvalues (ACPI 2.0+) and improved the Notify debug output. Notify on 1205193267SjkimPowerResource objects is no longer allowed, as per the ACPI specification. 1206193267Sjkim(Bob Moore, Zhang Rui) 1207193267Sjkim 1208193267SjkimAll Reference Objects returned via the AcpiEvaluateObject interface are now 1209193267Sjkimmarked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for 1210193267SjkimNULL objects - either NULL package elements or unresolved named references. 1211193267Sjkim 1212193267SjkimFixed a problem where an extraneous debug message was produced for package 1213193267Sjkimobjects (when debugging enabled). The message "Package List length larger 1214193267Sjkimthan NumElements count" is now produced in the correct case, and is now an 1215193267Sjkimerror message rather than a debug message. Added a debug message for the 1216193267Sjkimopposite case, where NumElements is larger than the Package List (the package 1217193267Sjkimwill be padded out with NULL elements as per the ACPI spec.) 1218193267Sjkim 1219193267SjkimImplemented several improvements for the output of the ASL "Debug" object to 1220193267Sjkimclarify and keep all data for a given object on one output line. 1221193267Sjkim 1222193267SjkimFixed two size calculation issues with the variable-length Start Dependent 1223193267Sjkimresource descriptor. 1224193267Sjkim 1225193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1226193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1227193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1228193267Sjkima much larger code and data size. 1229193267Sjkim 1230193267Sjkim Previous Release: 1231193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1232193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1233193267Sjkim Current Release: 1234193267Sjkim Non-Debug Version: 80.0K Code, 17.4K Data, 97.4K Total 1235193267Sjkim Debug Version: 159.4K Code, 64.4K Data, 223.8K Total 1236193267Sjkim 1237193267Sjkim2) iASL Compiler/Disassembler and Tools: 1238193267Sjkim 1239193267SjkimFixed a problem with the use of the Switch operator where execution of the 1240193267Sjkimcontaining method by multiple concurrent threads could cause an 1241193267SjkimAE_ALREADY_EXISTS exception. This is caused by the fact that there is no 1242193267Sjkimactual Switch opcode, it must be simulated with local named temporary 1243193267Sjkimvariables and if/else pairs. The solution chosen was to mark any method that 1244193267Sjkimuses Switch as Serialized, thus preventing multiple thread entries. BZ 469. 1245193267Sjkim 1246193267Sjkim---------------------------------------- 1247193267Sjkim13 February 2008. Summary of changes for version 20080213: 1248193267Sjkim 1249193267Sjkim1) ACPI CA Core Subsystem: 1250193267Sjkim 1251193267SjkimImplemented another MS compatibility design change for GPE/Notify handling. 1252193267SjkimGPEs are now cleared/enabled asynchronously to allow all pending notifies to 1253193267Sjkimcomplete first. It is expected that the OSL will queue the enable request 1254193267Sjkimbehind all pending notify requests (may require changes to the local host OSL 1255193267Sjkimin AcpiOsExecute). Alexey Starikovskiy. 1256193267Sjkim 1257193267SjkimFixed a problem where buffer and package objects passed as arguments to a 1258193267Sjkimcontrol method via the external AcpiEvaluateObject interface could cause an 1259193267SjkimAE_AML_INTERNAL exception depending on the order and type of operators 1260193267Sjkimexecuted by the target control method. 1261193267Sjkim 1262193267SjkimFixed a problem where resource descriptor size optimization could cause a 1263193267Sjkimproblem when a _CRS resource template is passed to a _SRS method. The _SRS 1264193267Sjkimresource template must use the same descriptors (with the same size) as 1265193267Sjkimreturned from _CRS. This change affects the following resource descriptors: 1266193267SjkimIRQ / IRQNoFlags and StartDependendentFn / StartDependentFnNoPri. (BZ 9487) 1267193267Sjkim 1268193267SjkimFixed a problem where a CopyObject to RegionField, BankField, and IndexField 1269193267Sjkimobjects did not perform an implicit conversion as it should. These types must 1270193267Sjkimretain their initial type permanently as per the ACPI specification. However, 1271193267Sjkima CopyObject to all other object types should not perform an implicit 1272193267Sjkimconversion, as per the ACPI specification. (Lin Ming, Bob Moore) BZ 388 1273193267Sjkim 1274193267SjkimFixed a problem with the AcpiGetDevices interface where the mechanism to 1275193267Sjkimmatch device CIDs did not examine the entire list of available CIDs, but 1276193267Sjkiminstead aborted on the first non-matching CID. Andrew Patterson. 1277193267Sjkim 1278193267SjkimFixed a regression introduced in version 20071114. The ACPI_HIDWORD macro was 1279193267Sjkiminadvertently changed to return a 16-bit value instead of a 32-bit value, 1280193267Sjkimtruncating the upper dword of a 64-bit value. This macro is only used to 1281193267Sjkimdisplay debug output, so no incorrect calculations were made. Also, 1282193267Sjkimreimplemented the macro so that a 64-bit shift is not performed by 1283193267Sjkiminefficient compilers. 1284193267Sjkim 1285193267SjkimAdded missing va_end statements that should correspond with each va_start 1286193267Sjkimstatement. 1287193267Sjkim 1288193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1289193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1290193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1291193267Sjkima much larger code and data size. 1292193267Sjkim 1293193267Sjkim Previous Release: 1294193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1295193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1296193267Sjkim Current Release: 1297193267Sjkim Non-Debug Version: 79.7K Code, 17.3K Data, 97.0K Total 1298193267Sjkim Debug Version: 158.9K Code, 64.0K Data, 222.9K Total 1299193267Sjkim 1300193267Sjkim2) iASL Compiler/Disassembler and Tools: 1301193267Sjkim 1302193267SjkimImplemented full disassembler support for the following new ACPI tables: 1303193267SjkimBERT, EINJ, and ERST. Implemented partial disassembler support for the 1304193267Sjkimcomplicated HEST table. These tables support the Windows Hardware Error 1305193267SjkimArchitecture (WHEA). 1306193267Sjkim 1307193267Sjkim---------------------------------------- 1308193267Sjkim23 January 2008. Summary of changes for version 20080123: 1309193267Sjkim 1310193267Sjkim1) ACPI CA Core Subsystem: 1311193267Sjkim 1312193267SjkimAdded the 2008 copyright to all module headers and signons. This affects 1313193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 1314193267Sjkimthe tools/utilities. 1315193267Sjkim 1316193267SjkimFixed a problem with the SizeOf operator when used with Package and Buffer 1317193267Sjkimobjects. These objects have deferred execution for some arguments, and the 1318193267Sjkimexecution is now completed before the SizeOf is executed. This problem caused 1319193267Sjkimunexpected AE_PACKAGE_LIMIT errors on some systems (Lin Ming, Bob Moore) BZ 1320193267Sjkim9558 1321193267Sjkim 1322193267SjkimImplemented an enhancement to the interpreter "slack mode". In the absence of 1323193267Sjkiman explicit return or an implicitly returned object from the last executed 1324193267Sjkimopcode, a control method will now implicitly return an integer of value 0 for 1325193267SjkimMicrosoft compatibility. (Lin Ming) BZ 392 1326193267Sjkim 1327193267SjkimFixed a problem with the Load operator where an exception was not returned in 1328193267Sjkimthe case where the table is already loaded. (Lin Ming) BZ 463 1329193267Sjkim 1330193267SjkimImplemented support for the use of DDBHandles as an Indexed Reference, as per 1331193267Sjkimthe ACPI spec. (Lin Ming) BZ 486 1332193267Sjkim 1333193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 1334193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 1335193267Sjkim 1336193267SjkimFixed a problem with the LoadTable operator where the OemId and OemTableId 1337193267Sjkiminput strings could cause unexpected failures if they were shorter than the 1338193267Sjkimmaximum lengths allowed. (Lin Ming, Bob Moore) BZ 576 1339193267Sjkim 1340193267SjkimImplemented support for UserTerm (Method invocation) for the Unload operator 1341193267Sjkimas per the ACPI spec. (Lin Ming) BZ 580 1342193267Sjkim 1343193267SjkimImplemented header file support for new ACPI tables - BERT, ERST, EINJ, HEST, 1344193267SjkimIBFT, UEFI, WDAT. Disassembler support is forthcoming. 1345193267Sjkim 1346193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1347193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1348193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1349193267Sjkima much larger code and data size. 1350193267Sjkim 1351193267Sjkim Previous Release: 1352193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1353193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1354193267Sjkim Current Release: 1355193267Sjkim Non-Debug Version: 79.5K Code, 17.2K Data, 96.7K Total 1356193267Sjkim Debug Version: 159.0K Code, 63.8K Data, 222.8K Total 1357193267Sjkim 1358193267Sjkim2) iASL Compiler/Disassembler and Tools: 1359193267Sjkim 1360193267SjkimImplemented support in the disassembler for checksum validation on incoming 1361193267Sjkimbinary DSDTs and SSDTs. If incorrect, a message is displayed within the table 1362193267Sjkimheader dump at the start of the disassembly. 1363193267Sjkim 1364193267SjkimImplemented additional debugging information in the namespace listing file 1365193267Sjkimcreated during compilation. In addition to the namespace hierarchy, the full 1366193267Sjkimpathname to each namespace object is displayed. 1367193267Sjkim 1368193267SjkimFixed a problem with the disassembler where invalid ACPI tables could cause 1369193267Sjkimfaults or infinite loops. 1370193267Sjkim 1371193267SjkimFixed an unexpected parse error when using the optional "parameter types" 1372193267Sjkimlist in a control method declaration. (Lin Ming) BZ 397 1373193267Sjkim 1374193267SjkimFixed a problem where two External declarations with the same name did not 1375193267Sjkimcause an error (Lin Ming) BZ 509 1376193267Sjkim 1377193267SjkimImplemented support for full TermArgs (adding Argx, Localx and method 1378193267Sjkiminvocation) for the ParameterData parameter to the LoadTable operator. (Lin 1379193267SjkimMing) BZ 583,587 1380193267Sjkim 1381193267Sjkim---------------------------------------- 1382193267Sjkim19 December 2007. Summary of changes for version 20071219: 1383193267Sjkim 1384193267Sjkim1) ACPI CA Core Subsystem: 1385193267Sjkim 1386193267SjkimImplemented full support for deferred execution for the TermArg string 1387193267Sjkimarguments for DataTableRegion. This enables forward references and full 1388193267Sjkimoperand resolution for the three string arguments. Similar to OperationRegion 1389193267Sjkimdeferred argument execution.) Lin Ming. BZ 430 1390193267Sjkim 1391193267SjkimImplemented full argument resolution support for the BankValue argument to 1392193267SjkimBankField. Previously, only constants were supported, now any TermArg may be 1393193267Sjkimused. Lin Ming BZ 387, 393 1394193267Sjkim 1395193267SjkimFixed a problem with AcpiGetDevices where the search of a branch of the 1396193267Sjkimdevice tree could be terminated prematurely. In accordance with the ACPI 1397193267Sjkimspecification, the search down the current branch is terminated if a device 1398193267Sjkimis both not present and not functional (instead of just not present.) Yakui 1399193267SjkimZhao. 1400193267Sjkim 1401193267SjkimFixed a problem where "unknown" GPEs could be allowed to fire repeatedly if 1402193267Sjkimthe underlying AML code changed the GPE enable registers. Now, any unknown 1403193267Sjkimincoming GPE (no _Lxx/_Exx method and not the EC GPE) is immediately disabled 1404193267Sjkiminstead of simply ignored. Rui Zhang. 1405193267Sjkim 1406193267SjkimFixed a problem with Index Fields where the Index register was incorrectly 1407193267Sjkimlimited to a maximum of 32 bits. Now any size may be used. 1408193267Sjkim 1409193267SjkimFixed a couple memory leaks associated with "implicit return" objects when 1410193267Sjkimthe AML Interpreter slack mode is enabled. Lin Ming BZ 349 1411193267Sjkim 1412193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1413193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1414193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1415193267Sjkima much larger code and data size. 1416193267Sjkim 1417193267Sjkim Previous Release: 1418193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1419193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1420193267Sjkim Current Release: 1421193267Sjkim Non-Debug Version: 79.3K Code, 17.2K Data, 96.5K Total 1422193267Sjkim Debug Version: 158.6K Code, 63.8K Data, 222.4K Total 1423193267Sjkim 1424193267Sjkim---------------------------------------- 1425193267Sjkim14 November 2007. Summary of changes for version 20071114: 1426193267Sjkim 1427193267Sjkim1) ACPI CA Core Subsystem: 1428193267Sjkim 1429193267SjkimImplemented event counters for each of the Fixed Events, the ACPI SCI 1430193267Sjkim(interrupt) itself, and control methods executed. Named 1431193267SjkimAcpiFixedEventCount[], AcpiSciCount, and AcpiMethodCount respectively. These 1432193267Sjkimshould be useful for debugging and statistics. 1433193267Sjkim 1434193267SjkimImplemented a new external interface, AcpiGetStatistics, to retrieve the 1435193267Sjkimcontents of the various event counters. Returns the current values for 1436193267SjkimAcpiSciCount, AcpiGpeCount, the AcpiFixedEventCount array, and 1437193267SjkimAcpiMethodCount. The interface can be expanded in the future if new counters 1438193267Sjkimare added. Device drivers should use this interface rather than access the 1439193267Sjkimcounters directly. 1440193267Sjkim 1441193267SjkimFixed a problem with the FromBCD and ToBCD operators. With some compilers, 1442193267Sjkimthe ShortDivide function worked incorrectly, causing problems with the BCD 1443193267Sjkimfunctions with large input values. A truncation from 64-bit to 32-bit 1444193267Sjkiminadvertently occurred. Internal BZ 435. Lin Ming 1445193267Sjkim 1446193267SjkimFixed a problem with Index references passed as method arguments. References 1447193267Sjkimpassed as arguments to control methods were dereferenced immediately (before 1448193267Sjkimcontrol was passed to the called method). The references are now correctly 1449193267Sjkimpassed directly to the called method. BZ 5389. Lin Ming 1450193267Sjkim 1451193267SjkimFixed a problem with CopyObject used in conjunction with the Index operator. 1452193267SjkimThe reference was incorrectly dereferenced before the copy. The reference is 1453193267Sjkimnow correctly copied. BZ 5391. Lin Ming 1454193267Sjkim 1455193267SjkimFixed a problem with Control Method references within Package objects. These 1456193267Sjkimreferences are now correctly generated. This completes the package 1457193267Sjkimconstruction overhaul that began in version 20071019. 1458193267Sjkim 1459193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1460193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1461193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1462193267Sjkima much larger code and data size. 1463193267Sjkim 1464193267Sjkim Previous Release: 1465193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1466193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1467193267Sjkim Current Release: 1468193267Sjkim Non-Debug Version: 79.0K Code, 17.2K Data, 96.2K Total 1469193267Sjkim Debug Version: 157.9K Code, 63.6K Data, 221.5K Total 1470193267Sjkim 1471193267Sjkim 1472193267Sjkim2) iASL Compiler/Disassembler and Tools: 1473193267Sjkim 1474193267SjkimThe AcpiExec utility now installs handlers for all of the predefined 1475193267SjkimOperation Region types. New types supported are: PCI_Config, CMOS, and 1476193267SjkimPCIBARTarget. 1477193267Sjkim 1478193267SjkimFixed a problem with the 64-bit version of AcpiExec where the extended (64- 1479193267Sjkimbit) address fields for the DSDT and FACS within the FADT were not being 1480193267Sjkimused, causing truncation of the upper 32-bits of these addresses. Lin Ming 1481193267Sjkimand Bob Moore 1482193267Sjkim 1483193267Sjkim---------------------------------------- 1484193267Sjkim19 October 2007. Summary of changes for version 20071019: 1485193267Sjkim 1486193267Sjkim1) ACPI CA Core Subsystem: 1487193267Sjkim 1488193267SjkimFixed a problem with the Alias operator when the target of the alias is a 1489193267Sjkimnamed ASL operator that opens a new scope -- Scope, Device, PowerResource, 1490193267SjkimProcessor, and ThermalZone. In these cases, any children of the original 1491193267Sjkimoperator could not be accessed via the alias, potentially causing unexpected 1492193267SjkimAE_NOT_FOUND exceptions. (BZ 9067) 1493193267Sjkim 1494193267SjkimFixed a problem with the Package operator where all named references were 1495193267Sjkimcreated as object references and left otherwise unresolved. According to the 1496193267SjkimACPI specification, a Package can only contain Data Objects or references to 1497193267Sjkimcontrol methods. The implication is that named references to Data Objects 1498193267Sjkim(Integer, Buffer, String, Package, BufferField, Field) should be resolved 1499193267Sjkimimmediately upon package creation. This is the approach taken with this 1500193267Sjkimchange. References to all other named objects (Methods, Devices, Scopes, 1501193267Sjkimetc.) are all now properly created as reference objects. (BZ 5328) 1502193267Sjkim 1503193267SjkimReverted a change to Notify handling that was introduced in version 1504193267Sjkim20070508. This version changed the Notify handling from asynchronous to 1505193267Sjkimfully synchronous (Device driver Notify handling with respect to the Notify 1506193267SjkimASL operator). It was found that this change caused more problems than it 1507193267Sjkimsolved and was removed by most users. 1508193267Sjkim 1509193267SjkimFixed a problem with the Increment and Decrement operators where the type of 1510193267Sjkimthe target object could be unexpectedly and incorrectly changed. (BZ 353) 1511193267SjkimLin Ming. 1512193267Sjkim 1513193267SjkimFixed a problem with the Load and LoadTable operators where the table 1514193267Sjkimlocation within the namespace was ignored. Instead, the table was always 1515193267Sjkimloaded into the root or current scope. Lin Ming. 1516193267Sjkim 1517193267SjkimFixed a problem with the Load operator when loading a table from a buffer 1518193267Sjkimobject. The input buffer was prematurely zeroed and/or deleted. (BZ 577) 1519193267Sjkim 1520193267SjkimFixed a problem with the Debug object where a store of a DdbHandle reference 1521193267Sjkimobject to the Debug object could cause a fault. 1522193267Sjkim 1523193267SjkimAdded a table checksum verification for the Load operator, in the case where 1524193267Sjkimthe load is from a buffer. (BZ 578). 1525193267Sjkim 1526193267SjkimImplemented additional parameter validation for the LoadTable operator. The 1527193267Sjkimlength of the input strings SignatureString, OemIdString, and OemTableId are 1528193267Sjkimnow checked for maximum lengths. (BZ 582) Lin Ming. 1529193267Sjkim 1530193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1531193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1532193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1533193267Sjkima much larger code and data size. 1534193267Sjkim 1535193267Sjkim Previous Release: 1536193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1537193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1538193267Sjkim Current Release: 1539193267Sjkim Non-Debug Version: 78.8K Code, 17.2K Data, 96.0K Total 1540193267Sjkim Debug Version: 157.2K Code, 63.4K Data, 220.6K Total 1541193267Sjkim 1542193267Sjkim 1543193267Sjkim2) iASL Compiler/Disassembler: 1544193267Sjkim 1545193267SjkimFixed a problem where if a single file was specified and the file did not 1546193267Sjkimexist, no error message was emitted. (Introduced with wildcard support in 1547193267Sjkimversion 20070917.) 1548193267Sjkim 1549193267Sjkim---------------------------------------- 1550193267Sjkim19 September 2007. Summary of changes for version 20070919: 1551193267Sjkim 1552193267Sjkim1) ACPI CA Core Subsystem: 1553193267Sjkim 1554193267SjkimDesigned and implemented new external interfaces to install and remove 1555193267Sjkimhandlers for ACPI table-related events. Current events that are defined are 1556193267SjkimLOAD and UNLOAD. These interfaces allow the host to track ACPI tables as 1557193267Sjkimthey are dynamically loaded and unloaded. See AcpiInstallTableHandler and 1558193267SjkimAcpiRemoveTableHandler. (Lin Ming and Bob Moore) 1559193267Sjkim 1560193267SjkimFixed a problem where the use of the AcpiGbl_AllMethodsSerialized flag 1561193267Sjkim(acpi_serialized option on Linux) could cause some systems to hang during 1562193267Sjkiminitialization. (Bob Moore) BZ 8171 1563193267Sjkim 1564193267SjkimFixed a problem where objects of certain types (Device, ThermalZone, 1565193267SjkimProcessor, PowerResource) can be not found if they are declared and 1566193267Sjkimreferenced from within the same control method (Lin Ming) BZ 341 1567193267Sjkim 1568193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1569193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1570193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1571193267Sjkima much larger code and data size. 1572193267Sjkim 1573193267Sjkim Previous Release: 1574193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1575193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1576193267Sjkim Current Release: 1577193267Sjkim Non-Debug Version: 78.5K Code, 17.1K Data, 95.6K Total 1578193267Sjkim Debug Version: 156.7K Code, 63.2K Data, 219.9K Total 1579193267Sjkim 1580193267Sjkim 1581193267Sjkim2) iASL Compiler/Disassembler: 1582193267Sjkim 1583193267SjkimImplemented support to allow multiple files to be compiled/disassembled in a 1584193267Sjkimsingle invocation. This includes command line wildcard support for both the 1585193267SjkimWindows and Unix versions of the compiler. This feature simplifies the 1586193267Sjkimdisassembly and compilation of multiple ACPI tables in a single directory. 1587193267Sjkim 1588193267Sjkim---------------------------------------- 1589193267Sjkim08 May 2007. Summary of changes for version 20070508: 1590193267Sjkim 1591193267Sjkim1) ACPI CA Core Subsystem: 1592193267Sjkim 1593193267SjkimImplemented a Microsoft compatibility design change for the handling of the 1594193267SjkimNotify AML operator. Previously, notify handlers were dispatched and 1595193267Sjkimexecuted completely asynchronously in a deferred thread. The new design 1596193267Sjkimstill executes the notify handlers in a different thread, but the original 1597193267Sjkimthread that executed the Notify() now waits at a synchronization point for 1598193267Sjkimthe notify handler to complete. Some machines depend on a synchronous Notify 1599193267Sjkimoperator in order to operate correctly. 1600193267Sjkim 1601193267SjkimImplemented support to allow Package objects to be passed as method 1602193267Sjkimarguments to the external AcpiEvaluateObject interface. Previously, this 1603193267Sjkimwould return the AE_NOT_IMPLEMENTED exception. This feature had not been 1604193267Sjkimimplemented since there were no reserved control methods that required it 1605193267Sjkimuntil recently. 1606193267Sjkim 1607193267SjkimFixed a problem with the internal FADT conversion where ACPI 1.0 FADTs that 1608193267Sjkimcontained invalid non-zero values in reserved fields could cause later 1609193267Sjkimfailures because these fields have meaning in later revisions of the FADT. 1610193267SjkimFor incoming ACPI 1.0 FADTs, these fields are now always zeroed. (The fields 1611193267Sjkimare: Preferred_PM_Profile, PSTATE_CNT, CST_CNT, and IAPC_BOOT_FLAGS.) 1612193267Sjkim 1613193267SjkimFixed a problem where the Global Lock handle was not properly updated if a 1614193267Sjkimthread that acquired the Global Lock via executing AML code then attempted 1615193267Sjkimto acquire the lock via the AcpiAcquireGlobalLock interface. Reported by Joe 1616193267SjkimLiu. 1617193267Sjkim 1618193267SjkimFixed a problem in AcpiEvDeleteGpeXrupt where the global interrupt list 1619193267Sjkimcould be corrupted if the interrupt being removed was at the head of the 1620193267Sjkimlist. Reported by Linn Crosetto. 1621193267Sjkim 1622193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1623193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1624193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1625193267Sjkima much larger code and data size. 1626193267Sjkim 1627193267Sjkim Previous Release: 1628193267Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1629193267Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1630193267Sjkim Current Release: 1631193267Sjkim Non-Debug Version: 78.3K Code, 17.0K Data, 95.3K Total 1632193267Sjkim Debug Version: 156.3K Code, 63.1K Data, 219.4K Total 1633193267Sjkim 1634193267Sjkim---------------------------------------- 1635167802Sjkim20 March 2007. Summary of changes for version 20070320: 1636167802Sjkim 1637167802Sjkim1) ACPI CA Core Subsystem: 1638167802Sjkim 1639193267SjkimImplemented a change to the order of interpretation and evaluation of AML 1640193267Sjkimoperand objects within the AML interpreter. The interpreter now evaluates 1641193267Sjkimoperands in the order that they appear in the AML stream (and the 1642193267Sjkimcorresponding ASL code), instead of in the reverse order (after the entire 1643193267Sjkimoperand list has been parsed). The previous behavior caused several subtle 1644193267Sjkimincompatibilities with the Microsoft AML interpreter as well as being 1645193267Sjkimsomewhat non-intuitive. BZ 7871, local BZ 263. Valery Podrezov. 1646167802Sjkim 1647193267SjkimImplemented a change to the ACPI Global Lock support. All interfaces to the 1648193267Sjkimglobal lock now allow the same thread to acquire the lock multiple times. 1649193267SjkimThis affects the AcpiAcquireGlobalLock external interface to the global lock 1650193267Sjkimas well as the internal use of the global lock to support AML fields -- a 1651193267Sjkimcontrol method that is holding the global lock can now simultaneously access 1652193267SjkimAML fields that require global lock protection. Previously, in both cases, 1653193267Sjkimthis would have resulted in an AE_ALREADY_ACQUIRED exception. The change to 1654193267SjkimAcpiAcquireGlobalLock is of special interest to drivers for the Embedded 1655193267SjkimController. There is no change to the behavior of the AML Acquire operator, 1656193267Sjkimas this can already be used to acquire a mutex multiple times by the same 1657193267Sjkimthread. BZ 8066. With assistance from Alexey Starikovskiy. 1658167802Sjkim 1659193267SjkimFixed a problem where invalid objects could be referenced in the AML 1660193267SjkimInterpreter after error conditions. During operand evaluation, ensure that 1661193267Sjkimthe internal "Return Object" field is cleared on error and only valid 1662193267Sjkimpointers are stored there. Caused occasional access to deleted objects that 1663193267Sjkimresulted in "large reference count" warning messages. Valery Podrezov. 1664167802Sjkim 1665193267SjkimFixed a problem where an AE_STACK_OVERFLOW internal exception could occur on 1666193267Sjkimdeeply nested control method invocations. BZ 7873, local BZ 487. Valery 1667193267SjkimPodrezov. 1668167802Sjkim 1669193267SjkimFixed an internal problem with the handling of result objects on the 1670193267Sjkiminterpreter result stack. BZ 7872. Valery Podrezov. 1671167802Sjkim 1672193267SjkimRemoved obsolete code that handled the case where AML_NAME_OP is the target 1673193267Sjkimof a reference (Reference.Opcode). This code was no longer necessary. BZ 1674193267Sjkim7874. Valery Podrezov. 1675167802Sjkim 1676193267SjkimRemoved obsolete ACPI_NO_INTEGER64_SUPPORT from two header files. This was a 1677193267Sjkimremnant from the previously discontinued 16-bit support. 1678167802Sjkim 1679193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1680193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1681193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1682193267Sjkima much larger code and data size. 1683167802Sjkim 1684167802Sjkim Previous Release: 1685167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1686167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1687167802Sjkim Current Release: 1688167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1689167802Sjkim Debug Version: 155.9K Code, 63.1K Data, 219.0K Total 1690167802Sjkim 1691167802Sjkim---------------------------------------- 1692167802Sjkim26 January 2007. Summary of changes for version 20070126: 1693167802Sjkim 1694167802Sjkim1) ACPI CA Core Subsystem: 1695167802Sjkim 1696193267SjkimAdded the 2007 copyright to all module headers and signons. This affects 1697193267Sjkimvirtually every file in the ACPICA core subsystem, the iASL compiler, and 1698193267Sjkimthe utilities. 1699167802Sjkim 1700193267SjkimImplemented a fix for an incorrect parameter passed to AcpiTbDeleteTable 1701193267Sjkimduring a table load. A bad pointer was passed in the case where the DSDT is 1702193267Sjkimoverridden, causing a fault in this case. 1703167802Sjkim 1704193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1705193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1706193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1707193267Sjkima much larger code and data size. 1708167802Sjkim 1709167802Sjkim Previous Release: 1710167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1711167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1712167802Sjkim Current Release: 1713167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1714167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1715167802Sjkim 1716167802Sjkim---------------------------------------- 1717167802Sjkim15 December 2006. Summary of changes for version 20061215: 1718167802Sjkim 1719167802Sjkim1) ACPI CA Core Subsystem: 1720167802Sjkim 1721193267SjkimSupport for 16-bit ACPICA has been completely removed since it is no longer 1722193267Sjkimnecessary and it clutters the code. All 16-bit macros, types, and 1723193267Sjkimconditional compiles have been removed, cleaning up and simplifying the code 1724193267Sjkimacross the entire subsystem. DOS support is no longer needed since the 1725193267Sjkimbootable Linux firmware kit is now available. 1726167802Sjkim 1727193267SjkimThe handler for the Global Lock is now removed during AcpiTerminate to 1728193267Sjkimenable a clean subsystem restart, via the implementation of the 1729193267SjkimAcpiEvRemoveGlobalLockHandler function. (With assistance from Joel Bretz, 1730193267SjkimHP) 1731167802Sjkim 1732193267SjkimImplemented enhancements to the multithreading support within the debugger 1733193267Sjkimto enable improved multithreading debugging and evaluation of the subsystem. 1734167802Sjkim(Valery Podrezov) 1735167802Sjkim 1736193267SjkimDebugger: Enhanced the Statistics/Memory command to emit the total (maximum) 1737193267Sjkimmemory used during the execution, as well as the maximum memory consumed by 1738193267Sjkimeach of the various object types. (Valery Podrezov) 1739167802Sjkim 1740193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1741193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1742193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1743193267Sjkima much larger code and data size. 1744193267Sjkim 1745167802Sjkim Previous Release: 1746167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1747167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1748167802Sjkim Current Release: 1749167802Sjkim Non-Debug Version: 78.0K Code, 17.1K Data, 95.1K Total 1750167802Sjkim Debug Version: 155.8K Code, 63.3K Data, 219.1K Total 1751167802Sjkim 1752167802Sjkim 1753167802Sjkim2) iASL Compiler/Disassembler and Tools: 1754167802Sjkim 1755193267SjkimAcpiExec: Implemented a new option (-m) to display full memory use 1756193267Sjkimstatistics upon subsystem/program termination. (Valery Podrezov) 1757167802Sjkim 1758167802Sjkim---------------------------------------- 1759167802Sjkim09 November 2006. Summary of changes for version 20061109: 1760167802Sjkim 1761167802Sjkim1) ACPI CA Core Subsystem: 1762167802Sjkim 1763193267SjkimOptimized the Load ASL operator in the case where the source operand is an 1764193267Sjkimoperation region. Simply map the operation region memory, instead of 1765193267Sjkimperforming a bytewise read. (Region must be of type SystemMemory, see 1766193267Sjkimbelow.) 1767167802Sjkim 1768193267SjkimFixed the Load ASL operator for the case where the source operand is a 1769193267Sjkimregion field. A buffer object is also allowed as the source operand. BZ 480 1770167802Sjkim 1771193267SjkimFixed a problem where the Load ASL operator allowed the source operand to be 1772193267Sjkiman operation region of any type. It is now restricted to regions of type 1773193267SjkimSystemMemory, as per the ACPI specification. BZ 481 1774167802Sjkim 1775193267SjkimAdditional cleanup and optimizations for the new Table Manager code. 1776167802Sjkim 1777193267SjkimAcpiEnable will now fail if all of the required ACPI tables are not loaded 1778193267Sjkim(FADT, FACS, DSDT). BZ 477 1779167802Sjkim 1780193267SjkimAdded #pragma pack(8/4) to acobject.h to ensure that the structures in this 1781193267Sjkimheader are always compiled as aligned. The ACPI_OPERAND_OBJECT has been 1782193267Sjkimmanually optimized to be aligned and will not work if it is byte-packed. 1783167802Sjkim 1784193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1785193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1786193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1787193267Sjkima much larger code and data size. 1788167802Sjkim 1789167802Sjkim Previous Release: 1790167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1791167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1792167802Sjkim Current Release: 1793167802Sjkim Non-Debug Version: 77.9K Code, 17.0K Data, 94.9K Total 1794167802Sjkim Debug Version: 155.2K Code, 63.1K Data, 218.3K Total 1795167802Sjkim 1796167802Sjkim 1797167802Sjkim2) iASL Compiler/Disassembler and Tools: 1798167802Sjkim 1799193267SjkimFixed a problem where the presence of the _OSI predefined control method 1800193267Sjkimwithin complex expressions could cause an internal compiler error. 1801167802Sjkim 1802193267SjkimAcpiExec: Implemented full region support for multiple address spaces. 1803193267SjkimSpaceId is now part of the REGION object. BZ 429 1804167802Sjkim 1805167802Sjkim---------------------------------------- 1806167802Sjkim11 October 2006. Summary of changes for version 20061011: 1807167802Sjkim 1808167802Sjkim1) ACPI CA Core Subsystem: 1809167802Sjkim 1810193267SjkimCompleted an AML interpreter performance enhancement for control method 1811193267Sjkimexecution. Previously a 2-pass parse/execution, control methods are now 1812193267Sjkimcompletely parsed and executed in a single pass. This improves overall 1813193267Sjkiminterpreter performance by ~25%, reduces code size, and reduces CPU stack 1814193267Sjkimuse. (Valery Podrezov + interpreter changes in version 20051202 that 1815193267Sjkimeliminated namespace loading during the pass one parse.) 1816167802Sjkim 1817193267SjkimImplemented _CID support for PCI Root Bridge detection. If the _HID does not 1818193267Sjkimmatch the predefined PCI Root Bridge IDs, the _CID list (if present) is now 1819193267Sjkimobtained and also checked for an ID match. 1820167802Sjkim 1821193267SjkimImplemented additional support for the PCI _ADR execution: upsearch until a 1822193267Sjkimdevice scope is found before executing _ADR. This allows PCI_Config 1823193267Sjkimoperation regions to be declared locally within control methods underneath 1824193267SjkimPCI device objects. 1825167802Sjkim 1826193267SjkimFixed a problem with a possible race condition between threads executing 1827193267SjkimAcpiWalkNamespace and the AML interpreter. This condition was removed by 1828193267Sjkimmodifying AcpiWalkNamespace to (by default) ignore all temporary namespace 1829193267Sjkimentries created during any concurrent control method execution. An 1830193267Sjkimadditional namespace race condition is known to exist between 1831193267SjkimAcpiWalkNamespace and the Load/Unload ASL operators and is still under 1832193267Sjkiminvestigation. 1833167802Sjkim 1834193267SjkimRestructured the AML ParseLoop function, breaking it into several 1835193267Sjkimsubfunctions in order to reduce CPU stack use and improve maintainability. 1836193267Sjkim(Mikhail Kouzmich) 1837167802Sjkim 1838193267SjkimAcpiGetHandle: Fix for parameter validation to detect invalid combinations 1839193267Sjkimof prefix handle and pathname. BZ 478 1840167802Sjkim 1841193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1842193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1843193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1844193267Sjkima much larger code and data size. 1845167802Sjkim 1846167802Sjkim Previous Release: 1847167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1848167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 1849167802Sjkim Current Release: 1850167802Sjkim Non-Debug Version: 78.1K Code, 17.1K Data, 95.2K Total 1851167802Sjkim Debug Version: 155.4K Code, 63.1K Data, 218.5K Total 1852167802Sjkim 1853167802Sjkim2) iASL Compiler/Disassembler and Tools: 1854167802Sjkim 1855193267SjkimPorted the -g option (get local ACPI tables) to the new ACPICA Table Manager 1856193267Sjkimto restore original behavior. 1857167802Sjkim 1858167802Sjkim---------------------------------------- 1859167802Sjkim27 September 2006. Summary of changes for version 20060927: 1860167802Sjkim 1861167802Sjkim1) ACPI CA Core Subsystem: 1862167802Sjkim 1863193267SjkimRemoved the "Flags" parameter from AcpiGetRegister and AcpiSetRegister. 1864193267SjkimThese functions now use a spinlock for mutual exclusion and the interrupt 1865193267Sjkimlevel indication flag is not needed. 1866167802Sjkim 1867193267SjkimFixed a problem with the Global Lock where the lock could appear to be 1868193267Sjkimobtained before it is actually obtained. The global lock semaphore was 1869193267Sjkiminadvertently created with one unit instead of zero units. (BZ 464) Fiodor 1870193267SjkimSuietov. 1871167802Sjkim 1872193267SjkimFixed a possible memory leak and fault in AcpiExResolveObjectToValue during 1873193267Sjkima read from a buffer or region field. (BZ 458) Fiodor Suietov. 1874167802Sjkim 1875193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1876193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1877193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1878193267Sjkima much larger code and data size. 1879167802Sjkim 1880167802Sjkim Previous Release: 1881167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1882167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 1883167802Sjkim Current Release: 1884167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1885167802Sjkim Debug Version: 154.6K Code, 63.0K Data, 217.6K Total 1886167802Sjkim 1887167802Sjkim 1888167802Sjkim2) iASL Compiler/Disassembler and Tools: 1889167802Sjkim 1890193267SjkimFixed a compilation problem with the pre-defined Resource Descriptor field 1891193267Sjkimnames where an "object does not exist" error could be incorrectly generated 1892193267Sjkimif the parent ResourceTemplate pathname places the template within a 1893193267Sjkimdifferent namespace scope than the current scope. (BZ 7212) 1894167802Sjkim 1895193267SjkimFixed a problem where the compiler could hang after syntax errors detected 1896193267Sjkimin an ElseIf construct. (BZ 453) 1897167802Sjkim 1898193267SjkimFixed a problem with the AmlFilename parameter to the DefinitionBlock() 1899193267Sjkimoperator. An incorrect output filename was produced when this parameter was 1900193267Sjkima null string (""). Now, the original input filename is used as the AML 1901193267Sjkimoutput filename, with an ".aml" extension. 1902167802Sjkim 1903193267SjkimImplemented a generic batch command mode for the AcpiExec utility (execute 1904193267Sjkimany AML debugger command) (Valery Podrezov). 1905167802Sjkim 1906167802Sjkim---------------------------------------- 1907167802Sjkim12 September 2006. Summary of changes for version 20060912: 1908167802Sjkim 1909167802Sjkim1) ACPI CA Core Subsystem: 1910167802Sjkim 1911193267SjkimEnhanced the implementation of the "serialized mode" of the interpreter 1912193267Sjkim(enabled via the AcpiGbl_AllMethodsSerialized flag.) When this mode is 1913193267Sjkimspecified, instead of creating a serialization semaphore per control method, 1914193267Sjkimthe interpreter lock is simply no longer released before a blocking 1915193267Sjkimoperation during control method execution. This effectively makes the AML 1916193267SjkimInterpreter single-threaded. The overhead of a semaphore per-method is 1917193267Sjkimeliminated. 1918167802Sjkim 1919193267SjkimFixed a regression where an error was no longer emitted if a control method 1920193267Sjkimattempts to create 2 objects of the same name. This once again returns 1921193267SjkimAE_ALREADY_EXISTS. When this exception occurs, it invokes the mechanism that 1922193267Sjkimwill dynamically serialize the control method to possible prevent future 1923193267Sjkimerrors. (BZ 440) 1924167802Sjkim 1925193267SjkimIntegrated a fix for a problem with PCI Express HID detection in the PCI 1926193267SjkimConfig Space setup procedure. (BZ 7145) 1927167802Sjkim 1928193267SjkimMoved all FADT-related functions to a new file, tbfadt.c. Eliminated the 1929193267SjkimAcpiHwInitialize function - the FADT registers are now validated when the 1930193267Sjkimtable is loaded. 1931167802Sjkim 1932193267SjkimAdded two new warnings during FADT verification - 1) if the FADT is larger 1933193267Sjkimthan the largest known FADT version, and 2) if there is a mismatch between a 1934193267Sjkim32-bit block address and the 64-bit X counterpart (when both are non-zero.) 1935167802Sjkim 1936193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1937193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 1938193267Sjkimdebug version of the code includes the debug output trace mechanism and has 1939193267Sjkima much larger code and data size. 1940167802Sjkim 1941167802Sjkim Previous Release: 1942167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 1943167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 1944167802Sjkim Current Release: 1945167802Sjkim Non-Debug Version: 77.9K Code, 17.1K Data, 95.0K Total 1946167802Sjkim Debug Version: 154.7K Code, 63.0K Data, 217.7K Total 1947167802Sjkim 1948167802Sjkim 1949167802Sjkim2) iASL Compiler/Disassembler and Tools: 1950167802Sjkim 1951193267SjkimFixed a problem with the implementation of the Switch() operator where the 1952193267Sjkimtemporary variable was declared too close to the actual Switch, instead of 1953193267Sjkimat method level. This could cause a problem if the Switch() operator is 1954193267Sjkimwithin a while loop, causing an error on the second iteration. (BZ 460) 1955167802Sjkim 1956193267SjkimDisassembler - fix for error emitted for unknown type for target of scope 1957193267Sjkimoperator. Now, ignore it and continue. 1958167802Sjkim 1959193267SjkimDisassembly of an FADT now verifies the input FADT and reports any errors 1960193267Sjkimfound. Fix for proper disassembly of full-sized (ACPI 2.0) FADTs. 1961167802Sjkim 1962193267SjkimDisassembly of raw data buffers with byte initialization data now prefixes 1963193267Sjkimeach output line with the current buffer offset. 1964167802Sjkim 1965193267SjkimDisassembly of ASF! table now includes all variable-length data fields at 1966193267Sjkimthe end of some of the subtables. 1967167802Sjkim 1968193267SjkimThe disassembler now emits a comment if a buffer appears to be a 1969193267SjkimResourceTemplate, but cannot be disassembled as such because the EndTag does 1970193267Sjkimnot appear at the very end of the buffer. 1971167802Sjkim 1972193267SjkimAcpiExec - Added the "-t" command line option to enable the serialized mode 1973193267Sjkimof the AML interpreter. 1974167802Sjkim 1975167802Sjkim---------------------------------------- 1976167802Sjkim31 August 2006. Summary of changes for version 20060831: 1977167802Sjkim 1978167802Sjkim1) ACPI CA Core Subsystem: 1979167802Sjkim 1980167802SjkimMiscellaneous fixes for the Table Manager: 1981193267Sjkim- Correctly initialize internal common FADT for all 64-bit "X" fields 1982167802Sjkim- Fixed a couple table mapping issues during table load 1983167802Sjkim- Fixed a couple alignment issues for IA64 1984167802Sjkim- Initialize input array to zero in AcpiInitializeTables 1985193267Sjkim- Additional parameter validation for AcpiGetTable, AcpiGetTableHeader, 1986193267SjkimAcpiGetTableByIndex 1987167802Sjkim 1988193267SjkimChange for GPE support: when a "wake" GPE is received, all wake GPEs are now 1989193267Sjkimimmediately disabled to prevent the waking GPE from firing again and to 1990193267Sjkimprevent other wake GPEs from interrupting the wake process. 1991167802Sjkim 1992193267SjkimAdded the AcpiGpeCount global that tracks the number of processed GPEs, to 1993193267Sjkimbe used for debugging systems with a large number of ACPI interrupts. 1994167802Sjkim 1995193267SjkimImplemented support for the "DMAR" ACPI table (DMA Redirection Table) in 1996193267Sjkimboth the ACPICA headers and the disassembler. 1997167802Sjkim 1998193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 1999193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2000193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2001193267Sjkima much larger code and data size. 2002167802Sjkim 2003167802Sjkim Previous Release: 2004167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2005167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2006167802Sjkim Current Release: 2007167802Sjkim Non-Debug Version: 77.9K Code, 16.7K Data, 94.6K Total 2008167802Sjkim Debug Version: 154.9K Code, 62.6K Data, 217.5K Total 2009167802Sjkim 2010167802Sjkim 2011167802Sjkim2) iASL Compiler/Disassembler and Tools: 2012167802Sjkim 2013167802SjkimDisassembler support for the DMAR ACPI table. 2014167802Sjkim 2015167802Sjkim---------------------------------------- 2016167802Sjkim23 August 2006. Summary of changes for version 20060823: 2017167802Sjkim 2018167802Sjkim1) ACPI CA Core Subsystem: 2019167802Sjkim 2020193267SjkimThe Table Manager component has been completely redesigned and 2021193267Sjkimreimplemented. The new design is much simpler, and reduces the overall code 2022193267Sjkimand data size of the kernel-resident ACPICA by approximately 5%. Also, it is 2023193267Sjkimnow possible to obtain the ACPI tables very early during kernel 2024193267Sjkiminitialization, even before dynamic memory management is initialized. 2025193267Sjkim(Alexey Starikovskiy, Fiodor Suietov, Bob Moore) 2026167802Sjkim 2027167802SjkimObsolete ACPICA interfaces: 2028167802Sjkim 2029193267Sjkim- AcpiGetFirmwareTable: Use AcpiGetTable instead (works at early kernel init 2030193267Sjkimtime). 2031167802Sjkim- AcpiLoadTable: Not needed. 2032167802Sjkim- AcpiUnloadTable: Not needed. 2033167802Sjkim 2034167802SjkimNew ACPICA interfaces: 2035167802Sjkim 2036193267Sjkim- AcpiInitializeTables: Must be called before the table manager can be used. 2037193267Sjkim- AcpiReallocateRootTable: Used to transfer the root table to dynamically 2038193267Sjkimallocated memory after it becomes available. 2039193267Sjkim- AcpiGetTableByIndex: Allows the host to easily enumerate all ACPI tables 2040193267Sjkimin the RSDT/XSDT. 2041167802Sjkim 2042167802SjkimOther ACPICA changes: 2043167802Sjkim 2044193267Sjkim- AcpiGetTableHeader returns the actual mapped table header, not a copy. Use 2045193267SjkimAcpiOsUnmapMemory to free this mapping. 2046193267Sjkim- AcpiGetTable returns the actual mapped table. The mapping is managed 2047193267Sjkiminternally and must not be deleted by the caller. Use of this interface 2048193267Sjkimcauses no additional dynamic memory allocation. 2049193267Sjkim- AcpiFindRootPointer: Support for physical addressing has been eliminated, 2050193267Sjkimit appeared to be unused. 2051193267Sjkim- The interface to AcpiOsMapMemory has changed to be consistent with the 2052193267Sjkimother allocation interfaces. 2053193267Sjkim- The interface to AcpiOsGetRootPointer has changed to eliminate unnecessary 2054193267Sjkimparameters. 2055193267Sjkim- ACPI_PHYSICAL_ADDRESS is now 32 bits on 32-bit platforms, 64 bits on 64- 2056193267Sjkimbit platforms. Was previously 64 bits on all platforms. 2057193267Sjkim- The interface to the ACPI Global Lock acquire/release macros have changed 2058193267Sjkimslightly since ACPICA no longer keeps a local copy of the FACS with a 2059193267Sjkimconstructed pointer to the actual global lock. 2060167802Sjkim 2061167802SjkimPorting to the new table manager: 2062167802Sjkim 2063193267Sjkim- AcpiInitializeTables: Must be called once, and can be called anytime 2064193267Sjkimduring the OS initialization process. It allows the host to specify an area 2065193267Sjkimof memory to be used to store the internal version of the RSDT/XSDT (root 2066193267Sjkimtable). This allows the host to access ACPI tables before memory management 2067193267Sjkimis initialized and running. 2068193267Sjkim- AcpiReallocateRootTable: Can be called after memory management is running 2069193267Sjkimto copy the root table to a dynamically allocated array, freeing up the 2070193267Sjkimscratch memory specified in the call to AcpiInitializeTables. 2071193267Sjkim- AcpiSubsystemInitialize: This existing interface is independent of the 2072193267SjkimTable Manager, and does not have to be called before the Table Manager can 2073193267Sjkimbe used, it only must be called before the rest of ACPICA can be used. 2074193267Sjkim- ACPI Tables: Some changes have been made to the names and structure of the 2075193267Sjkimactbl.h and actbl1.h header files and may require changes to existing code. 2076193267SjkimFor example, bitfields have been completely removed because of their lack of 2077193267Sjkimportability across C compilers. 2078193267Sjkim- Update interfaces to the Global Lock acquire/release macros if local 2079193267Sjkimversions are used. (see acwin.h) 2080167802Sjkim 2081167802SjkimObsolete files: tbconvrt.c, tbget.c, tbgetall.c, tbrsdt.c 2082167802Sjkim 2083167802SjkimNew files: tbfind.c 2084167802Sjkim 2085193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2086193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2087193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2088193267Sjkima much larger code and data size. 2089167802Sjkim 2090167802Sjkim Previous Release: 2091167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2092167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2093167802Sjkim Current Release: 2094167802Sjkim Non-Debug Version: 77.8K Code, 16.5K Data, 94.3K Total 2095167802Sjkim Debug Version: 154.6K Code, 62.3K Data, 216.9K Total 2096167802Sjkim 2097167802Sjkim 2098167802Sjkim2) iASL Compiler/Disassembler and Tools: 2099167802Sjkim 2100167802SjkimNo changes for this release. 2101167802Sjkim 2102167802Sjkim---------------------------------------- 2103167802Sjkim21 July 2006. Summary of changes for version 20060721: 2104167802Sjkim 2105167802Sjkim1) ACPI CA Core Subsystem: 2106167802Sjkim 2107193267SjkimThe full source code for the ASL test suite used to validate the iASL 2108193267Sjkimcompiler and the ACPICA core subsystem is being released with the ACPICA 2109193267Sjkimsource for the first time. The source is contained in a separate package and 2110193267Sjkimconsists of over 1100 files that exercise all ASL/AML operators. The package 2111193267Sjkimshould appear on the Intel/ACPI web site shortly. (Valery Podrezov, Fiodor 2112167802SjkimSuietov) 2113167802Sjkim 2114193267SjkimCompleted a new design and implementation for support of the ACPI Global 2115193267SjkimLock. On the OS side, the global lock is now treated as a standard AML 2116193267Sjkimmutex. Previously, multiple OS threads could "acquire" the global lock 2117193267Sjkimsimultaneously. However, this could cause the BIOS to be starved out of the 2118193267Sjkimlock - especially in cases such as the Embedded Controller driver where 2119193267Sjkimthere is a tight coupling between the OS and the BIOS. 2120167802Sjkim 2121193267SjkimImplemented an optimization for the ACPI Global Lock interrupt mechanism. 2122193267SjkimThe Global Lock interrupt handler no longer queues the execution of a 2123193267Sjkimseparate thread to signal the global lock semaphore. Instead, the semaphore 2124193267Sjkimis signaled directly from the interrupt handler. 2125167802Sjkim 2126193267SjkimImplemented support within the AML interpreter for package objects that 2127193267Sjkimcontain a larger AML length (package list length) than the package element 2128193267Sjkimcount. In this case, the length of the package is truncated to match the 2129193267Sjkimpackage element count. Some BIOS code apparently modifies the package length 2130193267Sjkimon the fly, and this change supports this behavior. Provides compatibility 2131193267Sjkimwith the MS AML interpreter. (With assistance from Fiodor Suietov) 2132167802Sjkim 2133193267SjkimImplemented a temporary fix for the BankValue parameter of a Bank Field to 2134193267Sjkimsupport all constant values, now including the Zero and One opcodes. 2135193267SjkimEvaluation of this parameter must eventually be converted to a full TermArg 2136193267Sjkimevaluation. A not-implemented error is now returned (temporarily) for non- 2137193267Sjkimconstant values for this parameter. 2138167802Sjkim 2139167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2140193267Sjkim- Fix for premature object deletion after CopyObject on Operation Region (BZ 2141193267Sjkim350) 2142167802Sjkim 2143193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2144193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2145193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2146193267Sjkima much larger code and data size. 2147167802Sjkim 2148167802Sjkim Previous Release: 2149167802Sjkim Non-Debug Version: 80.7K Code, 18.0K Data, 98.7K Total 2150167802Sjkim Debug Version: 160.9K Code, 65.1K Data, 226.0K Total 2151167802Sjkim Current Release: 2152167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2153167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2154167802Sjkim 2155167802Sjkim 2156167802Sjkim2) iASL Compiler/Disassembler and Tools: 2157167802Sjkim 2158167802SjkimNo changes for this release. 2159167802Sjkim 2160167802Sjkim---------------------------------------- 2161167802Sjkim07 July 2006. Summary of changes for version 20060707: 2162167802Sjkim 2163167802Sjkim1) ACPI CA Core Subsystem: 2164167802Sjkim 2165193267SjkimAdded the ACPI_PACKED_POINTERS_NOT_SUPPORTED macro to support C compilers 2166193267Sjkimthat do not allow the initialization of address pointers within packed 2167193267Sjkimstructures - even though the hardware itself may support misaligned 2168193267Sjkimtransfers. Some of the debug data structures are packed by default to 2169193267Sjkimminimize size. 2170167802Sjkim 2171193267SjkimAdded an error message for the case where AcpiOsGetThreadId() returns zero. 2172193267SjkimA non-zero value is required by the core ACPICA code to ensure the proper 2173193267Sjkimoperation of AML mutexes and recursive control methods. 2174167802Sjkim 2175193267SjkimThe DSDT is now the only ACPI table that determines whether the AML 2176193267Sjkiminterpreter is in 32-bit or 64-bit mode. Not really a functional change, but 2177193267Sjkimthe hooks for per-table 32/64 switching have been removed from the code. A 2178193267Sjkimclarification to the ACPI specification is forthcoming in ACPI 3.0B. 2179167802Sjkim 2180193267SjkimFixed a possible leak of an OwnerID in the error path of 2181193267SjkimAcpiTbInitTableDescriptor (tbinstal.c), and migrated all table OwnerID 2182193267Sjkimdeletion to a single place in AcpiTbUninstallTable to correct possible leaks 2183193267Sjkimwhen using the AcpiTbDeleteTablesByType interface (with assistance from 2184193267SjkimLance Ortiz.) 2185167802Sjkim 2186193267SjkimFixed a problem with Serialized control methods where the semaphore 2187193267Sjkimassociated with the method could be over-signaled after multiple method 2188193267Sjkiminvocations. 2189167802Sjkim 2190193267SjkimFixed two issues with the locking of the internal namespace data structure. 2191193267SjkimBoth the Unload() operator and AcpiUnloadTable interface now lock the 2192193267Sjkimnamespace during the namespace deletion associated with the table unload 2193193267Sjkim(with assistance from Linn Crosetto.) 2194167802Sjkim 2195167802SjkimFixed problem reports (Valery Podrezov) integrated: 2196193267Sjkim- Eliminate unnecessary memory allocation for CreateXxxxField (BZ 5426) 2197167802Sjkim 2198167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2199167802Sjkim- Incomplete cleanup branches in AcpiTbGetTableRsdt (BZ 369) 2200193267Sjkim- On Address Space handler deletion, needless deactivation call (BZ 374) 2201193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Device handle parameter (BZ 375) 2202193267Sjkim- Possible memory leak, Notify sub-objects of Processor, Power, ThermalZone 2203193267Sjkim(BZ 376) 2204193267Sjkim- AcpiRemoveAddressSpaceHandler: validate Handler parameter (BZ 378) 2205167802Sjkim- Minimum Length of RSDT should be validated (BZ 379) 2206193267Sjkim- AcpiRemoveNotifyHandler: return AE_NOT_EXIST if Processor Obj has no 2207193267SjkimHandler (BZ (380) 2208193267Sjkim- AcpiUnloadTable: return AE_NOT_EXIST if no table of specified type loaded 2209193267Sjkim(BZ 381) 2210167802Sjkim 2211193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2212193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2213193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2214193267Sjkima much larger code and data size. 2215167802Sjkim 2216167802Sjkim Previous Release: 2217167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2218167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2219167802Sjkim Current Release: 2220167802Sjkim Non-Debug Version: 80.7K Code, 17.9K Data, 98.6K Total 2221167802Sjkim Debug Version: 161.0K Code, 65.1K Data, 226.1K Total 2222167802Sjkim 2223167802Sjkim 2224167802Sjkim2) iASL Compiler/Disassembler and Tools: 2225167802Sjkim 2226167802SjkimFixed problem reports: 2227193267SjkimCompiler segfault when ASL contains a long (>1024) String declaration (BZ 2228193267Sjkim436) 2229167802Sjkim 2230167802Sjkim---------------------------------------- 2231167802Sjkim23 June 2006. Summary of changes for version 20060623: 2232167802Sjkim 2233167802Sjkim1) ACPI CA Core Subsystem: 2234167802Sjkim 2235193267SjkimImplemented a new ACPI_SPINLOCK type for the OSL lock interfaces. This 2236193267Sjkimallows the type to be customized to the host OS for improved efficiency 2237193267Sjkim(since a spinlock is usually a very small object.) 2238167802Sjkim 2239193267SjkimImplemented support for "ignored" bits in the ACPI registers. According to 2240193267Sjkimthe ACPI specification, these bits should be preserved when writing the 2241193267Sjkimregisters via a read/modify/write cycle. There are 3 bits preserved in this 2242193267Sjkimmanner: PM1_CONTROL[0] (SCI_EN), PM1_CONTROL[9], and PM1_STATUS[11]. 2243167802Sjkim 2244193267SjkimImplemented the initial deployment of new OSL mutex interfaces. Since some 2245193267Sjkimhost operating systems have separate mutex and semaphore objects, this 2246193267Sjkimfeature was requested. The base code now uses mutexes (and the new mutex 2247193267Sjkiminterfaces) wherever a binary semaphore was used previously. However, for 2248193267Sjkimthe current release, the mutex interfaces are defined as macros to map them 2249193267Sjkimto the existing semaphore interfaces. Therefore, no OSL changes are required 2250193267Sjkimat this time. (See acpiosxf.h) 2251167802Sjkim 2252193267SjkimFixed several problems with the support for the control method SyncLevel 2253193267Sjkimparameter. The SyncLevel now works according to the ACPI specification and 2254193267Sjkimin concert with the Mutex SyncLevel parameter, since the current SyncLevel 2255193267Sjkimis a property of the executing thread. Mutual exclusion for control methods 2256193267Sjkimis now implemented with a mutex instead of a semaphore. 2257167802Sjkim 2258193267SjkimFixed three instances of the use of the C shift operator in the bitfield 2259193267Sjkimsupport code (exfldio.c) to avoid the use of a shift value larger than the 2260193267Sjkimtarget data width. The behavior of C compilers is undefined in this case and 2261193267Sjkimcan cause unpredictable results, and therefore the case must be detected and 2262193267Sjkimavoided. (Fiodor Suietov) 2263167802Sjkim 2264193267SjkimAdded an info message whenever an SSDT or OEM table is loaded dynamically 2265193267Sjkimvia the Load() or LoadTable() ASL operators. This should improve debugging 2266193267Sjkimcapability since it will show exactly what tables have been loaded (beyond 2267193267Sjkimthe tables present in the RSDT/XSDT.) 2268167802Sjkim 2269193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2270193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2271193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2272193267Sjkima much larger code and data size. 2273167802Sjkim 2274167802Sjkim Previous Release: 2275167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2276167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2277167802Sjkim Current Release: 2278167802Sjkim Non-Debug Version: 80.5K Code, 17.8K Data, 98.3K Total 2279167802Sjkim Debug Version: 160.8K Code, 64.8K Data, 225.6K Total 2280167802Sjkim 2281167802Sjkim 2282167802Sjkim2) iASL Compiler/Disassembler and Tools: 2283167802Sjkim 2284167802SjkimNo changes for this release. 2285167802Sjkim 2286167802Sjkim---------------------------------------- 2287167802Sjkim08 June 2006. Summary of changes for version 20060608: 2288167802Sjkim 2289167802Sjkim1) ACPI CA Core Subsystem: 2290167802Sjkim 2291193267SjkimConverted the locking mutex used for the ACPI hardware to a spinlock. This 2292193267Sjkimchange should eliminate all problems caused by attempting to acquire a 2293193267Sjkimsemaphore at interrupt level, and it means that all ACPICA external 2294193267Sjkiminterfaces that directly access the ACPI hardware can be safely called from 2295193267Sjkiminterrupt level. OSL code that implements the semaphore interfaces should be 2296193267Sjkimable to eliminate any workarounds for being called at interrupt level. 2297167802Sjkim 2298193267SjkimFixed a regression introduced in 20060526 where the ACPI device 2299193267Sjkiminitialization could be prematurely aborted with an AE_NOT_FOUND if a device 2300193267Sjkimdid not have an optional _INI method. 2301167802Sjkim 2302193267SjkimFixed an IndexField issue where a write to the Data Register should be 2303193267Sjkimlimited in size to the AccessSize (width) of the IndexField itself. (BZ 433, 2304193267SjkimFiodor Suietov) 2305167802Sjkim 2306167802SjkimFixed problem reports (Valery Podrezov) integrated: 2307193267Sjkim- Allow store of ThermalZone objects to Debug object (BZ 5369/5370) 2308167802Sjkim 2309167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2310193267Sjkim- AcpiGetTableHeader doesn't handle multiple instances correctly (BZ 364) 2311167802Sjkim 2312193267SjkimRemoved four global mutexes that were obsolete and were no longer being 2313193267Sjkimused. 2314167802Sjkim 2315193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2316193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2317193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2318193267Sjkima much larger code and data size. 2319167802Sjkim 2320167802Sjkim Previous Release: 2321167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2322167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2323167802Sjkim Current Release: 2324167802Sjkim Non-Debug Version: 80.0K Code, 17.6K Data, 97.6K Total 2325167802Sjkim Debug Version: 160.2K Code, 64.7K Data, 224.9K Total 2326167802Sjkim 2327167802Sjkim 2328167802Sjkim2) iASL Compiler/Disassembler and Tools: 2329167802Sjkim 2330193267SjkimFixed a fault when using -g option (get tables from registry) on Windows 2331193267Sjkimmachines. 2332167802Sjkim 2333167802SjkimFixed problem reports integrated: 2334193267Sjkim- Generate error if CreateField NumBits parameter is zero. (BZ 405) 2335193267Sjkim- Fault if Offset/Length in Field unit is very large (BZ 432, Fiodor 2336193267SjkimSuietov) 2337167802Sjkim- Global table revision override (-r) is ignored (BZ 413) 2338167802Sjkim 2339167802Sjkim---------------------------------------- 2340167802Sjkim26 May 2006. Summary of changes for version 20060526: 2341167802Sjkim 2342167802Sjkim1) ACPI CA Core Subsystem: 2343167802Sjkim 2344193267SjkimRestructured, flattened, and simplified the internal interfaces for 2345193267Sjkimnamespace object evaluation - resulting in smaller code, less CPU stack use, 2346193267Sjkimand fewer interfaces. (With assistance from Mikhail Kouzmich) 2347167802Sjkim 2348193267SjkimFixed a problem with the CopyObject operator where the first parameter was 2349193267Sjkimnot typed correctly for the parser, interpreter, compiler, and disassembler. 2350193267SjkimCaused various errors and unexpected behavior. 2351167802Sjkim 2352193267SjkimFixed a problem where a ShiftLeft or ShiftRight of more than 64 bits 2353193267Sjkimproduced incorrect results with some C compilers. Since the behavior of C 2354193267Sjkimcompilers when the shift value is larger than the datatype width is 2355193267Sjkimapparently not well defined, the interpreter now detects this condition and 2356193267Sjkimsimply returns zero as expected in all such cases. (BZ 395) 2357167802Sjkim 2358167802SjkimFixed problem reports (Valery Podrezov) integrated: 2359193267Sjkim- Update String-to-Integer conversion to match ACPI 3.0A spec (BZ 5329) 2360193267Sjkim- Allow interpreter to handle nested method declarations (BZ 5361) 2361167802Sjkim 2362167802SjkimFixed problem reports (Fiodor Suietov) integrated: 2363193267Sjkim- AcpiTerminate doesn't free debug memory allocation list objects (BZ 355) 2364193267Sjkim- After Core Subsystem shutdown, AcpiSubsystemStatus returns AE_OK (BZ 356) 2365193267Sjkim- AcpiOsUnmapMemory for RSDP can be invoked inconsistently (BZ 357) 2366193267Sjkim- Resource Manager should return AE_TYPE for non-device objects (BZ 358) 2367167802Sjkim- Incomplete cleanup branch in AcpiNsEvaluateRelative (BZ 359) 2368193267Sjkim- Use AcpiOsFree instead of ACPI_FREE in AcpiRsSetSrsMethodData (BZ 360) 2369167802Sjkim- Incomplete cleanup branch in AcpiPsParseAml (BZ 361) 2370167802Sjkim- Incomplete cleanup branch in AcpiDsDeleteWalkState (BZ 362) 2371193267Sjkim- AcpiGetTableHeader returns AE_NO_ACPI_TABLES until DSDT is loaded (BZ 365) 2372193267Sjkim- Status of the Global Initialization Handler call not used (BZ 366) 2373193267Sjkim- Incorrect object parameter to Global Initialization Handler (BZ 367) 2374167802Sjkim 2375193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2376193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2377193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2378193267Sjkima much larger code and data size. 2379167802Sjkim 2380167802Sjkim Previous Release: 2381167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2382167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2383167802Sjkim Current Release: 2384167802Sjkim Non-Debug Version: 80.0K Code, 17.7K Data, 97.7K Total 2385167802Sjkim Debug Version: 160.3K Code, 64.9K Data, 225.2K Total 2386167802Sjkim 2387167802Sjkim 2388167802Sjkim2) iASL Compiler/Disassembler and Tools: 2389167802Sjkim 2390193267SjkimModified the parser to allow the names IO, DMA, and IRQ to be used as 2391193267Sjkimnamespace identifiers with no collision with existing resource descriptor 2392193267Sjkimmacro names. This provides compatibility with other ASL compilers and is 2393193267Sjkimmost useful for disassembly/recompilation of existing tables without parse 2394167802Sjkimerrors. (With assistance from Thomas Renninger) 2395167802Sjkim 2396193267SjkimDisassembler: fixed an incorrect disassembly problem with the 2397193267SjkimDataTableRegion and CopyObject operators. Fixed a possible fault during 2398193267Sjkimdisassembly of some Alias operators. 2399167802Sjkim 2400167802Sjkim---------------------------------------- 2401167802Sjkim12 May 2006. Summary of changes for version 20060512: 2402167802Sjkim 2403167802Sjkim1) ACPI CA Core Subsystem: 2404167802Sjkim 2405193267SjkimReplaced the AcpiOsQueueForExecution interface with a new interface named 2406193267SjkimAcpiOsExecute. The major difference is that the new interface does not have 2407193267Sjkima Priority parameter, this appeared to be useless and has been replaced by a 2408193267SjkimType parameter. The Type tells the host what type of execution is being 2409193267Sjkimrequested, such as global lock handler, notify handler, GPE handler, etc. 2410193267SjkimThis allows the host to queue and execute the request as appropriate for the 2411193267Sjkimrequest type, possibly using different work queues and different priorities 2412193267Sjkimfor the various request types. This enables fixes for multithreading 2413193267Sjkimdeadlock problems such as BZ #5534, and will require changes to all existing 2414193267SjkimOS interface layers. (Alexey Starikovskiy and Bob Moore) 2415167802Sjkim 2416193267SjkimFixed a possible memory leak associated with the support for the so-called 2417193267Sjkim"implicit return" ACPI extension. Reported by FreeBSD, BZ #6514. (Fiodor 2418193267SjkimSuietov) 2419167802Sjkim 2420193267SjkimFixed a problem with the Load() operator where a table load from an 2421193267Sjkimoperation region could overwrite an internal table buffer by up to 7 bytes 2422193267Sjkimand cause alignment faults on IPF systems. (With assistance from Luming Yu) 2423167802Sjkim 2424193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2425193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2426193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2427193267Sjkima much larger code and data size. 2428167802Sjkim 2429167802Sjkim Previous Release: 2430167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2431167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2432167802Sjkim Current Release: 2433167802Sjkim Non-Debug Version: 79.8K Code, 17.7K Data, 97.5K Total 2434167802Sjkim Debug Version: 160.5K Code, 65.1K Data, 225.6K Total 2435167802Sjkim 2436167802Sjkim 2437167802Sjkim 2438167802Sjkim2) iASL Compiler/Disassembler and Tools: 2439167802Sjkim 2440193267SjkimDisassembler: Implemented support to cross reference the internal namespace 2441193267Sjkimand automatically generate ASL External() statements for symbols not defined 2442193267Sjkimwithin the current table being disassembled. This will simplify the 2443193267Sjkimdisassembly and recompilation of interdependent tables such as SSDTs since 2444193267Sjkimthese statements will no longer have to be added manually. 2445167802Sjkim 2446193267SjkimDisassembler: Implemented experimental support to automatically detect 2447193267Sjkiminvocations of external control methods and generate appropriate External() 2448193267Sjkimstatements. This is problematic because the AML cannot be correctly parsed 2449193267Sjkimuntil the number of arguments for each control method is known. Currently, 2450193267Sjkimstandalone method invocations and invocations as the source operand of a 2451193267SjkimStore() statement are supported. 2452167802Sjkim 2453193267SjkimDisassembler: Implemented support for the ASL pseudo-operators LNotEqual, 2454193267SjkimLLessEqual, and LGreaterEqual. Previously disassembled as LNot(LEqual()), 2455193267SjkimLNot(LGreater()), and LNot(LLess()), this makes the disassembled ASL code 2456193267Sjkimmore readable and likely closer to the original ASL source. 2457167802Sjkim 2458167802Sjkim---------------------------------------- 2459167802Sjkim21 April 2006. Summary of changes for version 20060421: 2460167802Sjkim 2461167802Sjkim1) ACPI CA Core Subsystem: 2462167802Sjkim 2463193267SjkimRemoved a device initialization optimization introduced in 20051216 where 2464193267Sjkimthe _STA method was not run unless an _INI was also present for the same 2465193267Sjkimdevice. This optimization could cause problems because it could allow _INI 2466193267Sjkimmethods to be run within a not-present device subtree. (If a not-present 2467193267Sjkimdevice had no _INI, _STA would not be run, the not-present status would not 2468193267Sjkimbe discovered, and the children of the device would be incorrectly 2469167802Sjkimtraversed.) 2470167802Sjkim 2471193267SjkimImplemented a new _STA optimization where namespace subtrees that do not 2472193267Sjkimcontain _INI are identified and ignored during device initialization. 2473193267SjkimSelectively running _STA can significantly improve boot time on large 2474193267Sjkimmachines (with assistance from Len Brown.) 2475167802Sjkim 2476193267SjkimImplemented support for the device initialization case where the returned 2477193267Sjkim_STA flags indicate a device not-present but functioning. In this case, _INI 2478193267Sjkimis not run, but the device children are examined for presence, as per the 2479193267SjkimACPI specification. 2480167802Sjkim 2481193267SjkimImplemented an additional change to the IndexField support in order to 2482193267Sjkimconform to MS behavior. The value written to the Index Register is not 2483193267Sjkimsimply a byte offset, it is a byte offset in units of the access width of 2484193267Sjkimthe parent Index Field. (Fiodor Suietov) 2485167802Sjkim 2486193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateAddress. This 2487193267Sjkiminterface is called during the creation of all AML operation regions, and 2488193267Sjkimallows the host OS to exert control over what addresses it will allow the 2489193267SjkimAML code to access. Operation Regions whose addresses are disallowed will 2490193267Sjkimcause a runtime exception when they are actually accessed (will not affect 2491193267Sjkimor abort table loading.) See oswinxf or osunixxf for an example 2492167802Sjkimimplementation. 2493167802Sjkim 2494193267SjkimDefined and deployed a new OSL interface, AcpiOsValidateInterface. This 2495193267Sjkiminterface allows the host OS to match the various "optional" 2496193267Sjkiminterface/behavior strings for the _OSI predefined control method as 2497193267Sjkimappropriate (with assistance from Bjorn Helgaas.) See oswinxf or osunixxf 2498193267Sjkimfor an example implementation. 2499167802Sjkim 2500193267SjkimRestructured and corrected various problems in the exception handling code 2501193267Sjkimpaths within DsCallControlMethod and DsTerminateControlMethod in dsmethod 2502193267Sjkim(with assistance from Takayoshi Kochi.) 2503167802Sjkim 2504193267SjkimModified the Linux source converter to ignore quoted string literals while 2505193267Sjkimconverting identifiers from mixed to lower case. This will correct problems 2506193267Sjkimwith the disassembler and other areas where such strings must not be 2507193267Sjkimmodified. 2508167802Sjkim 2509193267SjkimThe ACPI_FUNCTION_* macros no longer require quotes around the function 2510193267Sjkimname. This allows the Linux source converter to convert the names, now that 2511193267Sjkimthe converter ignores quoted strings. 2512167802Sjkim 2513193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2514193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2515193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2516193267Sjkima much larger code and data size. 2517193267Sjkim 2518167802Sjkim Previous Release: 2519167802Sjkim 2520167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2521167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2522167802Sjkim Current Release: 2523167802Sjkim Non-Debug Version: 79.7K Code, 17.7K Data, 97.4K Total 2524167802Sjkim Debug Version: 160.1K Code, 65.2K Data, 225.3K Total 2525167802Sjkim 2526167802Sjkim 2527167802Sjkim2) iASL Compiler/Disassembler and Tools: 2528167802Sjkim 2529193267SjkimImplemented 3 new warnings for iASL, and implemented multiple warning levels 2530193267Sjkim(w2 flag). 2531167802Sjkim 2532193267Sjkim1) Ignored timeouts: If the TimeoutValue parameter to Wait or Acquire is not 2533193267SjkimWAIT_FOREVER (0xFFFF) and the code does not examine the return value to 2534193267Sjkimcheck for the possible timeout, a warning is issued. 2535167802Sjkim 2536193267Sjkim2) Useless operators: If an ASL operator does not specify an optional target 2537193267Sjkimoperand and it also does not use the function return value from the 2538193267Sjkimoperator, a warning is issued since the operator effectively does nothing. 2539167802Sjkim 2540193267Sjkim3) Unreferenced objects: If a namespace object is created, but never 2541193267Sjkimreferenced, a warning is issued. This is a warning level 2 since there are 2542193267Sjkimcases where this is ok, such as when a secondary table is loaded that uses 2543193267Sjkimthe unreferenced objects. Even so, care is taken to only flag objects that 2544193267Sjkimdon't look like they will ever be used. For example, the reserved methods 2545193267Sjkim(starting with an underscore) are usually not referenced because it is 2546193267Sjkimexpected that the OS will invoke them. 2547167802Sjkim 2548167802Sjkim---------------------------------------- 2549167802Sjkim31 March 2006. Summary of changes for version 20060331: 2550167802Sjkim 2551167802Sjkim1) ACPI CA Core Subsystem: 2552167802Sjkim 2553193267SjkimImplemented header file support for the following additional ACPI tables: 2554193267SjkimASF!, BOOT, CPEP, DBGP, MCFG, SPCR, SPMI, TCPA, and WDRT. With this support, 2555193267Sjkimall current and known ACPI tables are now defined in the ACPICA headers and 2556193267Sjkimare available for use by device drivers and other software. 2557167802Sjkim 2558193267SjkimImplemented support to allow tables that contain ACPI names with invalid 2559193267Sjkimcharacters to be loaded. Previously, this would cause the table load to 2560193267Sjkimfail, but since there are several known cases of such tables on existing 2561193267Sjkimmachines, this change was made to enable ACPI support for them. Also, this 2562193267Sjkimmatches the behavior of the Microsoft ACPI implementation. 2563167802Sjkim 2564193267SjkimFixed a couple regressions introduced during the memory optimization in the 2565193267Sjkim20060317 release. The namespace node definition required additional 2566193267Sjkimreorganization and an internal datatype that had been changed to 8-bit was 2567193267Sjkimrestored to 32-bit. (Valery Podrezov) 2568167802Sjkim 2569193267SjkimFixed a problem where a null pointer passed to AcpiUtDeleteGenericState 2570193267Sjkimcould be passed through to AcpiOsReleaseObject which is unexpected. Such 2571193267Sjkimnull pointers are now trapped and ignored, matching the behavior of the 2572193267Sjkimprevious implementation before the deployment of AcpiOsReleaseObject. 2573167802Sjkim(Valery Podrezov, Fiodor Suietov) 2574167802Sjkim 2575193267SjkimFixed a memory mapping leak during the deletion of a SystemMemory operation 2576193267Sjkimregion where a cached memory mapping was not deleted. This became a 2577193267Sjkimnoticeable problem for operation regions that are defined within frequently 2578193267Sjkimused control methods. (Dana Meyers) 2579167802Sjkim 2580193267SjkimReorganized the ACPI table header files into two main files: one for the 2581193267SjkimACPI tables consumed by the ACPICA core, and another for the miscellaneous 2582193267SjkimACPI tables that are consumed by the drivers and other software. The various 2583193267SjkimFADT definitions were merged into one common section and three different 2584193267Sjkimtables (ACPI 1.0, 1.0+, and 2.0) 2585167802Sjkim 2586193267SjkimExample Code and Data Size: These are the sizes for the OS-independent 2587193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. The 2588193267Sjkimdebug version of the code includes the debug output trace mechanism and has 2589193267Sjkima much larger code and data size. 2590167802Sjkim 2591167802Sjkim Previous Release: 2592167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2593167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2594167802Sjkim Current Release: 2595167802Sjkim Non-Debug Version: 81.1K Code, 17.7K Data, 98.8K Total 2596167802Sjkim Debug Version: 158.9K Code, 64.9K Data, 223.8K Total 2597167802Sjkim 2598167802Sjkim 2599167802Sjkim2) iASL Compiler/Disassembler and Tools: 2600167802Sjkim 2601193267SjkimDisassembler: Implemented support to decode and format all non-AML ACPI 2602193267Sjkimtables (tables other than DSDTs and SSDTs.) This includes the new tables 2603193267Sjkimadded to the ACPICA headers, therefore all current and known ACPI tables are 2604193267Sjkimsupported. 2605167802Sjkim 2606193267SjkimDisassembler: The change to allow ACPI names with invalid characters also 2607193267Sjkimenables the disassembly of such tables. Invalid characters within names are 2608193267Sjkimchanged to '*' to make the name printable; the iASL compiler will still 2609193267Sjkimgenerate an error for such names, however, since this is an invalid ACPI 2610193267Sjkimcharacter. 2611167802Sjkim 2612193267SjkimImplemented an option for AcpiXtract (-a) to extract all tables found in the 2613193267Sjkiminput file. The default invocation extracts only the DSDTs and SSDTs. 2614167802Sjkim 2615193267SjkimFixed a couple of gcc generation issues for iASL and AcpiExec and added a 2616193267Sjkimmakefile for the AcpiXtract utility. 2617167802Sjkim 2618167802Sjkim---------------------------------------- 2619167802Sjkim17 March 2006. Summary of changes for version 20060317: 2620167802Sjkim 2621167802Sjkim1) ACPI CA Core Subsystem: 2622167802Sjkim 2623193267SjkimImplemented the use of a cache object for all internal namespace nodes. 2624193267SjkimSince there are about 1000 static nodes in a typical system, this will 2625193267Sjkimdecrease memory use for cache implementations that minimize per-allocation 2626193267Sjkimoverhead (such as a slab allocator.) 2627167802Sjkim 2628193267SjkimRemoved the reference count mechanism for internal namespace nodes, since it 2629193267Sjkimwas deemed unnecessary. This reduces the size of each namespace node by 2630193267Sjkimabout 5%-10% on all platforms. Nodes are now 20 bytes for the 32-bit case, 2631193267Sjkimand 32 bytes for the 64-bit case. 2632167802Sjkim 2633193267SjkimOptimized several internal data structures to reduce object size on 64-bit 2634193267Sjkimplatforms by packing data within the 64-bit alignment. This includes the 2635193267Sjkimfrequently used ACPI_OPERAND_OBJECT, of which there can be ~1000 static 2636193267Sjkiminstances corresponding to the namespace objects. 2637167802Sjkim 2638193267SjkimAdded two new strings for the predefined _OSI method: "Windows 2001.1 SP1" 2639193267Sjkimand "Windows 2006". 2640167802Sjkim 2641193267SjkimSplit the allocation tracking mechanism out to a separate file, from 2642193267Sjkimutalloc.c to uttrack.c. This mechanism appears to be only useful for 2643193267Sjkimapplication-level code. Kernels may wish to not include uttrack.c in 2644193267Sjkimdistributions. 2645167802Sjkim 2646193267SjkimRemoved all remnants of the obsolete ACPI_REPORT_* macros and the associated 2647193267Sjkimcode. (These macros have been replaced by the ACPI_ERROR and ACPI_WARNING 2648193267Sjkimmacros.) 2649167802Sjkim 2650193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2651193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2652193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2653193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2654193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2655193267Sjkimcompiler options used during generation. 2656167802Sjkim 2657167802Sjkim Previous Release: 2658167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2659167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2660167802Sjkim Current Release: 2661167802Sjkim Non-Debug Version: 80.9K Code, 17.7K Data, 98.6K Total 2662167802Sjkim Debug Version: 158.7K Code, 64.8K Data, 223.5K Total 2663167802Sjkim 2664167802Sjkim 2665167802Sjkim2) iASL Compiler/Disassembler and Tools: 2666167802Sjkim 2667193267SjkimImplemented an ANSI C version of the acpixtract utility. This version will 2668193267Sjkimautomatically extract the DSDT and all SSDTs from the input acpidump text 2669193267Sjkimfile and dump the binary output to separate files. It can also display a 2670193267Sjkimsummary of the input file including the headers for each table found and 2671193267Sjkimwill extract any single ACPI table, with any signature. (See 2672167802Sjkimsource/tools/acpixtract) 2673167802Sjkim 2674167802Sjkim---------------------------------------- 2675167802Sjkim10 March 2006. Summary of changes for version 20060310: 2676167802Sjkim 2677167802Sjkim1) ACPI CA Core Subsystem: 2678167802Sjkim 2679193267SjkimTagged all external interfaces to the subsystem with the new 2680193267SjkimACPI_EXPORT_SYMBOL macro. This macro can be defined as necessary to assist 2681193267Sjkimkernel integration. For Linux, the macro resolves to the EXPORT_SYMBOL 2682193267Sjkimmacro. The default definition is NULL. 2683167802Sjkim 2684193267SjkimAdded the ACPI_THREAD_ID type for the return value from AcpiOsGetThreadId. 2685193267SjkimThis allows the host to define this as necessary to simplify kernel 2686193267Sjkimintegration. The default definition is ACPI_NATIVE_UINT. 2687167802Sjkim 2688193267SjkimFixed two interpreter problems related to error processing, the deletion of 2689193267Sjkimobjects, and placing invalid pointers onto the internal operator result 2690193267Sjkimstack. BZ 6028, 6151 (Valery Podrezov) 2691167802Sjkim 2692193267SjkimIncreased the reference count threshold where a warning is emitted for large 2693193267Sjkimreference counts in order to eliminate unnecessary warnings on systems with 2694193267Sjkimlarge namespaces (especially 64-bit.) Increased the value from 0x400 to 2695193267Sjkim0x800. 2696167802Sjkim 2697193267SjkimDue to universal disagreement as to the meaning of the 'c' in the calloc() 2698193267Sjkimfunction, the ACPI_MEM_CALLOCATE macro has been renamed to 2699193267SjkimACPI_ALLOCATE_ZEROED so that the purpose of the interface is 'clear'. 2700193267SjkimACPI_MEM_ALLOCATE and ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and 2701193267SjkimACPI_FREE. 2702167802Sjkim 2703193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2704193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2705193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2706193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2707193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2708193267Sjkimcompiler options used during generation. 2709167802Sjkim 2710167802Sjkim Previous Release: 2711167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2712167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2713167802Sjkim Current Release: 2714167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2715167802Sjkim Debug Version: 161.6K Code, 65.7K Data, 227.3K Total 2716167802Sjkim 2717167802Sjkim 2718167802Sjkim2) iASL Compiler/Disassembler: 2719167802Sjkim 2720193267SjkimDisassembler: implemented support for symbolic resource descriptor 2721193267Sjkimreferences. If a CreateXxxxField operator references a fixed offset within a 2722193267Sjkimresource descriptor, a name is assigned to the descriptor and the offset is 2723193267Sjkimtranslated to the appropriate resource tag and pathname. The addition of 2724193267Sjkimthis support brings the disassembled code very close to the original ASL 2725193267Sjkimsource code and helps eliminate run-time errors when the disassembled code 2726193267Sjkimis modified (and recompiled) in such a way as to invalidate the original 2727193267Sjkimfixed offsets. 2728167802Sjkim 2729193267SjkimImplemented support for a Descriptor Name as the last parameter to the ASL 2730193267SjkimRegister() macro. This parameter was inadvertently left out of the ACPI 2731193267Sjkimspecification, and will be added for ACPI 3.0b. 2732167802Sjkim 2733193267SjkimFixed a problem where the use of the "_OSI" string (versus the full path 2734193267Sjkim"\_OSI") caused an internal compiler error. ("No back ptr to op") 2735167802Sjkim 2736193267SjkimFixed a problem with the error message that occurs when an invalid string is 2737193267Sjkimused for a _HID object (such as one with an embedded asterisk: "*PNP010A".) 2738193267SjkimThe correct message is now displayed. 2739167802Sjkim 2740167802Sjkim---------------------------------------- 2741167802Sjkim17 February 2006. Summary of changes for version 20060217: 2742167802Sjkim 2743167802Sjkim1) ACPI CA Core Subsystem: 2744167802Sjkim 2745193267SjkimImplemented a change to the IndexField support to match the behavior of the 2746193267SjkimMicrosoft AML interpreter. The value written to the Index register is now a 2747193267Sjkimbyte offset, no longer an index based upon the width of the Data register. 2748193267SjkimThis should fix IndexField problems seen on some machines where the Data 2749193267Sjkimregister is not exactly one byte wide. The ACPI specification will be 2750193267Sjkimclarified on this point. 2751167802Sjkim 2752193267SjkimFixed a problem where several resource descriptor types could overrun the 2753193267Sjkiminternal descriptor buffer due to size miscalculation: VendorShort, 2754193267SjkimVendorLong, and Interrupt. This was noticed on IA64 machines, but could 2755193267Sjkimaffect all platforms. 2756167802Sjkim 2757193267SjkimFixed a problem where individual resource descriptors were misaligned within 2758193267Sjkimthe internal buffer, causing alignment faults on IA64 platforms. 2759167802Sjkim 2760193267SjkimCode and Data Size: These are the sizes for the acpica.lib produced by the 2761193267SjkimMicrosoft Visual C++ 6.0 32-bit compiler. The values do not include any ACPI 2762193267Sjkimdriver or OSPM code. The debug version of the code includes the debug output 2763193267Sjkimtrace mechanism and has a much larger code and data size. Note that these 2764193267Sjkimvalues will vary depending on the efficiency of the compiler and the 2765193267Sjkimcompiler options used during generation. 2766167802Sjkim 2767167802Sjkim Previous Release: 2768167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2769167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2770167802Sjkim Current Release: 2771167802Sjkim Non-Debug Version: 81.0K Code, 17.8K Data, 98.8K Total 2772167802Sjkim Debug Version: 161.4K Code, 65.7K Data, 227.1K Total 2773167802Sjkim 2774167802Sjkim 2775167802Sjkim2) iASL Compiler/Disassembler: 2776167802Sjkim 2777193267SjkimImplemented support for new reserved names: _WDG and _WED are Microsoft 2778193267Sjkimextensions for Windows Instrumentation Management, _TDL is a new ACPI- 2779193267Sjkimdefined method (Throttling Depth Limit.) 2780167802Sjkim 2781193267SjkimFixed a problem where a zero-length VendorShort or VendorLong resource 2782193267Sjkimdescriptor was incorrectly emitted as a descriptor of length one. 2783167802Sjkim 2784167802Sjkim---------------------------------------- 2785167802Sjkim10 February 2006. Summary of changes for version 20060210: 2786167802Sjkim 2787167802Sjkim1) ACPI CA Core Subsystem: 2788167802Sjkim 2789193267SjkimRemoved a couple of extraneous ACPI_ERROR messages that appeared during 2790193267Sjkimnormal execution. These became apparent after the conversion from 2791193267SjkimACPI_DEBUG_PRINT. 2792167802Sjkim 2793193267SjkimFixed a problem where the CreateField operator could hang if the BitIndex or 2794193267SjkimNumBits parameter referred to a named object. (Valery Podrezov, BZ 5359) 2795167802Sjkim 2796193267SjkimFixed a problem where a DeRefOf operation on a buffer object incorrectly 2797193267Sjkimfailed with an exception. This also fixes a couple of related RefOf and 2798193267SjkimDeRefOf issues. (Valery Podrezov, BZ 5360/5392/5387) 2799167802Sjkim 2800193267SjkimFixed a problem where the AE_BUFFER_LIMIT exception was returned instead of 2801193267SjkimAE_STRING_LIMIT on an out-of-bounds Index() operation. (Valery Podrezov, BZ 2802193267Sjkim5480) 2803167802Sjkim 2804193267SjkimImplemented a memory cleanup at the end of the execution of each iteration 2805193267Sjkimof an AML While() loop, preventing the accumulation of outstanding objects. 2806193267Sjkim(Valery Podrezov, BZ 5427) 2807167802Sjkim 2808193267SjkimEliminated a chunk of duplicate code in the object resolution code. (Valery 2809193267SjkimPodrezov, BZ 5336) 2810167802Sjkim 2811167802SjkimFixed several warnings during the 64-bit code generation. 2812167802Sjkim 2813193267SjkimThe AcpiSrc source code conversion tool now inserts one line of whitespace 2814193267Sjkimafter an if() statement that is followed immediately by a comment, improving 2815193267Sjkimreadability of the Linux code. 2816167802Sjkim 2817193267SjkimCode and Data Size: The current and previous library sizes for the core 2818193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2819193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2820193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 2821193267Sjkimcode includes the debug output trace mechanism and has a much larger code 2822193267Sjkimand data size. Note that these values will vary depending on the efficiency 2823193267Sjkimof the compiler and the compiler options used during generation. 2824167802Sjkim 2825167802Sjkim Previous Release: 2826167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 2827167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2828167802Sjkim Current Release: 2829167802Sjkim Non-Debug Version: 81.1K Code, 17.8K Data, 98.9K Total 2830167802Sjkim Debug Version: 161.3K Code, 65.6K Data, 226.9K Total 2831167802Sjkim 2832167802Sjkim 2833167802Sjkim2) iASL Compiler/Disassembler: 2834167802Sjkim 2835193267SjkimFixed a problem with the disassembly of a BankField operator with a complex 2836193267Sjkimexpression for the BankValue parameter. 2837167802Sjkim 2838167802Sjkim---------------------------------------- 2839167802Sjkim27 January 2006. Summary of changes for version 20060127: 2840167802Sjkim 2841167802Sjkim1) ACPI CA Core Subsystem: 2842167802Sjkim 2843193267SjkimImplemented support in the Resource Manager to allow unresolved namestring 2844193267Sjkimreferences within resource package objects for the _PRT method. This support 2845193267Sjkimis in addition to the previously implemented unresolved reference support 2846193267Sjkimwithin the AML parser. If the interpreter slack mode is enabled, these 2847193267Sjkimunresolved references will be passed through to the caller as a NULL package 2848167802Sjkimentry. 2849167802Sjkim 2850193267SjkimImplemented and deployed new macros and functions for error and warning 2851193267Sjkimmessages across the subsystem. These macros are simpler and generate less 2852193267Sjkimcode than their predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION, 2853193267SjkimACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_* macros. The older 2854193267Sjkimmacros remain defined to allow ACPI drivers time to migrate to the new 2855193267Sjkimmacros. 2856167802Sjkim 2857193267SjkimImplemented the ACPI_CPU_FLAGS type to simplify host OS integration of the 2858193267SjkimAcquire/Release Lock OSL interfaces. 2859167802Sjkim 2860193267SjkimFixed a problem where Alias ASL operators are sometimes not correctly 2861193267Sjkimresolved, in both the interpreter and the iASL compiler. 2862167802Sjkim 2863193267SjkimFixed several problems with the implementation of the ConcatenateResTemplate 2864193267SjkimASL operator. As per the ACPI specification, zero length buffers are now 2865193267Sjkimtreated as a single EndTag. One-length buffers always cause a fatal 2866193267Sjkimexception. Non-zero length buffers that do not end with a full 2-byte EndTag 2867167802Sjkimcause a fatal exception. 2868167802Sjkim 2869193267SjkimFixed a possible structure overwrite in the AcpiGetObjectInfo external 2870193267Sjkiminterface. (With assistance from Thomas Renninger) 2871167802Sjkim 2872193267SjkimCode and Data Size: The current and previous library sizes for the core 2873193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2874193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2875193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 2876193267Sjkimcode includes the debug output trace mechanism and has a much larger code 2877193267Sjkimand data size. Note that these values will vary depending on the efficiency 2878193267Sjkimof the compiler and the compiler options used during generation. 2879167802Sjkim 2880167802Sjkim Previous Release: 2881167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 2882167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 2883167802Sjkim Current Release: 2884167802Sjkim Non-Debug Version: 81.0K Code, 17.9K Data, 98.9K Total 2885167802Sjkim Debug Version: 161.3K Code, 65.7K Data, 227.0K Total 2886167802Sjkim 2887167802Sjkim 2888167802Sjkim2) iASL Compiler/Disassembler: 2889167802Sjkim 2890193267SjkimFixed an internal error that was generated for any forward references to ASL 2891193267SjkimAlias objects. 2892167802Sjkim 2893167802Sjkim---------------------------------------- 2894167802Sjkim13 January 2006. Summary of changes for version 20060113: 2895167802Sjkim 2896167802Sjkim1) ACPI CA Core Subsystem: 2897167802Sjkim 2898193267SjkimAdded 2006 copyright to all module headers and signons. This affects 2899193267Sjkimvirtually every file in the ACPICA core subsystem, iASL compiler, and the 2900193267Sjkimutilities. 2901193267Sjkim 2902193267SjkimEnhanced the ACPICA error reporting in order to simplify user migration to 2903193267Sjkimthe non-debug version of ACPICA. Replaced all instances of the 2904193267SjkimACPI_DEBUG_PRINT macro invoked at the ACPI_DB_ERROR and ACPI_DB_WARN debug 2905193267Sjkimlevels with the ACPI_REPORT_ERROR and ACPI_REPORT_WARNING macros, 2906193267Sjkimrespectively. This preserves all error and warning messages in the non-debug 2907193267Sjkimversion of the ACPICA code (this has been referred to as the "debug lite" 2908193267Sjkimoption.) Over 200 cases were converted to create a total of over 380 2909193267Sjkimerror/warning messages across the ACPICA code. This increases the code and 2910193267Sjkimdata size of the default non-debug version of the code somewhat (about 13K), 2911193267Sjkimbut all error/warning reporting may be disabled if desired (and code 2912193267Sjkimeliminated) by specifying the ACPI_NO_ERROR_MESSAGES compile-time 2913193267Sjkimconfiguration option. The size of the debug version of ACPICA remains about 2914193267Sjkimthe same. 2915167802Sjkim 2916193267SjkimFixed a memory leak within the AML Debugger "Set" command. One object was 2917193267Sjkimnot properly deleted for every successful invocation of the command. 2918167802Sjkim 2919193267SjkimCode and Data Size: The current and previous library sizes for the core 2920193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2921193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2922193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 2923193267Sjkimcode includes the debug output trace mechanism and has a much larger code 2924193267Sjkimand data size. Note that these values will vary depending on the efficiency 2925193267Sjkimof the compiler and the compiler options used during generation. 2926167802Sjkim 2927167802Sjkim Previous Release: 2928167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 2929167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 2930167802Sjkim Current Release: 2931167802Sjkim Non-Debug Version: 83.1K Code, 18.4K Data, 101.5K Total 2932167802Sjkim Debug Version: 163.2K Code, 66.2K Data, 229.4K Total 2933167802Sjkim 2934167802Sjkim 2935167802Sjkim2) iASL Compiler/Disassembler: 2936167802Sjkim 2937193267SjkimThe compiler now officially supports the ACPI 3.0a specification that was 2938193267Sjkimreleased on December 30, 2005. (Specification is available at www.acpi.info) 2939167802Sjkim 2940167802Sjkim---------------------------------------- 2941167802Sjkim16 December 2005. Summary of changes for version 20051216: 2942167802Sjkim 2943167802Sjkim1) ACPI CA Core Subsystem: 2944167802Sjkim 2945193267SjkimImplemented optional support to allow unresolved names within ASL Package 2946193267Sjkimobjects. A null object is inserted in the package when a named reference 2947193267Sjkimcannot be located in the current namespace. Enabled via the interpreter 2948193267Sjkimslack flag, this should eliminate AE_NOT_FOUND exceptions seen on machines 2949193267Sjkimthat contain such code. 2950167802Sjkim 2951193267SjkimImplemented an optimization to the initialization sequence that can improve 2952193267Sjkimboot time. During ACPI device initialization, the _STA method is now run if 2953193267Sjkimand only if the _INI method exists. The _STA method is used to determine if 2954193267Sjkimthe device is present; An _INI can only be run if _STA returns present, but 2955193267Sjkimit is a waste of time to run the _STA method if the _INI does not exist. 2956167802Sjkim(Prototype and assistance from Dong Wei) 2957167802Sjkim 2958193267SjkimImplemented use of the C99 uintptr_t for the pointer casting macros if it is 2959193267Sjkimavailable in the current compiler. Otherwise, the default (void *) cast is 2960193267Sjkimused as before. 2961167802Sjkim 2962193267SjkimFixed some possible memory leaks found within the execution path of the 2963193267SjkimBreak, Continue, If, and CreateField operators. (Valery Podrezov) 2964167802Sjkim 2965193267SjkimFixed a problem introduced in the 20051202 release where an exception is 2966193267Sjkimgenerated during method execution if a control method attempts to declare 2967193267Sjkimanother method. 2968167802Sjkim 2969193267SjkimMoved resource descriptor string constants that are used by both the AML 2970193267Sjkimdisassembler and AML debugger to the common utilities directory so that 2971193267Sjkimthese components are independent. 2972167802Sjkim 2973193267SjkimImplemented support in the AcpiExec utility (-e switch) to globally ignore 2974193267Sjkimexceptions during control method execution (method is not aborted.) 2975167802Sjkim 2976193267SjkimAdded the rsinfo.c source file to the AcpiExec makefile for Linux/Unix 2977193267Sjkimgeneration. 2978167802Sjkim 2979193267SjkimCode and Data Size: The current and previous library sizes for the core 2980193267Sjkimsubsystem are shown below. These are the code and data sizes for the 2981193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 2982193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 2983193267Sjkimcode includes the debug output trace mechanism and has a much larger code 2984193267Sjkimand data size. Note that these values will vary depending on the efficiency 2985193267Sjkimof the compiler and the compiler options used during generation. 2986167802Sjkim 2987167802Sjkim Previous Release: 2988167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 2989167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 2990167802Sjkim Current Release: 2991167802Sjkim Non-Debug Version: 76.6K Code, 12.3K Data, 88.9K Total 2992167802Sjkim Debug Version: 163.7K Code, 67.5K Data, 231.2K Total 2993167802Sjkim 2994167802Sjkim 2995167802Sjkim2) iASL Compiler/Disassembler: 2996167802Sjkim 2997193267SjkimFixed a problem where a CPU stack overflow fault could occur if a recursive 2998193267Sjkimmethod call was made from within a Return statement. 2999167802Sjkim 3000167802Sjkim---------------------------------------- 3001167802Sjkim02 December 2005. Summary of changes for version 20051202: 3002167802Sjkim 3003167802Sjkim1) ACPI CA Core Subsystem: 3004167802Sjkim 3005193267SjkimModified the parsing of control methods to no longer create namespace 3006193267Sjkimobjects during the first pass of the parse. Objects are now created only 3007193267Sjkimduring the execute phase, at the moment the namespace creation operator is 3008193267Sjkimencountered in the AML (Name, OperationRegion, CreateByteField, etc.) This 3009193267Sjkimshould eliminate ALREADY_EXISTS exceptions seen on some machines where 3010193267Sjkimreentrant control methods are protected by an AML mutex. The mutex will now 3011193267Sjkimcorrectly block multiple threads from attempting to create the same object 3012193267Sjkimmore than once. 3013167802Sjkim 3014193267SjkimIncreased the number of available Owner Ids for namespace object tracking 3015193267Sjkimfrom 32 to 255. This should eliminate the OWNER_ID_LIMIT exceptions seen on 3016193267Sjkimsome machines with a large number of ACPI tables (either static or dynamic). 3017167802Sjkim 3018193267SjkimFixed a problem with the AcpiExec utility where a fault could occur when the 3019193267Sjkim-b switch (batch mode) is used. 3020167802Sjkim 3021193267SjkimEnhanced the namespace dump routine to output the owner ID for each 3022193267Sjkimnamespace object. 3023167802Sjkim 3024193267SjkimCode and Data Size: The current and previous library sizes for the core 3025193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3026193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3027193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3028193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3029193267Sjkimand data size. Note that these values will vary depending on the efficiency 3030193267Sjkimof the compiler and the compiler options used during generation. 3031167802Sjkim 3032167802Sjkim Previous Release: 3033167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3034167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3035167802Sjkim Current Release: 3036167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3037167802Sjkim Debug Version: 163.2K Code, 67.4K Data, 230.6K Total 3038167802Sjkim 3039167802Sjkim 3040167802Sjkim2) iASL Compiler/Disassembler: 3041167802Sjkim 3042193267SjkimFixed a parse error during compilation of certain Switch/Case constructs. To 3043193267Sjkimsimplify the parse, the grammar now allows for multiple Default statements 3044193267Sjkimand this error is now detected and flagged during the analysis phase. 3045167802Sjkim 3046193267SjkimDisassembler: The disassembly now includes the contents of the original 3047193267Sjkimtable header within a comment at the start of the file. This includes the 3048193267Sjkimname and version of the original ASL compiler. 3049167802Sjkim 3050167802Sjkim---------------------------------------- 3051167802Sjkim17 November 2005. Summary of changes for version 20051117: 3052167802Sjkim 3053167802Sjkim1) ACPI CA Core Subsystem: 3054167802Sjkim 3055193267SjkimFixed a problem in the AML parser where the method thread count could be 3056193267Sjkimdecremented below zero if any errors occurred during the method parse phase. 3057193267SjkimThis should eliminate AE_AML_METHOD_LIMIT exceptions seen on some machines. 3058193267SjkimThis also fixed a related regression with the mechanism that detects and 3059193267Sjkimcorrects methods that cannot properly handle reentrancy (related to the 3060193267Sjkimdeployment of the new OwnerId mechanism.) 3061167802Sjkim 3062193267SjkimEliminated the pre-parsing of control methods (to detect errors) during 3063193267Sjkimtable load. Related to the problem above, this was causing unwind issues if 3064193267Sjkimany errors occurred during the parse, and it seemed to be overkill. A table 3065193267Sjkimload should not be aborted if there are problems with any single control 3066193267Sjkimmethod, thus rendering this feature rather pointless. 3067167802Sjkim 3068193267SjkimFixed a problem with the new table-driven resource manager where an internal 3069193267Sjkimbuffer overflow could occur for small resource templates. 3070167802Sjkim 3071193267SjkimImplemented a new external interface, AcpiGetVendorResource. This interface 3072193267Sjkimwill find and return a vendor-defined resource descriptor within a _CRS or 3073193267Sjkim_PRS method via an ACPI 3.0 UUID match. With assistance from Bjorn Helgaas. 3074167802Sjkim 3075193267SjkimRemoved the length limit (200) on string objects as per the upcoming ACPI 3076193267Sjkim3.0A specification. This affects the following areas of the interpreter: 1) 3077193267Sjkimany implicit conversion of a Buffer to a String, 2) a String object result 3078193267Sjkimof the ASL Concatentate operator, 3) the String object result of the ASL 3079193267SjkimToString operator. 3080167802Sjkim 3081193267SjkimFixed a problem in the Windows OS interface layer (OSL) where a WAIT_FOREVER 3082193267Sjkimon a semaphore object would incorrectly timeout. This allows the 3083193267Sjkimmultithreading features of the AcpiExec utility to work properly under 3084193267SjkimWindows. 3085167802Sjkim 3086193267SjkimUpdated the Linux makefiles for the iASL compiler and AcpiExec to include 3087193267Sjkimthe recently added file named "utresrc.c". 3088167802Sjkim 3089193267SjkimCode and Data Size: The current and previous library sizes for the core 3090193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3091193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3092193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3093193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3094193267Sjkimand data size. Note that these values will vary depending on the efficiency 3095193267Sjkimof the compiler and the compiler options used during generation. 3096167802Sjkim 3097167802Sjkim Previous Release: 3098167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3099167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3100167802Sjkim Current Release: 3101167802Sjkim Non-Debug Version: 76.3K Code, 12.3K Data, 88.6K Total 3102167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3103167802Sjkim 3104167802Sjkim 3105167802Sjkim2) iASL Compiler/Disassembler: 3106167802Sjkim 3107193267SjkimRemoved the limit (200) on string objects as per the upcoming ACPI 3.0A 3108193267Sjkimspecification. For the iASL compiler, this means that string literals within 3109193267Sjkimthe source ASL can be of any length. 3110167802Sjkim 3111193267SjkimEnhanced the listing output to dump the AML code for resource descriptors 3112193267Sjkimimmediately after the ASL code for each descriptor, instead of in a block at 3113193267Sjkimthe end of the entire resource template. 3114167802Sjkim 3115193267SjkimEnhanced the compiler debug output to dump the entire original parse tree 3116193267Sjkimconstructed during the parse phase, before any transforms are applied to the 3117193267Sjkimtree. The transformed tree is dumped also. 3118167802Sjkim 3119167802Sjkim---------------------------------------- 3120167802Sjkim02 November 2005. Summary of changes for version 20051102: 3121167802Sjkim 3122167802Sjkim1) ACPI CA Core Subsystem: 3123167802Sjkim 3124193267SjkimModified the subsystem initialization sequence to improve GPE support. The 3125193267SjkimGPE initialization has been split into two parts in order to defer execution 3126193267Sjkimof the _PRW methods (Power Resources for Wake) until after the hardware is 3127193267Sjkimfully initialized and the SCI handler is installed. This allows the _PRW 3128193267Sjkimmethods to access fields protected by the Global Lock. This will fix systems 3129193267Sjkimwhere a NO_GLOBAL_LOCK exception has been seen during initialization. 3130167802Sjkim 3131193267SjkimConverted the ACPI internal object disassemble and display code within the 3132193267SjkimAML debugger to fully table-driven operation, reducing code size and 3133193267Sjkimincreasing maintainability. 3134167802Sjkim 3135193267SjkimFixed a regression with the ConcatenateResTemplate() ASL operator introduced 3136193267Sjkimin the 20051021 release. 3137167802Sjkim 3138193267SjkimImplemented support for "local" internal ACPI object types within the 3139193267Sjkimdebugger "Object" command and the AcpiWalkNamespace external interfaces. 3140193267SjkimThese local types include RegionFields, BankFields, IndexFields, Alias, and 3141193267Sjkimreference objects. 3142167802Sjkim 3143193267SjkimMoved common AML resource handling code into a new file, "utresrc.c". This 3144193267Sjkimcode is shared by both the Resource Manager and the AML Debugger. 3145167802Sjkim 3146193267SjkimCode and Data Size: The current and previous library sizes for the core 3147193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3148193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3149193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3150193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3151193267Sjkimand data size. Note that these values will vary depending on the efficiency 3152193267Sjkimof the compiler and the compiler options used during generation. 3153167802Sjkim 3154167802Sjkim Previous Release: 3155167802Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3156167802Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3157167802Sjkim Current Release: 3158167802Sjkim Non-Debug Version: 76.2K Code, 12.3K Data, 88.5K Total 3159167802Sjkim Debug Version: 163.0K Code, 67.4K Data, 230.4K Total 3160167802Sjkim 3161167802Sjkim 3162167802Sjkim2) iASL Compiler/Disassembler: 3163167802Sjkim 3164193267SjkimFixed a problem with very large initializer lists (more than 4000 elements) 3165193267Sjkimfor both Buffer and Package objects where the parse stack could overflow. 3166167802Sjkim 3167193267SjkimEnhanced the pre-compile source code scan for non-ASCII characters to ignore 3168193267Sjkimcharacters within comment fields. The scan is now always performed and is no 3169193267Sjkimlonger optional, detecting invalid characters within a source file 3170193267Sjkimimmediately rather than during the parse phase or later. 3171167802Sjkim 3172193267SjkimEnhanced the ASL grammar definition to force early reductions on all list- 3173193267Sjkimstyle grammar elements so that the overall parse stack usage is greatly 3174193267Sjkimreduced. This should improve performance and reduce the possibility of parse 3175193267Sjkimstack overflow. 3176167802Sjkim 3177193267SjkimEliminated all reduce/reduce conflicts in the iASL parser generation. Also, 3178193267Sjkimwith the addition of a %expected statement, the compiler generates from 3179193267Sjkimsource with no warnings. 3180167802Sjkim 3181193267SjkimFixed a possible segment fault in the disassembler if the input filename 3182193267Sjkimdoes not contain a "dot" extension (Thomas Renninger). 3183167802Sjkim 3184167802Sjkim---------------------------------------- 3185151937Sjkim21 October 2005. Summary of changes for version 20051021: 3186151937Sjkim 3187151937Sjkim1) ACPI CA Core Subsystem: 3188151937Sjkim 3189193267SjkimImplemented support for the EM64T and other x86-64 processors. This 3190193267Sjkimessentially entails recognizing that these processors support non-aligned 3191193267Sjkimmemory transfers. Previously, all 64-bit processors were assumed to lack 3192193267Sjkimhardware support for non-aligned transfers. 3193151937Sjkim 3194193267SjkimCompleted conversion of the Resource Manager to nearly full table-driven 3195193267Sjkimoperation. Specifically, the resource conversion code (convert AML to 3196193267Sjkiminternal format and the reverse) and the debug code to dump internal 3197193267Sjkimresource descriptors are fully table-driven, reducing code and data size and 3198193267Sjkimimproving maintainability. 3199151937Sjkim 3200193267SjkimThe OSL interfaces for Acquire and Release Lock now use a 64-bit flag word 3201193267Sjkimon 64-bit processors instead of a fixed 32-bit word. (With assistance from 3202193267SjkimAlexey Starikovskiy) 3203151937Sjkim 3204193267SjkimImplemented support within the resource conversion code for the Type- 3205193267SjkimSpecific byte within the various ACPI 3.0 *WordSpace macros. 3206151937Sjkim 3207193267SjkimFixed some issues within the resource conversion code for the type-specific 3208193267Sjkimflags for both Memory and I/O address resource descriptors. For Memory, 3209193267Sjkimimplemented support for the MTP and TTP flags. For I/O, split the TRS and 3210193267SjkimTTP flags into two separate fields. 3211151937Sjkim 3212193267SjkimCode and Data Size: The current and previous library sizes for the core 3213193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3214193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3215193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3216193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3217193267Sjkimand data size. Note that these values will vary depending on the efficiency 3218193267Sjkimof the compiler and the compiler options used during generation. 3219151937Sjkim 3220151937Sjkim Previous Release: 3221151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3222151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3223151937Sjkim Current Release: 3224151937Sjkim Non-Debug Version: 76.1K Code, 12.2K Data, 88.3K Total 3225151937Sjkim Debug Version: 163.5K Code, 67.0K Data, 230.5K Total 3226151937Sjkim 3227151937Sjkim 3228167802Sjkim 3229151937Sjkim2) iASL Compiler/Disassembler: 3230151937Sjkim 3231193267SjkimRelaxed a compiler restriction that disallowed a ResourceIndex byte if the 3232193267Sjkimcorresponding ResourceSource string was not also present in a resource 3233193267Sjkimdescriptor declaration. This restriction caused problems with existing 3234193267SjkimAML/ASL code that includes the Index byte without the string. When such AML 3235193267Sjkimwas disassembled, it could not be compiled without modification. Further, 3236193267Sjkimthe modified code created a resource template with a different size than the 3237193267Sjkimoriginal, breaking code that used fixed offsets into the resource template 3238193267Sjkimbuffer. 3239151937Sjkim 3240193267SjkimRemoved a recent feature of the disassembler to ignore a lone ResourceIndex 3241193267Sjkimbyte. This byte is now emitted if present so that the exact AML can be 3242193267Sjkimreproduced when the disassembled code is recompiled. 3243151937Sjkim 3244193267SjkimImproved comments and text alignment for the resource descriptor code 3245193267Sjkimemitted by the disassembler. 3246151937Sjkim 3247193267SjkimImplemented disassembler support for the ACPI 3.0 AccessSize field within a 3248193267SjkimRegister() resource descriptor. 3249151937Sjkim 3250151937Sjkim---------------------------------------- 3251151937Sjkim30 September 2005. Summary of changes for version 20050930: 3252151937Sjkim 3253151937Sjkim1) ACPI CA Core Subsystem: 3254151937Sjkim 3255193267SjkimCompleted a major overhaul of the Resource Manager code - specifically, 3256193267Sjkimoptimizations in the area of the AML/internal resource conversion code. The 3257193267Sjkimcode has been optimized to simplify and eliminate duplicated code, CPU stack 3258193267Sjkimuse has been decreased by optimizing function parameters and local 3259193267Sjkimvariables, and naming conventions across the manager have been standardized 3260193267Sjkimfor clarity and ease of maintenance (this includes function, parameter, 3261193267Sjkimvariable, and struct/typedef names.) The update may force changes in some 3262193267Sjkimdriver code, depending on how resources are handled by the host OS. 3263151937Sjkim 3264193267SjkimAll Resource Manager dispatch and information tables have been moved to a 3265193267Sjkimsingle location for clarity and ease of maintenance. One new file was 3266193267Sjkimcreated, named "rsinfo.c". 3267151937Sjkim 3268193267SjkimThe ACPI return macros (return_ACPI_STATUS, etc.) have been modified to 3269193267Sjkimguarantee that the argument is not evaluated twice, making them less prone 3270193267Sjkimto macro side-effects. However, since there exists the possibility of 3271193267Sjkimadditional stack use if a particular compiler cannot optimize them (such as 3272193267Sjkimin the debug generation case), the original macros are optionally available. 3273193267SjkimNote that some invocations of the return_VALUE macro may now cause size 3274193267Sjkimmismatch warnings; the return_UINT8 and return_UINT32 macros are provided to 3275193267Sjkimeliminate these. (From Randy Dunlap) 3276151937Sjkim 3277193267SjkimImplemented a new mechanism to enable debug tracing for individual control 3278193267Sjkimmethods. A new external interface, AcpiDebugTrace, is provided to enable 3279193267Sjkimthis mechanism. The intent is to allow the host OS to easily enable and 3280193267Sjkimdisable tracing for problematic control methods. This interface can be 3281193267Sjkimeasily exposed to a user or debugger interface if desired. See the file 3282151937Sjkimpsxface.c for details. 3283151937Sjkim 3284193267SjkimAcpiUtCallocate will now return a valid pointer if a length of zero is 3285193267Sjkimspecified - a length of one is used and a warning is issued. This matches 3286193267Sjkimthe behavior of AcpiUtAllocate. 3287151937Sjkim 3288193267SjkimCode and Data Size: The current and previous library sizes for the core 3289193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3290193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3291193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3292193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3293193267Sjkimand data size. Note that these values will vary depending on the efficiency 3294193267Sjkimof the compiler and the compiler options used during generation. 3295151937Sjkim 3296151937Sjkim Previous Release: 3297151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3298151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3299151937Sjkim Current Release: 3300151937Sjkim Non-Debug Version: 77.1K Code, 12.1K Data, 89.2K Total 3301151937Sjkim Debug Version: 168.0K Code, 68.3K Data, 236.3K Total 3302151937Sjkim 3303151937Sjkim 3304151937Sjkim2) iASL Compiler/Disassembler: 3305151937Sjkim 3306193267SjkimA remark is issued if the effective compile-time length of a package or 3307193267Sjkimbuffer is zero. Previously, this was a warning. 3308151937Sjkim 3309151937Sjkim---------------------------------------- 3310151937Sjkim16 September 2005. Summary of changes for version 20050916: 3311151937Sjkim 3312151937Sjkim1) ACPI CA Core Subsystem: 3313151937Sjkim 3314193267SjkimFixed a problem within the Resource Manager where support for the Generic 3315193267SjkimRegister descriptor was not fully implemented. This descriptor is now fully 3316193267Sjkimrecognized, parsed, disassembled, and displayed. 3317151937Sjkim 3318193267SjkimCompletely restructured the Resource Manager code to utilize table-driven 3319193267Sjkimdispatch and lookup, eliminating many of the large switch() statements. This 3320193267Sjkimreduces overall subsystem code size and code complexity. Affects the 3321193267Sjkimresource parsing and construction, disassembly, and debug dump output. 3322151937Sjkim 3323193267SjkimCleaned up and restructured the debug dump output for all resource 3324193267Sjkimdescriptors. Improved readability of the output and reduced code size. 3325151937Sjkim 3326193267SjkimFixed a problem where changes to internal data structures caused the 3327193267Sjkimoptional ACPI_MUTEX_DEBUG code to fail compilation if specified. 3328151937Sjkim 3329193267SjkimCode and Data Size: The current and previous library sizes for the core 3330193267Sjkimsubsystem are shown below. These are the code and data sizes for the 3331193267Sjkimacpica.lib produced by the Microsoft Visual C++ 6.0 32-bit compiler. These 3332193267Sjkimvalues do not include any ACPI driver or OSPM code. The debug version of the 3333193267Sjkimcode includes the debug output trace mechanism and has a much larger code 3334193267Sjkimand data size. Note that these values will vary depending on the efficiency 3335193267Sjkimof the compiler and the compiler options used during generation. 3336151937Sjkim 3337151937Sjkim Previous Release: 3338151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3339151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3340151937Sjkim Current Release: 3341151937Sjkim Non-Debug Version: 77.5K Code, 12.0K Data, 89.5K Total 3342151937Sjkim Debug Version: 168.1K Code, 68.4K Data, 236.5K Total 3343151937Sjkim 3344151937Sjkim 3345151937Sjkim2) iASL Compiler/Disassembler: 3346151937Sjkim 3347193267SjkimUpdated the disassembler to automatically insert an EndDependentFn() macro 3348193267Sjkiminto the ASL stream if this macro is missing in the original AML code, 3349193267Sjkimsimplifying compilation of the resulting ASL module. 3350151937Sjkim 3351193267SjkimFixed a problem in the disassembler where a disassembled ResourceSource 3352193267Sjkimstring (within a large resource descriptor) was not surrounded by quotes and 3353193267Sjkimnot followed by a comma, causing errors when the resulting ASL module was 3354193267Sjkimcompiled. Also, escape sequences within a ResourceSource string are now 3355193267Sjkimhandled correctly (especially "\\") 3356151937Sjkim 3357151937Sjkim---------------------------------------- 3358151937Sjkim02 September 2005. Summary of changes for version 20050902: 3359151937Sjkim 3360151937Sjkim1) ACPI CA Core Subsystem: 3361151937Sjkim 3362193267SjkimFixed a problem with the internal Owner ID allocation and deallocation 3363193267Sjkimmechanisms for control method execution and recursive method invocation. 3364193267SjkimThis should eliminate the OWNER_ID_LIMIT exceptions and "Invalid OwnerId" 3365193267Sjkimmessages seen on some systems. Recursive method invocation depth is 3366193267Sjkimcurrently limited to 255. (Alexey Starikovskiy) 3367151937Sjkim 3368193267SjkimCompletely eliminated all vestiges of support for the "module-level 3369193267Sjkimexecutable code" until this support is fully implemented and debugged. This 3370193267Sjkimshould eliminate the NO_RETURN_VALUE exceptions seen during table load on 3371193267Sjkimsome systems that invoke this support. 3372151937Sjkim 3373193267SjkimFixed a problem within the resource manager code where the transaction flags 3374193267Sjkimfor a 64-bit address descriptor were handled incorrectly in the type- 3375193267Sjkimspecific flag byte. 3376151937Sjkim 3377193267SjkimConsolidated duplicate code within the address descriptor resource manager 3378193267Sjkimcode, reducing overall subsystem code size. 3379151937Sjkim 3380193267SjkimFixed a fault when using the AML debugger "disassemble" command to 3381193267Sjkimdisassemble individual control methods. 3382151937Sjkim 3383193267SjkimRemoved references to the "release_current" directory within the Unix 3384193267Sjkimrelease package. 3385151937Sjkim 3386193267SjkimCode and Data Size: The current and previous core subsystem library sizes 3387193267Sjkimare shown below. These are the code and data sizes for the acpica.lib 3388193267Sjkimproduced by the Microsoft Visual C++ 6.0 compiler. These values do not 3389193267Sjkiminclude any ACPI driver or OSPM code. The debug version of the code includes 3390193267Sjkimthe debug output trace mechanism and has a much larger code and data size. 3391193267SjkimNote that these values will vary depending on the efficiency of the compiler 3392193267Sjkimand the compiler options used during generation. 3393151937Sjkim 3394151937Sjkim Previous Release: 3395151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3396151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3397151937Sjkim Current Release: 3398151937Sjkim Non-Debug Version: 78.4K Code, 11.8K Data, 90.2K Total 3399151937Sjkim Debug Version: 169.6K Code, 69.9K Data, 239.5K Total 3400151937Sjkim 3401151937Sjkim 3402151937Sjkim2) iASL Compiler/Disassembler: 3403151937Sjkim 3404193267SjkimImplemented an error check for illegal duplicate values in the interrupt and 3405193267Sjkimdma lists for the following ASL macros: Dma(), Irq(), IrqNoFlags(), and 3406193267SjkimInterrupt(). 3407151937Sjkim 3408193267SjkimImplemented error checking for the Irq() and IrqNoFlags() macros to detect 3409193267Sjkimtoo many values in the interrupt list (16 max) and invalid values in the 3410193267Sjkimlist (range 0 - 15) 3411151937Sjkim 3412193267SjkimThe maximum length string literal within an ASL file is now restricted to 3413193267Sjkim200 characters as per the ACPI specification. 3414151937Sjkim 3415193267SjkimFixed a fault when using the -ln option (generate namespace listing). 3416151937Sjkim 3417193267SjkimImplemented an error check to determine if a DescriptorName within a 3418193267Sjkimresource descriptor has already been used within the current scope. 3419151937Sjkim 3420151937Sjkim---------------------------------------- 3421151937Sjkim15 August 2005. Summary of changes for version 20050815: 3422193267Sjkim 3423151937Sjkim1) ACPI CA Core Subsystem: 3424193267Sjkim 3425193267SjkimImplemented a full bytewise compare to determine if a table load request is 3426193267Sjkimattempting to load a duplicate table. The compare is performed if the table 3427193267Sjkimsignatures and table lengths match. This will allow different tables with 3428193267Sjkimthe same OEM Table ID and revision to be loaded - probably against the ACPI 3429193267Sjkimspecification, but discovered in the field nonetheless. 3430193267Sjkim 3431193267SjkimAdded the changes.txt logfile to each of the zipped release packages. 3432193267Sjkim 3433193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3434193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3435193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3436193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3437193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3438193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3439193267Sjkimthe compiler options used during generation. 3440193267Sjkim 3441151937Sjkim Previous Release: 3442151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3443151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3444151937Sjkim Current Release: 3445151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3446151937Sjkim Debug Version: 170.0K Code, 69.9K Data, 239.9K Total 3447193267Sjkim 3448193267Sjkim 3449151937Sjkim2) iASL Compiler/Disassembler: 3450193267Sjkim 3451193267SjkimFixed a problem where incorrect AML code could be generated for Package 3452193267Sjkimobjects if optimization is disabled (via the -oa switch). 3453193267Sjkim 3454193267SjkimFixed a problem with where incorrect AML code is generated for variable- 3455193267Sjkimlength packages when the package length is not specified and the number of 3456193267Sjkiminitializer values is greater than 255. 3457193267Sjkim 3458151937Sjkim 3459151937Sjkim---------------------------------------- 3460151937Sjkim29 July 2005. Summary of changes for version 20050729: 3461151937Sjkim 3462151937Sjkim1) ACPI CA Core Subsystem: 3463151937Sjkim 3464193267SjkimImplemented support to ignore an attempt to install/load a particular ACPI 3465193267Sjkimtable more than once. Apparently there exists BIOS code that repeatedly 3466193267Sjkimattempts to load the same SSDT upon certain events. With assistance from 3467193267SjkimVenkatesh Pallipadi. 3468151937Sjkim 3469193267SjkimRestructured the main interface to the AML parser in order to correctly 3470193267Sjkimhandle all exceptional conditions. This will prevent leakage of the OwnerId 3471193267Sjkimresource and should eliminate the AE_OWNER_ID_LIMIT exceptions seen on some 3472193267Sjkimmachines. With assistance from Alexey Starikovskiy. 3473151937Sjkim 3474193267SjkimSupport for "module level code" has been disabled in this version due to a 3475193267Sjkimnumber of issues that have appeared on various machines. The support can be 3476193267Sjkimenabled by defining ACPI_ENABLE_MODULE_LEVEL_CODE during subsystem 3477193267Sjkimcompilation. When the issues are fully resolved, the code will be enabled by 3478151937Sjkimdefault again. 3479151937Sjkim 3480193267SjkimModified the internal functions for debug print support to define the 3481193267SjkimFunctionName parameter as a (const char *) for compatibility with compiler 3482193267Sjkimbuilt-in macros such as __FUNCTION__, etc. 3483151937Sjkim 3484151937SjkimLinted the entire ACPICA source tree for both 32-bit and 64-bit. 3485151937Sjkim 3486193267SjkimImplemented support to display an object count summary for the AML Debugger 3487193267Sjkimcommands Object and Methods. 3488151937Sjkim 3489193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3490193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3491193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3492193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3493193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3494193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3495193267Sjkimthe compiler options used during generation. 3496151937Sjkim 3497151937Sjkim Previous Release: 3498151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3499151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3500151937Sjkim Current Release: 3501151937Sjkim Non-Debug Version: 78.6K Code, 11.7K Data, 90.3K Total 3502151937Sjkim Debug Version: 167.0K Code, 69.9K Data, 236.9K Total 3503151937Sjkim 3504151937Sjkim 3505151937Sjkim2) iASL Compiler/Disassembler: 3506151937Sjkim 3507193267SjkimFixed a regression that appeared in the 20050708 version of the compiler 3508193267Sjkimwhere an error message was inadvertently emitted for invocations of the _OSI 3509193267Sjkimreserved control method. 3510151937Sjkim 3511151937Sjkim---------------------------------------- 3512151937Sjkim08 July 2005. Summary of changes for version 20050708: 3513151937Sjkim 3514151937Sjkim1) ACPI CA Core Subsystem: 3515151937Sjkim 3516193267SjkimThe use of the CPU stack in the debug version of the subsystem has been 3517193267Sjkimconsiderably reduced. Previously, a debug structure was declared in every 3518193267Sjkimfunction that used the debug macros. This structure has been removed in 3519193267Sjkimfavor of declaring the individual elements as parameters to the debug 3520193267Sjkimfunctions. This reduces the cumulative stack use during nested execution of 3521193267SjkimACPI function calls at the cost of a small increase in the code size of the 3522193267Sjkimdebug version of the subsystem. With assistance from Alexey Starikovskiy and 3523193267SjkimLen Brown. 3524151937Sjkim 3525193267SjkimAdded the ACPI_GET_FUNCTION_NAME macro to enable the compiler-dependent 3526193267Sjkimheaders to define a macro that will return the current function name at 3527193267Sjkimruntime (such as __FUNCTION__ or _func_, etc.) The function name is used by 3528193267Sjkimthe debug trace output. If ACPI_GET_FUNCTION_NAME is not defined in the 3529193267Sjkimcompiler-dependent header, the function name is saved on the CPU stack (one 3530193267Sjkimpointer per function.) This mechanism is used because apparently there 3531193267Sjkimexists no standard ANSI-C defined macro that that returns the function name. 3532151937Sjkim 3533193267SjkimRedesigned and reimplemented the "Owner ID" mechanism used to track 3534193267Sjkimnamespace objects created/deleted by ACPI tables and control method 3535193267Sjkimexecution. A bitmap is now used to allocate and free the IDs, thus solving 3536193267Sjkimthe wraparound problem present in the previous implementation. The size of 3537193267Sjkimthe namespace node descriptor was reduced by 2 bytes as a result (Alexey 3538151937SjkimStarikovskiy). 3539151937Sjkim 3540193267SjkimRemoved the UINT32_BIT and UINT16_BIT types that were used for the bitfield 3541193267Sjkimflag definitions within the headers for the predefined ACPI tables. These 3542193267Sjkimhave been replaced by UINT8_BIT in order to increase the code portability of 3543193267Sjkimthe subsystem. If the use of UINT8 remains a problem, we may be forced to 3544193267Sjkimeliminate bitfields entirely because of a lack of portability. 3545151937Sjkim 3546193267SjkimEnhanced the performance of the AcpiUtUpdateObjectReference procedure. This 3547193267Sjkimis a frequently used function and this improvement increases the performance 3548193267Sjkimof the entire subsystem (Alexey Starikovskiy). 3549151937Sjkim 3550193267SjkimFixed several possible memory leaks and the inverse - premature object 3551193267Sjkimdeletion (Alexey Starikovskiy). 3552151937Sjkim 3553193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3554193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3555193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3556193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3557193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3558193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3559193267Sjkimthe compiler options used during generation. 3560151937Sjkim 3561151937Sjkim Previous Release: 3562151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3563151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3564151937Sjkim Current Release: 3565151937Sjkim Non-Debug Version: 78.6K Code, 11.6K Data, 90.2K Total 3566151937Sjkim Debug Version: 170.0K Code, 69.7K Data, 239.7K Total 3567151937Sjkim 3568151937Sjkim---------------------------------------- 3569151937Sjkim24 June 2005. Summary of changes for version 20050624: 3570151937Sjkim 3571151937Sjkim1) ACPI CA Core Subsystem: 3572151937Sjkim 3573193267SjkimModified the new OSL cache interfaces to use ACPI_CACHE_T as the type for 3574193267Sjkimthe host-defined cache object. This allows the OSL implementation to define 3575193267Sjkimand type this object in any manner desired, simplifying the OSL 3576193267Sjkimimplementation. For example, ACPI_CACHE_T is defined as kmem_cache_t for 3577193267SjkimLinux, and should be defined in the OS-specific header file for other 3578193267Sjkimoperating systems as required. 3579151937Sjkim 3580193267SjkimChanged the interface to AcpiOsAcquireObject to directly return the 3581193267Sjkimrequested object as the function return (instead of ACPI_STATUS.) This 3582193267Sjkimchange was made for performance reasons, since this is the purpose of the 3583193267Sjkiminterface in the first place. AcpiOsAcquireObject is now similar to the 3584193267SjkimAcpiOsAllocate interface. 3585151937Sjkim 3586193267SjkimImplemented a new AML debugger command named Businfo. This command displays 3587193267Sjkiminformation about all devices that have an associate _PRT object. The _ADR, 3588193267Sjkim_HID, _UID, and _CID are displayed for these devices. 3589151937Sjkim 3590193267SjkimModified the initialization sequence in AcpiInitializeSubsystem to call the 3591193267SjkimOSL interface AcpiOslInitialize first, before any local initialization. This 3592193267Sjkimchange was required because the global initialization now calls OSL 3593193267Sjkiminterfaces. 3594151937Sjkim 3595193267SjkimEnhanced the Dump command to display the entire contents of Package objects 3596193267Sjkim(including all sub-objects and their values.) 3597151937Sjkim 3598193267SjkimRestructured the code base to split some files because of size and/or 3599193267Sjkimbecause the code logically belonged in a separate file. New files are listed 3600193267Sjkimbelow. All makefiles and project files included in the ACPI CA release have 3601193267Sjkimbeen updated. 3602151937Sjkim utilities/utcache.c /* Local cache interfaces */ 3603151937Sjkim utilities/utmutex.c /* Local mutex support */ 3604151937Sjkim utilities/utstate.c /* State object support */ 3605151937Sjkim interpreter/parser/psloop.c /* Main AML parse loop */ 3606151937Sjkim 3607193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3608193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3609193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3610193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3611193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3612193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3613193267Sjkimthe compiler options used during generation. 3614151937Sjkim 3615151937Sjkim Previous Release: 3616151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3617151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3618151937Sjkim Current Release: 3619151937Sjkim Non-Debug Version: 78.6K Code, 11.5K Data, 90.1K Total 3620151937Sjkim Debug Version: 165.2K Code, 69.6K Data, 234.8K Total 3621151937Sjkim 3622151937Sjkim 3623151937Sjkim2) iASL Compiler/Disassembler: 3624151937Sjkim 3625193267SjkimFixed a regression introduced in version 20050513 where the use of a Package 3626193267Sjkimobject within a Case() statement caused a compile time exception. The 3627193267Sjkimoriginal behavior has been restored (a Match() operator is emitted.) 3628151937Sjkim 3629151937Sjkim---------------------------------------- 3630151937Sjkim17 June 2005. Summary of changes for version 20050617: 3631151937Sjkim 3632151937Sjkim1) ACPI CA Core Subsystem: 3633151937Sjkim 3634193267SjkimMoved the object cache operations into the OS interface layer (OSL) to allow 3635193267Sjkimthe host OS to handle these operations if desired (for example, the Linux 3636193267SjkimOSL will invoke the slab allocator). This support is optional; the compile 3637193267Sjkimtime define ACPI_USE_LOCAL_CACHE may be used to utilize the original cache 3638193267Sjkimcode in the ACPI CA core. The new OSL interfaces are shown below. See 3639193267Sjkimutalloc.c for an example implementation, and acpiosxf.h for the exact 3640193267Sjkiminterface definitions. With assistance from Alexey Starikovskiy. 3641151937Sjkim AcpiOsCreateCache 3642151937Sjkim AcpiOsDeleteCache 3643151937Sjkim AcpiOsPurgeCache 3644151937Sjkim AcpiOsAcquireObject 3645151937Sjkim AcpiOsReleaseObject 3646151937Sjkim 3647193267SjkimModified the interfaces to AcpiOsAcquireLock and AcpiOsReleaseLock to return 3648193267Sjkimand restore a flags parameter. This fits better with many OS lock models. 3649193267SjkimNote: the current execution state (interrupt handler or not) is no longer 3650193267Sjkimpassed to these interfaces. If necessary, the OSL must determine this state 3651193267Sjkimby itself, a simple and fast operation. With assistance from Alexey 3652151937SjkimStarikovskiy. 3653151937Sjkim 3654193267SjkimFixed a problem in the ACPI table handling where a valid XSDT was assumed 3655193267Sjkimpresent if the revision of the RSDP was 2 or greater. According to the ACPI 3656193267Sjkimspecification, the XSDT is optional in all cases, and the table manager 3657193267Sjkimtherefore now checks for both an RSDP >=2 and a valid XSDT pointer. 3658193267SjkimOtherwise, the RSDT pointer is used. Some ACPI 2.0 compliant BIOSs contain 3659193267Sjkimonly the RSDT. 3660151937Sjkim 3661193267SjkimFixed an interpreter problem with the Mid() operator in the case of an input 3662193267Sjkimstring where the resulting output string is of zero length. It now correctly 3663193267Sjkimreturns a valid, null terminated string object instead of a string object 3664193267Sjkimwith a null pointer. 3665151937Sjkim 3666193267SjkimFixed a problem with the control method argument handling to allow a store 3667193267Sjkimto an Arg object that already contains an object of type Device. The Device 3668193267Sjkimobject is now correctly overwritten. Previously, an error was returned. 3669151937Sjkim 3670167802Sjkim 3671193267SjkimEnhanced the debugger Find command to emit object values in addition to the 3672193267Sjkimfound object pathnames. The output format is the same as the dump namespace 3673193267Sjkimcommand. 3674151937Sjkim 3675193267SjkimEnhanced the debugger Set command. It now has the ability to set the value 3676193267Sjkimof any Named integer object in the namespace (Previously, only method locals 3677193267Sjkimand args could be set.) 3678151937Sjkim 3679193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3680193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3681193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3682193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3683193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3684193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3685193267Sjkimthe compiler options used during generation. 3686151937Sjkim 3687151937Sjkim Previous Release: 3688151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3689151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3690151937Sjkim Current Release: 3691151937Sjkim Non-Debug Version: 78.3K Code, 11.6K Data, 89.9K Total 3692151937Sjkim Debug Version: 164.0K Code, 69.1K Data, 233.1K Total 3693151937Sjkim 3694151937Sjkim 3695151937Sjkim2) iASL Compiler/Disassembler: 3696151937Sjkim 3697193267SjkimFixed a regression in the disassembler where if/else/while constructs were 3698193267Sjkimoutput incorrectly. This problem was introduced in the previous release 3699193267Sjkim(20050526). This problem also affected the single-step disassembly in the 3700193267Sjkimdebugger. 3701151937Sjkim 3702193267SjkimFixed a problem where compiling the reserved _OSI method would randomly (but 3703193267Sjkimrarely) produce compile errors. 3704151937Sjkim 3705193267SjkimEnhanced the disassembler to emit compilable code in the face of incorrect 3706193267SjkimAML resource descriptors. If the optional ResourceSourceIndex is present, 3707193267Sjkimbut the ResourceSource is not, do not emit the ResourceSourceIndex in the 3708193267Sjkimdisassembly. Otherwise, the resulting code cannot be compiled without 3709193267Sjkimerrors. 3710151937Sjkim 3711151937Sjkim---------------------------------------- 3712151937Sjkim26 May 2005. Summary of changes for version 20050526: 3713151937Sjkim 3714151937Sjkim1) ACPI CA Core Subsystem: 3715151937Sjkim 3716193267SjkimImplemented support to execute Type 1 and Type 2 AML opcodes appearing at 3717193267Sjkimthe module level (not within a control method.) These opcodes are executed 3718193267Sjkimexactly once at the time the table is loaded. This type of code was legal up 3719193267Sjkimuntil the release of ACPI 2.0B (2002) and is now supported within ACPI CA in 3720193267Sjkimorder to provide backwards compatibility with earlier BIOS implementations. 3721193267SjkimThis eliminates the "Encountered executable code at module level" warning 3722193267Sjkimthat was previously generated upon detection of such code. 3723151937Sjkim 3724193267SjkimFixed a problem in the interpreter where an AE_NOT_FOUND exception could 3725193267Sjkiminadvertently be generated during the lookup of namespace objects in the 3726193267Sjkimsecond pass parse of ACPI tables and control methods. It appears that this 3727193267Sjkimproblem could occur during the resolution of forward references to namespace 3728193267Sjkimobjects. 3729151937Sjkim 3730193267SjkimAdded the ACPI_MUTEX_DEBUG #ifdef to the AcpiUtReleaseMutex function, 3731193267Sjkimcorresponding to the same #ifdef in the AcpiUtAcquireMutex function. This 3732193267Sjkimallows the deadlock detection debug code to be compiled out in the normal 3733193267Sjkimcase, improving mutex performance (and overall subsystem performance) 3734193267Sjkimconsiderably. 3735151937Sjkim 3736193267SjkimImplemented a handful of miscellaneous fixes for possible memory leaks on 3737193267Sjkimerror conditions and error handling control paths. These fixes were 3738193267Sjkimsuggested by FreeBSD and the Coverity Prevent source code analysis tool. 3739151937Sjkim 3740193267SjkimAdded a check for a null RSDT pointer in AcpiGetFirmwareTable (tbxfroot.c) 3741193267Sjkimto prevent a fault in this error case. 3742151937Sjkim 3743193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3744193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3745193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3746193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3747193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3748193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3749193267Sjkimthe compiler options used during generation. 3750151937Sjkim 3751151937Sjkim Previous Release: 3752151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3753151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3754151937Sjkim Current Release: 3755151937Sjkim Non-Debug Version: 78.1K Code, 11.6K Data, 89.7K Total 3756151937Sjkim Debug Version: 164.0K Code, 69.3K Data, 233.3K Total 3757151937Sjkim 3758151937Sjkim 3759151937Sjkim2) iASL Compiler/Disassembler: 3760151937Sjkim 3761193267SjkimImplemented support to allow Type 1 and Type 2 ASL operators to appear at 3762193267Sjkimthe module level (not within a control method.) These operators will be 3763193267Sjkimexecuted once at the time the table is loaded. This type of code was legal 3764193267Sjkimup until the release of ACPI 2.0B (2002) and is now supported by the iASL 3765193267Sjkimcompiler in order to provide backwards compatibility with earlier BIOS ASL 3766193267Sjkimcode. 3767151937Sjkim 3768193267SjkimThe ACPI integer width (specified via the table revision ID or the -r 3769193267Sjkimoverride, 32 or 64 bits) is now used internally during compile-time constant 3770193267Sjkimfolding to ensure that constants are truncated to 32 bits if necessary. 3771193267SjkimPreviously, the revision ID value was only emitted in the AML table header. 3772151937Sjkim 3773193267SjkimAn error message is now generated for the Mutex and Method operators if the 3774193267SjkimSyncLevel parameter is outside the legal range of 0 through 15. 3775151937Sjkim 3776193267SjkimFixed a problem with the Method operator ParameterTypes list handling (ACPI 3777193267Sjkim3.0). Previously, more than 2 types or 2 arguments generated a syntax error. 3778193267SjkimThe actual underlying implementation of method argument typechecking is 3779193267Sjkimstill under development, however. 3780151937Sjkim 3781151937Sjkim---------------------------------------- 3782151937Sjkim13 May 2005. Summary of changes for version 20050513: 3783151937Sjkim 3784151937Sjkim1) ACPI CA Core Subsystem: 3785151937Sjkim 3786193267SjkimImplemented support for PCI Express root bridges -- added support for device 3787193267SjkimPNP0A08 in the root bridge search within AcpiEvPciConfigRegionSetup. 3788151937Sjkim 3789193267SjkimThe interpreter now automatically truncates incoming 64-bit constants to 32 3790193267Sjkimbits if currently executing out of a 32-bit ACPI table (Revision < 2). This 3791193267Sjkimalso affects the iASL compiler constant folding. (Note: as per below, the 3792193267SjkimiASL compiler no longer allows 64-bit constants within 32-bit tables.) 3793151937Sjkim 3794193267SjkimFixed a problem where string and buffer objects with "static" pointers 3795193267Sjkim(pointers to initialization data within an ACPI table) were not handled 3796193267Sjkimconsistently. The internal object copy operation now always copies the data 3797193267Sjkimto a newly allocated buffer, regardless of whether the source object is 3798193267Sjkimstatic or not. 3799151937Sjkim 3800193267SjkimFixed a problem with the FromBCD operator where an implicit result 3801193267Sjkimconversion was improperly performed while storing the result to the target 3802193267Sjkimoperand. Since this is an "explicit conversion" operator, the implicit 3803193267Sjkimconversion should never be performed on the output. 3804151937Sjkim 3805193267SjkimFixed a problem with the CopyObject operator where a copy to an existing 3806193267Sjkimnamed object did not always completely overwrite the existing object stored 3807193267Sjkimat name. Specifically, a buffer-to-buffer copy did not delete the existing 3808193267Sjkimbuffer. 3809151937Sjkim 3810193267SjkimReplaced "InterruptLevel" with "InterruptNumber" in all GPE interfaces and 3811193267Sjkimstructs for consistency. 3812151937Sjkim 3813193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3814193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3815193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3816193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3817193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3818193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3819193267Sjkimthe compiler options used during generation. 3820151937Sjkim 3821151937Sjkim Previous Release: 3822151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3823151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3824151937Sjkim Current Release: (Same sizes) 3825151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3826151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3827151937Sjkim 3828151937Sjkim 3829151937Sjkim2) iASL Compiler/Disassembler: 3830151937Sjkim 3831193267SjkimThe compiler now emits a warning if an attempt is made to generate a 64-bit 3832193267Sjkiminteger constant from within a 32-bit ACPI table (Revision < 2). The integer 3833193267Sjkimis truncated to 32 bits. 3834151937Sjkim 3835193267SjkimFixed a problem with large package objects: if the static length of the 3836193267Sjkimpackage is greater than 255, the "variable length package" opcode is 3837193267Sjkimemitted. Previously, this caused an error. This requires an update to the 3838193267SjkimACPI spec, since it currently (incorrectly) states that packages larger than 3839193267Sjkim255 elements are not allowed. 3840151937Sjkim 3841193267SjkimThe disassembler now correctly handles variable length packages and packages 3842193267Sjkimlarger than 255 elements. 3843151937Sjkim 3844151937Sjkim---------------------------------------- 3845151937Sjkim08 April 2005. Summary of changes for version 20050408: 3846151937Sjkim 3847151937Sjkim1) ACPI CA Core Subsystem: 3848151937Sjkim 3849193267SjkimFixed three cases in the interpreter where an "index" argument to an ASL 3850193267Sjkimfunction was still (internally) 32 bits instead of the required 64 bits. 3851193267SjkimThis was the Index argument to the Index, Mid, and Match operators. 3852151937Sjkim 3853193267SjkimThe "strupr" function is now permanently local (AcpiUtStrupr), since this is 3854193267Sjkimnot a POSIX-defined function and not present in most kernel-level C 3855193267Sjkimlibraries. All references to the C library strupr function have been removed 3856193267Sjkimfrom the headers. 3857151937Sjkim 3858193267SjkimCompleted the deployment of static functions/prototypes. All prototypes with 3859193267Sjkimthe static attribute have been moved from the headers to the owning C file. 3860151937Sjkim 3861193267SjkimImplemented an extract option (-e) for the AcpiBin utility (AML binary 3862193267Sjkimutility). This option allows the utility to extract individual ACPI tables 3863193267Sjkimfrom the output of AcpiDmp. It provides the same functionality of the 3864193267Sjkimacpixtract.pl perl script without the worry of setting the correct perl 3865193267Sjkimoptions. AcpiBin runs on Windows and has not yet been generated/validated in 3866193267Sjkimthe Linux/Unix environment (but should be soon). 3867193267Sjkim 3868193267SjkimUpdated and fixed the table dump option for AcpiBin (-d). This option 3869193267Sjkimconverts a single ACPI table to a hex/ascii file, similar to the output of 3870193267SjkimAcpiDmp. 3871151937Sjkim 3872193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3873193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3874193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3875193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3876193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3877193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3878193267Sjkimthe compiler options used during generation. 3879151937Sjkim 3880151937Sjkim Previous Release: 3881151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 3882151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 3883151937Sjkim Current Release: 3884151937Sjkim Non-Debug Version: 78.2K Code, 11.6K Data, 89.8K Total 3885151937Sjkim Debug Version: 163.7K Code, 69.3K Data, 233.0K Total 3886151937Sjkim 3887151937Sjkim 3888151937Sjkim2) iASL Compiler/Disassembler: 3889151937Sjkim 3890193267SjkimDisassembler fix: Added a check to ensure that the table length found in the 3891193267SjkimACPI table header within the input file is not longer than the actual input 3892193267Sjkimfile size. This indicates some kind of file or table corruption. 3893151937Sjkim 3894151937Sjkim---------------------------------------- 3895151937Sjkim29 March 2005. Summary of changes for version 20050329: 3896151937Sjkim 3897151937Sjkim1) ACPI CA Core Subsystem: 3898151937Sjkim 3899193267SjkimAn error is now generated if an attempt is made to create a Buffer Field of 3900193267Sjkimlength zero (A CreateField with a length operand of zero.) 3901151937Sjkim 3902193267SjkimThe interpreter now issues a warning whenever executable code at the module 3903193267Sjkimlevel is detected during ACPI table load. This will give some idea of the 3904193267Sjkimprevalence of this type of code. 3905151937Sjkim 3906193267SjkimImplemented support for references to named objects (other than control 3907193267Sjkimmethods) within package objects. 3908151937Sjkim 3909193267SjkimEnhanced package object output for the debug object. Package objects are now 3910193267Sjkimcompletely dumped, showing all elements. 3911151937Sjkim 3912193267SjkimEnhanced miscellaneous object output for the debug object. Any object can 3913193267Sjkimnow be written to the debug object (for example, a device object can be 3914193267Sjkimwritten, and the type of the object will be displayed.) 3915151937Sjkim 3916193267SjkimThe "static" qualifier has been added to all local functions across both the 3917193267Sjkimcore subsystem and the iASL compiler. 3918151937Sjkim 3919193267SjkimThe number of "long" lines (> 80 chars) within the source has been 3920193267Sjkimsignificantly reduced, by about 1/3. 3921151937Sjkim 3922193267SjkimCleaned up all header files to ensure that all CA/iASL functions are 3923193267Sjkimprototyped (even static functions) and the formatting is consistent. 3924151937Sjkim 3925151937SjkimTwo new header files have been added, acopcode.h and acnames.h. 3926151937Sjkim 3927151937SjkimRemoved several obsolete functions that were no longer used. 3928151937Sjkim 3929193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 3930193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 3931193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 3932193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 3933193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 3934193267Sjkimthat these values will vary depending on the efficiency of the compiler and 3935193267Sjkimthe compiler options used during generation. 3936151937Sjkim 3937151937Sjkim Previous Release: 3938151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 3939151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 3940151937Sjkim Current Release: 3941151937Sjkim Non-Debug Version: 78.0K Code, 11.6K Data, 89.6K Total 3942151937Sjkim Debug Version: 163.5K Code, 69.3K Data, 232.8K Total 3943151937Sjkim 3944151937Sjkim 3945167802Sjkim 3946151937Sjkim2) iASL Compiler/Disassembler: 3947151937Sjkim 3948193267SjkimFixed a problem with the resource descriptor generation/support. For the 3949193267SjkimResourceSourceIndex and the ResourceSource fields, both must be present, or 3950193267Sjkimboth must be not present - can't have one without the other. 3951151937Sjkim 3952193267SjkimThe compiler now returns non-zero from the main procedure if any errors have 3953193267Sjkimoccurred during the compilation. 3954151937Sjkim 3955151937Sjkim 3956151937Sjkim---------------------------------------- 3957151937Sjkim09 March 2005. Summary of changes for version 20050309: 3958151937Sjkim 3959151937Sjkim1) ACPI CA Core Subsystem: 3960151937Sjkim 3961193267SjkimThe string-to-buffer implicit conversion code has been modified again after 3962193267Sjkima change to the ACPI specification. In order to match the behavior of the 3963193267Sjkimother major ACPI implementation, the target buffer is no longer truncated if 3964193267Sjkimthe source string is smaller than an existing target buffer. This change 3965193267Sjkimrequires an update to the ACPI spec, and should eliminate the recent 3966151937SjkimAE_AML_BUFFER_LIMIT issues. 3967151937Sjkim 3968193267SjkimThe "implicit return" support was rewritten to a new algorithm that solves 3969193267Sjkimthe general case. Rather than attempt to determine when a method is about to 3970193267Sjkimexit, the result of every ASL operator is saved momentarily until the very 3971193267Sjkimnext ASL operator is executed. Therefore, no matter how the method exits, 3972193267Sjkimthere will always be a saved implicit return value. This feature is only 3973193267Sjkimenabled with the AcpiGbl_EnableInterpreterSlack flag, and should eliminate 3974193267SjkimAE_AML_NO_RETURN_VALUE errors when enabled. 3975151937Sjkim 3976193267SjkimImplemented implicit conversion support for the predicate (operand) of the 3977193267SjkimIf, Else, and While operators. String and Buffer arguments are automatically 3978193267Sjkimconverted to Integers. 3979151937Sjkim 3980193267SjkimChanged the string-to-integer conversion behavior to match the new ACPI 3981193267Sjkimerrata: "If no integer object exists, a new integer is created. The ASCII 3982193267Sjkimstring is interpreted as a hexadecimal constant. Each string character is 3983193267Sjkiminterpreted as a hexadecimal value ('0'-'9', 'A'-'F', 'a', 'f'), starting 3984193267Sjkimwith the first character as the most significant digit, and ending with the 3985193267Sjkimfirst non-hexadecimal character or end-of-string." This means that the first 3986193267Sjkimnon-hex character terminates the conversion and this is the code that was 3987193267Sjkimchanged. 3988151937Sjkim 3989193267SjkimFixed a problem where the ObjectType operator would fail (fault) when used 3990193267Sjkimon an Index of a Package which pointed to a null package element. The 3991193267Sjkimoperator now properly returns zero (Uninitialized) in this case. 3992151937Sjkim 3993193267SjkimFixed a problem where the While operator used excessive memory by not 3994193267Sjkimproperly popping the result stack during execution. There was no memory leak 3995193267Sjkimafter execution, however. (Code provided by Valery Podrezov.) 3996151937Sjkim 3997193267SjkimFixed a problem where references to control methods within Package objects 3998193267Sjkimcaused the method to be invoked, instead of producing a reference object 3999193267Sjkimpointing to the method. 4000151937Sjkim 4001193267SjkimRestructured and simplified the pswalk.c module (AcpiPsDeleteParseTree) to 4002193267Sjkimimprove performance and reduce code size. (Code provided by Alexey 4003193267SjkimStarikovskiy.) 4004151937Sjkim 4005193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4006193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4007193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4008193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4009193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4010193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4011193267Sjkimthe compiler options used during generation. 4012151937Sjkim 4013151937Sjkim Previous Release: 4014151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4015151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4016151937Sjkim Current Release: 4017151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4018151937Sjkim Debug Version: 165.4K Code, 69.7K Data, 236.1K Total 4019151937Sjkim 4020151937Sjkim 4021151937Sjkim2) iASL Compiler/Disassembler: 4022151937Sjkim 4023193267SjkimFixed a problem with the Return operator with no arguments. Since the AML 4024193267Sjkimgrammar for the byte encoding requires an operand for the Return opcode, the 4025193267Sjkimcompiler now emits a Return(Zero) for this case. An ACPI specification 4026193267Sjkimupdate has been written for this case. 4027151937Sjkim 4028193267SjkimFor tables other than the DSDT, namepath optimization is automatically 4029193267Sjkimdisabled. This is because SSDTs can be loaded anywhere in the namespace, the 4030193267Sjkimcompiler has no knowledge of where, and thus cannot optimize namepaths. 4031151937Sjkim 4032193267SjkimAdded "ProcessorObj" to the ObjectTypeKeyword list. This object type was 4033193267Sjkiminadvertently omitted from the ACPI specification, and will require an 4034193267Sjkimupdate to the spec. 4035151937Sjkim 4036193267SjkimThe source file scan for ASCII characters is now optional (-a). This change 4037193267Sjkimwas made because some vendors place non-ascii characters within comments. 4038193267SjkimHowever, the scan is simply a brute-force byte compare to ensure all 4039193267Sjkimcharacters in the file are in the range 0x00 to 0x7F. 4040151937Sjkim 4041193267SjkimFixed a problem with the CondRefOf operator where the compiler was 4042193267Sjkiminappropriately checking for the existence of the target. Since the point of 4043193267Sjkimthe operator is to check for the existence of the target at run-time, the 4044193267Sjkimcompiler no longer checks for the target existence. 4045151937Sjkim 4046193267SjkimFixed a problem where errors generated from the internal AML interpreter 4047193267Sjkimduring constant folding were not handled properly, causing a fault. 4048151937Sjkim 4049193267SjkimFixed a problem with overly aggressive range checking for the Stall 4050193267Sjkimoperator. The valid range (max 255) is now only checked if the operand is of 4051193267Sjkimtype Integer. All other operand types cannot be statically checked. 4052151937Sjkim 4053193267SjkimFixed a problem where control method references within the RefOf, DeRefOf, 4054193267Sjkimand ObjectType operators were not treated properly. They are now treated as 4055193267Sjkimactual references, not method invocations. 4056151937Sjkim 4057193267SjkimFixed and enhanced the "list namespace" option (-ln). This option was broken 4058193267Sjkima number of releases ago. 4059151937Sjkim 4060193267SjkimImproved error handling for the Field, IndexField, and BankField operators. 4061193267SjkimThe compiler now cleanly reports and recovers from errors in the field 4062193267Sjkimcomponent (FieldUnit) list. 4063151937Sjkim 4064193267SjkimFixed a disassembler problem where the optional ResourceDescriptor fields 4065193267SjkimTRS and TTP were not always handled correctly. 4066151937Sjkim 4067151937SjkimDisassembler - Comments in output now use "//" instead of "/*" 4068151937Sjkim 4069151937Sjkim---------------------------------------- 4070151937Sjkim28 February 2005. Summary of changes for version 20050228: 4071151937Sjkim 4072151937Sjkim1) ACPI CA Core Subsystem: 4073151937Sjkim 4074193267SjkimFixed a problem where the result of an Index() operator (an object 4075193267Sjkimreference) must increment the reference count on the target object for the 4076193267Sjkimlife of the object reference. 4077151937Sjkim 4078193267SjkimImplemented AML Interpreter and Debugger support for the new ACPI 3.0 4079193267SjkimExtended Address (IO, Memory, Space), QwordSpace, DwordSpace, and WordSpace 4080193267Sjkimresource descriptors. 4081151937Sjkim 4082193267SjkimImplemented support in the _OSI method for the ACPI 3.0 "Extended Address 4083193267SjkimSpace Descriptor" string, indicating interpreter support for the descriptors 4084193267Sjkimabove. 4085151937Sjkim 4086151937SjkimImplemented header support for the new ACPI 3.0 FADT flag bits. 4087151937Sjkim 4088193267SjkimImplemented header support for the new ACPI 3.0 PCI Express bits for the PM1 4089193267Sjkimstatus/enable registers. 4090151937Sjkim 4091193267SjkimUpdated header support for the MADT processor local Apic struct and MADT 4092193267Sjkimplatform interrupt source struct for new ACPI 3.0 fields. 4093151937Sjkim 4094151937SjkimImplemented header support for the SRAT and SLIT ACPI tables. 4095151937Sjkim 4096193267SjkimImplemented the -s switch in AcpiExec to enable the "InterpreterSlack" flag 4097193267Sjkimat runtime. 4098151937Sjkim 4099193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4100193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4101193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4102193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4103193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4104193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4105193267Sjkimthe compiler options used during generation. 4106151937Sjkim 4107151937Sjkim Previous Release: 4108151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4109151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4110151937Sjkim Current Release: 4111151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4112151937Sjkim Debug Version: 165.4K Code, 69.6K Data, 236.0K Total 4113151937Sjkim 4114151937Sjkim 4115151937Sjkim2) iASL Compiler/Disassembler: 4116151937Sjkim 4117193267SjkimFixed a problem with the internal 64-bit String-to-integer conversion with 4118193267Sjkimstrings less than two characters long. 4119151937Sjkim 4120193267SjkimFixed a problem with constant folding where the result of the Index() 4121193267Sjkimoperator can not be considered a constant. This means that Index() cannot be 4122193267Sjkima type3 opcode and this will require an update to the ACPI specification. 4123151937Sjkim 4124193267SjkimDisassembler: Implemented support for the TTP, MTP, and TRS resource 4125193267Sjkimdescriptor fields. These fields were inadvertently ignored and not output in 4126193267Sjkimthe disassembly of the resource descriptor. 4127151937Sjkim 4128151937Sjkim 4129151937Sjkim ---------------------------------------- 4130151937Sjkim11 February 2005. Summary of changes for version 20050211: 4131151937Sjkim 4132151937Sjkim1) ACPI CA Core Subsystem: 4133151937Sjkim 4134193267SjkimImplemented ACPI 3.0 support for implicit conversion within the Match() 4135193267Sjkimoperator. MatchObjects can now be of type integer, buffer, or string instead 4136193267Sjkimof just type integer. Package elements are implicitly converted to the type 4137193267Sjkimof the MatchObject. This change aligns the behavior of Match() with the 4138193267Sjkimbehavior of the other logical operators (LLess(), etc.) It also requires an 4139193267Sjkimerrata change to the ACPI specification as this support was intended for 4140193267SjkimACPI 3.0, but was inadvertently omitted. 4141151937Sjkim 4142193267SjkimFixed a problem with the internal implicit "to buffer" conversion. Strings 4143193267Sjkimthat are converted to buffers will cause buffer truncation if the string is 4144193267Sjkimsmaller than the target buffer. Integers that are converted to buffers will 4145193267Sjkimnot cause buffer truncation, only zero extension (both as per the ACPI 4146193267Sjkimspec.) The problem was introduced when code was added to truncate the 4147193267Sjkimbuffer, but this should not be performed in all cases, only the string case. 4148151937Sjkim 4149193267SjkimFixed a problem with the Buffer and Package operators where the interpreter 4150193267Sjkimwould get confused if two such operators were used as operands to an ASL 4151193267Sjkimoperator (such as LLess(Buffer(1){0},Buffer(1){1}). The internal result 4152193267Sjkimstack was not being popped after the execution of these operators, resulting 4153193267Sjkimin an AE_NO_RETURN_VALUE exception. 4154151937Sjkim 4155193267SjkimFixed a problem with constructs of the form Store(Index(...),...). The 4156193267Sjkimreference object returned from Index was inadvertently resolved to an actual 4157193267Sjkimvalue. This problem was introduced in version 20050114 when the behavior of 4158193267SjkimStore() was modified to restrict the object types that can be used as the 4159151937Sjkimsource operand (to match the ACPI specification.) 4160151937Sjkim 4161193267SjkimReduced excessive stack use within the AcpiGetObjectInfo procedure. 4162151937Sjkim 4163193267SjkimAdded a fix to aclinux.h to allow generation of AcpiExec on Linux. 4164151937Sjkim 4165193267SjkimUpdated the AcpiSrc utility to add the FADT_DESCRIPTOR_REV2_MINUS struct. 4166151937Sjkim 4167193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4168193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4169193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4170193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4171193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4172193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4173193267Sjkimthe compiler options used during generation. 4174151937Sjkim 4175151937Sjkim Previous Release: 4176151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4177151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4178151937Sjkim Current Release: 4179151937Sjkim Non-Debug Version: 78.2K Code, 11.5K Data, 89.7K Total 4180151937Sjkim Debug Version: 164.9K Code, 69.2K Data, 234.1K Total 4181151937Sjkim 4182151937Sjkim 4183151937Sjkim2) iASL Compiler/Disassembler: 4184151937Sjkim 4185193267SjkimFixed a code generation problem in the constant folding optimization code 4186193267Sjkimwhere incorrect code was generated if a constant was reduced to a buffer 4187193267Sjkimobject (i.e., a reduced type 5 opcode.) 4188151937Sjkim 4189193267SjkimFixed a typechecking problem for the ToBuffer operator. Caused by an 4190193267Sjkimincorrect return type in the internal opcode information table. 4191151937Sjkim 4192151937Sjkim---------------------------------------- 4193151937Sjkim25 January 2005. Summary of changes for version 20050125: 4194151937Sjkim 4195151937Sjkim1) ACPI CA Core Subsystem: 4196151937Sjkim 4197193267SjkimFixed a recently introduced problem with the Global Lock where the 4198193267Sjkimunderlying semaphore was not created. This problem was introduced in 4199193267Sjkimversion 20050114, and caused an AE_AML_NO_OPERAND exception during an 4200193267SjkimAcquire() operation on _GL. 4201151937Sjkim 4202193267SjkimThe local object cache is now optional, and is disabled by default. Both 4203193267SjkimAcpiExec and the iASL compiler enable the cache because they run in user 4204193267Sjkimmode and this enhances their performance. #define ACPI_ENABLE_OBJECT_CACHE 4205193267Sjkimto enable the local cache. 4206151937Sjkim 4207193267SjkimFixed an issue in the internal function AcpiUtEvaluateObject concerning the 4208193267Sjkimoptional "implicit return" support where an error was returned if no return 4209193267Sjkimobject was expected, but one was implicitly returned. AE_OK is now returned 4210193267Sjkimin this case and the implicitly returned object is deleted. 4211193267SjkimAcpiUtEvaluateObject is only occasionally used, and only to execute reserved 4212193267Sjkimmethods such as _STA and _INI where the return type is known up front. 4213151937Sjkim 4214193267SjkimFixed a few issues with the internal convert-to-integer code. It now returns 4215193267Sjkiman error if an attempt is made to convert a null string, a string of only 4216193267Sjkimblanks/tabs, or a zero-length buffer. This affects both implicit conversion 4217193267Sjkimand explicit conversion via the ToInteger() operator. 4218151937Sjkim 4219193267SjkimThe internal debug code in AcpiUtAcquireMutex has been commented out. It is 4220193267Sjkimnot needed for normal operation and should increase the performance of the 4221193267Sjkimentire subsystem. The code remains in case it is needed for debug purposes 4222193267Sjkimagain. 4223151937Sjkim 4224193267SjkimThe AcpiExec source and makefile are included in the Unix/Linux package for 4225193267Sjkimthe first time. 4226151937Sjkim 4227193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4228193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4229193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4230193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4231193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4232193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4233193267Sjkimthe compiler options used during generation. 4234151937Sjkim 4235151937Sjkim Previous Release: 4236151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4237151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4238151937Sjkim Current Release: 4239151937Sjkim Non-Debug Version: 78.1K Code, 11.5K Data, 89.6K Total 4240151937Sjkim Debug Version: 164.8K Code, 69.2K Data, 234.0K Total 4241151937Sjkim 4242151937Sjkim2) iASL Compiler/Disassembler: 4243151937Sjkim 4244193267SjkimSwitch/Case support: A warning is now issued if the type of the Switch value 4245193267Sjkimcannot be determined at compile time. For example, Switch(Arg0) will 4246193267Sjkimgenerate the warning, and the type is assumed to be an integer. As per the 4247193267SjkimACPI spec, use a construct such as Switch(ToInteger(Arg0)) to eliminate the 4248193267Sjkimwarning. 4249151937Sjkim 4250193267SjkimSwitch/Case support: Implemented support for buffer and string objects as 4251193267Sjkimthe switch value. This is an ACPI 3.0 feature, now that LEqual supports 4252193267Sjkimbuffers and strings. 4253151937Sjkim 4254193267SjkimSwitch/Case support: The emitted code for the LEqual() comparisons now uses 4255193267Sjkimthe switch value as the first operand, not the second. The case value is now 4256193267Sjkimthe second operand, and this allows the case value to be implicitly 4257193267Sjkimconverted to the type of the switch value, not the other way around. 4258151937Sjkim 4259193267SjkimSwitch/Case support: Temporary variables are now emitted immediately within 4260193267Sjkimthe control method, not at the global level. This means that there are now 4261193267Sjkim36 temps available per-method, not 36 temps per-module as was the case with 4262193267Sjkimthe earlier implementation (_T_0 through _T_9 and _T_A through _T_Z.) 4263151937Sjkim 4264151937Sjkim---------------------------------------- 4265151937Sjkim14 January 2005. Summary of changes for version 20050114: 4266151937Sjkim 4267193267SjkimAdded 2005 copyright to all module headers. This affects every module in 4268193267Sjkimthe core subsystem, iASL compiler, and the utilities. 4269151937Sjkim 4270151937Sjkim1) ACPI CA Core Subsystem: 4271151937Sjkim 4272193267SjkimFixed an issue with the String-to-Buffer conversion code where the string 4273193267Sjkimnull terminator was not included in the buffer after conversion, but there 4274193267Sjkimis existing ASL that assumes the string null terminator is included. This is 4275193267Sjkimthe root of the ACPI_AML_BUFFER_LIMIT regression. This problem was 4276193267Sjkimintroduced in the previous version when the code was updated to correctly 4277193267Sjkimset the converted buffer size as per the ACPI specification. The ACPI spec 4278193267Sjkimis ambiguous and will be updated to specify that the null terminator must be 4279193267Sjkimincluded in the converted buffer. This also affects the ToBuffer() ASL 4280193267Sjkimoperator. 4281151937Sjkim 4282193267SjkimFixed a problem with the Mid() ASL/AML operator where it did not work 4283193267Sjkimcorrectly on Buffer objects. Newly created sub-buffers were not being marked 4284193267Sjkimas initialized. 4285151937Sjkim 4286167802Sjkim 4287193267SjkimFixed a problem in AcpiTbFindTable where incorrect string compares were 4288193267Sjkimperformed on the OemId and OemTableId table header fields. These fields are 4289193267Sjkimnot null terminated, so strncmp is now used instead of strcmp. 4290151937Sjkim 4291193267SjkimImplemented a restriction on the Store() ASL/AML operator to align the 4292193267Sjkimbehavior with the ACPI specification. Previously, any object could be used 4293193267Sjkimas the source operand. Now, the only objects that may be used are Integers, 4294193267SjkimBuffers, Strings, Packages, Object References, and DDB Handles. If 4295193267Sjkimnecessary, the original behavior can be restored by enabling the 4296151937SjkimEnableInterpreterSlack flag. 4297151937Sjkim 4298193267SjkimEnhanced the optional "implicit return" support to allow an implicit return 4299193267Sjkimvalue from methods that are invoked externally via the AcpiEvaluateObject 4300193267Sjkiminterface. This enables implicit returns from the _STA and _INI methods, 4301193267Sjkimfor example. 4302151937Sjkim 4303193267SjkimChanged the Revision() ASL/AML operator to return the current version of the 4304193267SjkimAML interpreter, in the YYYYMMDD format. Previously, it incorrectly returned 4305193267Sjkimthe supported ACPI version (This is the function of the _REV method). 4306151937Sjkim 4307193267SjkimUpdated the _REV predefined method to return the currently supported version 4308193267Sjkimof ACPI, now 3. 4309151937Sjkim 4310151937SjkimImplemented batch mode option for the AcpiExec utility (-b). 4311151937Sjkim 4312193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4313193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4314193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4315193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4316193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4317193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4318193267Sjkimthe compiler options used during generation. 4319151937Sjkim 4320151937Sjkim Previous Release: 4321151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4322151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4323151937Sjkim Current Release: 4324151937Sjkim Non-Debug Version: 78.4K Code, 11.5K Data, 89.9K Total 4325151937Sjkim Debug Version: 165.4K Code, 69.4K Data, 234.8K Total 4326151937Sjkim 4327151937Sjkim---------------------------------------- 4328151937Sjkim10 December 2004. Summary of changes for version 20041210: 4329151937Sjkim 4330193267SjkimACPI 3.0 support is nearing completion in both the iASL compiler and the 4331193267SjkimACPI CA core subsystem. 4332151937Sjkim 4333151937Sjkim1) ACPI CA Core Subsystem: 4334151937Sjkim 4335193267SjkimFixed a problem in the ToDecimalString operator where the resulting string 4336193267Sjkimlength was incorrectly calculated. The length is now calculated exactly, 4337193267Sjkimeliminating incorrect AE_STRING_LIMIT exceptions. 4338151937Sjkim 4339193267SjkimFixed a problem in the ToHexString operator to allow a maximum 200 character 4340193267Sjkimstring to be produced. 4341151937Sjkim 4342193267SjkimFixed a problem in the internal string-to-buffer and buffer-to-buffer copy 4343193267Sjkimroutine where the length of the resulting buffer was not truncated to the 4344193267Sjkimnew size (if the target buffer already existed). 4345151937Sjkim 4346193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4347193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4348193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4349193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4350193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4351193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4352193267Sjkimthe compiler options used during generation. 4353151937Sjkim 4354151937Sjkim Previous Release: 4355151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4356151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4357151937Sjkim Current Release: 4358151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4359151937Sjkim Debug Version: 165.3K Code, 69.4K Data, 234.7K Total 4360151937Sjkim 4361151937Sjkim 4362151937Sjkim2) iASL Compiler/Disassembler: 4363151937Sjkim 4364193267SjkimImplemented the new ACPI 3.0 resource template macros - DWordSpace, 4365193267SjkimExtendedIO, ExtendedMemory, ExtendedSpace, QWordSpace, and WordSpace. 4366193267SjkimIncludes support in the disassembler. 4367151937Sjkim 4368193267SjkimImplemented support for the new (ACPI 3.0) parameter to the Register macro, 4369193267SjkimAccessSize. 4370151937Sjkim 4371193267SjkimFixed a problem where the _HE resource name for the Interrupt macro was 4372193267Sjkimreferencing bit 0 instead of bit 1. 4373151937Sjkim 4374193267SjkimImplemented check for maximum 255 interrupts in the Interrupt macro. 4375151937Sjkim 4376193267SjkimFixed a problem with the predefined resource descriptor names where 4377193267Sjkimincorrect AML code was generated if the offset within the resource buffer 4378193267Sjkimwas 0 or 1. The optimizer shortened the AML code to a single byte opcode 4379193267Sjkimbut did not update the surrounding package lengths. 4380151937Sjkim 4381193267SjkimChanges to the Dma macro: All channels within the channel list must be in 4382193267Sjkimthe range 0-7. Maximum 8 channels can be specified. BusMaster operand is 4383193267Sjkimoptional (default is BusMaster). 4384151937Sjkim 4385193267SjkimImplemented check for maximum 7 data bytes for the VendorShort macro. 4386151937Sjkim 4387193267SjkimThe ReadWrite parameter is now optional for the Memory32 and similar macros. 4388151937Sjkim 4389151937Sjkim---------------------------------------- 4390151937Sjkim03 December 2004. Summary of changes for version 20041203: 4391151937Sjkim 4392151937Sjkim1) ACPI CA Core Subsystem: 4393151937Sjkim 4394193267SjkimThe low-level field insertion/extraction code (exfldio) has been completely 4395193267Sjkimrewritten to eliminate unnecessary complexity, bugs, and boundary 4396193267Sjkimconditions. 4397151937Sjkim 4398193267SjkimFixed a problem in the ToInteger, ToBuffer, ToHexString, and ToDecimalString 4399193267Sjkimoperators where the input operand could be inadvertently deleted if no 4400193267Sjkimconversion was necessary (e.g., if the input to ToInteger was an Integer 4401193267Sjkimobject.) 4402151937Sjkim 4403193267SjkimFixed a problem with the ToDecimalString and ToHexString where an incorrect 4404193267Sjkimexception code was returned if the resulting string would be > 200 chars. 4405193267SjkimAE_STRING_LIMIT is now returned. 4406151937Sjkim 4407193267SjkimFixed a problem with the Concatenate operator where AE_OK was always 4408193267Sjkimreturned, even if the operation failed. 4409151937Sjkim 4410193267SjkimFixed a problem in oswinxf (used by AcpiExec and iASL) to allow > 128 4411193267Sjkimsemaphores to be allocated. 4412151937Sjkim 4413193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4414193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4415193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4416193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4417193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4418193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4419193267Sjkimthe compiler options used during generation. 4420151937Sjkim 4421151937Sjkim Previous Release: 4422151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4423151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4424151937Sjkim Current Release: 4425151937Sjkim Non-Debug Version: 78.3K Code, 11.5K Data, 89.8K Total 4426151937Sjkim Debug Version: 164.7K Code, 68.5K Data, 233.2K Total 4427151937Sjkim 4428151937Sjkim 4429151937Sjkim2) iASL Compiler/Disassembler: 4430151937Sjkim 4431193267SjkimFixed typechecking for the ObjectType and SizeOf operators. Problem was 4432193267Sjkimrecently introduced in 20041119. 4433151937Sjkim 4434193267SjkimFixed a problem with the ToUUID macro where the upper nybble of each buffer 4435193267Sjkimbyte was inadvertently set to zero. 4436151937Sjkim 4437151937Sjkim---------------------------------------- 4438138287Smarks19 November 2004. Summary of changes for version 20041119: 4439138287Smarks 4440138287Smarks1) ACPI CA Core Subsystem: 4441138287Smarks 4442193267SjkimFixed a problem in the internal ConvertToInteger routine where new integers 4443193267Sjkimwere not truncated to 32 bits for 32-bit ACPI tables. This routine converts 4444193267Sjkimbuffers and strings to integers. 4445138287Smarks 4446193267SjkimImplemented support to store a value to an Index() on a String object. This 4447193267Sjkimis an ACPI 2.0 feature that had not yet been implemented. 4448138287Smarks 4449193267SjkimImplemented new behavior for storing objects to individual package elements 4450193267Sjkim(via the Index() operator). The previous behavior was to invoke the implicit 4451193267Sjkimconversion rules if an object was already present at the index. The new 4452193267Sjkimbehavior is to simply delete any existing object and directly store the new 4453193267Sjkimobject. Although the ACPI specification seems unclear on this subject, other 4454193267SjkimACPI implementations behave in this manner. (This is the root of the 4455193267SjkimAE_BAD_HEX_CONSTANT issue.) 4456138287Smarks 4457193267SjkimModified the RSDP memory scan mechanism to support the extended checksum for 4458193267SjkimACPI 2.0 (and above) RSDPs. Note that the search continues until a valid 4459193267SjkimRSDP signature is found with a valid checksum. 4460138287Smarks 4461193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4462193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4463193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4464193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4465193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4466193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4467193267Sjkimthe compiler options used during generation. 4468138287Smarks 4469151937Sjkim Previous Release: 4470151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4471151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4472151937Sjkim Current Release: 4473151937Sjkim Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4474151937Sjkim Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4475138287Smarks 4476138287Smarks 4477138287Smarks2) iASL Compiler/Disassembler: 4478138287Smarks 4479138287SmarksFixed a missing semicolon in the aslcompiler.y file. 4480138287Smarks 4481138287Smarks---------------------------------------- 4482138287Smarks05 November 2004. Summary of changes for version 20041105: 4483138287Smarks 4484138287Smarks1) ACPI CA Core Subsystem: 4485138287Smarks 4486193267SjkimImplemented support for FADT revision 2. This was an interim table (between 4487193267SjkimACPI 1.0 and ACPI 2.0) that adds support for the FADT reset register. 4488138287Smarks 4489193267SjkimImplemented optional support to allow uninitialized LocalX and ArgX 4490193267Sjkimvariables in a control method. The variables are initialized to an Integer 4491193267Sjkimobject with a value of zero. This support is enabled by setting the 4492193267SjkimAcpiGbl_EnableInterpreterSlack flag to TRUE. 4493138287Smarks 4494193267SjkimImplemented support for Integer objects for the SizeOf operator. Either 4 4495193267Sjkimor 8 is returned, depending on the current integer size (32-bit or 64-bit, 4496193267Sjkimdepending on the parent table revision). 4497138287Smarks 4498193267SjkimFixed a problem in the implementation of the SizeOf and ObjectType operators 4499193267Sjkimwhere the operand was resolved to a value too early, causing incorrect 4500193267Sjkimreturn values for some objects. 4501138287Smarks 4502138287SmarksFixed some possible memory leaks during exceptional conditions. 4503138287Smarks 4504193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4505193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4506193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4507193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4508193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4509193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4510193267Sjkimthe compiler options used during generation. 4511138287Smarks 4512138287Smarks Previous Release: 4513138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4514138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4515138287Smarks Current Release: 4516138287Smarks Non-Debug Version: 78.5K Code, 11.5K Data, 90.0K Total 4517138287Smarks Debug Version: 165.2K Code, 68.6K Data, 233.8K Total 4518138287Smarks 4519138287Smarks 4520138287Smarks2) iASL Compiler/Disassembler: 4521138287Smarks 4522138287SmarksImplemented support for all ACPI 3.0 reserved names and methods. 4523138287Smarks 4524193267SjkimImplemented all ACPI 3.0 grammar elements in the front-end, including 4525193267Sjkimsupport for semicolons. 4526138287Smarks 4527138287SmarksImplemented the ACPI 3.0 Function() and ToUUID() macros 4528138287Smarks 4529193267SjkimFixed a problem in the disassembler where a Scope() operator would not be 4530193267Sjkimemitted properly if the target of the scope was in another table. 4531138287Smarks 4532138287Smarks---------------------------------------- 4533138287Smarks15 October 2004. Summary of changes for version 20041015: 4534138287Smarks 4535193267SjkimNote: ACPI CA is currently undergoing an in-depth and complete formal 4536193267Sjkimevaluation to test/verify the following areas. Other suggestions are 4537193267Sjkimwelcome. This will result in an increase in the frequency of releases and 4538193267Sjkimthe number of bug fixes in the next few months. 4539138287Smarks - Functional tests for all ASL/AML operators 4540138287Smarks - All implicit/explicit type conversions 4541138287Smarks - Bit fields and operation regions 4542138287Smarks - 64-bit math support and 32-bit-only "truncated" math support 4543138287Smarks - Exceptional conditions, both compiler and interpreter 4544138287Smarks - Dynamic object deletion and memory leaks 4545138287Smarks - ACPI 3.0 support when implemented 4546138287Smarks - External interfaces to the ACPI subsystem 4547138287Smarks 4548138287Smarks 4549138287Smarks1) ACPI CA Core Subsystem: 4550138287Smarks 4551193267SjkimFixed two alignment issues on 64-bit platforms - within debug statements in 4552193267SjkimAcpiEvGpeDetect and AcpiEvCreateGpeBlock. Removed references to the Address 4553193267Sjkimfield within the non-aligned ACPI generic address structure. 4554138287Smarks 4555193267SjkimFixed a problem in the Increment and Decrement operators where incorrect 4556193267Sjkimoperand resolution could result in the inadvertent modification of the 4557193267Sjkimoriginal integer when the integer is passed into another method as an 4558193267Sjkimargument and the arg is then incremented/decremented. 4559138287Smarks 4560193267SjkimFixed a problem in the FromBCD operator where the upper 32-bits of a 64-bit 4561193267SjkimBCD number were truncated during conversion. 4562138287Smarks 4563193267SjkimFixed a problem in the ToDecimal operator where the length of the resulting 4564193267Sjkimstring could be set incorrectly too long if the input operand was a Buffer 4565193267Sjkimobject. 4566138287Smarks 4567193267SjkimFixed a problem in the Logical operators (LLess, etc.) where a NULL byte (0) 4568193267Sjkimwithin a buffer would prematurely terminate a compare between buffer 4569193267Sjkimobjects. 4570138287Smarks 4571193267SjkimAdded a check for string overflow (>200 characters as per the ACPI 4572193267Sjkimspecification) during the Concatenate operator with two string operands. 4573138287Smarks 4574193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4575193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4576193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4577193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4578193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4579193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4580193267Sjkimthe compiler options used during generation. 4581138287Smarks 4582138287Smarks Previous Release: 4583138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4584138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4585138287Smarks Current Release: 4586138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4587138287Smarks Debug Version: 164.8K Code, 68.6K Data, 233.4K Total 4588138287Smarks 4589138287Smarks 4590167802Sjkim 4591138287Smarks2) iASL Compiler/Disassembler: 4592138287Smarks 4593193267SjkimAllow the use of the ObjectType operator on uninitialized Locals and Args 4594193267Sjkim(returns 0 as per the ACPI specification). 4595138287Smarks 4596193267SjkimFixed a problem where the compiler would fault if there was a syntax error 4597193267Sjkimin the FieldName of all of the various CreateXXXField operators. 4598138287Smarks 4599193267SjkimDisallow the use of lower case letters within the EISAID macro, as per the 4600193267SjkimACPI specification. All EISAID strings must be of the form "UUUNNNN" Where 4601193267SjkimU is an uppercase letter and N is a hex digit. 4602138287Smarks 4603138287Smarks 4604138287Smarks---------------------------------------- 4605138287Smarks06 October 2004. Summary of changes for version 20041006: 4606138287Smarks 4607138287Smarks1) ACPI CA Core Subsystem: 4608138287Smarks 4609193267SjkimImplemented support for the ACPI 3.0 Timer operator. This ASL function 4610193267Sjkimimplements a 64-bit timer with 100 nanosecond granularity. 4611138287Smarks 4612193267SjkimDefined a new OSL interface, AcpiOsGetTimer. This interface is used to 4613193267Sjkimimplement the ACPI 3.0 Timer operator. This allows the host OS to implement 4614193267Sjkimthe timer with the best clock available. Also, it keeps the core subsystem 4615193267Sjkimout of the clock handling business, since the host OS (usually) performs 4616193267Sjkimthis function. 4617138287Smarks 4618193267SjkimFixed an alignment issue on 64-bit platforms. The HwLowLevelRead(Write) 4619193267Sjkimfunctions use a 64-bit address which is part of the packed ACPI Generic 4620193267SjkimAddress Structure. Since the structure is non-aligned, the alignment macros 4621193267Sjkimare now used to extract the address to a local variable before use. 4622138287Smarks 4623193267SjkimFixed a problem where the ToInteger operator assumed all input strings were 4624193267Sjkimhexadecimal. The operator now handles both decimal strings and hex strings 4625193267Sjkim(prefixed with "0x"). 4626138287Smarks 4627193267SjkimFixed a problem where the string length in the string object created as a 4628193267Sjkimresult of the internal ConvertToString procedure could be incorrect. This 4629193267Sjkimpotentially affected all implicit conversions and also the ToDecimalString 4630193267Sjkimand ToHexString operators. 4631138287Smarks 4632193267SjkimFixed two problems in the ToString operator. If the length parameter was 4633193267Sjkimzero, an incorrect string object was created and the value of the input 4634193267Sjkimlength parameter was inadvertently changed from zero to Ones. 4635138287Smarks 4636193267SjkimFixed a problem where the optional ResourceSource string in the ExtendedIRQ 4637193267Sjkimresource macro was ignored. 4638138287Smarks 4639193267SjkimSimplified the interfaces to the internal division functions, reducing code 4640193267Sjkimsize and complexity. 4641138287Smarks 4642193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4643193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4644193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4645193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4646193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4647193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4648193267Sjkimthe compiler options used during generation. 4649138287Smarks 4650138287Smarks Previous Release: 4651138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4652138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4653138287Smarks Current Release: 4654138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4655138287Smarks Debug Version: 164.6K Code, 68.5K Data, 233.1K Total 4656138287Smarks 4657138287Smarks 4658138287Smarks2) iASL Compiler/Disassembler: 4659138287Smarks 4660138287SmarksImplemented support for the ACPI 3.0 Timer operator. 4661138287Smarks 4662193267SjkimFixed a problem where the Default() operator was inadvertently ignored in a 4663193267SjkimSwitch/Case block. This was a problem in the translation of the Switch 4664193267Sjkimstatement to If...Else pairs. 4665138287Smarks 4666193267SjkimAdded support to allow a standalone Return operator, with no parentheses (or 4667193267Sjkimoperands). 4668138287Smarks 4669193267SjkimFixed a problem with code generation for the ElseIf operator where the 4670193267Sjkimtranslated Else...If parse tree was improperly constructed leading to the 4671193267Sjkimloss of some code. 4672138287Smarks 4673138287Smarks---------------------------------------- 4674138287Smarks22 September 2004. Summary of changes for version 20040922: 4675138287Smarks 4676138287Smarks1) ACPI CA Core Subsystem: 4677138287Smarks 4678193267SjkimFixed a problem with the implementation of the LNot() operator where "Ones" 4679193267Sjkimwas not returned for the TRUE case. Changed the code to return Ones instead 4680193267Sjkimof (!Arg) which was usually 1. This change affects iASL constant folding for 4681193267Sjkimthis operator also. 4682138287Smarks 4683193267SjkimFixed a problem in AcpiUtInitializeBuffer where an existing buffer was not 4684193267Sjkiminitialized properly -- Now zero the entire buffer in this case where the 4685193267Sjkimbuffer already exists. 4686138287Smarks 4687193267SjkimChanged the interface to AcpiOsSleep from (UINT32 Seconds, UINT32 4688193267SjkimMilliseconds) to simply (ACPI_INTEGER Milliseconds). This simplifies all 4689193267Sjkimrelated code considerably. This will require changes/updates to all OS 4690193267Sjkiminterface layers (OSLs.) 4691138287Smarks 4692193267SjkimImplemented a new external interface, AcpiInstallExceptionHandler, to allow 4693193267Sjkima system exception handler to be installed. This handler is invoked upon any 4694193267Sjkimrun-time exception that occurs during control method execution. 4695138287Smarks 4696193267SjkimAdded support for the DSDT in AcpiTbFindTable. This allows the 4697138287SmarksDataTableRegion() operator to access the local copy of the DSDT. 4698138287Smarks 4699193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4700193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4701193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4702193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4703193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4704193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4705193267Sjkimthe compiler options used during generation. 4706138287Smarks 4707138287Smarks Previous Release: 4708138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4709138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4710138287Smarks Current Release: 4711138287Smarks Non-Debug Version: 77.9K Code, 11.4K Data, 89.3K Total 4712138287Smarks Debug Version: 164.5K Code, 68.3K Data, 232.8K Total 4713138287Smarks 4714138287Smarks 4715138287Smarks2) iASL Compiler/Disassembler: 4716138287Smarks 4717193267SjkimFixed a problem with constant folding and the LNot operator. LNot was 4718193267Sjkimreturning 1 in the TRUE case, not Ones as per the ACPI specification. This 4719193267Sjkimcould result in the generation of an incorrect folded/reduced constant. 4720138287Smarks 4721193267SjkimEnd-Of-File is now allowed within a "//"-style comment. A parse error no 4722193267Sjkimlonger occurs if such a comment is at the very end of the input ASL source 4723193267Sjkimfile. 4724138287Smarks 4725193267SjkimImplemented the "-r" option to override the Revision in the table header. 4726193267SjkimThe initial use of this option will be to simplify the evaluation of the AML 4727193267Sjkiminterpreter by allowing a single ASL source module to be compiled for either 4728193267Sjkim32-bit or 64-bit integers. 4729138287Smarks 4730138287Smarks 4731138287Smarks---------------------------------------- 4732138287Smarks27 August 2004. Summary of changes for version 20040827: 4733138287Smarks 4734138287Smarks1) ACPI CA Core Subsystem: 4735138287Smarks 4736193267Sjkim- Implemented support for implicit object conversion in the non-numeric 4737193267Sjkimlogical operators (LEqual, LGreater, LGreaterEqual, LLess, LLessEqual, and 4738193267SjkimLNotEqual.) Any combination of Integers/Strings/Buffers may now be used; 4739193267Sjkimthe second operand is implicitly converted on the fly to match the type of 4740193267Sjkimthe first operand. For example: 4741138287Smarks 4742138287Smarks LEqual (Source1, Source2) 4743138287Smarks 4744193267SjkimSource1 and Source2 must each evaluate to an integer, a string, or a buffer. 4745193267SjkimThe data type of Source1 dictates the required type of Source2. Source2 is 4746193267Sjkimimplicitly converted if necessary to match the type of Source1. 4747138287Smarks 4748193267Sjkim- Updated and corrected the behavior of the string conversion support. The 4749193267Sjkimrules concerning conversion of buffers to strings (according to the ACPI 4750193267Sjkimspecification) are as follows: 4751138287Smarks 4752193267SjkimToDecimalString - explicit byte-wise conversion of buffer to string of 4753193267Sjkimdecimal values (0-255) separated by commas. ToHexString - explicit byte-wise 4754193267Sjkimconversion of buffer to string of hex values (0-FF) separated by commas. 4755193267SjkimToString - explicit byte-wise conversion of buffer to string. Byte-by-byte 4756193267Sjkimcopy with no transform except NULL terminated. Any other implicit buffer-to- 4757193267Sjkimstring conversion - byte-wise conversion of buffer to string of hex values 4758193267Sjkim(0-FF) separated by spaces. 4759138287Smarks 4760138287Smarks- Fixed typo in definition of AcpiGbl_EnableInterpreterSlack. 4761138287Smarks 4762193267Sjkim- Fixed a problem in AcpiNsGetPathnameLength where the returned length was 4763193267Sjkimone byte too short in the case of a node in the root scope. This could 4764193267Sjkimcause a fault during debug output. 4765138287Smarks 4766193267Sjkim- Code and Data Size: Current and previous core subsystem library sizes are 4767193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4768193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4769193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4770193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4771193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4772193267Sjkimthe compiler options used during generation. 4773138287Smarks 4774138287Smarks Previous Release: 4775138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4776138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4777138287Smarks Current Release: 4778138287Smarks Non-Debug Version: 77.8K Code, 11.4K Data, 89.2K Total 4779138287Smarks Debug Version: 164.2K Code, 68.2K Data, 232.4K Total 4780138287Smarks 4781138287Smarks 4782138287Smarks2) iASL Compiler/Disassembler: 4783138287Smarks 4784138287Smarks- Fixed a Linux generation error. 4785138287Smarks 4786138287Smarks 4787138287Smarks---------------------------------------- 4788138287Smarks16 August 2004. Summary of changes for version 20040816: 4789138287Smarks 4790138287Smarks1) ACPI CA Core Subsystem: 4791138287Smarks 4792193267SjkimDesigned and implemented support within the AML interpreter for the so- 4793193267Sjkimcalled "implicit return". This support returns the result of the last ASL 4794193267Sjkimoperation within a control method, in the absence of an explicit Return() 4795193267Sjkimoperator. A few machines depend on this behavior, even though it is not 4796193267Sjkimexplicitly supported by the ASL language. It is optional support that can 4797193267Sjkimbe enabled at runtime via the AcpiGbl_EnableInterpreterSlack flag. 4798138287Smarks 4799193267SjkimRemoved support for the PCI_Config address space from the internal low level 4800193267Sjkimhardware interfaces (AcpiHwLowLevelRead and AcpiHwLowLevelWrite). This 4801193267Sjkimsupport was not used internally, and would not work correctly anyway because 4802193267Sjkimthe PCI bus number and segment number were not supported. There are 4803193267Sjkimseparate interfaces for PCI configuration space access because of the unique 4804138287Smarksinterface. 4805138287Smarks 4806193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4807193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4808193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4809193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4810193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4811193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4812193267Sjkimthe compiler options used during generation. 4813138287Smarks 4814138287Smarks Previous Release: 4815138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4816138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 4817138287Smarks Current Release: 4818138287Smarks Non-Debug Version: 77.9K Code, 11.5K Data, 89.4K Total 4819138287Smarks Debug Version: 164.1K Code, 68.3K Data, 232.4K Total 4820138287Smarks 4821138287Smarks 4822138287Smarks2) iASL Compiler/Disassembler: 4823138287Smarks 4824193267SjkimFixed a problem where constants in ASL expressions at the root level (not 4825193267Sjkimwithin a control method) could be inadvertently truncated during code 4826193267Sjkimgeneration. This problem was introduced in the 20040715 release. 4827138287Smarks 4828138287Smarks 4829138287Smarks---------------------------------------- 4830138287Smarks15 July 2004. Summary of changes for version 20040715: 4831138287Smarks 4832138287Smarks1) ACPI CA Core Subsystem: 4833138287Smarks 4834193267SjkimRestructured the internal HW GPE interfaces to pass/track the current state 4835193267Sjkimof interrupts (enabled/disabled) in order to avoid possible deadlock and 4836193267Sjkimincrease flexibility of the interfaces. 4837138287Smarks 4838193267SjkimImplemented a "lexicographical compare" for String and Buffer objects within 4839193267Sjkimthe logical operators -- LGreater, LLess, LGreaterEqual, and LLessEqual -- 4840193267Sjkimas per further clarification to the ACPI specification. Behavior is similar 4841193267Sjkimto C library "strcmp". 4842138287Smarks 4843193267SjkimCompleted a major reduction in CPU stack use for the AcpiGetFirmwareTable 4844193267Sjkimexternal function. In the 32-bit non-debug case, the stack use has been 4845193267Sjkimreduced from 168 bytes to 32 bytes. 4846138287Smarks 4847193267SjkimDeployed a new run-time configuration flag, AcpiGbl_EnableInterpreterSlack, 4848193267Sjkimwhose purpose is to allow the AML interpreter to forgive certain bad AML 4849193267Sjkimconstructs. Default setting is FALSE. 4850138287Smarks 4851193267SjkimImplemented the first use of AcpiGbl_EnableInterpreterSlack in the Field IO 4852193267Sjkimsupport code. If enabled, it allows field access to go beyond the end of a 4853193267Sjkimregion definition if the field is within the region length rounded up to the 4854193267Sjkimnext access width boundary (a common coding error.) 4855138287Smarks 4856193267SjkimRenamed OSD_HANDLER to ACPI_OSD_HANDLER, and OSD_EXECUTION_CALLBACK to 4857193267SjkimACPI_OSD_EXEC_CALLBACK for consistency with other ACPI symbols. Also, these 4858193267Sjkimsymbols are lowercased by the latest version of the AcpiSrc tool. 4859138287Smarks 4860193267SjkimThe prototypes for the PCI interfaces in acpiosxf.h have been updated to 4861193267Sjkimrename "Register" to simply "Reg" to prevent certain compilers from 4862193267Sjkimcomplaining. 4863138287Smarks 4864193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4865193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4866193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4867193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4868193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4869193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4870193267Sjkimthe compiler options used during generation. 4871138287Smarks 4872138287Smarks Previous Release: 4873138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4874138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 4875138287Smarks Current Release: 4876138287Smarks Non-Debug Version: 78.0K Code, 11.5K Data, 89.5K Total 4877138287Smarks Debug Version: 164.1K Code, 68.2K Data, 232.3K Total 4878138287Smarks 4879138287Smarks 4880138287Smarks2) iASL Compiler/Disassembler: 4881138287Smarks 4882193267SjkimImplemented full support for Package objects within the Case() operator. 4883193267SjkimNote: The Break() operator is currently not supported within Case blocks 4884193267Sjkim(TermLists) as there is some question about backward compatibility with ACPI 4885193267Sjkim1.0 interpreters. 4886138287Smarks 4887167802Sjkim 4888193267SjkimFixed a problem where complex terms were not supported properly within the 4889193267SjkimSwitch() operator. 4890138287Smarks 4891193267SjkimEliminated extraneous warning for compiler-emitted reserved names of the 4892193267Sjkimform "_T_x". (Used in Switch/Case operators.) 4893138287Smarks 4894193267SjkimEliminated optimization messages for "_T_x" objects and small constants 4895193267Sjkimwithin the DefinitionBlock operator. 4896138287Smarks 4897138287Smarks 4898138287Smarks---------------------------------------- 4899138287Smarks15 June 2004. Summary of changes for version 20040615: 4900138287Smarks 4901138287Smarks1) ACPI CA Core Subsystem: 4902138287Smarks 4903193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 4904193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 4905193267SjkimLLessEqual. 4906138287Smarks 4907193267SjkimAll directory names in the entire source package are lower case, as they 4908193267Sjkimwere in earlier releases. 4909138287Smarks 4910193267SjkimImplemented "Disassemble" command in the AML debugger that will disassemble 4911193267Sjkima single control method. 4912138287Smarks 4913193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4914193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4915193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4916193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4917193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4918193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4919193267Sjkimthe compiler options used during generation. 4920138287Smarks 4921138287Smarks Previous Release: 4922138287Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 4923138287Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 4924167802Sjkim 4925138287Smarks Current Release: 4926138287Smarks Non-Debug Version: 77.8K Code, 11.5K Data, 89.3K Total 4927138287Smarks Debug Version: 163.8K Code, 68.2K Data, 232.0K Total 4928138287Smarks 4929138287Smarks 4930138287Smarks2) iASL Compiler/Disassembler: 4931138287Smarks 4932193267SjkimImplemented support for Buffer and String objects (as per ACPI 2.0) for the 4933193267Sjkimfollowing ASL operators: LEqual, LGreater, LLess, LGreaterEqual, and 4934193267SjkimLLessEqual. 4935138287Smarks 4936193267SjkimAll directory names in the entire source package are lower case, as they 4937193267Sjkimwere in earlier releases. 4938138287Smarks 4939193267SjkimFixed a fault when using the -g or -d<nofilename> options if the FADT was 4940193267Sjkimnot found. 4941138287Smarks 4942193267SjkimFixed an issue with the Windows version of the compiler where later versions 4943193267Sjkimof Windows place the FADT in the registry under the name "FADT" and not 4944193267Sjkim"FACP" as earlier versions did. This applies when using the -g or - 4945193267Sjkimd<nofilename> options. The compiler now looks for both strings as 4946193267Sjkimnecessary. 4947138287Smarks 4948193267SjkimFixed a problem with compiler namepath optimization where a namepath within 4949193267Sjkimthe Scope() operator could not be optimized if the namepath was a subpath of 4950193267Sjkimthe current scope path. 4951138287Smarks 4952138287Smarks---------------------------------------- 4953131440Smarks27 May 2004. Summary of changes for version 20040527: 4954131440Smarks 4955131440Smarks1) ACPI CA Core Subsystem: 4956131440Smarks 4957193267SjkimCompleted a new design and implementation for EBDA (Extended BIOS Data Area) 4958193267Sjkimsupport in the RSDP scan code. The original code improperly scanned for the 4959193267SjkimEBDA by simply scanning from memory location 0 to 0x400. The correct method 4960193267Sjkimis to first obtain the EBDA pointer from within the BIOS data area, then 4961193267Sjkimscan 1K of memory starting at the EBDA pointer. There appear to be few if 4962131440Smarksany machines that place the RSDP in the EBDA, however. 4963131440Smarks 4964193267SjkimIntegrated a fix for a possible fault during evaluation of BufferField 4965193267Sjkimarguments. Obsolete code that was causing the problem was removed. 4966131440Smarks 4967193267SjkimFound and fixed a problem in the Field Support Code where data could be 4968193267Sjkimcorrupted on a bit field read that starts on an aligned boundary but does 4969193267Sjkimnot end on an aligned boundary. Merged the read/write "datum length" 4970193267Sjkimcalculation code into a common procedure. 4971131440Smarks 4972131440SmarksRolled in a couple of changes to the FreeBSD-specific header. 4973131440Smarks 4974167802Sjkim 4975193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 4976193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 4977193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 4978193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 4979193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 4980193267Sjkimthat these values will vary depending on the efficiency of the compiler and 4981193267Sjkimthe compiler options used during generation. 4982131440Smarks 4983131440Smarks Previous Release: 4984131440Smarks Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 4985131440Smarks Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 4986131440Smarks Current Release: 4987131440Smarks Non-Debug Version: 77.7K Code, 11.5K Data, 89.2K Total 4988131440Smarks Debug Version: 163.3K Code, 67.2K Data, 230.5K Total 4989131440Smarks 4990131440Smarks 4991131440Smarks2) iASL Compiler/Disassembler: 4992131440Smarks 4993193267SjkimFixed a generation warning produced by some overly-verbose compilers for a 4994193267Sjkim64-bit constant. 4995131440Smarks 4996131440Smarks---------------------------------------- 4997129684Snjl14 May 2004. Summary of changes for version 20040514: 4998129684Snjl 4999129684Snjl1) ACPI CA Core Subsystem: 5000129684Snjl 5001193267SjkimFixed a problem where hardware GPE enable bits sometimes not set properly 5002193267Sjkimduring and after GPE method execution. Result of 04/27 changes. 5003129684Snjl 5004129684SnjlRemoved extra "clear all GPEs" when sleeping/waking. 5005129684Snjl 5006193267SjkimRemoved AcpiHwEnableGpe and AcpiHwDisableGpe, replaced by the single 5007193267SjkimAcpiHwWriteGpeEnableReg. Changed a couple of calls to the functions above to 5008193267Sjkimthe new AcpiEv* calls as appropriate. 5009129684Snjl 5010193267SjkimACPI_OS_NAME was removed from the OS-specific headers. The default name is 5011193267Sjkimnow "Microsoft Windows NT" for maximum compatibility. However this can be 5012193267Sjkimchanged by modifying the acconfig.h file. 5013129684Snjl 5014193267SjkimAllow a single invocation of AcpiInstallNotifyHandler for a handler that 5015193267Sjkimtraps both types of notifies (System, Device). Use ACPI_ALL_NOTIFY flag. 5016129684Snjl 5017193267SjkimRun _INI methods on ThermalZone objects. This is against the ACPI 5018193267Sjkimspecification, but there is apparently ASL code in the field that has these 5019193267Sjkim_INI methods, and apparently "other" AML interpreters execute them. 5020129684Snjl 5021193267SjkimPerformed a full 16/32/64 bit lint that resulted in some small changes. 5022129684Snjl 5023193267SjkimAdded a sleep simulation command to the AML debugger to test sleep code. 5024129684Snjl 5025193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5026193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5027193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5028193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5029193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5030193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5031193267Sjkimthe compiler options used during generation. 5032129684Snjl 5033129684Snjl Previous Release: 5034129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5035129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5036129684Snjl Current Release: 5037129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5038129684Snjl Debug Version: 163.2K Code, 67.2K Data, 230.4K Total 5039129684Snjl 5040129684Snjl---------------------------------------- 5041129684Snjl27 April 2004. Summary of changes for version 20040427: 5042129684Snjl 5043129684Snjl1) ACPI CA Core Subsystem: 5044129684Snjl 5045193267SjkimCompleted a major overhaul of the GPE handling within ACPI CA. There are 5046193267Sjkimnow three types of GPEs: wake-only, runtime-only, and combination wake/run. 5047193267SjkimThe only GPEs allowed to be combination wake/run are for button-style 5048193267Sjkimdevices such as a control-method power button, control-method sleep button, 5049193267Sjkimor a notebook lid switch. GPEs that have an _Lxx or _Exx method and are not 5050193267Sjkimreferenced by any _PRW methods are marked for "runtime" and hardware 5051193267Sjkimenabled. Any GPE that is referenced by a _PRW method is marked for "wake" 5052193267Sjkim(and disabled at runtime). However, at sleep time, only those GPEs that 5053193267Sjkimhave been specifically enabled for wake via the AcpiEnableGpe interface will 5054193267Sjkimactually be hardware enabled. 5055129684Snjl 5056193267SjkimA new external interface has been added, AcpiSetGpeType(), that is meant to 5057193267Sjkimbe used by device drivers to force a GPE to a particular type. It will be 5058193267Sjkimespecially useful for the drivers for the button devices mentioned above. 5059129684Snjl 5060193267SjkimCompleted restructuring of the ACPI CA initialization sequence so that 5061193267Sjkimdefault operation region handlers are installed before GPEs are initialized 5062193267Sjkimand the _PRW methods are executed. This will prevent errors when the _PRW 5063193267Sjkimmethods attempt to access system memory or I/O space. 5064129684Snjl 5065193267SjkimGPE enable/disable no longer reads the GPE enable register. We now keep the 5066193267Sjkimenable info for runtime and wake separate and in the GPE_EVENT_INFO. We 5067193267Sjkimthus no longer depend on the hardware to maintain these bits. 5068129684Snjl 5069193267SjkimAlways clear the wake status and fixed/GPE status bits before sleep, even 5070193267Sjkimfor state S5. 5071129684Snjl 5072193267SjkimImproved the AML debugger output for displaying the GPE blocks and their 5073193267Sjkimcurrent status. 5074129684Snjl 5075193267SjkimAdded new strings for the _OSI method, of the form "Windows 2001 SPx" where 5076193267Sjkimx = 0,1,2,3,4. 5077129684Snjl 5078193267SjkimFixed a problem where the physical address was incorrectly calculated when 5079193267Sjkimthe Load() operator was used to directly load from an Operation Region (vs. 5080193267Sjkimloading from a Field object.) Also added check for minimum table length for 5081193267Sjkimthis case. 5082129684Snjl 5083193267SjkimFix for multiple mutex acquisition. Restore original thread SyncLevel on 5084193267Sjkimmutex release. 5085129684Snjl 5086193267SjkimAdded ACPI_VALID_SXDS flag to the AcpiGetObjectInfo interface for 5087129684Snjlconsistency with the other fields returned. 5088129684Snjl 5089193267SjkimShrunk the ACPI_GPE_EVENT_INFO structure by 40%. There is one such 5090193267Sjkimstructure for each GPE in the system, so the size of this structure is 5091193267Sjkimimportant. 5092129684Snjl 5093193267SjkimCPU stack requirement reduction: Cleaned up the method execution and object 5094193267Sjkimevaluation paths so that now a parameter structure is passed, instead of 5095193267Sjkimcopying the various method parameters over and over again. 5096129684Snjl 5097193267SjkimIn evregion.c: Correctly exit and reenter the interpreter region if and 5098193267Sjkimonly if dispatching an operation region request to a user-installed handler. 5099193267SjkimDo not exit/reenter when dispatching to a default handler (e.g., default 5100193267Sjkimsystem memory or I/O handlers) 5101129684Snjl 5102129684Snjl 5103193267SjkimNotes for updating drivers for the new GPE support. The following changes 5104193267Sjkimmust be made to ACPI-related device drivers that are attached to one or more 5105193267SjkimGPEs: (This information will be added to the ACPI CA Programmer Reference.) 5106129684Snjl 5107193267Sjkim1) AcpiInstallGpeHandler no longer automatically enables the GPE, you must 5108193267Sjkimexplicitly call AcpiEnableGpe. 5109193267Sjkim2) There is a new interface called AcpiSetGpeType. This should be called 5110193267Sjkimbefore enabling the GPE. Also, this interface will automatically disable 5111193267Sjkimthe GPE if it is currently enabled. 5112129684Snjl3) AcpiEnableGpe no longer supports a GPE type flag. 5113129684Snjl 5114129684SnjlSpecific drivers that must be changed: 5115129684Snjl1) EC driver: 5116193267Sjkim AcpiInstallGpeHandler (NULL, GpeNum, ACPI_GPE_EDGE_TRIGGERED, 5117129684SnjlAeGpeHandler, NULL); 5118129684Snjl AcpiSetGpeType (NULL, GpeNum, ACPI_GPE_TYPE_RUNTIME); 5119129684Snjl AcpiEnableGpe (NULL, GpeNum, ACPI_NOT_ISR); 5120129684Snjl 5121129684Snjl2) Button Drivers (Power, Lid, Sleep): 5122129684SnjlRun _PRW method under parent device 5123129684SnjlIf _PRW exists: /* This is a control-method button */ 5124129684Snjl Extract GPE number and possibly GpeDevice 5125129684Snjl AcpiSetGpeType (GpeDevice, GpeNum, ACPI_GPE_TYPE_WAKE_RUN); 5126129684Snjl AcpiEnableGpe (GpeDevice, GpeNum, ACPI_NOT_ISR); 5127129684Snjl 5128193267SjkimFor all other devices that have _PRWs, we automatically set the GPE type to 5129193267SjkimACPI_GPE_TYPE_WAKE, but the GPE is NOT automatically (wake) enabled. This 5130193267Sjkimmust be done on a selective basis, usually requiring some kind of user app 5131193267Sjkimto allow the user to pick the wake devices. 5132129684Snjl 5133129684Snjl 5134193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5135193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5136193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5137193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5138193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5139193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5140193267Sjkimthe compiler options used during generation. 5141129684Snjl 5142129684Snjl Previous Release: 5143129684Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5144129684Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5145129684Snjl Current Release: 5146167802Sjkim 5147129684Snjl Non-Debug Version: 77.6K Code, 11.5K Data, 89.1K Total 5148129684Snjl Debug Version: 162.9K Code, 67.0K Data, 229.9K Total 5149129684Snjl 5150129684Snjl 5151129684Snjl 5152129684Snjl---------------------------------------- 5153128212Snjl02 April 2004. Summary of changes for version 20040402: 5154128212Snjl 5155128212Snjl1) ACPI CA Core Subsystem: 5156128212Snjl 5157193267SjkimFixed an interpreter problem where an indirect store through an ArgX 5158193267Sjkimparameter was incorrectly applying the "implicit conversion rules" during 5159193267Sjkimthe store. From the ACPI specification: "If the target is a method local or 5160193267Sjkimargument (LocalX or ArgX), no conversion is performed and the result is 5161193267Sjkimstored directly to the target". The new behavior is to disable implicit 5162193267Sjkimconversion during ALL stores to an ArgX. 5163128212Snjl 5164193267SjkimChanged the behavior of the _PRW method scan to ignore any and all errors 5165193267Sjkimreturned by a given _PRW. This prevents the scan from aborting from the 5166193267Sjkimfailure of any single _PRW. 5167128212Snjl 5168193267SjkimMoved the runtime configuration parameters from the global init procedure to 5169193267Sjkimstatic variables in acglobal.h. This will allow the host to override the 5170193267Sjkimdefault values easily. 5171128212Snjl 5172193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5173193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5174193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5175193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5176193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5177193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5178193267Sjkimthe compiler options used during generation. 5179128212Snjl 5180128212Snjl Previous Release: 5181128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5182128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5183128212Snjl Current Release: 5184128212Snjl Non-Debug Version: 77.0K Code, 11.4K Data, 88.4K Total 5185128212Snjl Debug Version: 161.0K Code, 66.3K Data, 227.3K Total 5186128212Snjl 5187128212Snjl 5188128212Snjl2) iASL Compiler/Disassembler: 5189128212Snjl 5190193267SjkimiASL now fully disassembles SSDTs. However, External() statements are not 5191193267Sjkimgenerated automatically for unresolved symbols at this time. This is a 5192193267Sjkimplanned feature for future implementation. 5193128212Snjl 5194193267SjkimFixed a scoping problem in the disassembler that occurs when the type of the 5195193267Sjkimtarget of a Scope() operator is overridden. This problem caused an 5196193267Sjkimincorrectly nested internal namespace to be constructed. 5197128212Snjl 5198193267SjkimAny warnings or errors that are emitted during disassembly are now commented 5199193267Sjkimout automatically so that the resulting file can be recompiled without any 5200193267Sjkimhand editing. 5201128212Snjl 5202128212Snjl---------------------------------------- 5203128212Snjl26 March 2004. Summary of changes for version 20040326: 5204128212Snjl 5205128212Snjl1) ACPI CA Core Subsystem: 5206128212Snjl 5207193267SjkimImplemented support for "wake" GPEs via interaction between GPEs and the 5208193267Sjkim_PRW methods. Every GPE that is pointed to by one or more _PRWs is 5209193267Sjkimidentified as a WAKE GPE and by default will no longer be enabled at 5210193267Sjkimruntime. Previously, we were blindly enabling all GPEs with a corresponding 5211193267Sjkim_Lxx or _Exx method - but most of these turn out to be WAKE GPEs anyway. We 5212193267Sjkimbelieve this has been the cause of thousands of "spurious" GPEs on some 5213128212Snjlsystems. 5214128212Snjl 5215193267SjkimThis new GPE behavior is can be reverted to the original behavior (enable 5216193267SjkimALL GPEs at runtime) via a runtime flag. 5217128212Snjl 5218193267SjkimFixed a problem where aliased control methods could not access objects 5219193267Sjkimproperly. The proper scope within the namespace was not initialized 5220193267Sjkim(transferred to the target of the aliased method) before executing the 5221193267Sjkimtarget method. 5222128212Snjl 5223193267SjkimFixed a potential race condition on internal object deletion on the return 5224193267Sjkimobject in AcpiEvaluateObject. 5225128212Snjl 5226193267SjkimIntegrated a fix for resource descriptors where both _MEM and _MTP were 5227193267Sjkimbeing extracted instead of just _MEM. (i.e. bitmask was incorrectly too 5228193267Sjkimwide, 0x0F instead of 0x03.) 5229128212Snjl 5230193267SjkimAdded a special case for ACPI_ROOT_OBJECT in AcpiUtGetNodeName, preventing a 5231193267Sjkimfault in some cases. 5232128212Snjl 5233128212SnjlUpdated Notify() values for debug statements in evmisc.c 5234128212Snjl 5235193267SjkimReturn proper status from AcpiUtMutexInitialize, not just simply AE_OK. 5236128212Snjl 5237193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5238193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5239193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5240193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5241193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5242193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5243193267Sjkimthe compiler options used during generation. 5244128212Snjl 5245128212Snjl Previous Release: 5246167802Sjkim 5247128212Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5248128212Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5249128212Snjl Current Release: 5250128212Snjl Non-Debug Version: 76.9K Code, 11.4K Data, 88.3K Total 5251128212Snjl Debug Version: 160.8K Code, 66.1K Data, 226.9K Total 5252128212Snjl 5253128212Snjl---------------------------------------- 5254127175Snjl11 March 2004. Summary of changes for version 20040311: 5255127175Snjl 5256127175Snjl1) ACPI CA Core Subsystem: 5257127175Snjl 5258193267SjkimFixed a problem where errors occurring during the parse phase of control 5259193267Sjkimmethod execution did not abort cleanly. For example, objects created and 5260193267Sjkiminstalled in the namespace were not deleted. This caused all subsequent 5261193267Sjkiminvocations of the method to return the AE_ALREADY_EXISTS exception. 5262127175Snjl 5263193267SjkimImplemented a mechanism to force a control method to "Serialized" execution 5264193267Sjkimif the method attempts to create namespace objects. (The root of the 5265193267SjkimAE_ALREADY_EXISTS problem.) 5266127175Snjl 5267193267SjkimImplemented support for the predefined _OSI "internal" control method. 5268193267SjkimInitial supported strings are "Linux", "Windows 2000", "Windows 2001", and 5269193267Sjkim"Windows 2001.1", and can be easily upgraded for new strings as necessary. 5270193267SjkimThis feature will allow "other" operating systems to execute the fully 5271193267Sjkimtested, "Windows" code path through the ASL code 5272127175Snjl 5273193267SjkimGlobal Lock Support: Now allows multiple acquires and releases with any 5274193267Sjkiminternal thread. Removed concept of "owning thread" for this special mutex. 5275127175Snjl 5276193267SjkimFixed two functions that were inappropriately declaring large objects on the 5277193267SjkimCPU stack: PsParseLoop, NsEvaluateRelative. Reduces the stack usage during 5278193267Sjkimmethod execution considerably. 5279127175Snjl 5280193267SjkimFixed a problem in the ACPI 2.0 FACS descriptor (actbl2.h) where the 5281193267SjkimS4Bios_f field was incorrectly defined as UINT32 instead of UINT32_BIT. 5282127175Snjl 5283193267SjkimFixed a problem where AcpiEvGpeDetect would fault if there were no GPEs 5284193267Sjkimdefined on the machine. 5285127175Snjl 5286193267SjkimImplemented two runtime options: One to force all control method execution 5287193267Sjkimto "Serialized" to mimic Windows behavior, another to disable _OSI support 5288193267Sjkimif it causes problems on a given machine. 5289127175Snjl 5290193267SjkimCode and Data Size: Current and previous core subsystem library sizes are 5291193267Sjkimshown below. These are the code and data sizes for the acpica.lib produced 5292193267Sjkimby the Microsoft Visual C++ 6.0 compiler, and these values do not include 5293193267Sjkimany ACPI driver or OSPM code. The debug version of the code includes the 5294193267Sjkimdebug output trace mechanism and has a much larger code and data size. Note 5295193267Sjkimthat these values will vary depending on the efficiency of the compiler and 5296193267Sjkimthe compiler options used during generation. 5297127175Snjl 5298127175Snjl Previous Release: 5299127175Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5300127175Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5301127175Snjl Current Release: 5302127175Snjl Non-Debug Version: 76.5K Code, 11.3K Data, 87.8K Total 5303127175Snjl Debug Version: 160.3K Code, 66.0K Data, 226.3K Total 5304127175Snjl 5305127175Snjl2) iASL Compiler/Disassembler: 5306127175Snjl 5307193267SjkimFixed an array size problem for FreeBSD that would cause the compiler to 5308193267Sjkimfault. 5309127175Snjl 5310127175Snjl---------------------------------------- 5311126372Snjl20 February 2004. Summary of changes for version 20040220: 5312126372Snjl 5313167802Sjkim 5314126372Snjl1) ACPI CA Core Subsystem: 5315126372Snjl 5316193267SjkimImplemented execution of _SxD methods for Device objects in the 5317126372SnjlGetObjectInfo interface. 5318126372Snjl 5319126372SnjlFixed calls to _SST method to pass the correct arguments. 5320126372Snjl 5321126372SnjlAdded a call to _SST on wake to restore to "working" state. 5322126372Snjl 5323193267SjkimCheck for End-Of-Buffer failure case in the WalkResources interface. 5324126372Snjl 5325193267SjkimIntegrated fix for 64-bit alignment issue in acglobal.h by moving two 5326193267Sjkimstructures to the beginning of the file. 5327126372Snjl 5328126372SnjlAfter wake, clear GPE status register(s) before enabling GPEs. 5329126372Snjl 5330193267SjkimAfter wake, clear/enable power button. (Perhaps we should clear/enable all 5331193267Sjkimfixed events upon wake.) 5332126372Snjl 5333126372SnjlFixed a couple of possible memory leaks in the Namespace manager. 5334126372Snjl 5335126372SnjlIntegrated latest acnetbsd.h file. 5336126372Snjl 5337126372Snjl---------------------------------------- 5338126372Snjl11 February 2004. Summary of changes for version 20040211: 5339126372Snjl 5340167802Sjkim 5341126372Snjl1) ACPI CA Core Subsystem: 5342126372Snjl 5343193267SjkimCompleted investigation and implementation of the call-by-reference 5344193267Sjkimmechanism for control method arguments. 5345126372Snjl 5346193267SjkimFixed a problem where a store of an object into an indexed package could 5347193267Sjkimfail if the store occurs within a different method than the method that 5348193267Sjkimcreated the package. 5349126372Snjl 5350193267SjkimFixed a problem where the ToDecimal operator could return incorrect results. 5351126372Snjl 5352193267SjkimFixed a problem where the CopyObject operator could fail on some of the more 5353193267Sjkimobscure objects (e.g., Reference objects.) 5354126372Snjl 5355193267SjkimImproved the output of the Debug object to display buffer, package, and 5356193267Sjkimindex objects. 5357126372Snjl 5358193267SjkimFixed a problem where constructs of the form "RefOf (ArgX)" did not return 5359193267Sjkimthe expected result. 5360126372Snjl 5361193267SjkimAdded permanent ACPI_REPORT_ERROR macros for all instances of the 5362126372SnjlACPI_AML_INTERNAL exception. 5363126372Snjl 5364126372SnjlIntegrated latest version of acfreebsd.h 5365126372Snjl 5366126372Snjl---------------------------------------- 5367126372Snjl16 January 2004. Summary of changes for version 20040116: 5368126372Snjl 5369193267SjkimThe purpose of this release is primarily to update the copyright years in 5370193267Sjkimeach module, thus causing a huge number of diffs. There are a few small 5371193267Sjkimfunctional changes, however. 5372126372Snjl 5373126372Snjl1) ACPI CA Core Subsystem: 5374126372Snjl 5375193267SjkimImproved error messages when there is a problem finding one or more of the 5376193267Sjkimrequired base ACPI tables 5377126372Snjl 5378126372SnjlReintroduced the definition of APIC_HEADER in actbl.h 5379126372Snjl 5380126372SnjlChanged definition of MADT_ADDRESS_OVERRIDE to 64 bits (actbl.h) 5381126372Snjl 5382126372SnjlRemoved extraneous reference to NewObj in dsmthdat.c 5383126372Snjl 5384126372Snjl2) iASL compiler 5385126372Snjl 5386193267SjkimFixed a problem introduced in December that disabled the correct disassembly 5387193267Sjkimof Resource Templates 5388126372Snjl 5389126372Snjl 5390126372Snjl---------------------------------------- 5391126372Snjl03 December 2003. Summary of changes for version 20031203: 5392126372Snjl 5393126372Snjl1) ACPI CA Core Subsystem: 5394126372Snjl 5395126372SnjlChanged the initialization of Operation Regions during subsystem 5396126372Snjlinit to perform two entire walks of the ACPI namespace; The first 5397126372Snjlto initialize the regions themselves, the second to execute the 5398126372Snjl_REG methods. This fixed some interdependencies across _REG 5399126372Snjlmethods found on some machines. 5400126372Snjl 5401126372SnjlFixed a problem where a Store(Local0, Local1) could simply update 5402126372Snjlthe object reference count, and not create a new copy of the 5403126372Snjlobject if the Local1 is uninitialized. 5404126372Snjl 5405126372SnjlImplemented support for the _SST reserved method during sleep 5406126372Snjltransitions. 5407126372Snjl 5408126372SnjlImplemented support to clear the SLP_TYP and SLP_EN bits when 5409126372Snjlwaking up, this is apparently required by some machines. 5410126372Snjl 5411193267SjkimWhen sleeping, clear the wake status only if SleepState is not S5. 5412126372Snjl 5413126372SnjlFixed a problem in AcpiRsExtendedIrqResource() where an incorrect 5414126372Snjlpointer arithmetic advanced a string pointer too far. 5415126372Snjl 5416126372SnjlFixed a problem in AcpiTbGetTablePtr() where a garbage pointer 5417126372Snjlcould be returned if the requested table has not been loaded. 5418126372Snjl 5419193267SjkimWithin the support for IRQ resources, restructured the handling of 5420126372Snjlthe active and edge/level bits. 5421126372Snjl 5422126372SnjlFixed a few problems in AcpiPsxExecute() where memory could be 5423126372Snjlleaked under certain error conditions. 5424126372Snjl 5425126372SnjlImproved error messages for the cases where the ACPI mode could 5426126372Snjlnot be entered. 5427126372Snjl 5428126372SnjlCode and Data Size: Current and previous core subsystem library 5429126372Snjlsizes are shown below. These are the code and data sizes for the 5430126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5431126372Snjlthese values do not include any ACPI driver or OSPM code. The 5432126372Snjldebug version of the code includes the debug output trace 5433126372Snjlmechanism and has a much larger code and data size. Note that 5434193267Sjkimthese values will vary depending on the efficiency of the compiler 5435126372Snjland the compiler options used during generation. 5436126372Snjl 5437126372Snjl Previous Release (20031029): 5438126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5439126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5440126372Snjl Current Release: 5441126372Snjl Non-Debug Version: 74.8K Code, 10.1K Data, 84.9K Total 5442126372Snjl Debug Version: 158.7K Code, 65.1K Data, 223.8K Total 5443126372Snjl 5444126372Snjl2) iASL Compiler/Disassembler: 5445126372Snjl 5446126372SnjlImplemented a fix for the iASL disassembler where a bad index was 5447126372Snjlgenerated. This was most noticeable on 64-bit platforms 5448126372Snjl 5449126372Snjl 5450126372Snjl---------------------------------------- 5451126372Snjl29 October 2003. Summary of changes for version 20031029: 5452126372Snjl 5453126372Snjl1) ACPI CA Core Subsystem: 5454126372Snjl 5455167802Sjkim 5456126372SnjlFixed a problem where a level-triggered GPE with an associated 5457126372Snjl_Lxx control method was incorrectly cleared twice. 5458126372Snjl 5459126372SnjlFixed a problem with the Field support code where an access can 5460126372Snjloccur beyond the end-of-region if the field is non-aligned but 5461126372Snjlextends to the very end of the parent region (resulted in an 5462126372SnjlAE_AML_REGION_LIMIT exception.) 5463126372Snjl 5464126372SnjlFixed a problem with ACPI Fixed Events where an RT Clock handler 5465193267Sjkimwould not get invoked on an RTC event. The RTC event bitmasks for 5466126372Snjlthe PM1 registers were not being initialized properly. 5467126372Snjl 5468126372SnjlImplemented support for executing _STA and _INI methods for 5469126372SnjlProcessor objects. Although this is currently not part of the 5470193267SjkimACPI specification, there is existing ASL code that depends on the 5471126372Snjlinit-time execution of these methods. 5472126372Snjl 5473126372SnjlImplemented and deployed a GetDescriptorName function to decode 5474126372Snjlthe various types of internal descriptors. Guards against null 5475126372Snjldescriptors during debug output also. 5476126372Snjl 5477126372SnjlImplemented and deployed a GetNodeName function to extract the 4- 5478193267Sjkimcharacter namespace node name. This function simplifies the debug 5479193267Sjkimand error output, as well as guarding against null pointers during 5480126372Snjloutput. 5481126372Snjl 5482126372SnjlImplemented and deployed the ACPI_FORMAT_UINT64 helper macro to 5483126372Snjlsimplify the debug and error output of 64-bit integers. This 5484126372Snjlmacro replaces the HIDWORD and LODWORD macros for dumping these 5485126372Snjlintegers. 5486126372Snjl 5487126372SnjlUpdated the implementation of the Stall() operator to only call 5488126372SnjlAcpiOsStall(), and also return an error if the operand is larger 5489126372Snjlthan 255. This preserves the required behavior of not 5490126372Snjlrelinquishing the processor, as would happen if AcpiOsSleep() was 5491126372Snjlcalled for "long stalls". 5492126372Snjl 5493126372SnjlConstructs of the form "Store(LocalX,LocalX)" where LocalX is not 5494126372Snjlinitialized are now treated as NOOPs. 5495126372Snjl 5496126372SnjlCleaned up a handful of warnings during 64-bit generation. 5497126372Snjl 5498126372SnjlFixed a reported error where and incorrect GPE number was passed 5499126372Snjlto the GPE dispatch handler. This value is only used for error 5500193267Sjkimoutput, however. Used this opportunity to clean up and streamline 5501126372Snjlthe GPE dispatch code. 5502126372Snjl 5503126372SnjlCode and Data Size: Current and previous core subsystem library 5504126372Snjlsizes are shown below. These are the code and data sizes for the 5505126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5506126372Snjlthese values do not include any ACPI driver or OSPM code. The 5507167802Sjkim 5508126372Snjldebug version of the code includes the debug output trace 5509126372Snjlmechanism and has a much larger code and data size. Note that 5510193267Sjkimthese values will vary depending on the efficiency of the compiler 5511126372Snjland the compiler options used during generation. 5512126372Snjl 5513126372Snjl Previous Release (20031002): 5514126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5515126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5516126372Snjl Current Release: 5517126372Snjl Non-Debug Version: 74.4K Code, 10.1K Data, 84.5K Total 5518126372Snjl Debug Version: 158.3K Code, 65.0K Data, 223.3K Total 5519126372Snjl 5520126372Snjl 5521126372Snjl2) iASL Compiler/Disassembler: 5522126372Snjl 5523193267SjkimUpdated the iASL compiler to return an error if the operand to the 5524126372SnjlStall() operator is larger than 255. 5525126372Snjl 5526126372Snjl 5527126372Snjl---------------------------------------- 5528126372Snjl02 October 2003. Summary of changes for version 20031002: 5529126372Snjl 5530126372Snjl 5531126372Snjl1) ACPI CA Core Subsystem: 5532126372Snjl 5533126372SnjlFixed a problem with Index Fields where the index was not 5534126372Snjlincremented for fields that require multiple writes to the 5535126372Snjlindex/data registers (Fields that are wider than the data 5536126372Snjlregister.) 5537126372Snjl 5538126372SnjlFixed a problem with all Field objects where a write could go 5539126372Snjlbeyond the end-of-field if the field was larger than the access 5540193267Sjkimgranularity and therefore required multiple writes to complete the 5541126372Snjlrequest. An extra write beyond the end of the field could happen 5542126372Snjlinadvertently. 5543126372Snjl 5544126372SnjlFixed a problem with Index Fields where a BUFFER_OVERFLOW error 5545126372Snjlwould incorrectly be returned if the width of the Data Register 5546126372Snjlwas larger than the specified field access width. 5547126372Snjl 5548126372SnjlCompleted fixes for LoadTable() and Unload() and verified their 5549126372Snjloperation. Implemented full support for the "DdbHandle" object 5550126372Snjlthroughout the ACPI CA subsystem. 5551126372Snjl 5552126372SnjlImplemented full support for the MADT and ECDT tables in the ACPI 5553126372SnjlCA header files. Even though these tables are not directly 5554126372Snjlconsumed by ACPI CA, the header definitions are useful for ACPI 5555126372Snjldevice drivers. 5556126372Snjl 5557126372SnjlIntegrated resource descriptor fixes posted to the Linux ACPI 5558126372Snjllist. This included checks for minimum descriptor length, and 5559126372Snjlsupport for trailing NULL strings within descriptors that have 5560126372Snjloptional string elements. 5561126372Snjl 5562126372SnjlCode and Data Size: Current and previous core subsystem library 5563126372Snjlsizes are shown below. These are the code and data sizes for the 5564126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5565126372Snjlthese values do not include any ACPI driver or OSPM code. The 5566126372Snjldebug version of the code includes the debug output trace 5567126372Snjlmechanism and has a much larger code and data size. Note that 5568193267Sjkimthese values will vary depending on the efficiency of the compiler 5569126372Snjland the compiler options used during generation. 5570126372Snjl 5571126372Snjl Previous Release (20030918): 5572126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5573126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5574126372Snjl Current Release: 5575126372Snjl Non-Debug Version: 74.1K Code, 9.7K Data, 83.8K Total 5576126372Snjl Debug Version: 157.9K Code, 64.8K Data, 222.7K Total 5577126372Snjl 5578126372Snjl 5579126372Snjl2) iASL Compiler: 5580126372Snjl 5581126372SnjlImplemented detection of non-ASCII characters within the input 5582126372Snjlsource ASL file. This catches attempts to compile binary (AML) 5583126372Snjlfiles early in the compile, with an informative error message. 5584126372Snjl 5585126372SnjlFixed a problem where the disassembler would fault if the output 5586193267Sjkimfilename could not be generated or if the output file could not be 5587126372Snjlopened. 5588126372Snjl 5589126372Snjl---------------------------------------- 5590126372Snjl18 September 2003. Summary of changes for version 20030918: 5591126372Snjl 5592126372Snjl 5593126372Snjl1) ACPI CA Core Subsystem: 5594126372Snjl 5595126372SnjlFound and fixed a longstanding problem with the late execution of 5596126372Snjlthe various deferred AML opcodes (such as Operation Regions, 5597126372SnjlBuffer Fields, Buffers, and Packages). If the name string 5598126372Snjlspecified for the name of the new object placed the object in a 5599126372Snjlscope other than the current scope, the initialization/execution 5600126372Snjlof the opcode failed. The solution to this problem was to 5601126372Snjlimplement a mechanism where the late execution of such opcodes 5602126372Snjldoes not attempt to lookup/create the name a second time in an 5603126372Snjlincorrect scope. This fixes the "region size computed 5604126372Snjlincorrectly" problem. 5605126372Snjl 5606193267SjkimFixed a call to AcpiHwRegisterWrite in hwregs.c that was causing a 5607126372SnjlGlobal Lock AE_BAD_PARAMETER error. 5608126372Snjl 5609126372SnjlFixed several 64-bit issues with prototypes, casting and data 5610126372Snjltypes. 5611126372Snjl 5612126372SnjlRemoved duplicate prototype from acdisasm.h 5613126372Snjl 5614126372SnjlFixed an issue involving EC Operation Region Detach (Shaohua Li) 5615126372Snjl 5616126372SnjlCode and Data Size: Current and previous core subsystem library 5617126372Snjlsizes are shown below. These are the code and data sizes for the 5618126372Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5619126372Snjlthese values do not include any ACPI driver or OSPM code. The 5620126372Snjldebug version of the code includes the debug output trace 5621126372Snjlmechanism and has a much larger code and data size. Note that 5622193267Sjkimthese values will vary depending on the efficiency of the compiler 5623126372Snjland the compiler options used during generation. 5624126372Snjl 5625126372Snjl Previous Release: 5626167802Sjkim 5627126372Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5628126372Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5629126372Snjl Current Release: 5630126372Snjl Non-Debug Version: 73.9K Code, 9.7K Data, 83.6K Total 5631126372Snjl Debug Version: 157.3K Code, 64.5K Data, 221.8K Total 5632126372Snjl 5633126372Snjl 5634126372Snjl2) Linux: 5635126372Snjl 5636126372SnjlFixed the AcpiOsSleep implementation in osunixxf.c to pass the 5637126372Snjlcorrect sleep time in seconds. 5638126372Snjl 5639126372Snjl---------------------------------------- 5640126372Snjl14 July 2003. Summary of changes for version 20030619: 5641126372Snjl 5642126372Snjl1) ACPI CA Core Subsystem: 5643126372Snjl 5644126372SnjlParse SSDTs in order discovered, as opposed to reverse order 5645126372Snjl(Hrvoje Habjanic) 5646126372Snjl 5647126372SnjlFixes from FreeBSD and NetBSD. (Frank van der Linden, Thomas 5648126372SnjlKlausner, 5649126372Snjl Nate Lawson) 5650126372Snjl 5651126372Snjl 5652126372Snjl2) Linux: 5653126372Snjl 5654126372SnjlDynamically allocate SDT list (suggested by Andi Kleen) 5655126372Snjl 5656126372Snjlproc function return value cleanups (Andi Kleen) 5657126372Snjl 5658126372SnjlCorrectly handle NMI watchdog during long stalls (Andrew Morton) 5659126372Snjl 5660126372SnjlMake it so acpismp=force works (reported by Andrew Morton) 5661126372Snjl 5662126372Snjl 5663126372Snjl---------------------------------------- 5664117521Snjl19 June 2003. Summary of changes for version 20030619: 5665117521Snjl 5666117521Snjl1) ACPI CA Core Subsystem: 5667117521Snjl 5668193267SjkimFix To/FromBCD, eliminating the need for an arch-specific #define. 5669117521Snjl 5670117521SnjlDo not acquire a semaphore in the S5 shutdown path. 5671117521Snjl 5672117521SnjlFix ex_digits_needed for 0. (Takayoshi Kochi) 5673117521Snjl 5674117521SnjlFix sleep/stall code reversal. (Andi Kleen) 5675117521Snjl 5676117521SnjlRevert a change having to do with control method calling 5677117521Snjlsemantics. 5678117521Snjl 5679117521Snjl2) Linux: 5680117521Snjl 5681117521Snjlacpiphp update (Takayoshi Kochi) 5682117521Snjl 5683117521SnjlExport acpi_disabled for sonypi (Stelian Pop) 5684117521Snjl 5685117521SnjlMention acpismp=force in config help 5686117521Snjl 5687117521SnjlRe-add acpitable.c and acpismp=force. This improves backwards 5688167802Sjkim 5689193267Sjkimcompatibility and also cleans up the code to a significant degree. 5690117521Snjl 5691117521SnjlAdd ASUS Value-add driver (Karol Kozimor and Julien Lerouge) 5692117521Snjl 5693117521Snjl---------------------------------------- 5694117521Snjl22 May 2003. Summary of changes for version 20030522: 5695117521Snjl 5696117521Snjl1) ACPI CA Core Subsystem: 5697117521Snjl 5698117521SnjlFound and fixed a reported problem where an AE_NOT_FOUND error 5699117521Snjloccurred occasionally during _BST evaluation. This turned out to 5700117521Snjlbe an Owner ID allocation issue where a called method did not get 5701193267Sjkima new ID assigned to it. Eventually, (after 64k calls), the Owner 5702193267SjkimID UINT16 would wraparound so that the ID would be the same as the 5703126372Snjlcaller's and the called method would delete the caller's 5704117521Snjlnamespace. 5705117521Snjl 5706117521SnjlImplemented extended error reporting for control methods that are 5707117521Snjlaborted due to a run-time exception. Output includes the exact 5708193267SjkimAML instruction that caused the method abort, a dump of the method 5709126372Snjllocals and arguments at the time of the abort, and a trace of all 5710126372Snjlnested control method calls. 5711117521Snjl 5712117521SnjlModified the interpreter to allow the creation of buffers of zero 5713117521Snjllength from the AML code. Implemented new code to ensure that no 5714117521Snjlattempt is made to actually allocate a memory buffer (of length 5715193267Sjkimzero) - instead, a simple buffer object with a NULL buffer pointer 5716126372Snjland length zero is created. A warning is no longer issued when 5717126372Snjlthe AML attempts to create a zero-length buffer. 5718117521Snjl 5719117521SnjlImplemented a workaround for the "leading asterisk issue" in 5720117521Snjl_HIDs, _UIDs, and _CIDs in the AML interpreter. One leading 5721117521Snjlasterisk is automatically removed if present in any HID, UID, or 5722117521SnjlCID strings. The iASL compiler will still flag this asterisk as 5723117521Snjlan error, however. 5724117521Snjl 5725193267SjkimImplemented full support for _CID methods that return a package of 5726193267Sjkimmultiple CIDs (Compatible IDs). The AcpiGetObjectInfo() interface 5727126372Snjlnow additionally returns a device _CID list if present. This 5728126372Snjlrequired a change to the external interface in order to pass an 5729126372SnjlACPI_BUFFER object as a parameter since the _CID list is of 5730117521Snjlvariable length. 5731117521Snjl 5732117521SnjlFixed a problem with the new AE_SAME_HANDLER exception where 5733117521Snjlhandler initialization code did not know about this exception. 5734117521Snjl 5735117521SnjlCode and Data Size: Current and previous core subsystem library 5736117521Snjlsizes are shown below. These are the code and data sizes for the 5737117521Snjlacpica.lib produced by the Microsoft Visual C++ 6.0 compiler, and 5738117521Snjlthese values do not include any ACPI driver or OSPM code. The 5739117521Snjldebug version of the code includes the debug output trace 5740117521Snjlmechanism and has a much larger code and data size. Note that 5741193267Sjkimthese values will vary depending on the efficiency of the compiler 5742126372Snjland the compiler options used during generation. 5743117521Snjl 5744117521Snjl Previous Release (20030509): 5745117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5746117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5747117521Snjl Current Release: 5748117521Snjl Non-Debug Version: 73.7K Code, 9.7K Data, 83.4K Total 5749117521Snjl Debug Version: 156.9K Code, 64.2K Data, 221.1K Total 5750117521Snjl 5751117521Snjl 5752117521Snjl2) Linux: 5753117521Snjl 5754117521SnjlFixed a bug in which we would reinitialize the ACPI interrupt 5755193267Sjkimafter it was already working, thus disabling all ACPI and the IRQs 5756126372Snjlfor any other device sharing the interrupt. (Thanks to Stian 5757117521SnjlJordet) 5758117521Snjl 5759117521SnjlToshiba driver update (John Belmonte) 5760117521Snjl 5761117521SnjlReturn only 0 or 1 for our interrupt handler status (Andrew 5762117521SnjlMorton) 5763117521Snjl 5764117521Snjl 5765117521Snjl3) iASL Compiler: 5766117521Snjl 5767117521SnjlFixed a reported problem where multiple (nested) ElseIf() 5768117521Snjlstatements were not handled correctly by the compiler, resulting 5769117521Snjlin incorrect warnings and incorrect AML code. This was a problem 5770117521Snjlin both the ASL parser and the code generator. 5771117521Snjl 5772117521Snjl 5773117521Snjl4) Documentation: 5774117521Snjl 5775193267SjkimAdded changes to existing interfaces, new exception codes, and new 5776126372Snjltext concerning reference count object management versus garbage 5777126372Snjlcollection. 5778117521Snjl 5779117521Snjl---------------------------------------- 5780117521Snjl09 May 2003. Summary of changes for version 20030509. 5781117521Snjl 5782117521Snjl 5783117521Snjl1) ACPI CA Core Subsystem: 5784117521Snjl 5785117521SnjlChanged the subsystem initialization sequence to hold off 5786193267Sjkiminstallation of address space handlers until the hardware has been 5787193267Sjkiminitialized and the system has entered ACPI mode. This is because 5788126372Snjlthe installation of space handlers can cause _REG methods to be 5789193267Sjkimrun. Previously, the _REG methods could potentially be run before 5790126372SnjlACPI mode was enabled. 5791117521Snjl 5792193267SjkimFixed some memory leak issues related to address space handler and 5793126372Snjlnotify handler installation. There were some problems with the 5794126372Snjlreference count mechanism caused by the fact that the handler 5795117521Snjlobjects are shared across several namespace objects. 5796117521Snjl 5797117521SnjlFixed a reported problem where reference counts within the 5798117521Snjlnamespace were not properly updated when named objects created by 5799117521Snjlmethod execution were deleted. 5800117521Snjl 5801117521SnjlFixed a reported problem where multiple SSDTs caused a deletion 5802117521Snjlissue during subsystem termination. Restructured the table data 5803117521Snjlstructures to simplify the linked lists and the related code. 5804117521Snjl 5805117521SnjlFixed a problem where the table ID associated with secondary 5806193267Sjkimtables (SSDTs) was not being propagated into the namespace objects 5807126372Snjlcreated by those tables. This would only present a problem for 5808126372Snjltables that are unloaded at run-time, however. 5809117521Snjl 5810117521SnjlUpdated AcpiOsReadable and AcpiOsWritable to use the ACPI_SIZE 5811117521Snjltype as the length parameter (instead of UINT32). 5812117521Snjl 5813117521SnjlSolved a long-standing problem where an ALREADY_EXISTS error 5814117521Snjlappears on various systems. This problem could happen when there 5815117521Snjlare multiple PCI_Config operation regions under a single PCI root 5816117521Snjlbus. This doesn't happen very frequently, but there are some 5817117521Snjlsystems that do this in the ASL. 5818117521Snjl 5819117521SnjlFixed a reported problem where the internal DeleteNode function 5820117521Snjlwas incorrectly handling the case where a namespace node was the 5821117521Snjlfirst in the parent's child list, and had additional peers (not 5822117521Snjlthe only child, but first in the list of children.) 5823117521Snjl 5824193267SjkimCode and Data Size: Current core subsystem library sizes are shown 5825126372Snjlbelow. These are the code and data sizes for the acpica.lib 5826126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 5827126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 5828126372Snjlversion of the code includes the debug output trace mechanism and 5829193267Sjkimhas a much larger code and data size. Note that these values will 5830126372Snjlvary depending on the efficiency of the compiler and the compiler 5831126372Snjloptions used during generation. 5832117521Snjl 5833117521Snjl Previous Release 5834117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 5835117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 5836117521Snjl Current Release: 5837117521Snjl Non-Debug Version: 73.4K Code, 9.7K Data, 83.1K Total 5838117521Snjl Debug Version: 156.1K Code, 63.9K Data, 220.0K Total 5839117521Snjl 5840117521Snjl 5841117521Snjl2) Linux: 5842117521Snjl 5843117521SnjlAllow ":" in OS override string (Ducrot Bruno) 5844117521Snjl 5845117521SnjlKobject fix (Greg KH) 5846117521Snjl 5847117521Snjl 5848117521Snjl3 iASL Compiler/Disassembler: 5849117521Snjl 5850117521SnjlFixed a problem in the generation of the C source code files (AML 5851117521Snjlis emitted in C source statements for BIOS inclusion) where the 5852193267SjkimAscii dump that appears within a C comment at the end of each line 5853126372Snjlcould cause a compile time error if the AML sequence happens to 5854126372Snjlhave an open comment or close comment sequence embedded. 5855117521Snjl 5856117521Snjl 5857117521Snjl---------------------------------------- 5858117521Snjl24 April 2003. Summary of changes for version 20030424. 5859117521Snjl 5860117521Snjl 5861117521Snjl1) ACPI CA Core Subsystem: 5862117521Snjl 5863117521SnjlSupport for big-endian systems has been implemented. Most of the 5864193267Sjkimsupport has been invisibly added behind big-endian versions of the 5865126372SnjlACPI_MOVE_* macros. 5866117521Snjl 5867117521SnjlFixed a problem in AcpiHwDisableGpeBlock() and 5868117521SnjlAcpiHwClearGpeBlock() where an incorrect offset was passed to the 5869117521Snjllow level hardware write routine. The offset parameter was 5870193267Sjkimactually eliminated from the low level read/write routines because 5871126372Snjlthey had become obsolete. 5872117521Snjl 5873117521SnjlFixed a problem where a handler object was deleted twice during 5874117521Snjlthe removal of a fixed event handler. 5875117521Snjl 5876117521Snjl 5877117521Snjl2) Linux: 5878117521Snjl 5879117521SnjlA fix for SMP systems with link devices was contributed by 5880167802Sjkim 5881117521SnjlCompaq's Dan Zink. 5882117521Snjl 5883117521Snjl(2.5) Return whether we handled the interrupt in our IRQ handler. 5884193267Sjkim(Linux ISRs no longer return void, so we can propagate the handler 5885126372Snjlreturn value from the ACPI CA core back to the OS.) 5886117521Snjl 5887117521Snjl 5888167802Sjkim 5889117521Snjl3) Documentation: 5890117521Snjl 5891117521SnjlThe ACPI CA Programmer Reference has been updated to reflect new 5892117521Snjlinterfaces and changes to existing interfaces. 5893117521Snjl 5894117521Snjl---------------------------------------- 5895117521Snjl28 March 2003. Summary of changes for version 20030328. 5896117521Snjl 5897117521Snjl1) ACPI CA Core Subsystem: 5898117521Snjl 5899117521SnjlThe GPE Block Device support has been completed. New interfaces 5900117521Snjlare AcpiInstallGpeBlock and AcpiRemoveGpeBlock. The Event 5901117521Snjlinterfaces (enable, disable, clear, getstatus) have been split 5902117521Snjlinto separate interfaces for Fixed Events and General Purpose 5903117521SnjlEvents (GPEs) in order to support GPE Block Devices properly. 5904117521Snjl 5905117521SnjlFixed a problem where the error message "Failed to acquire 5906117521Snjlsemaphore" would appear during operations on the embedded 5907117521Snjlcontroller (EC). 5908117521Snjl 5909193267SjkimCode and Data Size: Current core subsystem library sizes are shown 5910126372Snjlbelow. These are the code and data sizes for the acpica.lib 5911126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 5912126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 5913126372Snjlversion of the code includes the debug output trace mechanism and 5914193267Sjkimhas a much larger code and data size. Note that these values will 5915126372Snjlvary depending on the efficiency of the compiler and the compiler 5916126372Snjloptions used during generation. 5917117521Snjl 5918117521Snjl Previous Release 5919117521Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 5920117521Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 5921117521Snjl Current Release: 5922117521Snjl Non-Debug Version: 73.7K Code, 9.5K Data, 83.2K Total 5923117521Snjl Debug Version: 156.1K Code, 63.6K Data, 219.7K Total 5924117521Snjl 5925117521Snjl 5926117521Snjl---------------------------------------- 5927114237Snjl28 February 2003. Summary of changes for version 20030228. 5928114237Snjl 5929114237Snjl 5930114237Snjl1) ACPI CA Core Subsystem: 5931114237Snjl 5932114237SnjlThe GPE handling and dispatch code has been completely overhauled 5933114237Snjlin preparation for support of GPE Block Devices (ID ACPI0006). 5934114237SnjlThis affects internal data structures and code only; there should 5935114237Snjlbe no differences visible externally. One new file has been 5936114237Snjladded, evgpeblk.c 5937114237Snjl 5938114237SnjlThe FADT fields GPE0_BLK_LEN and GPE1_BLK_LEN are now the only 5939114237Snjlfields that are used to determine the GPE block lengths. The 5940114237SnjlREGISTER_BIT_WIDTH field of the X_GPEx_BLK extended address 5941193267Sjkimstructures are ignored. This is per the ACPI specification but it 5942126372Snjlisn't very clear. The full 256 Block 0/1 GPEs are now supported 5943193267Sjkim(the use of REGISTER_BIT_WIDTH limited the number of GPEs to 128). 5944114237Snjl 5945114237SnjlIn the SCI interrupt handler, removed the read of the PM1_CONTROL 5946114237Snjlregister to look at the SCI_EN bit. On some machines, this read 5947114237Snjlcauses an SMI event and greatly slows down SCI events. (This may 5948114237Snjlin fact be the cause of slow battery status response on some 5949114237Snjlsystems.) 5950114237Snjl 5951193267SjkimFixed a problem where a store of a NULL string to a package object 5952126372Snjlcould cause the premature deletion of the object. This was seen 5953126372Snjlduring execution of the battery _BIF method on some systems, 5954126372Snjlresulting in no battery data being returned. 5955114237Snjl 5956114237SnjlAdded AcpiWalkResources interface to simplify parsing of resource 5957114237Snjllists. 5958114237Snjl 5959193267SjkimCode and Data Size: Current core subsystem library sizes are shown 5960126372Snjlbelow. These are the code and data sizes for the acpica.lib 5961126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 5962126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 5963126372Snjlversion of the code includes the debug output trace mechanism and 5964193267Sjkimhas a much larger code and data size. Note that these values will 5965126372Snjlvary depending on the efficiency of the compiler and the compiler 5966126372Snjloptions used during generation. 5967114237Snjl 5968114237Snjl Previous Release 5969114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 5970114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 5971114237Snjl Current Release: 5972114237Snjl Non-Debug Version: 72.3K Code, 9.5K Data, 81.8K Total 5973114237Snjl Debug Version: 154.0K Code, 63.4K Data, 217.4K Total 5974114237Snjl 5975114237Snjl 5976114237Snjl2) Linux 5977114237Snjl 5978114237SnjlS3 fixes (Ole Rohne) 5979114237Snjl 5980114237SnjlUpdate ACPI PHP driver with to use new acpi_walk_resource API 5981114237Snjl(Bjorn Helgaas) 5982114237Snjl 5983114237SnjlAdd S4BIOS support (Pavel Machek) 5984114237Snjl 5985114237SnjlMap in entire table before performing checksum (John Stultz) 5986114237Snjl 5987193267SjkimExpand the mem= cmdline to allow the specification of reserved and 5988126372SnjlACPI DATA blocks (Pavel Machek) 5989114237Snjl 5990114237SnjlNever use ACPI on VISWS 5991114237Snjl 5992114237SnjlFix derive_pci_id (Ducrot Bruno, Alvaro Lopez) 5993114237Snjl 5994114237SnjlRevert a change that allowed P_BLK lengths to be 4 or 5. This is 5995114237Snjlcausing us to think that some systems support C2 when they really 5996114237Snjldon't. 5997114237Snjl 5998114237SnjlDo not count processor objects for non-present CPUs (Thanks to 5999114237SnjlDominik Brodowski) 6000114237Snjl 6001114237Snjl 6002114237Snjl3) iASL Compiler: 6003114237Snjl 6004114237SnjlFixed a problem where ASL include files could not be found and 6005114237Snjlopened. 6006114237Snjl 6007114237SnjlAdded support for the _PDC reserved name. 6008114237Snjl 6009114237Snjl 6010117521Snjl---------------------------------------- 6011114237Snjl22 January 2003. Summary of changes for version 20030122. 6012114237Snjl 6013114237Snjl 6014114237Snjl1) ACPI CA Core Subsystem: 6015114237Snjl 6016114237SnjlAdded a check for constructs of the form: Store (Local0, Local0) 6017114237Snjlwhere Local0 is not initialized. Apparently, some BIOS 6018193267Sjkimprogrammers believe that this is a NOOP. Since this store doesn't 6019126372Snjldo anything anyway, the new prototype behavior will ignore this 6020126372Snjlerror. This is a case where we can relax the strict checking in 6021126372Snjlthe interpreter in the name of compatibility. 6022114237Snjl 6023114237Snjl 6024114237Snjl2) Linux 6025114237Snjl 6026114237SnjlThe AcpiSrc Source Conversion Utility has been released with the 6027114237SnjlLinux package for the first time. This is the utility that is 6028193267Sjkimused to convert the ACPI CA base source code to the Linux version. 6029114237Snjl 6030114237Snjl(Both) Handle P_BLK lengths shorter than 6 more gracefully 6031114237Snjl 6032114237Snjl(Both) Move more headers to include/acpi, and delete an unused 6033114237Snjlheader. 6034114237Snjl 6035114237Snjl(Both) Move drivers/acpi/include directory to include/acpi 6036114237Snjl 6037114237Snjl(Both) Boot functions don't use cmdline, so don't pass it around 6038114237Snjl 6039114237Snjl(Both) Remove include of unused header (Adrian Bunk) 6040114237Snjl 6041114237Snjl(Both) acpiphp.h includes both linux/acpi.h and acpi_bus.h. Since 6042114237Snjlthe 6043193267Sjkimformer now also includes the latter, acpiphp.h only needs the one, 6044126372Snjlnow. 6045114237Snjl 6046193267Sjkim(2.5) Make it possible to select method of bios restoring after S3 6047114237Snjlresume. [=> no more ugly ifdefs] (Pavel Machek) 6048114237Snjl 6049114237Snjl(2.5) Make proc write interfaces work (Pavel Machek) 6050114237Snjl 6051114237Snjl(2.5) Properly init/clean up in cpufreq/acpi (Dominik Brodowski) 6052114237Snjl 6053114237Snjl(2.5) Break out ACPI Perf code into its own module, under cpufreq 6054114237Snjl(Dominik Brodowski) 6055114237Snjl 6056114237Snjl(2.4) S4BIOS support (Ducrot Bruno) 6057114237Snjl 6058114237Snjl(2.4) Fix acpiphp_glue.c for latest ACPI struct changes (Sergio 6059114237SnjlVisinoni) 6060114237Snjl 6061114237Snjl 6062114237Snjl3) iASL Compiler: 6063114237Snjl 6064114237SnjlAdded support to disassemble SSDT and PSDTs. 6065114237Snjl 6066114237SnjlImplemented support to obtain SSDTs from the Windows registry if 6067114237Snjlavailable. 6068114237Snjl 6069114237Snjl 6070102550Siwasaki---------------------------------------- 6071114237Snjl09 January 2003. Summary of changes for version 20030109. 6072114237Snjl 6073114237Snjl1) ACPI CA Core Subsystem: 6074114237Snjl 6075114237SnjlChanged the behavior of the internal Buffer-to-String conversion 6076193267Sjkimfunction. The current ACPI specification states that the contents 6077126372Snjlof the buffer are "converted to a string of two-character 6078126372Snjlhexadecimal numbers, each separated by a space". Unfortunately, 6079193267Sjkimthis definition is not backwards compatible with existing ACPI 1.0 6080193267Sjkimimplementations (although the behavior was not defined in the ACPI 6081126372Snjl1.0 specification). The new behavior simply copies data from the 6082193267Sjkimbuffer to the string until a null character is found or the end of 6083126372Snjlthe buffer is reached. The new String object is always null 6084126372Snjlterminated. This problem was seen during the generation of _BIF 6085126372Snjlbattery data where incorrect strings were returned for battery 6086126372Snjltype, etc. This will also require an errata to the ACPI 6087126372Snjlspecification. 6088114237Snjl 6089114237SnjlRenamed all instances of NATIVE_UINT and NATIVE_INT to 6090114237SnjlACPI_NATIVE_UINT and ACPI_NATIVE_INT, respectively. 6091114237Snjl 6092114237SnjlCopyright in all module headers (both Linux and non-Linux) has be 6093114237Snjlupdated to 2003. 6094114237Snjl 6095193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6096126372Snjlbelow. These are the code and data sizes for the acpica.lib 6097126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6098126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6099126372Snjlversion of the code includes the debug output trace mechanism and 6100193267Sjkimhas a much larger code and data size. Note that these values will 6101126372Snjlvary depending on the efficiency of the compiler and the compiler 6102126372Snjloptions used during generation. 6103114237Snjl 6104114237Snjl Previous Release 6105114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6106114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6107114237Snjl Current Release: 6108114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6109114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6110114237Snjl 6111114237Snjl 6112114237Snjl2) Linux 6113114237Snjl 6114114237SnjlFixed an oops on module insertion/removal (Matthew Tippett) 6115114237Snjl 6116114237Snjl(2.4) Fix to handle dynamic size of mp_irqs (Joerg Prante) 6117114237Snjl 6118114237Snjl(2.5) Replace pr_debug (Randy Dunlap) 6119114237Snjl 6120114237Snjl(2.5) Remove usage of CPUFREQ_ALL_CPUS (Dominik Brodowski) 6121114237Snjl 6122114237Snjl(Both) Eliminate spawning of thread from timer callback, in favor 6123114237Snjlof schedule_work() 6124114237Snjl 6125114237Snjl(Both) Show Lid status in /proc (Zdenek OGAR Skalak) 6126114237Snjl 6127114237Snjl(Both) Added define for Fixed Function HW region (Matthew Wilcox) 6128114237Snjl 6129114237Snjl(Both) Add missing statics to button.c (Pavel Machek) 6130114237Snjl 6131114237SnjlSeveral changes have been made to the source code translation 6132114237Snjlutility that generates the Linux Code in order to make the code 6133114237Snjlmore "Linux-like": 6134114237Snjl 6135114237SnjlAll typedefs on structs and unions have been removed in keeping 6136114237Snjlwith the Linux coding style. 6137114237Snjl 6138114237SnjlRemoved the non-Linux SourceSafe module revision number from each 6139114237Snjlmodule header. 6140114237Snjl 6141114237SnjlCompleted major overhaul of symbols to be lowercased for linux. 6142114237SnjlDoubled the number of symbols that are lowercased. 6143114237Snjl 6144114237SnjlFixed a problem where identifiers within procedure headers and 6145114237Snjlwithin quotes were not fully lower cased (they were left with a 6146114237Snjlstarting capital.) 6147114237Snjl 6148114237SnjlSome C macros whose only purpose is to allow the generation of 16- 6149114237Snjlbit code are now completely removed in the Linux code, increasing 6150114237Snjlreadability and maintainability. 6151114237Snjl 6152114237Snjl---------------------------------------- 6153114237Snjl 6154114237Snjl12 December 2002. Summary of changes for version 20021212. 6155114237Snjl 6156114237Snjl 6157114237Snjl1) ACPI CA Core Subsystem: 6158114237Snjl 6159114237SnjlFixed a problem where the creation of a zero-length AML Buffer 6160114237Snjlwould cause a fault. 6161114237Snjl 6162193267SjkimFixed a problem where a Buffer object that pointed to a static AML 6163126372Snjlbuffer (in an ACPI table) could inadvertently be deleted, causing 6164126372Snjlmemory corruption. 6165114237Snjl 6166114237SnjlFixed a problem where a user buffer (passed in to the external 6167114237SnjlACPI CA interfaces) could be overwritten if the buffer was too 6168114237Snjlsmall to complete the operation, causing memory corruption. 6169114237Snjl 6170114237SnjlFixed a problem in the Buffer-to-String conversion code where a 6171114237Snjlstring of length one was always returned, regardless of the size 6172114237Snjlof the input Buffer object. 6173114237Snjl 6174114237SnjlRemoved the NATIVE_CHAR data type across the entire source due to 6175114237Snjllack of need and lack of consistent use. 6176114237Snjl 6177193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6178126372Snjlbelow. These are the code and data sizes for the acpica.lib 6179126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6180126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6181126372Snjlversion of the code includes the debug output trace mechanism and 6182193267Sjkimhas a much larger code and data size. Note that these values will 6183126372Snjlvary depending on the efficiency of the compiler and the compiler 6184126372Snjloptions used during generation. 6185114237Snjl 6186114237Snjl Previous Release 6187114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6188114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6189114237Snjl Current Release: 6190114237Snjl Non-Debug Version: 72.0K Code, 9.5K Data, 81.5K Total 6191114237Snjl Debug Version: 153.0K Code, 62.9K Data, 215.9K Total 6192114237Snjl 6193114237Snjl 6194114237Snjl---------------------------------------- 6195114237Snjl05 December 2002. Summary of changes for version 20021205. 6196114237Snjl 6197114237Snjl1) ACPI CA Core Subsystem: 6198114237Snjl 6199114237SnjlFixed a problem where a store to a String or Buffer object could 6200114237Snjlcause corruption of the DSDT if the object type being stored was 6201114237Snjlthe same as the target object type and the length of the object 6202114237Snjlbeing stored was equal to or smaller than the original (existing) 6203114237Snjltarget object. This was seen to cause corruption of battery _BIF 6204114237Snjlbuffers if the _BIF method modified the buffer on the fly. 6205114237Snjl 6206193267SjkimFixed a problem where an internal error was generated if a control 6207126372Snjlmethod invocation was used in an OperationRegion, Buffer, or 6208126372SnjlPackage declaration. This was caused by the deferred parsing of 6209126372Snjlthe control method and thus the deferred creation of the internal 6210126372Snjlmethod object. The solution to this problem was to create the 6211126372Snjlinternal method object at the moment the method is encountered in 6212126372Snjlthe first pass - so that subsequent references to the method will 6213126372Snjlable to obtain the required parameter count and thus properly 6214126372Snjlparse the method invocation. This problem presented itself as an 6215126372SnjlAE_AML_INTERNAL during the pass 1 parse phase during table load. 6216114237Snjl 6217114237SnjlFixed a problem where the internal String object copy routine did 6218193267Sjkimnot always allocate sufficient memory for the target String object 6219126372Snjland caused memory corruption. This problem was seen to cause 6220126372Snjl"Allocation already present in list!" errors as memory allocation 6221126372Snjlbecame corrupted. 6222114237Snjl 6223193267SjkimImplemented a new function for the evaluation of namespace objects 6224126372Snjlthat allows the specification of the allowable return object 6225126372Snjltypes. This simplifies a lot of code that checks for a return 6226126372Snjlobject of one or more specific objects returned from the 6227114237Snjlevaluation (such as _STA, etc.) This may become and external 6228114237Snjlfunction if it would be useful to ACPI-related drivers. 6229114237Snjl 6230114237SnjlCompleted another round of prefixing #defines with "ACPI_" for 6231114237Snjlclarity. 6232114237Snjl 6233114237SnjlCompleted additional code restructuring to allow more modular 6234114237Snjllinking for iASL compiler and AcpiExec. Several files were split 6235114237Snjlcreating new files. New files: nsparse.c dsinit.c evgpe.c 6236114237Snjl 6237114237SnjlImplemented an abort mechanism to terminate an executing control 6238193267Sjkimmethod via the AML debugger. This feature is useful for debugging 6239126372Snjlcontrol methods that depend (wait) for specific hardware 6240126372Snjlresponses. 6241114237Snjl 6242193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6243126372Snjlbelow. These are the code and data sizes for the acpica.lib 6244126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6245126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6246126372Snjlversion of the code includes the debug output trace mechanism and 6247193267Sjkimhas a much larger code and data size. Note that these values will 6248126372Snjlvary depending on the efficiency of the compiler and the compiler 6249126372Snjloptions used during generation. 6250114237Snjl 6251114237Snjl Previous Release 6252114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6253114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6254114237Snjl Current Release: 6255114237Snjl Non-Debug Version: 72.1K Code, 9.5K Data, 81.6K Total 6256114237Snjl Debug Version: 152.7K Code, 62.7K Data, 215.4K Total 6257114237Snjl 6258114237Snjl 6259114237Snjl2) iASL Compiler/Disassembler 6260114237Snjl 6261114237SnjlFixed a compiler code generation problem for "Interrupt" Resource 6262114237SnjlDescriptors. If specified in the ASL, the optional "Resource 6263114237SnjlSource Index" and "Resource Source" fields were not inserted into 6264114237Snjlthe correct location within the AML resource descriptor, creating 6265114237Snjlan invalid descriptor. 6266114237Snjl 6267193267SjkimFixed a disassembler problem for "Interrupt" resource descriptors. 6268126372SnjlThe optional "Resource Source Index" and "Resource Source" fields 6269126372Snjlwere ignored. 6270114237Snjl 6271114237Snjl 6272114237Snjl---------------------------------------- 6273114237Snjl22 November 2002. Summary of changes for version 20021122. 6274114237Snjl 6275114237Snjl 6276114237Snjl1) ACPI CA Core Subsystem: 6277114237Snjl 6278114237SnjlFixed a reported problem where an object stored to a Method Local 6279114237Snjlor Arg was not copied to a new object during the store - the 6280114237Snjlobject pointer was simply copied to the Local/Arg. This caused 6281114237Snjlall subsequent operations on the Local/Arg to also affect the 6282114237Snjloriginal source of the store operation. 6283114237Snjl 6284114237SnjlFixed a problem where a store operation to a Method Local or Arg 6285114237Snjlwas not completed properly if the Local/Arg contained a reference 6286114237Snjl(from RefOf) to a named field. The general-purpose store-to- 6287114237Snjlnamespace-node code is now used so that this case is handled 6288114237Snjlautomatically. 6289114237Snjl 6290193267SjkimFixed a problem where the internal object copy routine would cause 6291126372Snjla protection fault if the object being copied was a Package and 6292126372Snjlcontained either 1) a NULL package element or 2) a nested sub- 6293114237Snjlpackage. 6294114237Snjl 6295114237SnjlFixed a problem with the GPE initialization that resulted from an 6296114237Snjlambiguity in the ACPI specification. One section of the 6297114237Snjlspecification states that both the address and length of the GPE 6298193267Sjkimblock must be zero if the block is not supported. Another section 6299126372Snjlimplies that only the address need be zero if the block is not 6300193267Sjkimsupported. The code has been changed so that both the address and 6301126372Snjlthe length must be non-zero to indicate a valid GPE block (i.e., 6302126372Snjlif either the address or the length is zero, the GPE block is 6303126372Snjlinvalid.) 6304114237Snjl 6305193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6306126372Snjlbelow. These are the code and data sizes for the acpica.lib 6307126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6308126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6309126372Snjlversion of the code includes the debug output trace mechanism and 6310193267Sjkimhas a much larger code and data size. Note that these values will 6311126372Snjlvary depending on the efficiency of the compiler and the compiler 6312126372Snjloptions used during generation. 6313114237Snjl 6314114237Snjl Previous Release 6315114237Snjl Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6316114237Snjl Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6317114237Snjl Current Release: 6318114237Snjl Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6319114237Snjl Debug Version: 152.9K Code, 63.3K Data, 216.2K Total 6320114237Snjl 6321114237Snjl 6322114237Snjl2) Linux 6323114237Snjl 6324114237SnjlCleaned up EC driver. Exported an external EC read/write 6325114237Snjlinterface. By going through this, other drivers (most notably 6326114237Snjlsonypi) will be able to serialize access to the EC. 6327114237Snjl 6328114237Snjl 6329114237Snjl3) iASL Compiler/Disassembler 6330114237Snjl 6331114237SnjlImplemented support to optionally generate include files for both 6332114237SnjlASM and C (the -i switch). This simplifies BIOS development by 6333114237Snjlautomatically creating include files that contain external 6334114237Snjldeclarations for the symbols that are created within the 6335167802Sjkim 6336114237Snjl(optionally generated) ASM and C AML source files. 6337114237Snjl 6338114237Snjl 6339114237Snjl---------------------------------------- 6340107325Siwasaki15 November 2002. Summary of changes for version 20021115. 6341104470Siwasaki 6342107325Siwasaki1) ACPI CA Core Subsystem: 6343107325Siwasaki 6344114237SnjlFixed a memory leak problem where an error during resolution of 6345167802Sjkim 6346114237Snjlmethod arguments during a method invocation from another method 6347114237Snjlfailed to cleanup properly by deleting all successfully resolved 6348114237Snjlargument objects. 6349107325Siwasaki 6350114237SnjlFixed a problem where the target of the Index() operator was not 6351114237Snjlcorrectly constructed if the source object was a package. This 6352114237Snjlproblem has not been detected because the use of a target operand 6353114237Snjlwith Index() is very rare. 6354107325Siwasaki 6355107325SiwasakiFixed a problem with the Index() operator where an attempt was 6356107325Siwasakimade to delete the operand objects twice. 6357107325Siwasaki 6358107325SiwasakiFixed a problem where an attempt was made to delete an operand 6359114237Snjltwice during execution of the CondRefOf() operator if the target 6360114237Snjldid not exist. 6361107325Siwasaki 6362114237SnjlImplemented the first of perhaps several internal create object 6363193267Sjkimfunctions that create and initialize a specific object type. This 6364126372Snjlconsolidates duplicated code wherever the object is created, thus 6365126372Snjlshrinking the size of the subsystem. 6366107325Siwasaki 6367114237SnjlImplemented improved debug/error messages for errors that occur 6368114237Snjlduring nested method invocations. All executing method pathnames 6369193267Sjkimare displayed (with the error) as the call stack is unwound - thus 6370126372Snjlsimplifying debug. 6371107325Siwasaki 6372107325SiwasakiFixed a problem introduced in the 10/02 release that caused 6373114237Snjlpremature deletion of a buffer object if a buffer was used as an 6374114237SnjlASL operand where an integer operand is required (Thus causing an 6375193267Sjkimimplicit object conversion from Buffer to Integer.) The change in 6376126372Snjlthe 10/02 release was attempting to fix a memory leak (albeit 6377114237Snjlincorrectly.) 6378107325Siwasaki 6379193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6380126372Snjlbelow. These are the code and data sizes for the acpica.lib 6381126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6382126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6383126372Snjlversion of the code includes the debug output trace mechanism and 6384193267Sjkimhas a much larger code and data size. Note that these values will 6385126372Snjlvary depending on the efficiency of the compiler and the compiler 6386126372Snjloptions used during generation. 6387107325Siwasaki 6388107325Siwasaki Previous Release 6389107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6390107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6391107325Siwasaki Current Release: 6392107325Siwasaki Non-Debug Version: 71.3K Code, 9.0K Data, 80.3K Total 6393107325Siwasaki Debug Version: 152.7K Code, 63.2K Data, 215.5K Total 6394107325Siwasaki 6395107325Siwasaki 6396107325Siwasaki2) Linux 6397107325Siwasaki 6398114237SnjlChanged the implementation of the ACPI semaphores to use down() 6399114237Snjlinstead of down_interruptable(). It is important that the 6400114237Snjlexecution of ACPI control methods not be interrupted by signals. 6401114237SnjlMethods must run to completion, or the system may be left in an 6402114237Snjlunknown/unstable state. 6403107325Siwasaki 6404193267SjkimFixed a compilation error when CONFIG_SOFTWARE_SUSPEND is not set. 6405126372Snjl(Shawn Starr) 6406107325Siwasaki 6407107325Siwasaki 6408107325Siwasaki3) iASL Compiler/Disassembler 6409107325Siwasaki 6410107325Siwasaki 6411114237SnjlChanged the default location of output files. All output files 6412114237Snjlare now placed in the current directory by default instead of in 6413114237Snjlthe directory of the source file. This change may affect some 6414114237Snjlexisting makefiles, but it brings the behavior of the compiler in 6415114237Snjlline with other similar tools. The location of the output files 6416114237Snjlcan be overridden with the -p command line switch. 6417107325Siwasaki 6418114237Snjl 6419107325Siwasaki---------------------------------------- 6420107325Siwasaki11 November 2002. Summary of changes for version 20021111. 6421107325Siwasaki 6422107325Siwasaki 6423114237Snjl0) ACPI Specification 2.0B is released and is now available at: 6424114237Snjlhttp://www.acpi.info/index.html 6425107325Siwasaki 6426107325Siwasaki 6427107325Siwasaki1) ACPI CA Core Subsystem: 6428107325Siwasaki 6429107325SiwasakiImplemented support for the ACPI 2.0 SMBus Operation Regions. 6430114237SnjlThis includes the early detection and handoff of the request to 6431114237Snjlthe SMBus region handler (avoiding all of the complex field 6432107325Siwasakisupport code), and support for the bidirectional return packet 6433107325Siwasakifrom an SMBus write operation. This paves the way for the 6434107325Siwasakidevelopment of SMBus drivers in each host operating system. 6435107325Siwasaki 6436107325SiwasakiFixed a problem where the semaphore WAIT_FOREVER constant was 6437107325Siwasakidefined as 32 bits, but must be 16 bits according to the ACPI 6438107325Siwasakispecification. This had the side effect of causing ASL 6439107325SiwasakiMutex/Event timeouts even though the ASL code requested a wait 6440107325Siwasakiforever. Changed all internal references to the ACPI timeout 6441193267Sjkimparameter to 16 bits to prevent future problems. Changed the name 6442126372Snjlof WAIT_FOREVER to ACPI_WAIT_FOREVER. 6443107325Siwasaki 6444193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6445126372Snjlbelow. These are the code and data sizes for the acpica.lib 6446126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6447126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6448126372Snjlversion of the code includes the debug output trace mechanism and 6449193267Sjkimhas a much larger code and data size. Note that these values will 6450126372Snjlvary depending on the efficiency of the compiler and the compiler 6451126372Snjloptions used during generation. 6452107325Siwasaki 6453107325Siwasaki Previous Release 6454107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6455107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6456107325Siwasaki Current Release: 6457107325Siwasaki Non-Debug Version: 71.9K Code, 9.1K Data, 81.0K Total 6458107325Siwasaki Debug Version: 153.1K Code, 63.3K Data, 216.4K Total 6459107325Siwasaki 6460107325Siwasaki 6461107325Siwasaki2) Linux 6462107325Siwasaki 6463107325SiwasakiModule loading/unloading fixes (John Cagle) 6464107325Siwasaki 6465107325Siwasaki 6466107325Siwasaki3) iASL Compiler/Disassembler 6467107325Siwasaki 6468107325SiwasakiAdded support for the SMBBlockProcessCall keyword (ACPI 2.0) 6469107325Siwasaki 6470107325SiwasakiImplemented support for the disassembly of all SMBus protocol 6471107325Siwasakikeywords (SMBQuick, SMBWord, etc.) 6472107325Siwasaki 6473107325Siwasaki---------------------------------------- 6474107325Siwasaki01 November 2002. Summary of changes for version 20021101. 6475107325Siwasaki 6476107325Siwasaki 6477107325Siwasaki1) ACPI CA Core Subsystem: 6478107325Siwasaki 6479193267SjkimFixed a problem where platforms that have a GPE1 block but no GPE0 6480126372Snjlblock were not handled correctly. This resulted in a "GPE 6481114237Snjloverlap" error message. GPE0 is no longer required. 6482107325Siwasaki 6483107325SiwasakiRemoved code added in the previous release that inserted nodes 6484114237Snjlinto the namespace in alphabetical order. This caused some side- 6485114237Snjleffects on various machines. The root cause of the problem is 6486114237Snjlstill under investigation since in theory, the internal ordering 6487114237Snjlof the namespace nodes should not matter. 6488107325Siwasaki 6489107325Siwasaki 6490114237SnjlEnhanced error reporting for the case where a named object is not 6491114237Snjlfound during control method execution. The full ACPI namepath 6492114237Snjl(name reference) of the object that was not found is displayed in 6493114237Snjlthis case. 6494107325Siwasaki 6495193267SjkimNote: as a result of the overhaul of the namespace object types in 6496126372Snjlthe previous release, the namespace nodes for the predefined 6497114237Snjlscopes (_TZ, _PR, etc.) are now of the type ACPI_TYPE_LOCAL_SCOPE 6498114237Snjlinstead of ACPI_TYPE_ANY. This simplifies the namespace 6499114237Snjlmanagement code but may affect code that walks the namespace tree 6500114237Snjllooking for specific object types. 6501114237Snjl 6502193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6503126372Snjlbelow. These are the code and data sizes for the acpica.lib 6504126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6505126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6506126372Snjlversion of the code includes the debug output trace mechanism and 6507193267Sjkimhas a much larger code and data size. Note that these values will 6508126372Snjlvary depending on the efficiency of the compiler and the compiler 6509126372Snjloptions used during generation. 6510107325Siwasaki 6511107325Siwasaki Previous Release 6512107325Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6513107325Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6514107325Siwasaki Current Release: 6515107325Siwasaki Non-Debug Version: 71.4K Code, 9.0K Data, 80.4K Total 6516107325Siwasaki Debug Version: 152.3K Code, 63.0K Data, 215.3K Total 6517107325Siwasaki 6518107325Siwasaki 6519107325Siwasaki2) Linux 6520107325Siwasaki 6521107325SiwasakiFixed a problem introduced in the previous release where the 6522193267SjkimProcessor and Thermal objects were not recognized and installed in 6523193267Sjkim/proc. This was related to the scope type change described above. 6524107325Siwasaki 6525107325Siwasaki 6526107325Siwasaki3) iASL Compiler/Disassembler 6527107325Siwasaki 6528114237SnjlImplemented the -g option to get all of the required ACPI tables 6529114237Snjlfrom the registry and save them to files (Windows version of the 6530193267Sjkimcompiler only.) The required tables are the FADT, FACS, and DSDT. 6531107325Siwasaki 6532114237SnjlAdded ACPI table checksum validation during table disassembly in 6533114237Snjlorder to catch corrupted tables. 6534107325Siwasaki 6535107325Siwasaki 6536107325Siwasaki---------------------------------------- 6537107325Siwasaki22 October 2002. Summary of changes for version 20021022. 6538107325Siwasaki 6539107325Siwasaki1) ACPI CA Core Subsystem: 6540107325Siwasaki 6541114237SnjlImplemented a restriction on the Scope operator that the target 6542114237Snjlmust already exist in the namespace at the time the operator is 6543114237Snjlencountered (during table load or method execution). In other 6544114237Snjlwords, forward references are not allowed and Scope() cannot 6545114237Snjlcreate a new object. This changes the previous behavior where the 6546193267Sjkiminterpreter would create the name if not found. This new behavior 6547126372Snjlcorrectly enables the search-to-root algorithm during namespace 6548126372Snjllookup of the target name. Because of this upsearch, this fixes 6549126372Snjlthe known Compaq _SB_.OKEC problem and makes both the AML 6550126372Snjlinterpreter and iASL compiler compatible with other ACPI 6551114237Snjlimplementations. 6552107325Siwasaki 6553114237SnjlCompleted a major overhaul of the internal ACPI object types for 6554114237Snjlthe ACPI Namespace and the associated operand objects. Many of 6555114237Snjlthese types had become obsolete with the introduction of the two- 6556114237Snjlpass namespace load. This cleanup simplifies the code and makes 6557114237Snjlthe entire namespace load mechanism much clearer and easier to 6558114237Snjlunderstand. 6559107325Siwasaki 6560114237SnjlImproved debug output for tracking scope opening/closing to help 6561114237Snjldiagnose scoping issues. The old scope name as well as the new 6562114237Snjlscope name are displayed. Also improved error messages for 6563114237Snjlproblems with ASL Mutex objects and error messages for GPE 6564114237Snjlproblems. 6565107325Siwasaki 6566107325SiwasakiCleaned up the namespace dump code, removed obsolete code. 6567107325Siwasaki 6568114237SnjlAll string output (for all namespace/object dumps) now uses the 6569193267Sjkimcommon ACPI string output procedure which handles escapes properly 6570126372Snjland does not emit non-printable characters. 6571107325Siwasaki 6572107325SiwasakiFixed some issues with constants in the 64-bit version of the 6573107325Siwasakilocal C library (utclib.c) 6574107325Siwasaki 6575107325Siwasaki 6576107325Siwasaki2) Linux 6577107325Siwasaki 6578107325SiwasakiEC Driver: No longer attempts to acquire the Global Lock at 6579107325Siwasakiinterrupt level. 6580107325Siwasaki 6581107325Siwasaki 6582107325Siwasaki3) iASL Compiler/Disassembler 6583107325Siwasaki 6584193267SjkimImplemented ACPI 2.0B grammar change that disallows all Type 1 and 6585126372Snjl2 opcodes outside of a control method. This means that the 6586114237Snjl"executable" operators (versus the "namespace" operators) cannot 6587193267Sjkimbe used at the table level; they can only be used within a control 6588126372Snjlmethod. 6589107325Siwasaki 6590107325SiwasakiImplemented the restriction on the Scope() operator where the 6591107325Siwasakitarget must already exist in the namespace at the time the 6592114237Snjloperator is encountered (during ASL compilation). In other words, 6593193267Sjkimforward references are not allowed and Scope() cannot create a new 6594126372Snjlobject. This makes the iASL compiler compatible with other ACPI 6595193267Sjkimimplementations and makes the Scope() implementation adhere to the 6596126372SnjlACPI specification. 6597107325Siwasaki 6598193267SjkimFixed a problem where namepath optimization for the Alias operator 6599193267Sjkimwas optimizing the wrong path (of the two namepaths.) This caused 6600126372Snjla "Missing alias link" error message. 6601107325Siwasaki 6602114237SnjlFixed a problem where an "unknown reserved name" warning could be 6603114237Snjlincorrectly generated for names like "_SB" when the trailing 6604114237Snjlunderscore is not used in the original ASL. 6605107325Siwasaki 6606107325SiwasakiFixed a problem where the reserved name check did not handle 6607114237SnjlNamePaths with multiple NameSegs correctly. The first nameseg of 6608114237Snjlthe NamePath was examined instead of the last NameSeg. 6609107325Siwasaki 6610107325Siwasaki 6611107325Siwasaki---------------------------------------- 6612107325Siwasaki 6613104470Siwasaki02 October 2002. Summary of changes for this release. 6614104470Siwasaki 6615104470Siwasaki 6616104470Siwasaki1) ACPI CA Core Subsystem version 20021002: 6617104470Siwasaki 6618104470SiwasakiFixed a problem where a store/copy of a string to an existing 6619193267Sjkimstring did not always set the string length properly in the String 6620126372Snjlobject. 6621104470Siwasaki 6622104470SiwasakiFixed a reported problem with the ToString operator where the 6623193267Sjkimbehavior was identical to the ToHexString operator instead of just 6624126372Snjlsimply converting a raw buffer to a string data type. 6625104470Siwasaki 6626104470SiwasakiFixed a problem where CopyObject and the other "explicit" 6627193267Sjkimconversion operators were not updating the internal namespace node 6628126372Snjltype as part of the store operation. 6629104470Siwasaki 6630104470SiwasakiFixed a memory leak during implicit source operand conversion 6631193267Sjkimwhere the original object was not deleted if it was converted to a 6632126372Snjlnew object of a different type. 6633104470Siwasaki 6634193267SjkimEnhanced error messages for all problems associated with namespace 6635193267Sjkimlookups. Common procedure generates and prints the lookup name as 6636126372Snjlwell as the formatted status. 6637104470Siwasaki 6638104470SiwasakiCompleted implementation of a new design for the Alias support 6639193267Sjkimwithin the namespace. The existing design did not handle the case 6640193267Sjkimwhere a new object was assigned to one of the two names due to the 6641193267Sjkimuse of an explicit conversion operator, resulting in the two names 6642126372Snjlpointing to two different objects. The new design simply points 6643126372Snjlthe Alias name to the original name node - not to the object. 6644193267SjkimThis results in a level of indirection that must be handled in the 6645126372Snjlname resolution mechanism. 6646104470Siwasaki 6647193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6648126372Snjlbelow. These are the code and data sizes for the acpica.lib 6649126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6650126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6651126372Snjlversion of the code includes the debug output trace mechanism and 6652193267Sjkimhas a larger code and data size. Note that these values will vary 6653126372Snjldepending on the efficiency of the compiler and the compiler 6654126372Snjloptions used during generation. 6655104470Siwasaki 6656104470Siwasaki Previous Release 6657104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6658104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6659104470Siwasaki Current Release: 6660104470Siwasaki Non-Debug Version: 70.7K Code, 8.6K Data, 79.3K Total 6661104470Siwasaki Debug Version: 151.7K Code, 62.4K Data, 214.1K Total 6662104470Siwasaki 6663104470Siwasaki 6664104470Siwasaki2) Linux 6665104470Siwasaki 6666104470SiwasakiInitialize thermal driver's timer before it is used. (Knut 6667104470SiwasakiNeumann) 6668104470Siwasaki 6669104470SiwasakiAllow handling negative celsius values. (Kochi Takayoshi) 6670104470Siwasaki 6671114237SnjlFix thermal management and make trip points. R/W (Pavel Machek) 6672104470Siwasaki 6673104470SiwasakiFix /proc/acpi/sleep. (P. Christeas) 6674104470Siwasaki 6675104470SiwasakiIA64 fixes. (David Mosberger) 6676104470Siwasaki 6677104470SiwasakiFix reversed logic in blacklist code. (Sergio Monteiro Basto) 6678104470Siwasaki 6679104470SiwasakiReplace ACPI_DEBUG define with ACPI_DEBUG_OUTPUT. (Dominik 6680104470SiwasakiBrodowski) 6681104470Siwasaki 6682104470Siwasaki 6683104470Siwasaki3) iASL Compiler/Disassembler 6684104470Siwasaki 6685104470SiwasakiClarified some warning/error messages. 6686104470Siwasaki 6687104470Siwasaki 6688104470Siwasaki---------------------------------------- 6689104470Siwasaki18 September 2002. Summary of changes for this release. 6690104470Siwasaki 6691104470Siwasaki 6692104470Siwasaki1) ACPI CA Core Subsystem version 20020918: 6693104470Siwasaki 6694114237SnjlFixed a reported problem with reference chaining (via the Index() 6695193267Sjkimand RefOf() operators) in the ObjectType() and SizeOf() operators. 6696126372SnjlThe definition of these operators includes the dereferencing of 6697126372Snjlall chained references to return information on the base object. 6698104470Siwasaki 6699104470SiwasakiFixed a problem with stores to indexed package elements - the 6700104470Siwasakiexisting code would not complete the store if an "implicit 6701114237Snjlconversion" was not performed. In other words, if the existing 6702114237Snjlobject (package element) was to be replaced completely, the code 6703114237Snjldidn't handle this case. 6704104470Siwasaki 6705104470SiwasakiRelaxed typechecking on the ASL "Scope" operator to allow the 6706104470Siwasakitarget name to refer to an object of type Integer, String, or 6707104470SiwasakiBuffer, in addition to the scoping object types (Device, 6708104470Siwasakipredefined Scopes, Processor, PowerResource, and ThermalZone.) 6709114237SnjlThis allows existing AML code that has workarounds for a bug in 6710193267SjkimWindows to function properly. A warning is issued, however. This 6711126372Snjlaffects both the AML interpreter and the iASL compiler. Below is 6712126372Snjlan example of this type of ASL code: 6713104470Siwasaki 6714104470Siwasaki Name(DEB,0x00) 6715104470Siwasaki Scope(DEB) 6716104470Siwasaki { 6717104470Siwasaki 6718114237SnjlFixed some reported problems with 64-bit integer support in the 6719114237Snjllocal implementation of C library functions (clib.c) 6720104470Siwasaki 6721104470Siwasaki 6722104470Siwasaki2) Linux 6723104470Siwasaki 6724104470SiwasakiUse ACPI fix map region instead of IOAPIC region, since it is 6725104470Siwasakiundefined in non-SMP. 6726104470Siwasaki 6727114237SnjlEnsure that the SCI has the proper polarity and trigger, even on 6728114237Snjlsystems that do not have an interrupt override entry in the MADT. 6729104470Siwasaki 6730104470Siwasaki2.5 big driver reorganization (Pat Mochel) 6731104470Siwasaki 6732104470SiwasakiUse early table mapping code from acpitable.c (Andi Kleen) 6733104470Siwasaki 6734104470SiwasakiNew blacklist entries (Andi Kleen) 6735104470Siwasaki 6736114237SnjlBlacklist improvements. Split blacklist code out into a separate 6737114237Snjlfile. Move checking the blacklist to very early. Previously, we 6738114237Snjlwould use ACPI tables, and then halfway through init, check the 6739114237Snjlblacklist -- too late. Now, it's early enough to completely fall- 6740114237Snjlback to non-ACPI. 6741104470Siwasaki 6742104470Siwasaki 6743104470Siwasaki3) iASL Compiler/Disassembler version 20020918: 6744104470Siwasaki 6745114237SnjlFixed a problem where the typechecking code didn't know that an 6746114237Snjlalias could point to a method. In other words, aliases were not 6747114237Snjlbeing dereferenced during typechecking. 6748104470Siwasaki 6749104470Siwasaki 6750104470Siwasaki---------------------------------------- 6751104470Siwasaki29 August 2002. Summary of changes for this release. 6752104470Siwasaki 6753104470Siwasaki1) ACPI CA Core Subsystem Version 20020829: 6754104470Siwasaki 6755114237SnjlIf the target of a Scope() operator already exists, it must be an 6756114237Snjlobject type that actually opens a scope -- such as a Device, 6757193267SjkimMethod, Scope, etc. This is a fatal runtime error. Similar error 6758126372Snjlcheck has been added to the iASL compiler also. 6759104470Siwasaki 6760114237SnjlTightened up the namespace load to disallow multiple names in the 6761114237Snjlsame scope. This previously was allowed if both objects were of 6762114237Snjlthe same type. (i.e., a lookup was the same as entering a new 6763114237Snjlname). 6764104470Siwasaki 6765104470Siwasaki 6766104470Siwasaki2) Linux 6767104470Siwasaki 6768104470SiwasakiEnsure that the ACPI interrupt has the proper trigger and 6769104470Siwasakipolarity. 6770104470Siwasaki 6771104470Siwasakilocal_irq_disable is extraneous. (Matthew Wilcox) 6772104470Siwasaki 6773104470SiwasakiMake "acpi=off" actually do what it says, and not use the ACPI 6774104470Siwasakiinterpreter *or* the tables. 6775104470Siwasaki 6776193267SjkimAdded arch-neutral support for parsing SLIT and SRAT tables (Kochi 6777126372SnjlTakayoshi) 6778104470Siwasaki 6779104470Siwasaki 6780104470Siwasaki3) iASL Compiler/Disassembler Version 20020829: 6781104470Siwasaki 6782104470SiwasakiImplemented namepath optimization for name declarations. For 6783104470Siwasakiexample, a declaration like "Method (\_SB_.ABCD)" would get 6784104470Siwasakioptimized to "Method (ABCD)" if the declaration is within the 6785104470Siwasaki\_SB_ scope. This optimization is in addition to the named 6786104470Siwasakireference path optimization first released in the previous 6787114237Snjlversion. This would seem to complete all possible optimizations 6788114237Snjlfor namepaths within the ASL/AML. 6789104470Siwasaki 6790114237SnjlIf the target of a Scope() operator already exists, it must be an 6791114237Snjlobject type that actually opens a scope -- such as a Device, 6792114237SnjlMethod, Scope, etc. 6793104470Siwasaki 6794114237SnjlImplemented a check and warning for unreachable code in the same 6795114237Snjlblock below a Return() statement. 6796104470Siwasaki 6797114237SnjlFixed a problem where the listing file was not generated if the 6798114237Snjlcompiler aborted if the maximum error count was exceeded (200). 6799104470Siwasaki 6800193267SjkimFixed a problem where the typechecking of method return values was 6801126372Snjlbroken. This includes the check for a return value when the 6802114237Snjlmethod is invoked as a TermArg (a return value is expected.) 6803104470Siwasaki 6804104470SiwasakiFixed a reported problem where EOF conditions during a quoted 6805104470Siwasakistring or comment caused a fault. 6806104470Siwasaki 6807104470Siwasaki 6808104470Siwasaki---------------------------------------- 6809102550Siwasaki15 August 2002. Summary of changes for this release. 6810102550Siwasaki 6811102550Siwasaki1) ACPI CA Core Subsystem Version 20020815: 6812102550Siwasaki 6813114237SnjlFixed a reported problem where a Store to a method argument that 6814193267Sjkimcontains a reference did not perform the indirect store correctly. 6815126372SnjlThis problem was created during the conversion to the new 6816126372Snjlreference object model - the indirect store to a method argument 6817126372Snjlcode was not updated to reflect the new model. 6818102550Siwasaki 6819114237SnjlReworked the ACPI mode change code to better conform to ACPI 2.0, 6820193267Sjkimhandle corner cases, and improve code legibility (Kochi Takayoshi) 6821102550Siwasaki 6822102550SiwasakiFixed a problem with the pathname parsing for the carat (^) 6823114237Snjlprefix. The heavy use of the carat operator by the new namepath 6824193267Sjkimoptimization in the iASL compiler uncovered a problem with the AML 6825126372Snjlinterpreter handling of this prefix. In the case where one or 6826126372Snjlmore carats precede a single nameseg, the nameseg was treated as 6827126372Snjlstandalone and the search rule (to root) was inadvertently 6828114237Snjlapplied. This could cause both the iASL compiler and the 6829114237Snjlinterpreter to find the wrong object or to miss the error that 6830114237Snjlshould occur if the object does not exist at that exact pathname. 6831102550Siwasaki 6832114237SnjlFound and fixed the problem where the HP Pavilion DSDT would not 6833193267Sjkimload. This was a relatively minor tweak to the table loading code 6834126372Snjl(a problem caused by the unexpected encounter with a method 6835193267Sjkiminvocation not within a control method), but it does not solve the 6836126372Snjloverall issue of the execution of AML code at the table level. 6837126372SnjlThis investigation is still ongoing. 6838102550Siwasaki 6839193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6840126372Snjlbelow. These are the code and data sizes for the acpica.lib 6841126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6842126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6843126372Snjlversion of the code includes the debug output trace mechanism and 6844193267Sjkimhas a larger code and data size. Note that these values will vary 6845126372Snjldepending on the efficiency of the compiler and the compiler 6846126372Snjloptions used during generation. 6847102550Siwasaki 6848102550Siwasaki Previous Release 6849104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 6850104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 6851102550Siwasaki Current Release: 6852104470Siwasaki Non-Debug Version: 69.6K Code, 8.3K Data, 77.9K Total 6853104470Siwasaki Debug Version: 150.0K Code, 61.7K Data, 211.7K Total 6854102550Siwasaki 6855102550Siwasaki 6856102550Siwasaki2) Linux 6857102550Siwasaki 6858102550SiwasakiRemove redundant slab.h include (Brad Hards) 6859102550Siwasaki 6860102550SiwasakiFix several bugs in thermal.c (Herbert Nachtnebel) 6861102550Siwasaki 6862102550SiwasakiMake CONFIG_ACPI_BOOT work properly (Pavel Machek) 6863102550Siwasaki 6864104470SiwasakiChange acpi_system_suspend to use updated irq functions (Pavel 6865104470SiwasakiMachek) 6866102550Siwasaki 6867102550SiwasakiExport acpi_get_firmware_table (Matthew Wilcox) 6868102550Siwasaki 6869102550SiwasakiUse proper root proc entry for ACPI (Kochi Takayoshi) 6870102550Siwasaki 6871102550SiwasakiFix early-boot table parsing (Bjorn Helgaas) 6872102550Siwasaki 6873102550Siwasaki 6874102550Siwasaki3) iASL Compiler/Disassembler 6875102550Siwasaki 6876114237SnjlReworked the compiler options to make them more consistent and to 6877114237Snjluse two-letter options where appropriate. We were running out of 6878114237Snjlsensible letters. This may break some makefiles, so check the 6879114237Snjlcurrent options list by invoking the compiler with no parameters. 6880102550Siwasaki 6881102550SiwasakiCompleted the design and implementation of the ASL namepath 6882114237Snjloptimization option for the compiler. This option optimizes all 6883114237Snjlreferences to named objects to the shortest possible path. The 6884193267Sjkimfirst attempt tries to utilize a single nameseg (4 characters) and 6885126372Snjlthe "search-to-root" algorithm used by the interpreter. If that 6886126372Snjlcannot be used (because either the name is not in the search path 6887126372Snjlor there is a conflict with another object with the same name), 6888126372Snjlthe pathname is optimized using the carat prefix (usually a 6889126372Snjlshorter string than specifying the entire path from the root.) 6890102550Siwasaki 6891114237SnjlImplemented support to obtain the DSDT from the Windows registry 6892114237Snjl(when the disassembly option is specified with no input file). 6893114237SnjlAdded this code as the implementation for AcpiOsTableOverride in 6894114237Snjlthe Windows OSL. Migrated the 16-bit code (used in the AcpiDump 6895114237Snjlutility) to scan memory for the DSDT to the AcpiOsTableOverride 6896114237Snjlfunction in the DOS OSL to make the disassembler truly OS 6897114237Snjlindependent. 6898102550Siwasaki 6899114237SnjlImplemented a new option to disassemble and compile in one step. 6900114237SnjlWhen used without an input filename, this option will grab the 6901193267SjkimDSDT from the local machine, disassemble it, and compile it in one 6902126372Snjlstep. 6903102550Siwasaki 6904114237SnjlAdded a warning message for invalid escapes (a backslash followed 6905114237Snjlby any character other than the allowable escapes). This catches 6906114237Snjlthe quoted string error "\_SB_" (which should be "\\_SB_" ). 6907167802Sjkim 6908193267SjkimAlso, there are numerous instances in the ACPI specification where 6909126372Snjlthis error occurs. 6910102550Siwasaki 6911104470SiwasakiAdded a compiler option to disable all optimizations. This is 6912114237Snjlbasically the "compatibility mode" because by using this option, 6913114237Snjlthe AML code will come out exactly the same as other ASL 6914114237Snjlcompilers. 6915102550Siwasaki 6916114237SnjlAdded error messages for incorrectly ordered dependent resource 6917114237Snjlfunctions. This includes: missing EndDependentFn macro at end of 6918114237Snjldependent resource list, nested dependent function macros (both 6919114237Snjlstart and end), and missing StartDependentFn macro. These are 6920114237Snjlcommon errors that should be caught at compile time. 6921102550Siwasaki 6922114237SnjlImplemented _OSI support for the disassembler and compiler. _OSI 6923114237Snjlmust be included in the namespace for proper disassembly (because 6924114237Snjlthe disassembler must know the number of arguments.) 6925102550Siwasaki 6926104470SiwasakiAdded an "optimization" message type that is optional (off by 6927114237Snjldefault). This message is used for all optimizations - including 6928193267Sjkimconstant folding, integer optimization, and namepath optimization. 6929102550Siwasaki 6930102550Siwasaki---------------------------------------- 6931102550Siwasaki25 July 2002. Summary of changes for this release. 6932102550Siwasaki 6933102550Siwasaki 6934102550Siwasaki1) ACPI CA Core Subsystem Version 20020725: 6935102550Siwasaki 6936114237SnjlThe AML Disassembler has been enhanced to produce compilable ASL 6937193267Sjkimcode and has been integrated into the iASL compiler (see below) as 6938126372Snjlwell as the single-step disassembly for the AML debugger and the 6939126372Snjldisassembler for the AcpiDump utility. All ACPI 2.0A opcodes, 6940126372Snjlresource templates and macros are fully supported. The 6941114237Snjldisassembler has been tested on over 30 different AML files, 6942114237Snjlproducing identical AML when the resulting disassembled ASL file 6943114237Snjlis recompiled with the same ASL compiler. 6944102550Siwasaki 6945114237SnjlModified the Resource Manager to allow zero interrupts and zero 6946114237Snjldma channels during the GetCurrentResources call. This was 6947114237Snjlcausing problems on some platforms. 6948102550Siwasaki 6949114237SnjlAdded the AcpiOsRedirectOutput interface to the OSL to simplify 6950114237Snjloutput redirection for the AcpiOsPrintf and AcpiOsVprintf 6951114237Snjlinterfaces. 6952102550Siwasaki 6953193267SjkimCode and Data Size: Current core subsystem library sizes are shown 6954126372Snjlbelow. These are the code and data sizes for the acpica.lib 6955126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 6956126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 6957126372Snjlversion of the code includes the debug output trace mechanism and 6958193267Sjkimhas a larger code and data size. Note that these values will vary 6959126372Snjldepending on the efficiency of the compiler and the compiler 6960126372Snjloptions used during generation. 6961102550Siwasaki 6962102550Siwasaki Previous Release 6963104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 6964104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 6965102550Siwasaki Current Release: 6966104470Siwasaki Non-Debug Version: 69.1K Code, 8.2K Data, 77.3K Total 6967104470Siwasaki Debug Version: 149.4K Code, 61.6K Data, 211.0K Total 6968102550Siwasaki 6969102550Siwasaki 6970102550Siwasaki2) Linux 6971102550Siwasaki 6972102550SiwasakiFixed a panic in the EC driver (Dominik Brodowski) 6973102550Siwasaki 6974114237SnjlImplemented checksum of the R/XSDT itself during Linux table scan 6975114237Snjl(Richard Schaal) 6976102550Siwasaki 6977102550Siwasaki 6978102550Siwasaki3) iASL compiler 6979102550Siwasaki 6980114237SnjlThe AML disassembler is integrated into the compiler. The "-d" 6981114237Snjloption invokes the disassembler to completely disassemble an 6982114237Snjlinput AML file, producing as output a text ASL file with the 6983114237Snjlextension ".dsl" (to avoid name collisions with existing .asl 6984114237Snjlsource files.) A future enhancement will allow the disassembler 6985114237Snjlto obtain the BIOS DSDT from the registry under Windows. 6986102550Siwasaki 6987102550SiwasakiFixed a problem with the VendorShort and VendorLong resource 6988102550Siwasakidescriptors where an invalid AML sequence was created. 6989102550Siwasaki 6990114237SnjlImplemented a fix for BufferData term in the ASL parser. It was 6991114237Snjlinadvertently defined twice, allowing invalid syntax to pass and 6992114237Snjlcausing reduction conflicts. 6993102550Siwasaki 6994104470SiwasakiFixed a problem where the Ones opcode could get converted to a 6995193267Sjkimvalue of zero if "Ones" was used where a byte, word or dword value 6996126372Snjlwas expected. The 64-bit value is now truncated to the correct 6997126372Snjlsize with the correct value. 6998102550Siwasaki 6999102550Siwasaki 7000167802Sjkim 7001102550Siwasaki---------------------------------------- 7002102550Siwasaki02 July 2002. Summary of changes for this release. 7003102550Siwasaki 7004102550Siwasaki 7005102550Siwasaki1) ACPI CA Core Subsystem Version 20020702: 7006102550Siwasaki 7007114237SnjlThe Table Manager code has been restructured to add several new 7008114237Snjlfeatures. Tables that are not required by the core subsystem 7009114237Snjl(other than the FADT, DSDT, FACS, PSDTs, etc.) are no longer 7010193267Sjkimvalidated in any way and are returned from AcpiGetFirmwareTable if 7011126372Snjlrequested. The AcpiOsTableOverride interface is now called for 7012126372Snjleach table that is loaded by the subsystem in order to allow the 7013126372Snjlhost to override any table it chooses. Previously, only the DSDT 7014126372Snjlcould be overridden. Added one new files, tbrsdt.c and 7015114237Snjltbgetall.c. 7016102550Siwasaki 7017193267SjkimFixed a problem with the conversion of internal package objects to 7018126372Snjlexternal objects (when a package is returned from a control 7019114237Snjlmethod.) The return buffer length was set to zero instead of the 7020114237Snjlproper length of the package object. 7021102550Siwasaki 7022104470SiwasakiFixed a reported problem with the use of the RefOf and DeRefOf 7023114237Snjloperators when passing reference arguments to control methods. A 7024114237Snjlnew type of Reference object is used internally for references 7025114237Snjlproduced by the RefOf operator. 7026102550Siwasaki 7027193267SjkimAdded additional error messages in the Resource Manager to explain 7028126372SnjlAE_BAD_DATA errors when they occur during resource parsing. 7029102550Siwasaki 7030104470SiwasakiSplit the AcpiEnableSubsystem into two primitives to enable a 7031193267Sjkimfiner granularity initialization sequence. These two calls should 7032126372Snjlbe called in this order: AcpiEnableSubsystem (flags), 7033114237SnjlAcpiInitializeObjects (flags). The flags parameter remains the 7034114237Snjlsame. 7035102550Siwasaki 7036102550Siwasaki 7037102550Siwasaki2) Linux 7038102550Siwasaki 7039114237SnjlUpdated the ACPI utilities module to understand the new style of 7040193267Sjkimfully resolved package objects that are now returned from the core 7041126372Snjlsubsystem. This eliminates errors of the form: 7042102550Siwasaki 7043102550Siwasaki ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PPB_._PRT] 7044102550Siwasaki acpi_utils-0430 [145] acpi_evaluate_reference: 7045102550Siwasaki Invalid element in package (not a device reference) 7046102550Siwasaki 7047102550SiwasakiThe method evaluation utility uses the new buffer allocation 7048102550Siwasakischeme instead of calling AcpiEvaluate Object twice. 7049102550Siwasaki 7050102550SiwasakiAdded support for ECDT. This allows the use of the Embedded 7051167802Sjkim 7052114237SnjlController before the namespace has been fully initialized, which 7053114237Snjlis necessary for ACPI 2.0 support, and for some laptops to 7054114237Snjlinitialize properly. (Laptops using ECDT are still rare, so only 7055114237Snjllimited testing was performed of the added functionality.) 7056102550Siwasaki 7057102550SiwasakiFixed memory leaks in the EC driver. 7058102550Siwasaki 7059102550SiwasakiEliminated a brittle code structure in acpi_bus_init(). 7060102550Siwasaki 7061114237SnjlEliminated the acpi_evaluate() helper function in utils.c. It is 7062114237Snjlno longer needed since acpi_evaluate_object can optionally 7063104470Siwasakiallocate memory for the return object. 7064102550Siwasaki 7065193267SjkimImplemented fix for keyboard hang when getting battery readings on 7066126372Snjlsome systems (Stephen White) 7067102550Siwasaki 7068102550SiwasakiPCI IRQ routing update (Dominik Brodowski) 7069102550Siwasaki 7070114237SnjlFix an ifdef to allow compilation on UP with LAPIC but no IOAPIC 7071114237Snjlsupport 7072102550Siwasaki 7073102550Siwasaki---------------------------------------- 7074102550Siwasaki11 June 2002. Summary of changes for this release. 7075102550Siwasaki 7076102550Siwasaki 7077102550Siwasaki1) ACPI CA Core Subsystem Version 20020611: 7078102550Siwasaki 7079104470SiwasakiFixed a reported problem where constants such as Zero and One 7080114237Snjlappearing within _PRT packages were not handled correctly within 7081114237Snjlthe resource manager code. Originally reported against the ASL 7082114237Snjlcompiler because the code generator now optimizes integers to 7083193267Sjkimtheir minimal AML representation (i.e. AML constants if possible.) 7084126372SnjlThe _PRT code now handles all AML constant opcodes correctly 7085126372Snjl(Zero, One, Ones, Revision). 7086102550Siwasaki 7087102550SiwasakiFixed a problem with the Concatenate operator in the AML 7088193267Sjkiminterpreter where a buffer result object was incorrectly marked as 7089126372Snjlnot fully evaluated, causing a run-time error of AE_AML_INTERNAL. 7090102550Siwasaki 7091104470SiwasakiAll package sub-objects are now fully resolved before they are 7092114237Snjlreturned from the external ACPI interfaces. This means that name 7093114237Snjlstrings are resolved to object handles, and constant operators 7094114237Snjl(Zero, One, Ones, Revision) are resolved to Integers. 7095102550Siwasaki 7096102550SiwasakiImplemented immediate resolution of the AML Constant opcodes 7097104470Siwasaki(Zero, One, Ones, Revision) to Integer objects upon detection 7098104470Siwasakiwithin the AML stream. This has simplified and reduced the 7099104470Siwasakigenerated code size of the subsystem by eliminating about 10 7100104470Siwasakiswitch statements for these constants (which previously were 7101193267Sjkimcontained in Reference objects.) The complicating issues are that 7102126372Snjlthe Zero opcode is used as a "placeholder" for unspecified 7103193267Sjkimoptional target operands and stores to constants are defined to be 7104126372Snjlno-ops. 7105102550Siwasaki 7106193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7107126372Snjlbelow. These are the code and data sizes for the acpica.lib 7108114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7109114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7110114237Snjlversion of the code includes the debug output trace mechanism and 7111193267Sjkimhas a larger code and data size. Note that these values will vary 7112126372Snjldepending on the efficiency of the compiler and the compiler 7113114237Snjloptions used during generation. 7114102550Siwasaki 7115102550Siwasaki Previous Release 7116104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7117104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7118102550Siwasaki Current Release: 7119104470Siwasaki Non-Debug Version: 68.7K Code, 7.4K Data, 76.1K Total 7120104470Siwasaki Debug Version: 142.9K Code, 58.7K Data, 201.6K Total 7121102550Siwasaki 7122102550Siwasaki 7123102550Siwasaki2) Linux 7124102550Siwasaki 7125167802Sjkim 7126104470SiwasakiAdded preliminary support for obtaining _TRA data for PCI root 7127104470Siwasakibridges (Bjorn Helgaas). 7128102550Siwasaki 7129102550Siwasaki 7130102550Siwasaki3) iASL Compiler Version X2046: 7131102550Siwasaki 7132193267SjkimFixed a problem where the "_DDN" reserved name was defined to be a 7133126372Snjlcontrol method with one argument. There are no arguments, and 7134114237Snjl_DDN does not have to be a control method. 7135102550Siwasaki 7136114237SnjlFixed a problem with the Linux version of the compiler where the 7137114237Snjlsource lines printed with error messages were the wrong lines. 7138114237SnjlThis turned out to be the "LF versus CR/LF" difference between 7139114237SnjlWindows and Unix. This appears to be the longstanding issue 7140114237Snjlconcerning listing output and error messages. 7141102550Siwasaki 7142114237SnjlFixed a problem with the Linux version of compiler where opcode 7143114237Snjlnames within error messages were wrong. This was caused by a 7144114237Snjlslight difference in the output of the Flex tool on Linux versus 7145114237SnjlWindows. 7146102550Siwasaki 7147193267SjkimFixed a problem with the Linux compiler where the hex output files 7148126372Snjlcontained some garbage data caused by an internal buffer overrun. 7149102550Siwasaki 7150102550Siwasaki 7151102550Siwasaki---------------------------------------- 7152102550Siwasaki17 May 2002. Summary of changes for this release. 7153102550Siwasaki 7154102550Siwasaki 7155102550Siwasaki1) ACPI CA Core Subsystem Version 20020517: 7156102550Siwasaki 7157102550SiwasakiImplemented a workaround to an BIOS bug discovered on the HP 7158104470SiwasakiOmniBook where the FADT revision number and the table size are 7159193267Sjkiminconsistent (ACPI 2.0 revision vs. ACPI 1.0 table size). The new 7160126372Snjlbehavior is to fallback to using only the ACPI 1.0 fields of the 7161126372SnjlFADT if the table is too small to be a ACPI 2.0 table as claimed 7162126372Snjlby the revision number. Although this is a BIOS bug, this is a 7163126372Snjlcase where the workaround is simple enough and with no side 7164126372Snjleffects, so it seemed prudent to add it. A warning message is 7165126372Snjlissued, however. 7166102550Siwasaki 7167193267SjkimImplemented minimum size checks for the fixed-length ACPI tables - 7168126372Snjl- the FADT and FACS, as well as consistency checks between the 7169114237Snjlrevision number and the table size. 7170102550Siwasaki 7171114237SnjlFixed a reported problem in the table override support where the 7172114237Snjlnew table pointer was incorrectly treated as a physical address 7173114237Snjlinstead of a logical address. 7174102550Siwasaki 7175114237SnjlEliminated the use of the AE_AML_ERROR exception and replaced it 7176114237Snjlwith more descriptive codes. 7177102550Siwasaki 7178193267SjkimFixed a problem where an exception would occur if an ASL Field was 7179126372Snjldefined with no named Field Units underneath it (used by some 7180114237Snjlindex fields). 7181102550Siwasaki 7182193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7183126372Snjlbelow. These are the code and data sizes for the acpica.lib 7184126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7185126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7186126372Snjlversion of the code includes the debug output trace mechanism and 7187193267Sjkimhas a larger code and data size. Note that these values will vary 7188126372Snjldepending on the efficiency of the compiler and the compiler 7189126372Snjloptions used during generation. 7190102550Siwasaki 7191102550Siwasaki Previous Release 7192104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7193104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7194102550Siwasaki Current Release: 7195104470Siwasaki Non-Debug Version: 69.3K Code, 7.4K Data, 76.7K Total 7196104470Siwasaki Debug Version: 143.8K Code, 58.8K Data, 202.6K Total 7197102550Siwasaki 7198102550Siwasaki 7199102550Siwasaki 7200102550Siwasaki2) Linux 7201102550Siwasaki 7202114237SnjlMuch work done on ACPI init (MADT and PCI IRQ routing support). 7203114237Snjl(Paul D. and Dominik Brodowski) 7204102550Siwasaki 7205102550SiwasakiFix PCI IRQ-related panic on boot (Sam Revitch) 7206102550Siwasaki 7207102550SiwasakiSet BM_ARB_DIS when entering a sleep state (Ducrot Bruno) 7208102550Siwasaki 7209102550SiwasakiFix "MHz" typo (Dominik Brodowski) 7210102550Siwasaki 7211102550SiwasakiFix RTC year 2000 issue (Dominik Brodowski) 7212102550Siwasaki 7213102550SiwasakiPreclude multiple button proc entries (Eric Brunet) 7214102550Siwasaki 7215102550SiwasakiMoved arch-specific code out of include/platform/aclinux.h 7216102550Siwasaki 7217102550Siwasaki3) iASL Compiler Version X2044: 7218102550Siwasaki 7219193267SjkimImplemented error checking for the string used in the EISAID macro 7220193267Sjkim(Usually used in the definition of the _HID object.) The code now 7221126372Snjlstrictly enforces the PnP format - exactly 7 characters, 3 7222126372Snjluppercase letters and 4 hex digits. 7223102550Siwasaki 7224102550SiwasakiIf a raw string is used in the definition of the _HID object 7225102550Siwasaki(instead of the EISAID macro), the string must contain all 7226114237Snjlalphanumeric characters (e.g., "*PNP0011" is not allowed because 7227114237Snjlof the asterisk.) 7228102550Siwasaki 7229114237SnjlImplemented checking for invalid use of ACPI reserved names for 7230114237Snjlmost of the name creation operators (Name, Device, Event, Mutex, 7231114237SnjlOperationRegion, PowerResource, Processor, and ThermalZone.) 7232114237SnjlPreviously, this check was only performed for control methods. 7233102550Siwasaki 7234114237SnjlImplemented an additional check on the Name operator to emit an 7235114237Snjlerror if a reserved name that must be implemented in ASL as a 7236114237Snjlcontrol method is used. We know that a reserved name must be a 7237114237Snjlmethod if it is defined with input arguments. 7238102550Siwasaki 7239193267SjkimThe warning emitted when a namespace object reference is not found 7240126372Snjlduring the cross reference phase has been changed into an error. 7241193267SjkimThe "External" directive should be used for names defined in other 7242126372Snjlmodules. 7243102550Siwasaki 7244102550Siwasaki 7245102550Siwasaki4) Tools and Utilities 7246102550Siwasaki 7247114237SnjlThe 16-bit tools (adump16 and aexec16) have been regenerated and 7248114237Snjltested. 7249102550Siwasaki 7250193267SjkimFixed a problem with the output of both acpidump and adump16 where 7251126372Snjlthe indentation of closing parentheses and brackets was not 7252167802Sjkim 7253114237Snjlaligned properly with the parent block. 7254102550Siwasaki 7255102550Siwasaki 7256102550Siwasaki---------------------------------------- 7257102550Siwasaki03 May 2002. Summary of changes for this release. 7258102550Siwasaki 7259102550Siwasaki 7260102550Siwasaki1) ACPI CA Core Subsystem Version 20020503: 7261102550Siwasaki 7262114237SnjlAdded support a new OSL interface that allows the host operating 7263167802Sjkim 7264114237Snjlsystem software to override the DSDT found in the firmware - 7265193267SjkimAcpiOsTableOverride. With this interface, the OSL can examine the 7266126372Snjlversion of the firmware DSDT and replace it with a different one 7267126372Snjlif desired. 7268102550Siwasaki 7269114237SnjlAdded new external interfaces for accessing ACPI registers from 7270114237Snjldevice drivers and other system software - AcpiGetRegister and 7271114237SnjlAcpiSetRegister. This was simply an externalization of the 7272114237Snjlexisting AcpiHwBitRegister interfaces. 7273102550Siwasaki 7274104470SiwasakiFixed a regression introduced in the previous build where the 7275104470SiwasakiASL/AML CreateField operator always returned an error, 7276102550Siwasaki"destination must be a NS Node". 7277102550Siwasaki 7278114237SnjlExtended the maximum time (before failure) to successfully enable 7279114237SnjlACPI mode to 3 seconds. 7280102550Siwasaki 7281193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7282126372Snjlbelow. These are the code and data sizes for the acpica.lib 7283126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7284126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7285126372Snjlversion of the code includes the debug output trace mechanism and 7286193267Sjkimhas a larger code and data size. Note that these values will vary 7287126372Snjldepending on the efficiency of the compiler and the compiler 7288126372Snjloptions used during generation. 7289102550Siwasaki 7290102550Siwasaki Previous Release 7291104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7292104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7293102550Siwasaki Current Release: 7294104470Siwasaki Non-Debug Version: 68.8K Code, 7.1K Data, 75.9K Total 7295104470Siwasaki Debug Version: 142.9K Code, 58.4K Data, 201.3K Total 7296102550Siwasaki 7297102550Siwasaki 7298102550Siwasaki2) Linux 7299102550Siwasaki 7300104470SiwasakiEnhanced ACPI init code for SMP. We are now fully MPS and $PIR- 7301193267Sjkimfree. While 3 out of 4 of our in-house systems work fine, the last 7302126372Snjlone still hangs when testing the LAPIC timer. 7303102550Siwasaki 7304114237SnjlRenamed many files in 2.5 kernel release to omit "acpi_" from the 7305114237Snjlname. 7306102550Siwasaki 7307102550SiwasakiAdded warning on boot for Presario 711FR. 7308102550Siwasaki 7309102550SiwasakiSleep improvements (Pavel Machek) 7310102550Siwasaki 7311102550SiwasakiACPI can now be built without CONFIG_PCI enabled. 7312102550Siwasaki 7313102550SiwasakiIA64: Fixed memory map functions (JI Lee) 7314102550Siwasaki 7315102550Siwasaki 7316102550Siwasaki3) iASL Compiler Version X2043: 7317102550Siwasaki 7318114237SnjlAdded support to allow the compiler to be integrated into the MS 7319114237SnjlVC++ development environment for one-button compilation of single 7320114237Snjlfiles or entire projects -- with error-to-source-line mapping. 7321102550Siwasaki 7322104470SiwasakiImplemented support for compile-time constant folding for the 7323104470SiwasakiType3, Type4, and Type5 opcodes first defined in the ACPI 2.0 7324104470Siwasakispecification. This allows the ASL writer to use expressions 7325104470Siwasakiinstead of Integer/Buffer/String constants in terms that must 7326114237Snjlevaluate to constants at compile time and will also simplify the 7327114237Snjlemitted AML in any such sub-expressions that can be folded 7328104470Siwasaki(evaluated at compile-time.) This increases the size of the 7329104470Siwasakicompiler significantly because a portion of the ACPI CA AML 7330104470Siwasakiinterpreter is included within the compiler in order to pre- 7331104470Siwasakievaluate constant expressions. 7332102550Siwasaki 7333114237Snjl 7334102550SiwasakiFixed a problem with the "Unicode" ASL macro that caused the 7335114237Snjlcompiler to fault. (This macro is used in conjunction with the 7336114237Snjl_STR reserved name.) 7337102550Siwasaki 7338114237SnjlImplemented an AML opcode optimization to use the Zero, One, and 7339114237SnjlOnes opcodes where possible to further reduce the size of integer 7340114237Snjlconstants and thus reduce the overall size of the generated AML 7341114237Snjlcode. 7342102550Siwasaki 7343193267SjkimImplemented error checking for new reserved terms for ACPI version 7344126372Snjl2.0A. 7345102550Siwasaki 7346104470SiwasakiImplemented the -qr option to display the current list of ACPI 7347104470Siwasakireserved names known to the compiler. 7348102550Siwasaki 7349104470SiwasakiImplemented the -qc option to display the current list of ASL 7350104470Siwasakioperators that are allowed within constant expressions and can 7351193267Sjkimtherefore be folded at compile time if the operands are constants. 7352102550Siwasaki 7353102550Siwasaki 7354102550Siwasaki4) Documentation 7355102550Siwasaki 7356193267SjkimUpdated the Programmer's Reference for new interfaces, data types, 7357126372Snjland memory allocation model options. 7358102550Siwasaki 7359114237SnjlUpdated the iASL Compiler User Reference to apply new format and 7360114237Snjladd information about new features and options. 7361102550Siwasaki 7362102550Siwasaki---------------------------------------- 7363102550Siwasaki19 April 2002. Summary of changes for this release. 7364102550Siwasaki 7365102550Siwasaki1) ACPI CA Core Subsystem Version 20020419: 7366102550Siwasaki 7367114237SnjlThe source code base for the Core Subsystem has been completely 7368114237Snjlcleaned with PC-lint (FlexLint) for both 32-bit and 64-bit 7369114237Snjlversions. The Lint option files used are included in the 7370114237Snjl/acpi/generate/lint directory. 7371102550Siwasaki 7372102550SiwasakiImplemented enhanced status/error checking across the entire 7373114237SnjlHardware manager subsystem. Any hardware errors (reported from 7374114237Snjlthe OSL) are now bubbled up and will abort a running control 7375114237Snjlmethod. 7376102550Siwasaki 7377167802Sjkim 7378114237SnjlFixed a problem where the per-ACPI-table integer width (32 or 64) 7379114237Snjlwas stored only with control method nodes, causing a fault when 7380114237Snjlnon-control method code was executed during table loading. The 7381114237Snjlsolution implemented uses a global variable to indicate table 7382114237Snjlwidth across the entire ACPI subsystem. Therefore, ACPI CA does 7383114237Snjlnot support mixed integer widths across different ACPI tables 7384114237Snjl(DSDT, SSDT). 7385102550Siwasaki 7386114237SnjlFixed a problem where NULL extended fields (X fields) in an ACPI 7387114237Snjl2.0 ACPI FADT caused the table load to fail. Although the 7388114237Snjlexisting ACPI specification is a bit fuzzy on this topic, the new 7389114237Snjlbehavior is to fall back on a ACPI 1.0 field if the corresponding 7390193267SjkimACPI 2.0 X field is zero (even though the table revision indicates 7391193267Sjkima full ACPI 2.0 table.) The ACPI specification will be updated to 7392126372Snjlclarify this issue. 7393102550Siwasaki 7394104470SiwasakiFixed a problem with the SystemMemory operation region handler 7395104470Siwasakiwhere memory was always accessed byte-wise even if the AML- 7396104470Siwasakispecified access width was larger than a byte. This caused 7397104470Siwasakiproblems on systems with memory-mapped I/O. Memory is now 7398193267Sjkimaccessed with the width specified. On systems that do not support 7399193267Sjkimnon-aligned transfers, a check is made to guarantee proper address 7400126372Snjlalignment before proceeding in order to avoid an AML-caused 7401126372Snjlalignment fault within the kernel. 7402102550Siwasaki 7403102550Siwasaki 7404114237SnjlFixed a problem with the ExtendedIrq resource where only one byte 7405114237Snjlof the 4-byte Irq field was extracted. 7406102550Siwasaki 7407114237SnjlFixed the AcpiExDigitsNeeded() procedure to support _UID. This 7408114237Snjlfunction was out of date and required a rewrite. 7409114237Snjl 7410193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7411126372Snjlbelow. These are the code and data sizes for the acpica.lib 7412126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7413126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7414126372Snjlversion of the code includes the debug output trace mechanism and 7415193267Sjkimhas a larger code and data size. Note that these values will vary 7416126372Snjldepending on the efficiency of the compiler and the compiler 7417126372Snjloptions used during generation. 7418102550Siwasaki 7419102550Siwasaki Previous Release 7420104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7421104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7422102550Siwasaki Current Release: 7423104470Siwasaki Non-Debug Version: 68.5K Code, 7.0K Data, 75.5K Total 7424104470Siwasaki Debug Version: 142.4K Code, 58.3K Data, 200.7K Total 7425102550Siwasaki 7426102550Siwasaki 7427102550Siwasaki2) Linux 7428102550Siwasaki 7429102550SiwasakiPCI IRQ routing fixes (Dominik Brodowski) 7430102550Siwasaki 7431102550Siwasaki 7432102550Siwasaki3) iASL Compiler Version X2042: 7433102550Siwasaki 7434104470SiwasakiImplemented an additional compile-time error check for a field 7435104470Siwasakiunit whose size + minimum access width would cause a run-time 7436114237Snjlaccess beyond the end-of-region. Previously, only the field size 7437114237Snjlitself was checked. 7438102550Siwasaki 7439104470SiwasakiThe Core subsystem and iASL compiler now share a common parse 7440104470Siwasakiobject in preparation for compile-time evaluation of the type 7441104470Siwasaki3/4/5 ASL operators. 7442102550Siwasaki 7443102550Siwasaki 7444102550Siwasaki---------------------------------------- 7445102550SiwasakiSummary of changes for this release: 03_29_02 7446102550Siwasaki 7447102550Siwasaki1) ACPI CA Core Subsystem Version 20020329: 7448102550Siwasaki 7449104470SiwasakiImplemented support for late evaluation of TermArg operands to 7450193267SjkimBuffer and Package objects. This allows complex expressions to be 7451126372Snjlused in the declarations of these object types. 7452102550Siwasaki 7453193267SjkimFixed an ACPI 1.0 compatibility issue when reading Fields. In ACPI 7454126372Snjl1.0, if the field was larger than 32 bits, it was returned as a 7455126372Snjlbuffer - otherwise it was returned as an integer. In ACPI 2.0, 7456193267Sjkimthe field is returned as a buffer only if the field is larger than 7457126372Snjl64 bits. The TableRevision is now considered when making this 7458126372Snjlconversion to avoid incompatibility with existing ASL code. 7459102550Siwasaki 7460104470SiwasakiImplemented logical addressing for AcpiOsGetRootPointer. This 7461114237Snjlallows an RSDP with either a logical or physical address. With 7462114237Snjlthis support, the host OS can now override all ACPI tables with 7463114237Snjlone logical RSDP. Includes implementation of "typed" pointer 7464114237Snjlsupport to allow a common data type for both physical and logical 7465114237Snjlpointers internally. This required a change to the 7466114237SnjlAcpiOsGetRootPointer interface. 7467102550Siwasaki 7468193267SjkimImplemented the use of ACPI 2.0 Generic Address Structures for all 7469193267SjkimGPE, Fixed Event, and PM Timer I/O. This allows the use of memory 7470126372Snjlmapped I/O for these ACPI features. 7471102550Siwasaki 7472102550SiwasakiInitialization now ignores not only non-required tables (All 7473114237Snjltables other than the FADT, FACS, DSDT, and SSDTs), but also does 7474114237Snjlnot validate the table headers of unrecognized tables. 7475102550Siwasaki 7476102550SiwasakiFixed a problem where a notify handler could only be 7477102550Siwasakiinstalled/removed on an object of type Device. All "notify" 7478167802Sjkim 7479102550Siwasakiobjects are now supported -- Devices, Processor, Power, and 7480102550SiwasakiThermal. 7481102550Siwasaki 7482114237SnjlRemoved most verbosity from the ACPI_DB_INFO debug level. Only 7483193267Sjkimcritical information is returned when this debug level is enabled. 7484102550Siwasaki 7485193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7486126372Snjlbelow. These are the code and data sizes for the acpica.lib 7487126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7488126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7489126372Snjlversion of the code includes the debug output trace mechanism and 7490193267Sjkimhas a larger code and data size. Note that these values will vary 7491126372Snjldepending on the efficiency of the compiler and the compiler 7492126372Snjloptions used during generation. 7493102550Siwasaki 7494102550Siwasaki Previous Release 7495104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7496104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7497102550Siwasaki Current Release: 7498104470Siwasaki Non-Debug Version: 66.6K Code, 6.5K Data, 73.1K Total 7499104470Siwasaki Debug Version: 139.8K Code, 57.4K Data, 197.2K Total 7500102550Siwasaki 7501102550Siwasaki 7502102550Siwasaki2) Linux: 7503102550Siwasaki 7504114237SnjlThe processor driver (acpi_processor.c) now fully supports ACPI 7505114237Snjl2.0-based processor performance control (e.g. Intel(R) 7506114237SnjlSpeedStep(TM) technology) Note that older laptops that only have 7507114237Snjlthe Intel "applet" interface are not supported through this. The 7508114237Snjl'limit' and 'performance' interface (/proc) are fully functional. 7509114237Snjl[Note that basic policy for controlling performance state 7510114237Snjltransitions will be included in the next version of ospmd.] The 7511114237Snjlidle handler was modified to more aggressively use C2, and PIIX4 7512114237Snjlerrata handling underwent a complete overhaul (big thanks to 7513114237SnjlDominik Brodowski). 7514102550Siwasaki 7515114237SnjlAdded support for ACPI-PCI device binding (acpi_pci_root.c). _ADR- 7516114237Snjlbased devices in the ACPI namespace are now dynamically bound 7517114237Snjl(associated) with their PCI counterparts (e.g. PCI1->01:00.0). 7518114237SnjlThis allows, among other things, ACPI to resolve bus numbers for 7519114237Snjlsubordinate PCI bridges. 7520102550Siwasaki 7521104470SiwasakiEnhanced PCI IRQ routing to get the proper bus number for _PRT 7522104470Siwasakientries defined underneath PCI bridges. 7523102550Siwasaki 7524104470SiwasakiAdded IBM 600E to bad bios list due to invalid _ADR value for 7525104470SiwasakiPIIX4 PCI-ISA bridge, resulting in improper PCI IRQ routing. 7526102550Siwasaki 7527114237SnjlIn the process of adding full MADT support (e.g. IOAPIC) for IA32 7528114237Snjl(acpi.c, mpparse.c) -- stay tuned. 7529102550Siwasaki 7530102550SiwasakiAdded back visual differentiation between fixed-feature and 7531114237Snjlcontrol-method buttons in dmesg. Buttons are also subtyped (e.g. 7532114237Snjlbutton/power/PWRF) to simplify button identification. 7533102550Siwasaki 7534114237SnjlWe no longer use -Wno-unused when compiling debug. Please ignore 7535114237Snjlany "_THIS_MODULE defined but not used" messages. 7536102550Siwasaki 7537102550SiwasakiCan now shut down the system using "magic sysrq" key. 7538102550Siwasaki 7539102550Siwasaki 7540102550Siwasaki3) iASL Compiler version 2041: 7541102550Siwasaki 7542104470SiwasakiFixed a problem where conversion errors for hex/octal/decimal 7543104470Siwasakiconstants were not reported. 7544102550Siwasaki 7545193267SjkimImplemented a fix for the General Register template Address field. 7546126372SnjlThis field was 8 bits when it should be 64. 7547102550Siwasaki 7548193267SjkimFixed a problem where errors/warnings were no longer being emitted 7549126372Snjlwithin the listing output file. 7550102550Siwasaki 7551114237SnjlImplemented the ACPI 2.0A restriction on ACPI Table Signatures to 7552114237Snjlexactly 4 characters, alphanumeric only. 7553102550Siwasaki 7554102550Siwasaki 7555102550Siwasaki 7556102550Siwasaki 7557102550Siwasaki---------------------------------------- 7558102550SiwasakiSummary of changes for this release: 03_08_02 7559102550Siwasaki 7560102550Siwasaki 7561102550Siwasaki1) ACPI CA Core Subsystem Version 20020308: 7562102550Siwasaki 7563114237SnjlFixed a problem with AML Fields where the use of the "AccessAny" 7564193267Sjkimkeyword could cause an interpreter error due to attempting to read 7565126372Snjlor write beyond the end of the parent Operation Region. 7566102550Siwasaki 7567193267SjkimFixed a problem in the SystemMemory Operation Region handler where 7568126372Snjlan attempt was made to map memory beyond the end of the region. 7569126372SnjlThis was the root cause of the "AE_ERROR" and "AE_NO_MEMORY" 7570126372Snjlerrors on some Linux systems. 7571102550Siwasaki 7572114237SnjlFixed a problem where the interpreter/namespace "search to root" 7573114237Snjlalgorithm was not functioning for some object types. Relaxed the 7574114237Snjlinternal restriction on the search to allow upsearches for all 7575114237Snjlexternal object types as well as most internal types. 7576102550Siwasaki 7577102550Siwasaki 7578102550Siwasaki2) Linux: 7579102550Siwasaki 7580193267SjkimWe now use safe_halt() macro versus individual calls to sti | hlt. 7581102550Siwasaki 7582193267SjkimWriting to the processor limit interface should now work. "echo 1" 7583126372Snjlwill increase the limit, 2 will decrease, and 0 will reset to the 7584167802Sjkim 7585126372Snjldefault. 7586102550Siwasaki 7587102550Siwasaki 7588102550Siwasaki3) ASL compiler: 7589102550Siwasaki 7590102550SiwasakiFixed segfault on Linux version. 7591102550Siwasaki 7592102550Siwasaki 7593102550Siwasaki---------------------------------------- 7594102550SiwasakiSummary of changes for this release: 02_25_02 7595102550Siwasaki 7596102550Siwasaki1) ACPI CA Core Subsystem: 7597102550Siwasaki 7598102550Siwasaki 7599102550SiwasakiFixed a problem where the GPE bit masks were not initialized 7600102550Siwasakiproperly, causing erratic GPE behavior. 7601102550Siwasaki 7602193267SjkimImplemented limited support for multiple calling conventions. The 7603126372Snjlcode can be generated with either the VPL (variable parameter 7604114237Snjllist, or "C") convention, or the FPL (fixed parameter list, or 7605114237Snjl"Pascal") convention. The core subsystem is about 3.4% smaller 7606114237Snjlwhen generated with FPL. 7607102550Siwasaki 7608102550Siwasaki 7609102550Siwasaki2) Linux 7610102550Siwasaki 7611114237SnjlRe-add some /proc/acpi/event functionality that was lost during 7612114237Snjlthe rewrite 7613102550Siwasaki 7614193267SjkimResolved issue with /proc events for fixed-feature buttons showing 7615126372Snjlup as the system device. 7616102550Siwasaki 7617193267SjkimFixed checks on C2/C3 latencies to be inclusive of maximum values. 7618102550Siwasaki 7619114237SnjlReplaced AE_ERRORs in acpi_osl.c with more specific error codes. 7620102550Siwasaki 7621114237SnjlChanged ACPI PRT option from "pci=noacpi-routing" to "pci=noacpi" 7622102550Siwasaki 7623104470SiwasakiFixed limit interface & usage to fix bugs with passive cooling 7624104470Siwasakihysterisis. 7625102550Siwasaki 7626102550SiwasakiRestructured PRT support. 7627102550Siwasaki 7628102550Siwasaki 7629102550Siwasaki---------------------------------------- 7630102550SiwasakiSummary of changes for this label: 02_14_02 7631102550Siwasaki 7632102550Siwasaki 7633102550Siwasaki1) ACPI CA Core Subsystem: 7634102550Siwasaki 7635114237SnjlImplemented support in AcpiLoadTable to allow loading of FACS and 7636114237SnjlFADT tables. 7637102550Siwasaki 7638114237SnjlSuport for the now-obsolete interim 0.71 64-bit ACPI tables has 7639193267Sjkimbeen removed. All 64-bit platforms should be migrated to the ACPI 7640193267Sjkim2.0 tables. The actbl71.h header has been removed from the source 7641126372Snjltree. 7642102550Siwasaki 7643114237SnjlAll C macros defined within the subsystem have been prefixed with 7644114237Snjl"ACPI_" to avoid collision with other system include files. 7645102550Siwasaki 7646193267SjkimRemoved the return value for the two AcpiOsPrint interfaces, since 7647126372Snjlit is never used and causes lint warnings for ignoring the return 7648126372Snjlvalue. 7649102550Siwasaki 7650104470SiwasakiAdded error checking to all internal mutex acquire and release 7651104470Siwasakicalls. Although a failure from one of these interfaces is 7652104470Siwasakiprobably a fatal system error, these checks will cause the 7653114237Snjlimmediate abort of the currently executing method or interface. 7654102550Siwasaki 7655114237SnjlFixed a problem where the AcpiSetCurrentResources interface could 7656193267Sjkimfault. This was a side effect of the deployment of the new memory 7657126372Snjlallocation model. 7658102550Siwasaki 7659193267SjkimFixed a couple of problems with the Global Lock support introduced 7660193267Sjkimin the last major build. The "common" (1.0/2.0) internal FACS was 7661126372Snjlbeing overwritten with the FACS signature and clobbering the 7662126372SnjlGlobal Lock pointer. Also, the actual firmware FACS was being 7663126372Snjlunmapped after construction of the "common" FACS, preventing 7664126372Snjlaccess to the actual Global Lock field within it. The "common" 7665126372Snjlinternal FACS is no longer installed as an actual ACPI table; it 7666126372Snjlis used simply as a global. 7667102550Siwasaki 7668193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7669126372Snjlbelow. These are the code and data sizes for the acpica.lib 7670126372Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7671126372Snjlvalues do not include any ACPI driver or OSPM code. The debug 7672126372Snjlversion of the code includes the debug output trace mechanism and 7673193267Sjkimhas a larger code and data size. Note that these values will vary 7674126372Snjldepending on the efficiency of the compiler and the compiler 7675126372Snjloptions used during generation. 7676102550Siwasaki 7677102550Siwasaki Previous Release (02_07_01) 7678104470Siwasaki Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7679104470Siwasaki Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7680102550Siwasaki Current Release: 7681104470Siwasaki Non-Debug Version: 65.4K Code, 6.2K Data, 71.6K Total 7682104470Siwasaki Debug Version: 138.0K Code, 56.6K Data, 194.6K Total 7683102550Siwasaki 7684102550Siwasaki 7685102550Siwasaki2) Linux 7686102550Siwasaki 7687102550SiwasakiUpdated Linux-specific code for core macro and OSL interface 7688102550Siwasakichanges described above. 7689102550Siwasaki 7690114237SnjlImproved /proc/acpi/event. It now can be opened only once and has 7691114237Snjlproper poll functionality. 7692102550Siwasaki 7693102550SiwasakiFixed and restructured power management (acpi_bus). 7694102550Siwasaki 7695193267SjkimOnly create /proc "view by type" when devices of that class exist. 7696102550Siwasaki 7697104470SiwasakiFixed "charging/discharging" bug (and others) in acpi_battery. 7698102550Siwasaki 7699102550SiwasakiImproved thermal zone code. 7700102550Siwasaki 7701102550Siwasaki 7702102550Siwasaki3) ASL Compiler, version X2039: 7703102550Siwasaki 7704114237Snjl 7705114237SnjlImplemented the new compiler restriction on ASL String hex/octal 7706193267Sjkimescapes to non-null, ASCII values. An error results if an invalid 7707126372Snjlvalue is used. (This will require an ACPI 2.0 specification 7708126372Snjlchange.) 7709102550Siwasaki 7710193267SjkimAML object labels that are output to the optional C and ASM source 7711126372Snjlare now prefixed with both the ACPI table signature and table ID 7712126372Snjlto help guarantee uniqueness within a large BIOS project. 7713102550Siwasaki 7714102550Siwasaki 7715102550Siwasaki---------------------------------------- 7716102550SiwasakiSummary of changes for this label: 02_01_02 7717102550Siwasaki 7718102550Siwasaki1) ACPI CA Core Subsystem: 7719102550Siwasaki 7720114237SnjlACPI 2.0 support is complete in the entire Core Subsystem and the 7721114237SnjlASL compiler. All new ACPI 2.0 operators are implemented and all 7722114237Snjlother changes for ACPI 2.0 support are complete. With 7723193267Sjkimsimultaneous code and data optimizations throughout the subsystem, 7724126372SnjlACPI 2.0 support has been implemented with almost no additional 7725126372Snjlcost in terms of code and data size. 7726102550Siwasaki 7727114237SnjlImplemented a new mechanism for allocation of return buffers. If 7728114237Snjlthe buffer length is set to ACPI_ALLOCATE_BUFFER, the buffer will 7729114237Snjlbe allocated on behalf of the caller. Consolidated all return 7730114237Snjlbuffer validation and allocation to a common procedure. Return 7731193267Sjkimbuffers will be allocated via the primary OSL allocation interface 7732193267Sjkimsince it appears that a separate pool is not needed by most users. 7733126372SnjlIf a separate pool is required for these buffers, the caller can 7734126372Snjlstill use the original mechanism and pre-allocate the buffer(s). 7735102550Siwasaki 7736102550SiwasakiImplemented support for string operands within the DerefOf 7737102550Siwasakioperator. 7738102550Siwasaki 7739114237SnjlRestructured the Hardware and Event managers to be table driven, 7740114237Snjlsimplifying the source code and reducing the amount of generated 7741114237Snjlcode. 7742102550Siwasaki 7743102550SiwasakiSplit the common read/write low-level ACPI register bitfield 7744104470Siwasakiprocedure into a separate read and write, simplifying the code 7745104470Siwasakiconsiderably. 7746102550Siwasaki 7747114237SnjlObsoleted the AcpiOsCallocate OSL interface. This interface was 7748114237Snjlused only a handful of times and didn't have enough critical mass 7749193267Sjkimfor a separate interface. Replaced with a common calloc procedure 7750126372Snjlin the core. 7751102550Siwasaki 7752104470SiwasakiFixed a reported problem with the GPE number mapping mechanism 7753104470Siwasakithat allows GPE1 numbers to be non-contiguous with GPE0. 7754114237SnjlReorganized the GPE information and shrunk a large array that was 7755114237Snjloriginally large enough to hold info for all possible GPEs (256) 7756114237Snjlto simply large enough to hold all GPEs up to the largest GPE 7757114237Snjlnumber on the machine. 7758102550Siwasaki 7759114237SnjlFixed a reported problem with resource structure alignment on 64- 7760114237Snjlbit platforms. 7761102550Siwasaki 7762102550SiwasakiChanged the AcpiEnableEvent and AcpiDisableEvent external 7763102550Siwasakiinterfaces to not require any flags for the common case of 7764102550Siwasakienabling/disabling a GPE. 7765102550Siwasaki 7766104470SiwasakiImplemented support to allow a "Notify" on a Processor object. 7767102550Siwasaki 7768114237SnjlMost TBDs in comments within the source code have been resolved 7769114237Snjland eliminated. 7770102550Siwasaki 7771167802Sjkim 7772102550SiwasakiFixed a problem in the interpreter where a standalone parent 7773102550Siwasakiprefix (^) was not handled correctly in the interpreter and 7774102550Siwasakidebugger. 7775102550Siwasaki 7776102550SiwasakiRemoved obsolete and unnecessary GPE save/restore code. 7777102550Siwasaki 7778193267SjkimImplemented Field support in the ASL Load operator. This allows a 7779126372Snjltable to be loaded from a named field, in addition to loading a 7780114237Snjltable directly from an Operation Region. 7781102550Siwasaki 7782193267SjkimImplemented timeout and handle support in the external Global Lock 7783126372Snjlinterfaces. 7784102550Siwasaki 7785114237SnjlFixed a problem in the AcpiDump utility where pathnames were no 7786193267Sjkimlonger being generated correctly during the dump of named objects. 7787102550Siwasaki 7788102550SiwasakiModified the AML debugger to give a full display of if/while 7789102550Siwasakipredicates instead of just one AML opcode at a time. (The 7790193267Sjkimpredicate can have several nested ASL statements.) The old method 7791126372Snjlwas confusing during single stepping. 7792102550Siwasaki 7793193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7794126372Snjlbelow. These are the code and data sizes for the acpica.lib 7795114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7796114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7797114237Snjlversion of the code includes the debug output trace mechanism and 7798193267Sjkimhas a larger code and data size. Note that these values will vary 7799126372Snjldepending on the efficiency of the compiler and the compiler 7800114237Snjloptions used during generation. 7801102550Siwasaki 7802102550Siwasaki Previous Release (12_18_01) 7803114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 7804114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 7805102550Siwasaki Current Release: 7806114237Snjl Non-Debug Version: 65.2K Code, 6.2K Data, 71.4K Total 7807114237Snjl Debug Version: 136.9K Code, 56.4K Data, 193.3K Total 7808102550Siwasaki 7809102550Siwasaki2) Linux 7810102550Siwasaki 7811104470Siwasaki Implemented fix for PIIX reverse throttling errata (Processor 7812104470Siwasakidriver) 7813102550Siwasaki 7814102550SiwasakiAdded new Limit interface (Processor and Thermal drivers) 7815102550Siwasaki 7816102550SiwasakiNew thermal policy (Thermal driver) 7817102550Siwasaki 7818102550SiwasakiMany updates to /proc 7819102550Siwasaki 7820102550SiwasakiBattery "low" event support (Battery driver) 7821102550Siwasaki 7822104470SiwasakiSupports ACPI PCI IRQ routing (PCI Link and PCI root drivers) 7823102550Siwasaki 7824104470SiwasakiIA32 - IA64 initialization unification, no longer experimental 7825102550Siwasaki 7826102550SiwasakiMenuconfig options redesigned 7827102550Siwasaki 7828102550Siwasaki3) ASL Compiler, version X2037: 7829102550Siwasaki 7830193267SjkimImplemented several new output features to simplify integration of 7831126372SnjlAML code into firmware: 1) Output the AML in C source code with 7832193267Sjkimlabels for each named ASL object. The original ASL source code 7833193267Sjkimis interleaved as C comments. 2) Output the AML in ASM source code 7834126372Snjlwith labels and interleaved ASL source. 3) Output the AML in 7835126372Snjlraw hex table form, in either C or ASM. 7836102550Siwasaki 7837102550SiwasakiImplemented support for optional string parameters to the 7838102550SiwasakiLoadTable operator. 7839102550Siwasaki 7840104470SiwasakiCompleted support for embedded escape sequences within string 7841114237Snjlliterals. The compiler now supports all single character escapes 7842114237Snjlas well as the Octal and Hex escapes. Note: the insertion of a 7843114237Snjlnull byte into a string literal (via the hex/octal escape) causes 7844114237Snjlthe string to be immediately terminated. A warning is issued. 7845102550Siwasaki 7846104470SiwasakiFixed a problem where incorrect AML was generated for the case 7847104470Siwasakiwhere an ASL namepath consists of a single parent prefix ( 7848102550Siwasaki 7849102550Siwasaki) with no trailing name segments. 7850102550Siwasaki 7851102550SiwasakiThe compiler has been successfully generated with a 64-bit C 7852102550Siwasakicompiler. 7853102550Siwasaki 7854102550Siwasaki 7855102550Siwasaki 7856102550Siwasaki 7857102550Siwasaki---------------------------------------- 7858102550SiwasakiSummary of changes for this label: 12_18_01 7859102550Siwasaki 7860102550Siwasaki1) Linux 7861102550Siwasaki 7862114237SnjlEnhanced blacklist with reason and severity fields. Any table's 7863114237Snjlsignature may now be used to identify a blacklisted system. 7864102550Siwasaki 7865114237SnjlCall _PIC control method to inform the firmware which interrupt 7866114237Snjlmodel the OS is using. Turn on any disabled link devices. 7867102550Siwasaki 7868102550SiwasakiCleaned up busmgr /proc error handling (Andreas Dilger) 7869102550Siwasaki 7870102550Siwasaki 2) ACPI CA Core Subsystem: 7871102550Siwasaki 7872193267SjkimImplemented ACPI 2.0 semantics for the "Break" operator (Exit from 7873126372Snjlwhile loop) 7874102550Siwasaki 7875102550SiwasakiCompleted implementation of the ACPI 2.0 "Continue", 7876102550Siwasaki"ConcatenateResTemplate", "DataTableRegion", and "LoadTable" 7877193267Sjkimoperators. All new ACPI 2.0 operators are now implemented in both 7878193267Sjkimthe ASL compiler and the AML interpreter. The only remaining ACPI 7879126372Snjl2.0 task is support for the String data type in the DerefOf 7880193267Sjkimoperator. Fixed a problem with AcquireMutex where the status code 7881126372Snjlwas lost if the caller had to actually wait for the mutex. 7882102550Siwasaki 7883104470SiwasakiIncreased the maximum ASL Field size from 64K bits to 4G bits. 7884102550Siwasaki 7885193267SjkimCompleted implementation of the external Global Lock interfaces -- 7886126372SnjlAcpiAcquireGlobalLock and AcpiReleaseGlobalLock. The Timeout and 7887126372SnjlHandler parameters were added. 7888102550Siwasaki 7889102550SiwasakiCompleted another pass at removing warnings and issues when 7890114237Snjlcompiling with 64-bit compilers. The code now compiles cleanly 7891114237Snjlwith the Intel 64-bit C/C++ compiler. Most notably, the pointer 7892114237Snjladd and subtract (diff) macros have changed considerably. 7893102550Siwasaki 7894167802Sjkim 7895114237SnjlCreated and deployed a new ACPI_SIZE type that is 64-bits wide on 7896114237Snjl64-bit platforms, 32-bits on all others. This type is used 7897193267Sjkimwherever memory allocation and/or the C sizeof() operator is used, 7898126372Snjland affects the OSL memory allocation interfaces AcpiOsAllocate 7899126372Snjland AcpiOsCallocate. 7900102550Siwasaki 7901102550SiwasakiImplemented sticky user breakpoints in the AML debugger. 7902102550Siwasaki 7903193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7904126372Snjlbelow. These are the code and data sizes for the acpica.lib 7905114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7906114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7907114237Snjlversion of the code includes the debug output trace mechanism and 7908114237Snjlhas a larger code and data size. Note that these values will vary 7909114237Snjldepending on the efficiency of the compiler and the compiler 7910114237Snjloptions used during generation. 7911102550Siwasaki 7912102550Siwasaki Previous Release (12_05_01) 7913114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 7914114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 7915102550Siwasaki Current Release: 7916114237Snjl Non-Debug Version: 66.1K Code, 5.5K Data, 71.6K Total 7917114237Snjl Debug Version: 138.3K Code, 55.9K Data, 194.2K Total 7918102550Siwasaki 7919102550Siwasaki 3) ASL Compiler, version X2034: 7920102550Siwasaki 7921114237SnjlNow checks for (and generates an error if detected) the use of a 7922114237SnjlBreak or Continue statement without an enclosing While statement. 7923102550Siwasaki 7924167802Sjkim 7925102550SiwasakiSuccessfully generated the compiler with the Intel 64-bit C 7926102550Siwasakicompiler. 7927102550Siwasaki 7928102550Siwasaki ---------------------------------------- 7929102550SiwasakiSummary of changes for this label: 12_05_01 7930102550Siwasaki 7931102550Siwasaki 1) ACPI CA Core Subsystem: 7932102550Siwasaki 7933102550SiwasakiThe ACPI 2.0 CopyObject operator is fully implemented. This 7934104470Siwasakioperator creates a new copy of an object (and is also used to 7935193267Sjkimbypass the "implicit conversion" mechanism of the Store operator.) 7936102550Siwasaki 7937102550SiwasakiThe ACPI 2.0 semantics for the SizeOf operator are fully 7938102550Siwasakiimplemented. The change is that performing a SizeOf on a 7939114237Snjlreference object causes an automatic dereference of the object to 7940114237Snjltha actual value before the size is evaluated. This behavior was 7941114237Snjlundefined in ACPI 1.0. 7942102550Siwasaki 7943114237SnjlThe ACPI 2.0 semantics for the Extended IRQ resource descriptor 7944114237Snjlhave been implemented. The interrupt polarity and mode are now 7945114237Snjlindependently set. 7946102550Siwasaki 7947114237SnjlFixed a problem where ASL Constants (Zero, One, Ones, Revision) 7948114237Snjlappearing in Package objects were not properly converted to 7949114237Snjlintegers when the internal Package was converted to an external 7950114237Snjlobject (via the AcpiEvaluateObject interface.) 7951102550Siwasaki 7952114237SnjlFixed a problem with the namespace object deletion mechanism for 7953114237Snjlobjects created by control methods. There were two parts to this 7954193267Sjkimproblem: 1) Objects created during the initialization phase method 7955193267Sjkimparse were not being deleted, and 2) The object owner ID mechanism 7956126372Snjlto track objects was broken. 7957102550Siwasaki 7958114237SnjlFixed a problem where the use of the ASL Scope operator within a 7959114237Snjlcontrol method would result in an invalid opcode exception. 7960102550Siwasaki 7961114237SnjlFixed a problem introduced in the previous label where the buffer 7962114237Snjllength required for the _PRT structure was not being returned 7963114237Snjlcorrectly. 7964102550Siwasaki 7965193267SjkimCode and Data Size: Current core subsystem library sizes are shown 7966126372Snjlbelow. These are the code and data sizes for the acpica.lib 7967114237Snjlproduced by the Microsoft Visual C++ 6.0 compiler, and these 7968114237Snjlvalues do not include any ACPI driver or OSPM code. The debug 7969114237Snjlversion of the code includes the debug output trace mechanism and 7970193267Sjkimhas a larger code and data size. Note that these values will vary 7971126372Snjldepending on the efficiency of the compiler and the compiler 7972114237Snjloptions used during generation. 7973102550Siwasaki 7974102550Siwasaki Previous Release (11_20_01) 7975114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 7976114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 7977102550Siwasaki 7978102550Siwasaki Current Release: 7979114237Snjl Non-Debug Version: 64.7K Code, 5.3K Data, 70.0K Total 7980114237Snjl Debug Version: 136.2K Code, 55.6K Data, 191.8K Total 7981102550Siwasaki 7982102550Siwasaki 2) Linux: 7983102550Siwasaki 7984102550SiwasakiUpdated all files to apply cleanly against 2.4.16. 7985102550Siwasaki 7986104470SiwasakiAdded basic PCI Interrupt Routing Table (PRT) support for IA32 7987114237Snjl(acpi_pci.c), and unified the PRT code for IA32 and IA64. This 7988114237Snjlversion supports both static and dyanmic PRT entries, but dynamic 7989114237Snjlentries are treated as if they were static (not yet 7990114237Snjlreconfigurable). Architecture- specific code to use this data is 7991114237Snjlabsent on IA32 but should be available shortly. 7992102550Siwasaki 7993114237SnjlChanged the initialization sequence to start the ACPI interpreter 7994114237Snjl(acpi_init) prior to initialization of the PCI driver (pci_init) 7995114237Snjlin init/main.c. This ordering is required to support PRT and 7996114237Snjlfacilitate other (future) enhancement. A side effect is that the 7997193267SjkimACPI bus driver and certain device drivers can no longer be loaded 7998126372Snjlas modules. 7999102550Siwasaki 8000104470SiwasakiModified the 'make menuconfig' options to allow PCI Interrupt 8001104470SiwasakiRouting support to be included without the ACPI Bus and other 8002104470Siwasakidevice drivers. 8003102550Siwasaki 8004102550Siwasaki 3) ASL Compiler, version X2033: 8005102550Siwasaki 8006102550SiwasakiFixed some issues with the use of the new CopyObject and 8007102550SiwasakiDataTableRegion operators. Both are fully functional. 8008102550Siwasaki 8009102550Siwasaki ---------------------------------------- 8010102550SiwasakiSummary of changes for this label: 11_20_01 8011102550Siwasaki 8012102550Siwasaki 20 November 2001. Summary of changes for this release. 8013102550Siwasaki 8014102550Siwasaki 1) ACPI CA Core Subsystem: 8015102550Siwasaki 8016104470SiwasakiUpdated Index support to match ACPI 2.0 semantics. Storing a 8017193267SjkimInteger, String, or Buffer to an Index of a Buffer will store only 8018126372Snjlthe least-significant byte of the source to the Indexed buffer 8019126372Snjlbyte. Multiple writes are not performed. 8020102550Siwasaki 8021104470SiwasakiFixed a problem where the access type used in an AccessAs ASL 8022104470Siwasakioperator was not recorded correctly into the field object. 8023102550Siwasaki 8024102550SiwasakiFixed a problem where ASL Event objects were created in a 8025114237Snjlsignalled state. Events are now created in an unsignalled state. 8026102550Siwasaki 8027114237SnjlThe internal object cache is now purged after table loading and 8028114237Snjlinitialization to reduce the use of dynamic kernel memory -- on 8029114237Snjlthe assumption that object use is greatest during the parse phase 8030193267Sjkimof the entire table (versus the run-time use of individual control 8031126372Snjlmethods.) 8032102550Siwasaki 8033102550SiwasakiACPI 2.0 variable-length packages are now fully operational. 8034102550Siwasaki 8035193267SjkimCode and Data Size: Code and Data optimizations have permitted new 8036126372Snjlfeature development with an actual reduction in the library size. 8037126372SnjlCurrent core subsystem library sizes are shown below. These are 8038126372Snjlthe code and data sizes for the acpica.lib produced by the 8039193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8040126372Snjlany ACPI driver or OSPM code. The debug version of the code 8041126372Snjlincludes the debug output trace mechanism and has a larger code 8042126372Snjland data size. Note that these values will vary depending on the 8043126372Snjlefficiency of the compiler and the compiler options used during 8044126372Snjlgeneration. 8045102550Siwasaki 8046102550Siwasaki Previous Release (11_09_01): 8047114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8048114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8049102550Siwasaki 8050102550Siwasaki Current Release: 8051114237Snjl Non-Debug Version: 64.1K Code, 5.3K Data, 69.4K Total 8052114237Snjl Debug Version: 135.1K Code, 55.4K Data, 190.5K Total 8053102550Siwasaki 8054102550Siwasaki 2) Linux: 8055102550Siwasaki 8056114237SnjlEnhanced the ACPI boot-time initialization code to allow the use 8057114237Snjlof Local APIC tables for processor enumeration on IA-32, and to 8058114237Snjlpave the way for a fully MPS-free boot (on SMP systems) in the 8059114237Snjlnear future. This functionality replaces 8060114237Snjlarch/i386/kernel/acpitables.c, which was introduced in an earlier 8061114237Snjl2.4.15-preX release. To enable this feature you must add 8062114237Snjl"acpi_boot=on" to the kernel command line -- see the help entry 8063193267Sjkimfor CONFIG_ACPI_BOOT for more information. An IA-64 release is in 8064126372Snjlthe works... 8065102550Siwasaki 8066114237SnjlRestructured the configuration options to allow boot-time table 8067114237Snjlparsing support without inclusion of the ACPI Interpreter (and 8068114237Snjlother) code. 8069102550Siwasaki 8070193267SjkimNOTE: This release does not include fixes for the reported events, 8071126372Snjlpower-down, and thermal passive cooling issues (coming soon). 8072102550Siwasaki 8073102550Siwasaki 3) ASL Compiler: 8074102550Siwasaki 8075114237SnjlAdded additional typechecking for Fields within restricted access 8076114237SnjlOperation Regions. All fields within EC and CMOS regions must be 8077114237Snjldeclared with ByteAcc. All fields withing SMBus regions must be 8078114237Snjldeclared with the BufferAcc access type. 8079102550Siwasaki 8080114237SnjlFixed a problem where the listing file output of control methods 8081114237Snjlno longer interleaved the actual AML code with the ASL source 8082114237Snjlcode. 8083102550Siwasaki 8084102550Siwasaki 8085102550Siwasaki 8086167802Sjkim 8087102550Siwasaki---------------------------------------- 8088102550SiwasakiSummary of changes for this label: 11_09_01 8089102550Siwasaki 8090102550Siwasaki1) ACPI CA Core Subsystem: 8091102550Siwasaki 8092114237SnjlImplemented ACPI 2.0-defined support for writes to fields with a 8093193267SjkimBuffer, String, or Integer source operand that is smaller than the 8094126372Snjltarget field. In these cases, the source operand is zero-extended 8095126372Snjlto fill the target field. 8096102550Siwasaki 8097104470SiwasakiFixed a problem where a Field starting bit offset (within the 8098104470Siwasakiparent operation region) was calculated incorrectly if the 8099167802Sjkim 8100104470Siwasakialignment of the field differed from the access width. This 8101114237Snjlaffected CreateWordField, CreateDwordField, CreateQwordField, and 8102114237Snjlpossibly other fields that use the "AccessAny" keyword. 8103102550Siwasaki 8104114237SnjlFixed a problem introduced in the 11_02_01 release where indirect 8105114237Snjlstores through method arguments did not operate correctly. 8106102550Siwasaki 8107102550Siwasaki2) Linux: 8108102550Siwasaki 8109102550SiwasakiImplemented boot-time ACPI table parsing support 8110114237Snjl(CONFIG_ACPI_BOOT) for IA32 and IA64 UP/SMP systems. This code 8111114237Snjlfacilitates the use of ACPI tables (e.g. MADT, SRAT) rather than 8112114237Snjllegacy BIOS interfaces (e.g. MPS) for the configuration of system 8113193267Sjkimprocessors, memory, and interrupts during setup_arch(). Note that 8114126372Snjlthis patch does not include the required architecture-specific 8115126372Snjlchanges required to apply this information -- subsequent patches 8116126372Snjlwill be posted for both IA32 and IA64 to achieve this. 8117102550Siwasaki 8118114237SnjlAdded low-level sleep support for IA32 platforms, courtesy of Pat 8119114237SnjlMochel. This allows IA32 systems to transition to/from various 8120114237Snjlsleeping states (e.g. S1, S3), although the lack of a centralized 8121114237Snjldriver model and power-manageable drivers will prevent its 8122114237Snjl(successful) use on most systems. 8123102550Siwasaki 8124114237SnjlRevamped the ACPI 'menuconfig' layout: created new "ACPI Support" 8125193267Sjkimsubmenu, unified IA32 and IA64 options, added new "Boot using ACPI 8126126372Snjltables" option, etc. 8127102550Siwasaki 8128114237SnjlIncreased the default timeout for the EC driver from 1ms to 10ms 8129114237Snjl(1000 cycles of 10us) to try to address AE_TIME errors during EC 8130114237Snjltransactions. 8131102550Siwasaki 8132102550Siwasaki ---------------------------------------- 8133102550SiwasakiSummary of changes for this label: 11_02_01 8134102550Siwasaki 8135102550Siwasaki1) ACPI CA Core Subsystem: 8136102550Siwasaki 8137102550SiwasakiACPI 2.0 Support: Implemented ACPI 2.0 64-bit Field access 8138102550Siwasaki(QWordAcc keyword). All ACPI 2.0 64-bit support is now 8139102550Siwasakiimplemented. 8140102550Siwasaki 8141114237SnjlOSL Interfaces: Several of the OSL (AcpiOs*) interfaces required 8142114237Snjlchanges to support ACPI 2.0 Qword field access. Read/Write 8143193267SjkimPciConfiguration(), Read/Write Memory(), and Read/Write Port() now 8144126372Snjlaccept an ACPI_INTEGER (64 bits) as the value parameter. Also, 8145193267Sjkimthe value parameter for the address space handler interface is now 8146193267Sjkiman ACPI_INTEGER. OSL implementations of these interfaces must now 8147126372Snjlhandle the case where the Width parameter is 64. 8148102550Siwasaki 8149104470SiwasakiIndex Fields: Fixed a problem where unaligned bit assembly and 8150104470Siwasakidisassembly for IndexFields was not supported correctly. 8151102550Siwasaki 8152102550SiwasakiIndex and Bank Fields: Nested Index and Bank Fields are now 8153104470Siwasakisupported. During field access, a check is performed to ensure 8154114237Snjlthat the value written to an Index or Bank register is not out of 8155114237Snjlthe range of the register. The Index (or Bank) register is 8156114237Snjlwritten before each access to the field data. Future support will 8157114237Snjlinclude allowing individual IndexFields to be wider than the 8158114237SnjlDataRegister width. 8159102550Siwasaki 8160114237SnjlFields: Fixed a problem where the AML interpreter was incorrectly 8161114237Snjlattempting to write beyond the end of a Field/OpRegion. This was 8162114237Snjla boundary case that occurred when a DWORD field was written to a 8163114237SnjlBYTE access OpRegion, forcing multiple writes and causing the 8164114237Snjlinterpreter to write one datum too many. 8165102550Siwasaki 8166102550SiwasakiFields: Fixed a problem with Field/OpRegion access where the 8167114237Snjlstarting bit address of a field was incorrectly calculated if the 8168114237Snjlcurrent access type was wider than a byte (WordAcc, DwordAcc, or 8169114237SnjlQwordAcc). 8170102550Siwasaki 8171104470SiwasakiFields: Fixed a problem where forward references to individual 8172193267SjkimFieldUnits (individual Field names within a Field definition) were 8173126372Snjlnot resolved during the AML table load. 8174102550Siwasaki 8175104470SiwasakiFields: Fixed a problem where forward references from a Field 8176104470Siwasakidefinition to the parent Operation Region definition were not 8177104470Siwasakiresolved during the AML table load. 8178104470Siwasaki 8179114237SnjlFields: Duplicate FieldUnit names within a scope are now detected 8180114237Snjlduring AML table load. 8181102550Siwasaki 8182193267SjkimAcpi Interfaces: Fixed a problem where the AcpiGetName() interface 8183126372Snjlreturned an incorrect name for the root node. 8184102550Siwasaki 8185193267SjkimCode and Data Size: Code and Data optimizations have permitted new 8186126372Snjlfeature development with an actual reduction in the library size. 8187126372SnjlCurrent core subsystem library sizes are shown below. These are 8188126372Snjlthe code and data sizes for the acpica.lib produced by the 8189193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8190126372Snjlany ACPI driver or OSPM code. The debug version of the code 8191126372Snjlincludes the debug output trace mechanism and has a larger code 8192126372Snjland data size. Note that these values will vary depending on the 8193126372Snjlefficiency of the compiler and the compiler options used during 8194126372Snjlgeneration. 8195102550Siwasaki 8196102550Siwasaki Previous Release (10_18_01): 8197114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8198114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8199102550Siwasaki 8200102550Siwasaki Current Release: 8201114237Snjl Non-Debug Version: 63.7K Code, 5.2K Data, 68.9K Total 8202114237Snjl Debug Version: 134.5K Code, 55.4K Data, 189.9K Total 8203102550Siwasaki 8204102550Siwasaki 2) Linux: 8205102550Siwasaki 8206102550SiwasakiImproved /proc processor output (Pavel Machek) Re-added 8207102550SiwasakiMODULE_LICENSE("GPL") to all modules. 8208102550Siwasaki 8209102550Siwasaki 3) ASL Compiler version X2030: 8210102550Siwasaki 8211104470SiwasakiDuplicate FieldUnit names within a scope are now detected and 8212104470Siwasakiflagged as errors. 8213102550Siwasaki 8214102550Siwasaki 4) Documentation: 8215102550Siwasaki 8216104470SiwasakiProgrammer Reference updated to reflect OSL and address space 8217104470Siwasakihandler interface changes described above. 8218102550Siwasaki 8219102550Siwasaki---------------------------------------- 8220102550SiwasakiSummary of changes for this label: 10_18_01 8221102550Siwasaki 8222102550SiwasakiACPI CA Core Subsystem: 8223102550Siwasaki 8224193267SjkimFixed a problem with the internal object reference count mechanism 8225126372Snjlthat occasionally caused premature object deletion. This resolves 8226126372Snjlall of the outstanding problem reports where an object is deleted 8227193267Sjkimin the middle of an interpreter evaluation. Although this problem 8228126372Snjlonly showed up in rather obscure cases, the solution to the 8229126372Snjlproblem involved an adjustment of all reference counts involving 8230126372Snjlobjects attached to namespace nodes. 8231102550Siwasaki 8232102550SiwasakiFixed a problem with Field support in the interpreter where 8233114237Snjlwriting to an aligned field whose length is an exact multiple (2 8234193267Sjkimor greater) of the field access granularity would cause an attempt 8235126372Snjlto write beyond the end of the field. 8236102550Siwasaki 8237102550SiwasakiThe top level AML opcode execution functions within the 8238102550Siwasakiinterpreter have been renamed with a more meaningful and 8239102550Siwasakiconsistent naming convention. The modules exmonad.c and 8240102550Siwasakiexdyadic.c were eliminated. New modules are exoparg1.c, 8241102550Siwasakiexoparg2.c, exoparg3.c, and exoparg6.c. 8242102550Siwasaki 8243114237SnjlSupport for the ACPI 2.0 "Mid" ASL operator has been implemented. 8244102550Siwasaki 8245114237SnjlFixed a problem where the AML debugger was causing some internal 8246114237Snjlobjects to not be deleted during subsystem termination. 8247102550Siwasaki 8248104470SiwasakiFixed a problem with the external AcpiEvaluateObject interface 8249104470Siwasakiwhere the subsystem would fault if the named object to be 8250104470Siwasakievaluated refered to a constant such as Zero, Ones, etc. 8251102550Siwasaki 8252102550SiwasakiFixed a problem with IndexFields and BankFields where the 8253114237Snjlsubsystem would fault if the index, data, or bank registers were 8254114237Snjlnot defined in the same scope as the field itself. 8255102550Siwasaki 8256104470SiwasakiAdded printf format string checking for compilers that support 8257104470Siwasakithis feature. Corrected more than 50 instances of issues with 8258104470Siwasakiformat specifiers within invocations of ACPI_DEBUG_PRINT 8259104470Siwasakithroughout the core subsystem code. 8260102550Siwasaki 8261104470SiwasakiThe ASL "Revision" operator now returns the ACPI support level 8262193267Sjkimimplemented in the core - the value "2" since the ACPI 2.0 support 8263126372Snjlis more than 50% implemented. 8264102550Siwasaki 8265114237SnjlEnhanced the output of the AML debugger "dump namespace" command 8266114237Snjlto output in a more human-readable form. 8267102550Siwasaki 8268114237SnjlCurrent core subsystem library code sizes are shown below. These 8269167802Sjkim 8270114237Snjlare the code and data sizes for the acpica.lib produced by the 8271193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8272126372Snjlany ACPI driver or OSPM code. The debug version of the code 8273126372Snjlincludes the full debug trace mechanism -- leading to a much 8274167802Sjkim 8275114237Snjllarger code and data size. Note that these values will vary 8276114237Snjldepending on the efficiency of the compiler and the compiler 8277114237Snjloptions used during generation. 8278102550Siwasaki 8279102550Siwasaki Previous Label (09_20_01): 8280114237Snjl Non-Debug Version: 65K Code, 5K Data, 70K Total 8281114237Snjl Debug Version: 138K Code, 58K Data, 196K Total 8282102550Siwasaki 8283102550Siwasaki This Label: 8284102550Siwasaki 8285114237Snjl Non-Debug Version: 63.9K Code, 5.1K Data, 69.0K Total 8286114237Snjl Debug Version: 136.7K Code, 57.4K Data, 194.2K Total 8287114237Snjl 8288102550SiwasakiLinux: 8289102550Siwasaki 8290104470SiwasakiImplemented a "Bad BIOS Blacklist" to track machines that have 8291104470Siwasakiknown ASL/AML problems. 8292102550Siwasaki 8293193267SjkimEnhanced the /proc interface for the thermal zone driver and added 8294126372Snjlsupport for _HOT (the critical suspend trip point). The 'info' 8295193267Sjkimfile now includes threshold/policy information, and allows setting 8296126372Snjlof _SCP (cooling preference) and _TZP (polling frequency) values 8297193267Sjkimto the 'info' file. Examples: "echo tzp=5 > info" sets the polling 8298126372Snjlfrequency to 5 seconds, and "echo scp=1 > info" sets the cooling 8299126372Snjlpreference to the passive/quiet mode (if supported by the ASL). 8300102550Siwasaki 8301104470SiwasakiImplemented a workaround for a gcc bug that resuted in an OOPs 8302104470Siwasakiwhen loading the control method battery driver. 8303102550Siwasaki 8304102550Siwasaki ---------------------------------------- 8305102550SiwasakiSummary of changes for this label: 09_20_01 8306102550Siwasaki 8307102550Siwasaki ACPI CA Core Subsystem: 8308102550Siwasaki 8309104470SiwasakiThe AcpiEnableEvent and AcpiDisableEvent interfaces have been 8310104470Siwasakimodified to allow individual GPE levels to be flagged as wake- 8311114237Snjlenabled (i.e., these GPEs are to remain enabled when the platform 8312114237Snjlsleeps.) 8313102550Siwasaki 8314104470SiwasakiThe AcpiEnterSleepState and AcpiLeaveSleepState interfaces now 8315104470Siwasakisupport wake-enabled GPEs. This means that upon entering the 8316104470Siwasakisleep state, all GPEs that are not wake-enabled are disabled. 8317104470SiwasakiWhen leaving the sleep state, these GPEs are reenabled. 8318102550Siwasaki 8319114237SnjlA local double-precision divide/modulo module has been added to 8320114237Snjlenhance portability to OS kernels where a 64-bit math library is 8321114237Snjlnot available. The new module is "utmath.c". 8322102550Siwasaki 8323104470SiwasakiSeveral optimizations have been made to reduce the use of CPU 8324114237Snjlstack. Originally over 2K, the maximum stack usage is now below 8325114237Snjl2K at 1860 bytes (1.82k) 8326102550Siwasaki 8327114237SnjlFixed a problem with the AcpiGetFirmwareTable interface where the 8328193267Sjkimroot table pointer was not mapped into a logical address properly. 8329102550Siwasaki 8330193267SjkimFixed a problem where a NULL pointer was being dereferenced in the 8331126372Snjlinterpreter code for the ASL Notify operator. 8332102550Siwasaki 8333102550SiwasakiFixed a problem where the use of the ASL Revision operator 8334114237Snjlreturned an error. This operator now returns the current version 8335114237Snjlof the ACPI CA core subsystem. 8336102550Siwasaki 8337114237SnjlFixed a problem where objects passed as control method parameters 8338114237Snjlto AcpiEvaluateObject were always deleted at method termination. 8339114237SnjlHowever, these objects may end up being stored into the namespace 8340114237Snjlby the called method. The object reference count mechanism was 8341114237Snjlapplied to these objects instead of a force delete. 8342102550Siwasaki 8343114237SnjlFixed a problem where static strings or buffers (contained in the 8344114237SnjlAML code) that are declared as package elements within the ASL 8345114237Snjlcode could cause a fault because the interpreter would attempt to 8346114237Snjldelete them. These objects are now marked with the "static 8347114237Snjlobject" flag to prevent any attempt to delete them. 8348102550Siwasaki 8349114237SnjlImplemented an interpreter optimization to use operands directly 8350114237Snjlfrom the state object instead of extracting the operands to local 8351114237Snjlvariables. This reduces stack use and code size, and improves 8352114237Snjlperformance. 8353102550Siwasaki 8354193267SjkimThe module exxface.c was eliminated as it was an unnecessary extra 8355126372Snjllayer of code. 8356102550Siwasaki 8357114237SnjlCurrent core subsystem library code sizes are shown below. These 8358114237Snjlare the code and data sizes for the acpica.lib produced by the 8359193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8360126372Snjlany ACPI driver or OSPM code. The debug version of the code 8361126372Snjlincludes the full debug trace mechanism -- leading to a much 8362114237Snjllarger code and data size. Note that these values will vary 8363114237Snjldepending on the efficiency of the compiler and the compiler 8364114237Snjloptions used during generation. 8365102550Siwasaki 8366102550Siwasaki Non-Debug Version: 65K Code, 5K Data, 70K Total 8367114237Snjl(Previously 69K) Debug Version: 138K Code, 58K Data, 196K 8368114237SnjlTotal (Previously 195K) 8369102550Siwasaki 8370102550SiwasakiLinux: 8371102550Siwasaki 8372114237SnjlSupport for ACPI 2.0 64-bit integers has been added. All ACPI 8373114237SnjlInteger objects are now 64 bits wide 8374102550Siwasaki 8375114237SnjlAll Acpi data types and structures are now in lower case. Only 8376114237SnjlAcpi macros are upper case for differentiation. 8377102550Siwasaki 8378102550Siwasaki Documentation: 8379102550Siwasaki 8380102550SiwasakiChanges to the external interfaces as described above. 8381102550Siwasaki 8382102550Siwasaki ---------------------------------------- 8383102550SiwasakiSummary of changes for this label: 08_31_01 8384102550Siwasaki 8385102550Siwasaki ACPI CA Core Subsystem: 8386102550Siwasaki 8387114237SnjlA bug with interpreter implementation of the ASL Divide operator 8388114237Snjlwas found and fixed. The implicit function return value (not the 8389114237Snjlexplicit store operands) was returning the remainder instead of 8390114237Snjlthe quotient. This was a longstanding bug and it fixes several 8391114237Snjlknown outstanding issues on various platforms. 8392102550Siwasaki 8393104470SiwasakiThe ACPI_DEBUG_PRINT and function trace entry/exit macros have 8394193267Sjkimbeen further optimized for size. There are 700 invocations of the 8395126372SnjlDEBUG_PRINT macro alone, so each optimization reduces the size of 8396126372Snjlthe debug version of the subsystem significantly. 8397102550Siwasaki 8398114237SnjlA stack trace mechanism has been implemented. The maximum stack 8399193267Sjkimusage is about 2K on 32-bit platforms. The debugger command "stat 8400126372Snjlstack" will display the current maximum stack usage. 8401102550Siwasaki 8402114237SnjlAll public symbols and global variables within the subsystem are 8403114237Snjlnow prefixed with the string "Acpi". This keeps all of the 8404114237Snjlsymbols grouped together in a kernel map, and avoids conflicts 8405114237Snjlwith other kernel subsystems. 8406102550Siwasaki 8407114237SnjlMost of the internal fixed lookup tables have been moved into the 8408114237Snjlcode segment via the const operator. 8409102550Siwasaki 8410104470SiwasakiSeveral enhancements have been made to the interpreter to both 8411104470Siwasakireduce the code size and improve performance. 8412102550Siwasaki 8413114237SnjlCurrent core subsystem library code sizes are shown below. These 8414114237Snjlare the code and data sizes for the acpica.lib produced by the 8415193267SjkimMicrosoft Visual C++ 6.0 compiler, and these values do not include 8416126372Snjlany ACPI driver or OSPM code. The debug version of the code 8417126372Snjlincludes the full debug trace mechanism which contains over 700 8418126372Snjlinvocations of the DEBUG_PRINT macro, 500 function entry macro 8419126372Snjlinvocations, and over 900 function exit macro invocations -- 8420126372Snjlleading to a much larger code and data size. Note that these 8421114237Snjlvalues will vary depending on the efficiency of the compiler and 8422114237Snjlthe compiler options used during generation. 8423102550Siwasaki 8424102550Siwasaki Non-Debug Version: 64K Code, 5K Data, 69K Total 8425102550SiwasakiDebug Version: 137K Code, 58K Data, 195K Total 8426102550Siwasaki 8427102550Siwasaki Linux: 8428102550Siwasaki 8429104470SiwasakiImplemented wbinvd() macro, pending a kernel-wide definition. 8430102550Siwasaki 8431102550SiwasakiFixed /proc/acpi/event to handle poll() and short reads. 8432102550Siwasaki 8433102550Siwasaki ASL Compiler, version X2026: 8434102550Siwasaki 8435104470SiwasakiFixed a problem introduced in the previous label where the AML 8436167802Sjkim 8437104470Siwasakicode emitted for package objects produced packages with zero 8438104470Siwasakilength. 8439102550Siwasaki 8440102550Siwasaki ---------------------------------------- 8441102550SiwasakiSummary of changes for this label: 08_16_01 8442102550Siwasaki 8443102550SiwasakiACPI CA Core Subsystem: 8444102550Siwasaki 8445114237SnjlThe following ACPI 2.0 ASL operators have been implemented in the 8446114237SnjlAML interpreter (These are already supported by the Intel ASL 8447193267Sjkimcompiler): ToDecimalString, ToHexString, ToString, ToInteger, and 8448126372SnjlToBuffer. Support for 64-bit AML constants is implemented in the 8449126372SnjlAML parser, debugger, and disassembler. 8450102550Siwasaki 8451114237SnjlThe internal memory tracking mechanism (leak detection code) has 8452114237Snjlbeen upgraded to reduce the memory overhead (a separate tracking 8453114237Snjlblock is no longer allocated for each memory allocation), and now 8454114237Snjlsupports all of the internal object caches. 8455102550Siwasaki 8456114237SnjlThe data structures and code for the internal object caches have 8457114237Snjlbeen coelesced and optimized so that there is a single cache and 8458114237Snjlmemory list data structure and a single group of functions that 8459114237Snjlimplement generic cache management. This has reduced the code 8460114237Snjlsize in both the debug and release versions of the subsystem. 8461102550Siwasaki 8462193267SjkimThe DEBUG_PRINT macro(s) have been optimized for size and replaced 8463126372Snjlby ACPI_DEBUG_PRINT. The syntax for this macro is slightly 8464126372Snjldifferent, because it generates a single call to an internal 8465126372Snjlfunction. This results in a savings of about 90 bytes per 8466193267Sjkiminvocation, resulting in an overall code and data savings of about 8467126372Snjl16% in the debug version of the subsystem. 8468102550Siwasaki 8469102550Siwasaki Linux: 8470102550Siwasaki 8471114237SnjlFixed C3 disk corruption problems and re-enabled C3 on supporting 8472114237Snjlmachines. 8473102550Siwasaki 8474102550SiwasakiIntegrated low-level sleep code by Patrick Mochel. 8475102550Siwasaki 8476102550SiwasakiFurther tweaked source code Linuxization. 8477102550Siwasaki 8478102550SiwasakiOther minor fixes. 8479102550Siwasaki 8480102550Siwasaki ASL Compiler: 8481102550Siwasaki 8482114237SnjlSupport for ACPI 2.0 variable length packages is fixed/completed. 8483102550Siwasaki 8484114237SnjlFixed a problem where the optional length parameter for the ACPI 8485114237Snjl2.0 ToString operator. 8486102550Siwasaki 8487114237SnjlFixed multiple extraneous error messages when a syntax error is 8488114237Snjldetected within the declaration line of a control method. 8489102550Siwasaki 8490102550Siwasaki ---------------------------------------- 8491102550SiwasakiSummary of changes for this label: 07_17_01 8492102550Siwasaki 8493102550SiwasakiACPI CA Core Subsystem: 8494102550Siwasaki 8495104470SiwasakiAdded a new interface named AcpiGetFirmwareTable to obtain any 8496193267SjkimACPI table via the ACPI signature. The interface can be called at 8497126372Snjlany time during kernel initialization, even before the kernel 8498193267Sjkimvirtual memory manager is initialized and paging is enabled. This 8499126372Snjlallows kernel subsystems to obtain ACPI tables very early, even 8500126372Snjlbefore the ACPI CA subsystem is initialized. 8501102550Siwasaki 8502104470SiwasakiFixed a problem where Fields defined with the AnyAcc attribute 8503104470Siwasakicould be resolved to the incorrect address under the following 8504114237Snjlconditions: 1) the field width is larger than 8 bits and 2) the 8505114237Snjlparent operation region is not defined on a DWORD boundary. 8506102550Siwasaki 8507114237SnjlFixed a problem where the interpreter is not being locked during 8508114237Snjlnamespace initialization (during execution of the _INI control 8509114237Snjlmethods), causing an error when an attempt is made to release it 8510114237Snjllater. 8511102550Siwasaki 8512104470SiwasakiACPI 2.0 support in the AML Interpreter has begun and will be 8513114237Snjlongoing throughout the rest of this year. In this label, The Mod 8514114237Snjloperator is implemented. 8515102550Siwasaki 8516102550SiwasakiAdded a new data type to contain full PCI addresses named 8517193267SjkimACPI_PCI_ID. This structure contains the PCI Segment, Bus, Device, 8518126372Snjland Function values. 8519102550Siwasaki 8520102550Siwasaki Linux: 8521102550Siwasaki 8522102550SiwasakiEnhanced the Linux version of the source code to change most 8523102550Siwasakicapitalized ACPI type names to lowercase. For example, all 8524114237Snjlinstances of ACPI_STATUS are changed to acpi_status. This will 8525114237Snjlresult in a large diff, but the change is strictly cosmetic and 8526114237Snjlaligns the CA code closer to the Linux coding standard. 8527102550Siwasaki 8528102550SiwasakiOSL Interfaces: 8529102550Siwasaki 8530193267SjkimThe interfaces to the PCI configuration space have been changed to 8531193267Sjkimadd the PCI Segment number and to split the single 32-bit combined 8532126372SnjlDeviceFunction field into two 16-bit fields. This was 8533114237Snjlaccomplished by moving the four values that define an address in 8534114237SnjlPCI configuration space (segment, bus, device, and function) to 8535114237Snjlthe new ACPI_PCI_ID structure. 8536102550Siwasaki 8537104470SiwasakiThe changes to the PCI configuration space interfaces led to a 8538104470Siwasakireexamination of the complete set of address space access 8539114237Snjlinterfaces for PCI, I/O, and Memory. The previously existing 18 8540114237Snjlinterfaces have proven difficult to maintain (any small change 8541193267Sjkimmust be propagated across at least 6 interfaces) and do not easily 8542193267Sjkimallow for future expansion to 64 bits if necessary. Also, on some 8543126372Snjlsystems, it would not be appropriate to demultiplex the access 8544126372Snjlwidth (8, 16, 32,or 64) before calling the OSL if the 8545114237Snjlcorresponding native OS interfaces contain a similar access width 8546114237Snjlparameter. For these reasons, the 18 address space interfaces 8547114237Snjlhave been replaced by these 6 new ones: 8548102550Siwasaki 8549102550SiwasakiAcpiOsReadPciConfiguration 8550102550SiwasakiAcpiOsWritePciConfiguration 8551102550SiwasakiAcpiOsReadMemory 8552102550SiwasakiAcpiOsWriteMemory 8553102550SiwasakiAcpiOsReadPort 8554102550SiwasakiAcpiOsWritePort 8555102550Siwasaki 8556114237SnjlAdded a new interface named AcpiOsGetRootPointer to allow the OSL 8557114237Snjlto perform the platform and/or OS-specific actions necessary to 8558114237Snjlobtain the ACPI RSDP table pointer. On IA-32 platforms, this 8559114237Snjlinterface will simply call down to the CA core to perform the low- 8560114237Snjlmemory search for the table. On IA-64, the RSDP is obtained from 8561114237SnjlEFI. Migrating this interface to the OSL allows the CA core to 8562167802Sjkim 8563114237Snjlremain OS and platform independent. 8564102550Siwasaki 8565104470SiwasakiAdded a new interface named AcpiOsSignal to provide a generic 8566114237Snjl"function code and pointer" interface for various miscellaneous 8567114237Snjlsignals and notifications that must be made to the host OS. The 8568114237Snjlfirst such signals are intended to support the ASL Fatal and 8569114237SnjlBreakpoint operators. In the latter case, the AcpiOsBreakpoint 8570114237Snjlinterface has been obsoleted. 8571102550Siwasaki 8572102550SiwasakiThe definition of the AcpiFormatException interface has been 8573114237Snjlchanged to simplify its use. The caller no longer must supply a 8574114237Snjlbuffer to the call; A pointer to a const string is now returned 8575114237Snjldirectly. This allows the call to be easily used in printf 8576114237Snjlstatements, etc. since the caller does not have to manage a local 8577114237Snjlbuffer. 8578102550Siwasaki 8579114237Snjl 8580102550Siwasaki ASL Compiler, Version X2025: 8581102550Siwasaki 8582114237SnjlThe ACPI 2.0 Switch/Case/Default operators have been implemented 8583114237Snjland are fully functional. They will work with all ACPI 1.0 8584193267Sjkiminterpreters, since the operators are simply translated to If/Else 8585126372Snjlpairs. 8586102550Siwasaki 8587104470SiwasakiThe ACPI 2.0 ElseIf operator is implemented and will also work 8588104470Siwasakiwith 1.0 interpreters, for the same reason. 8589102550Siwasaki 8590114237SnjlImplemented support for ACPI 2.0 variable-length packages. These 8591114237Snjlpackages have a separate opcode, and their size is determined by 8592114237Snjlthe interpreter at run-time. 8593102550Siwasaki 8594193267SjkimDocumentation The ACPI CA Programmer Reference has been updated to 8595126372Snjlreflect the new interfaces and changes to existing interfaces. 8596102550Siwasaki 8597102550Siwasaki ------------------------------------------ 8598102550SiwasakiSummary of changes for this label: 06_15_01 8599102550Siwasaki 8600102550Siwasaki ACPI CA Core Subsystem: 8601102550Siwasaki 8602102550SiwasakiFixed a problem where a DWORD-accessed field within a Buffer 8603114237Snjlobject would get its byte address inadvertently rounded down to 8604114237Snjlthe nearest DWORD. Buffers are always Byte-accessible. 8605102550Siwasaki 8606102550Siwasaki ASL Compiler, version X2024: 8607102550Siwasaki 8608114237SnjlFixed a problem where the Switch() operator would either fault or 8609114237Snjlhang the compiler. Note however, that the AML code for this ACPI 8610114237Snjl2.0 operator is not yet implemented. 8611102550Siwasaki 8612114237SnjlCompiler uses the new AcpiOsGetTimer interface to obtain compile 8613114237Snjltimings. 8614102550Siwasaki 8615114237SnjlImplementation of the CreateField operator automatically converts 8616114237Snjla reference to a named field within a resource descriptor from a 8617114237Snjlbyte offset to a bit offset if required. 8618102550Siwasaki 8619102550SiwasakiAdded some missing named fields from the resource descriptor 8620193267Sjkimsupport. These are the names that are automatically created by the 8621126372Snjlcompiler to reference fields within a descriptor. They are only 8622126372Snjlvalid at compile time and are not passed through to the AML 8623114237Snjlinterpreter. 8624102550Siwasaki 8625104470SiwasakiResource descriptor named fields are now typed as Integers and 8626104470Siwasakisubject to compile-time typechecking when used in expressions. 8627102550Siwasaki 8628102550Siwasaki ------------------------------------------ 8629102550SiwasakiSummary of changes for this label: 05_18_01 8630102550Siwasaki 8631102550Siwasaki ACPI CA Core Subsystem: 8632102550Siwasaki 8633114237SnjlFixed a couple of problems in the Field support code where bits 8634193267Sjkimfrom adjacent fields could be returned along with the proper field 8635126372Snjlbits. Restructured the field support code to improve performance, 8636126372Snjlreadability and maintainability. 8637102550Siwasaki 8638114237SnjlNew DEBUG_PRINTP macro automatically inserts the procedure name 8639114237Snjlinto the output, saving hundreds of copies of procedure name 8640114237Snjlstrings within the source, shrinking the memory footprint of the 8641114237Snjldebug version of the core subsystem. 8642102550Siwasaki 8643102550Siwasaki Source Code Structure: 8644102550Siwasaki 8645104470SiwasakiThe source code directory tree was restructured to reflect the 8646114237Snjlcurrent organization of the component architecture. Some files 8647114237Snjland directories have been moved and/or renamed. 8648102550Siwasaki 8649102550Siwasaki Linux: 8650102550Siwasaki 8651102550SiwasakiFixed leaking kacpidpc processes. 8652102550Siwasaki 8653102550SiwasakiFixed queueing event data even when /proc/acpi/event is not 8654102550Siwasakiopened. 8655102550Siwasaki 8656102550Siwasaki ASL Compiler, version X2020: 8657102550Siwasaki 8658114237SnjlMemory allocation performance enhancement - over 24X compile time 8659114237Snjlimprovement on large ASL files. Parse nodes and namestring 8660114237Snjlbuffers are now allocated from a large internal compiler buffer. 8661102550Siwasaki 8662102550SiwasakiThe temporary .SRC file is deleted unless the "-s" option is 8663102550Siwasakispecified 8664102550Siwasaki 8665193267SjkimThe "-d" debug output option now sends all output to the .DBG file 8666126372Snjlinstead of the console. 8667102550Siwasaki 8668102550Siwasaki"External" second parameter is now optional 8669102550Siwasaki 8670102550Siwasaki"ElseIf" syntax now properly allows the predicate 8671102550Siwasaki 8672102550SiwasakiLast operand to "Load" now recognized as a Target operand 8673102550Siwasaki 8674102550SiwasakiDebug object can now be used anywhere as a normal object. 8675102550Siwasaki 8676102550SiwasakiResourceTemplate now returns an object of type BUFFER 8677102550Siwasaki 8678102550SiwasakiEISAID now returns an object of type INTEGER 8679102550Siwasaki 8680102550Siwasaki"Index" now works with a STRING operand 8681102550Siwasaki 8682102550Siwasaki"LoadTable" now accepts optional parameters 8683102550Siwasaki 8684102550Siwasaki"ToString" length parameter is now optional 8685102550Siwasaki 8686102550Siwasaki"Interrupt (ResourceType," parse error fixed. 8687102550Siwasaki 8688104470Siwasaki"Register" with a user-defined region space parse error fixed 8689102550Siwasaki 8690114237SnjlEscaped backslash at the end of a string ("\\") scan/parse error 8691114237Snjlfixed 8692102550Siwasaki 8693102550Siwasaki"Revision" is now an object of type INTEGER. 8694102550Siwasaki 8695102550Siwasaki 8696102550Siwasaki 8697102550Siwasaki------------------------------------------ 8698102550SiwasakiSummary of changes for this label: 05_02_01 8699102550Siwasaki 8700102550SiwasakiLinux: 8701102550Siwasaki 8702102550Siwasaki/proc/acpi/event now blocks properly. 8703102550Siwasaki 8704102550SiwasakiRemoved /proc/sys/acpi. You can still dump your DSDT from 8705102550Siwasaki/proc/acpi/dsdt. 8706102550Siwasaki 8707102550Siwasaki ACPI CA Core Subsystem: 8708102550Siwasaki 8709193267SjkimFixed a problem introduced in the previous label where some of the 8710126372Snjl"small" resource descriptor types were not recognized. 8711102550Siwasaki 8712193267SjkimImproved error messages for the case where an ASL Field is outside 8713126372Snjlthe range of the parent operation region. 8714102550Siwasaki 8715102550Siwasaki ASL Compiler, version X2018: 8716102550Siwasaki 8717167802Sjkim 8718193267SjkimAdded error detection for ASL Fields that extend beyond the length 8719126372Snjlof the parent operation region (only if the length of the region 8720126372Snjlis known at compile time.) This includes fields that have a 8721126372Snjlminimum access width that is smaller than the parent region, and 8722126372Snjlindividual field units that are partially or entirely beyond the 8723126372Snjlextent of the parent. 8724102550Siwasaki 8725102550Siwasaki 8726102550Siwasaki 8727102550Siwasaki------------------------------------------ 8728102550SiwasakiSummary of changes for this label: 04_27_01 8729102550Siwasaki 8730102550Siwasaki ACPI CA Core Subsystem: 8731102550Siwasaki 8732193267SjkimFixed a problem where the namespace mutex could be released at the 8733126372Snjlwrong time during execution of AcpiRemoveAddressSpaceHandler. 8734102550Siwasaki 8735104470SiwasakiAdded optional thread ID output for debug traces, to simplify 8736114237Snjldebugging of multiple threads. Added context switch notification 8737114237Snjlwhen the debug code realizes that a different thread is now 8738114237Snjlexecuting ACPI code. 8739102550Siwasaki 8740114237SnjlSome additional external data types have been prefixed with the 8741114237Snjlstring "ACPI_" for consistency. This may effect existing code. 8742193267SjkimThe data types affected are the external callback typedefs - e.g., 8743167802Sjkim 8744126372SnjlWALK_CALLBACK becomes ACPI_WALK_CALLBACK. 8745102550Siwasaki 8746102550Siwasaki Linux: 8747102550Siwasaki 8748102550SiwasakiFixed an issue with the OSL semaphore implementation where a 8749102550Siwasakithread was waking up with an error from receiving a SIGCHLD 8750102550Siwasakisignal. 8751102550Siwasaki 8752114237SnjlLinux version of ACPI CA now uses the system C library for string 8753114237Snjlmanipulation routines instead of a local implementation. 8754102550Siwasaki 8755102550SiwasakiCleaned up comments and removed TBDs. 8756102550Siwasaki 8757102550Siwasaki ASL Compiler, version X2017: 8758102550Siwasaki 8759102550SiwasakiEnhanced error detection and reporting for all file I/O 8760102550Siwasakioperations. 8761102550Siwasaki 8762102550Siwasaki Documentation: 8763102550Siwasaki 8764102550SiwasakiProgrammer Reference updated to version 1.06. 8765102550Siwasaki 8766102550Siwasaki 8767102550Siwasaki 8768102550Siwasaki------------------------------------------ 8769102550SiwasakiSummary of changes for this label: 04_13_01 8770102550Siwasaki 8771102550Siwasaki ACPI CA Core Subsystem: 8772102550Siwasaki 8773102550SiwasakiRestructured support for BufferFields and RegionFields. 8774104470SiwasakiBankFields support is now fully operational. All known 32-bit 8775114237Snjllimitations on field sizes have been removed. Both BufferFields 8776114237Snjland (Operation) RegionFields are now supported by the same field 8777114237Snjlmanagement code. 8778102550Siwasaki 8779114237SnjlResource support now supports QWORD address and IO resources. The 8780114237Snjl16/32/64 bit address structures and the Extended IRQ structure 8781114237Snjlhave been changed to properly handle Source Resource strings. 8782102550Siwasaki 8783114237SnjlA ThreadId of -1 is now used to indicate a "mutex not acquired" 8784193267Sjkimcondition internally and must never be returned by AcpiOsThreadId. 8785126372SnjlThis reserved value was changed from 0 since Unix systems allow a 8786126372Snjlthread ID of 0. 8787102550Siwasaki 8788102550SiwasakiLinux: 8789102550Siwasaki 8790102550SiwasakiDriver code reorganized to enhance portability 8791102550Siwasaki 8792102550SiwasakiAdded a kernel configuration option to control ACPI_DEBUG 8793102550Siwasaki 8794102550SiwasakiFixed the EC driver to honor _GLK. 8795102550Siwasaki 8796102550SiwasakiASL Compiler, version X2016: 8797102550Siwasaki 8798114237SnjlFixed support for the "FixedHw" keyword. Previously, the FixedHw 8799114237Snjladdress space was set to 0, not 0x7f as it should be. 8800102550Siwasaki 8801102550Siwasaki ------------------------------------------ 8802102550SiwasakiSummary of changes for this label: 03_13_01 8803102550Siwasaki 8804102550Siwasaki ACPI CA Core Subsystem: 8805102550Siwasaki 8806104470SiwasakiDuring ACPI initialization, the _SB_._INI method is now run if 8807104470Siwasakipresent. 8808102550Siwasaki 8809193267SjkimNotify handler fix - notifies are deferred until the parent method 8810126372Snjlcompletes execution. This fixes the "mutex already acquired" 8811126372Snjlissue seen occasionally. 8812102550Siwasaki 8813104470SiwasakiPart of the "implicit conversion" rules in ACPI 2.0 have been 8814114237Snjlfound to cause compatibility problems with existing ASL/AML. The 8815114237Snjlconvert "result-to-target-type" implementation has been removed 8816114237Snjlfor stores to method Args and Locals. Source operand conversion 8817114237Snjlis still fully implemented. Possible changes to ACPI 2.0 8818114237Snjlspecification pending. 8819102550Siwasaki 8820104470SiwasakiFix to AcpiRsCalculatePciRoutingTableLength to return correct 8821104470Siwasakilength. 8822102550Siwasaki 8823102550SiwasakiFix for compiler warnings for 64-bit compiles. 8824102550Siwasaki 8825102550Siwasaki Linux: 8826102550Siwasaki 8827102550Siwasaki/proc output aligned for easier parsing. 8828102550Siwasaki 8829102550SiwasakiRelease-version compile problem fixed. 8830102550Siwasaki 8831104470SiwasakiNew kernel configuration options documented in Configure.help. 8832102550Siwasaki 8833102550SiwasakiIBM 600E - Fixed Sleep button may generate "Invalid <NULL> 8834102550Siwasakicontext" message. 8835102550Siwasaki 8836102550Siwasaki OSPM: 8837102550Siwasaki 8838102550SiwasakiPower resource driver integrated with bus manager. 8839102550Siwasaki 8840102550SiwasakiFixed kernel fault during active cooling for thermal zones. 8841102550Siwasaki 8842102550SiwasakiSource Code: 8843102550Siwasaki 8844102550SiwasakiThe source code tree has been restructured. 8845102550Siwasaki 8846102550Siwasaki 8847102550Siwasaki 8848102550Siwasaki------------------------------------------ 8849102550SiwasakiSummary of changes for this label: 03_02_01 8850102550Siwasaki 8851102550Siwasaki Linux OS Services Layer (OSL): 8852102550Siwasaki 8853102550SiwasakiMajor revision of all Linux-specific code. 8854102550Siwasaki 8855102550SiwasakiModularized all ACPI-specific drivers. 8856102550Siwasaki 8857102550SiwasakiAdded new thermal zone and power resource drivers. 8858102550Siwasaki 8859114237SnjlRevamped /proc interface (new functionality is under /proc/acpi). 8860102550Siwasaki 8861102550SiwasakiNew kernel configuration options. 8862102550Siwasaki 8863102550Siwasaki Linux known issues: 8864102550Siwasaki 8865114237SnjlNew kernel configuration options not documented in Configure.help 8866114237Snjlyet. 8867102550Siwasaki 8868114237Snjl 8869102550SiwasakiModule dependencies not currently implemented. If used, they 8870102550Siwasakishould be loaded in this order: busmgr, power, ec, system, 8871102550Siwasakiprocessor, battery, ac_adapter, button, thermal. 8872102550Siwasaki 8873102550SiwasakiModules will not load if CONFIG_MODVERSION is set. 8874102550Siwasaki 8875102550SiwasakiIBM 600E - entering S5 may reboot instead of shutting down. 8876102550Siwasaki 8877104470SiwasakiIBM 600E - Sleep button may generate "Invalid <NULL> context" 8878104470Siwasakimessage. 8879102550Siwasaki 8880104470SiwasakiSome systems may fail with "execution mutex already acquired" 8881104470Siwasakimessage. 8882102550Siwasaki 8883102550Siwasaki ACPI CA Core Subsystem: 8884102550Siwasaki 8885114237SnjlAdded a new OSL Interface, AcpiOsGetThreadId. This was required 8886193267Sjkimfor the deadlock detection code. Defined to return a non-zero, 32- 8887126372Snjlbit thread ID for the currently executing thread. May be a non- 8888126372Snjlzero constant integer on single-thread systems. 8889102550Siwasaki 8890193267SjkimImplemented deadlock detection for internal subsystem mutexes. We 8891126372Snjlmay add conditional compilation for this code (debug only) later. 8892102550Siwasaki 8893104470SiwasakiASL/AML Mutex object semantics are now fully supported. This 8894114237Snjlincludes multiple acquires/releases by owner and support for the 8895167802Sjkim 8896114237SnjlMutex SyncLevel parameter. 8897102550Siwasaki 8898102550SiwasakiA new "Force Release" mechanism automatically frees all ASL 8899104470SiwasakiMutexes that have been acquired but not released when a thread 8900114237Snjlexits the interpreter. This forces conformance to the ACPI spec 8901114237Snjl("All mutexes must be released when an invocation exits") and 8902114237Snjlprevents deadlocked ASL threads. This mechanism can be expanded 8903114237Snjl(later) to monitor other resource acquisitions if OEM ASL code 8904114237Snjlcontinues to misbehave (which it will). 8905102550Siwasaki 8906104470SiwasakiSeveral new ACPI exception codes have been added for the Mutex 8907104470Siwasakisupport. 8908102550Siwasaki 8909104470SiwasakiRecursive method calls are now allowed and supported (the ACPI 8910114237Snjlspec does in fact allow recursive method calls.) The number of 8911114237Snjlrecursive calls is subject to the restrictions imposed by the 8912114237SnjlSERIALIZED method keyword and SyncLevel (ACPI 2.0) method 8913104470Siwasakiparameter. 8914102550Siwasaki 8915102550SiwasakiImplemented support for the SyncLevel parameter for control 8916102550Siwasakimethods (ACPI 2.0 feature) 8917102550Siwasaki 8918114237SnjlFixed a deadlock problem when multiple threads attempted to use 8919114237Snjlthe interpreter. 8920102550Siwasaki 8921102550SiwasakiFixed a problem where the string length of a String package 8922102550Siwasakielement was not always set in a package returned from 8923102550SiwasakiAcpiEvaluateObject. 8924102550Siwasaki 8925114237SnjlFixed a problem where the length of a String package element was 8926114237Snjlnot always included in the length of the overall package returned 8927114237Snjlfrom AcpiEvaluateObject. 8928102550Siwasaki 8929102550SiwasakiAdded external interfaces (Acpi*) to the ACPI debug memory 8930102550Siwasakimanager. This manager keeps a list of all outstanding 8931193267Sjkimallocations, and can therefore detect memory leaks and attempts to 8932126372Snjlfree memory blocks more than once. Useful for code such as the 8933114237Snjlpower manager, etc. May not be appropriate for device drivers. 8934114237SnjlPerformance with the debug code enabled is slow. 8935102550Siwasaki 8936102550SiwasakiThe ACPI Global Lock is now an optional hardware element. 8937102550Siwasaki 8938102550Siwasaki ASL Compiler Version X2015: 8939102550Siwasaki 8940102550SiwasakiIntegrated changes to allow the compiler to be generated on 8941102550Siwasakimultiple platforms. 8942102550Siwasaki 8943102550SiwasakiLinux makefile added to generate the compiler on Linux 8944102550Siwasaki 8945102550Siwasaki Source Code: 8946102550Siwasaki 8947102550SiwasakiAll platform-specific headers have been moved to their own 8948102550Siwasakisubdirectory, Include/Platform. 8949102550Siwasaki 8950102550SiwasakiNew source file added, Interpreter/ammutex.c 8951102550Siwasaki 8952102550SiwasakiNew header file, Include/acstruct.h 8953102550Siwasaki 8954102550Siwasaki Documentation: 8955102550Siwasaki 8956114237SnjlThe programmer reference has been updated for the following new 8957114237Snjlinterfaces: AcpiOsGetThreadId AcpiAllocate AcpiCallocate AcpiFree 8958102550Siwasaki 8959102550Siwasaki ------------------------------------------ 8960102550SiwasakiSummary of changes for this label: 02_08_01 8961102550Siwasaki 8962102550SiwasakiCore ACPI CA Subsystem: Fixed a problem where an error was 8963193267Sjkimincorrectly returned if the return resource buffer was larger than 8964126372Snjlthe actual data (in the resource interfaces). 8965102550Siwasaki 8966114237SnjlReferences to named objects within packages are resolved to the 8967167802Sjkim 8968114237Snjlfull pathname string before packages are returned directly (via 8969114237Snjlthe AcpiEvaluateObject interface) or indirectly via the resource 8970114237Snjlinterfaces. 8971102550Siwasaki 8972102550SiwasakiLinux OS Services Layer (OSL): 8973102550Siwasaki 8974102550SiwasakiImproved /proc battery interface. 8975102550Siwasaki 8976102550Siwasaki 8977104470SiwasakiAdded C-state debugging output and other miscellaneous fixes. 8978102550Siwasaki 8979102550SiwasakiASL Compiler Version X2014: 8980102550Siwasaki 8981114237SnjlAll defined method arguments can now be used as local variables, 8982114237Snjlincluding the ones that are not actually passed in as parameters. 8983114237SnjlThe compiler tracks initialization of the arguments and issues an 8984114237Snjlexception if they are used without prior assignment (just like 8985114237Snjllocals). 8986102550Siwasaki 8987193267SjkimThe -o option now specifies a filename prefix that is used for all 8988126372Snjloutput files, including the AML output file. Otherwise, the 8989114237Snjldefault behavior is as follows: 1) the AML goes to the file 8990114237Snjlspecified in the DSDT. 2) all other output files use the input 8991114237Snjlsource filename as the base. 8992102550Siwasaki 8993102550Siwasaki ------------------------------------------ 8994102550SiwasakiSummary of changes for this label: 01_25_01 8995102550Siwasaki 8996114237SnjlCore ACPI CA Subsystem: Restructured the implementation of object 8997114237Snjlstore support within the interpreter. This includes support for 8998114237Snjlthe Store operator as well as any ASL operators that include a 8999114237Snjltarget operand. 9000102550Siwasaki 9001102550SiwasakiPartially implemented support for Implicit Result-to-Target 9002114237Snjlconversion. This is when a result object is converted on the fly 9003114237Snjlto the type of an existing target object. Completion of this 9004114237Snjlsupport is pending further analysis of the ACPI specification 9005114237Snjlconcerning this matter. 9006102550Siwasaki 9007114237SnjlCPU-specific code has been removed from the subsystem (hardware 9008114237Snjldirectory). 9009102550Siwasaki 9010102550SiwasakiNew Power Management Timer functions added 9011102550Siwasaki 9012114237SnjlLinux OS Services Layer (OSL): Moved system state transition code 9013114237Snjlto the core, fixed it, and modified Linux OSL accordingly. 9014102550Siwasaki 9015102550SiwasakiFixed C2 and C3 latency calculations. 9016102550Siwasaki 9017102550Siwasaki 9018114237SnjlWe no longer use the compilation date for the version message on 9019193267Sjkiminitialization, but retrieve the version from AcpiGetSystemInfo(). 9020102550Siwasaki 9021102550SiwasakiIncorporated for fix Sony VAIO machines. 9022102550Siwasaki 9023104470SiwasakiDocumentation: The Programmer Reference has been updated and 9024104470Siwasakireformatted. 9025102550Siwasaki 9026102550Siwasaki 9027102550SiwasakiASL Compiler: Version X2013: Fixed a problem where the line 9028102550Siwasakinumbering and error reporting could get out of sync in the 9029102550Siwasakipresence of multiple include files. 9030102550Siwasaki 9031102550Siwasaki ------------------------------------------ 9032102550SiwasakiSummary of changes for this label: 01_15_01 9033102550Siwasaki 9034102550SiwasakiCore ACPI CA Subsystem: 9035102550Siwasaki 9036114237SnjlImplemented support for type conversions in the execution of the 9037114237SnjlASL Concatenate operator (The second operand is converted to 9038114237Snjlmatch the type of the first operand before concatenation.) 9039102550Siwasaki 9040102550SiwasakiSupport for implicit source operand conversion is partially 9041114237Snjlimplemented. The ASL source operand types Integer, Buffer, and 9042114237SnjlString are freely interchangeable for most ASL operators and are 9043114237Snjlconverted by the interpreter on the fly as required. Implicit 9044114237SnjlTarget operand conversion (where the result is converted to the 9045114237Snjltarget type before storing) is not yet implemented. 9046102550Siwasaki 9047102550SiwasakiSupport for 32-bit and 64-bit BCD integers is implemented. 9048102550Siwasaki 9049193267SjkimProblem fixed where a field read on an aligned field could cause a 9050126372Snjlread past the end of the field. 9051102550Siwasaki 9052114237SnjlNew exception, AE_AML_NO_RETURN_VALUE, is returned when a method 9053114237Snjldoes not return a value, but the caller expects one. (The ASL 9054114237Snjlcompiler flags this as a warning.) 9055102550Siwasaki 9056102550SiwasakiASL Compiler: 9057102550Siwasaki 9058102550SiwasakiVersion X2011: 9059102550Siwasaki1. Static typechecking of all operands is implemented. This 9060193267Sjkimprevents the use of invalid objects (such as using a Package where 9061126372Snjlan Integer is required) at compile time instead of at interpreter 9062126372Snjlrun-time. 9063114237Snjl2. The ASL source line is printed with ALL errors and warnings. 9064102550Siwasaki3. Bug fix for source EOF without final linefeed. 9065193267Sjkim4. Debug option is split into a parse trace and a namespace trace. 9066102550Siwasaki5. Namespace output option (-n) includes initial values for 9067102550Siwasakiintegers and strings. 9068102550Siwasaki6. Parse-only option added for quick syntax checking. 9069102550Siwasaki7. Compiler checks for duplicate ACPI name declarations 9070102550Siwasaki 9071102550SiwasakiVersion X2012: 9072102550Siwasaki1. Relaxed typechecking to allow interchangeability between 9073114237Snjlstrings, integers, and buffers. These types are now converted by 9074114237Snjlthe interpreter at runtime. 9075114237Snjl2. Compiler reports time taken by each internal subsystem in the 9076114237Snjldebug output file. 9077102550Siwasaki 9078102550Siwasaki 9079102550Siwasaki ------------------------------------------ 9080102550SiwasakiSummary of changes for this label: 12_14_00 9081102550Siwasaki 9082102550SiwasakiASL Compiler: 9083102550Siwasaki 9084104470SiwasakiThis is the first official release of the compiler. Since the 9085104470Siwasakicompiler requires elements of the Core Subsystem, this label 9086104470Siwasakisynchronizes everything. 9087102550Siwasaki 9088102550Siwasaki------------------------------------------ 9089102550SiwasakiSummary of changes for this label: 12_08_00 9090102550Siwasaki 9091102550Siwasaki 9092114237SnjlFixed a problem where named references within the ASL definition 9093114237Snjlof both OperationRegions and CreateXXXFields did not work 9094114237Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9095114237Snjlinitialization of the region/field. This is similar (but not 9096114237Snjlrelated internally) to the problem that was fixed in the last 9097114237Snjllabel. 9098114237Snjl 9099102550SiwasakiImplemented both 32-bit and 64-bit support for the BCD ASL 9100102550Siwasakifunctions ToBCD and FromBCD. 9101102550Siwasaki 9102102550SiwasakiUpdated all legal headers to include "2000" in the copyright 9103102550Siwasakiyears. 9104102550Siwasaki 9105102550Siwasaki ------------------------------------------ 9106102550SiwasakiSummary of changes for this label: 12_01_00 9107102550Siwasaki 9108193267SjkimFixed a problem where method invocations within the ASL definition 9109126372Snjlof both OperationRegions and CreateXXXFields did not work 9110126372Snjlproperly. The symptom was an AE_AML_OPERAND_TYPE during 9111114237Snjlinitialization of the region/field: 9112102550Siwasaki 9113114237Snjl nsinit-0209: AE_AML_OPERAND_TYPE while getting region arguments 9114114237Snjl[DEBG] ammonad-0284: Exec_monadic2_r/Not: bad operand(s) 9115114237Snjl(0x3005) 9116102550Siwasaki 9117102550SiwasakiFixed a problem where operators with more than one nested 9118104470Siwasakisubexpression would fail. The symptoms were varied, by mostly 9119114237SnjlAE_AML_OPERAND_TYPE errors. This was actually a rather serious 9120114237Snjlproblem that has gone unnoticed until now. 9121102550Siwasaki 9122102550Siwasaki Subtract (Add (1,2), Multiply (3,4)) 9123102550Siwasaki 9124114237SnjlFixed a problem where AcpiGetHandle didn't quite get fixed in the 9125114237Snjlprevious build (The prefix part of a relative path was handled 9126114237Snjlincorrectly). 9127102550Siwasaki 9128114237SnjlFixed a problem where Operation Region initialization failed if 9129114237Snjlthe operation region name was a "namepath" instead of a simple 9130114237Snjl"nameseg". Symptom was an AE_NO_OPERAND error. 9131102550Siwasaki 9132114237SnjlFixed a problem where an assignment to a local variable via the 9133114237Snjlindirect RefOf mechanism only worked for the first such 9134102550Siwasakiassignment. Subsequent assignments were ignored. 9135102550Siwasaki 9136102550Siwasaki ------------------------------------------ 9137102550SiwasakiSummary of changes for this label: 11_15_00 9138102550Siwasaki 9139193267SjkimACPI 2.0 table support with backwards support for ACPI 1.0 and the 9140193267Sjkim0.71 extensions. Note: although we can read ACPI 2.0 BIOS tables, 9141126372Snjlthe AML interpreter does NOT have support for the new 2.0 ASL 9142126372Snjlgrammar terms at this time. 9143102550Siwasaki 9144193267SjkimAll ACPI hardware access is via the GAS structures in the ACPI 2.0 9145126372SnjlFADT. 9146102550Siwasaki 9147193267SjkimAll physical memory addresses across all platforms are now 64 bits 9148126372Snjlwide. Logical address width remains dependent on the platform 9149126372Snjl(i.e., "void *"). 9150102550Siwasaki 9151114237SnjlAcpiOsMapMemory interface changed to a 64-bit physical address. 9152102550Siwasaki 9153114237SnjlThe AML interpreter integer size is now 64 bits, as per the ACPI 9154114237Snjl2.0 specification. 9155102550Siwasaki 9156104470SiwasakiFor backwards compatibility with ACPI 1.0, ACPI tables with a 9157104470Siwasakirevision number less than 2 use 32-bit integers only. 9158102550Siwasaki 9159114237SnjlFixed a problem where the evaluation of OpRegion operands did not 9160114237Snjlalways resolve them to numbers properly. 9161102550Siwasaki 9162102550Siwasaki------------------------------------------ 9163102550SiwasakiSummary of changes for this label: 10_20_00 9164102550Siwasaki 9165114237SnjlFix for CBN_._STA issue. This fix will allow correct access to 9166114237SnjlCBN_ OpRegions when the _STA returns 0x8. 9167102550Siwasaki 9168104470SiwasakiSupport to convert ACPI constants (Ones, Zeros, One) to actual 9169104470Siwasakivalues before a package object is returned 9170102550Siwasaki 9171104470SiwasakiFix for method call as predicate to if/while construct causing 9172104470Siwasakiincorrect if/while behavior 9173102550Siwasaki 9174114237SnjlFix for Else block package lengths sometimes calculated wrong (if 9175114237Snjlblock > 63 bytes) 9176102550Siwasaki 9177102550SiwasakiFix for Processor object length field, was always zero 9178102550Siwasaki 9179102550SiwasakiTable load abort if FACP sanity check fails 9180102550Siwasaki 9181102550SiwasakiFix for problem with Scope(name) if name already exists 9182102550Siwasaki 9183102550SiwasakiWarning emitted if a named object referenced cannot be found 9184102550Siwasaki(resolved) during method execution. 9185102550Siwasaki 9186102550Siwasaki 9187102550Siwasaki 9188102550Siwasaki 9189102550Siwasaki 9190102550Siwasaki------------------------------------------ 9191102550SiwasakiSummary of changes for this label: 9_29_00 9192102550Siwasaki 9193114237SnjlNew table initialization interfaces: AcpiInitializeSubsystem no 9194114237Snjllonger has any parameters AcpiFindRootPointer - Find the RSDP (if 9195114237Snjlnecessary) AcpiLoadTables (RSDP) - load all tables found at RSDP- 9196114237Snjl>RSDT Obsolete Interfaces AcpiLoadFirmwareTables - replaced by 9197114237SnjlAcpiLoadTables 9198102550Siwasaki 9199193267SjkimNote: These interface changes require changes to all existing OSDs 9200102550Siwasaki 9201114237SnjlThe PCI_Config default address space handler is always installed 9202114237Snjlat the root namespace object. 9203102550Siwasaki 9204102550Siwasaki------------------------------------------- 9205102550SiwasakiSummary of changes for this label: 09_15_00 9206102550Siwasaki 9207102550SiwasakiThe new initialization architecture is implemented. New 9208114237Snjlinterfaces are: AcpiInitializeSubsystem (replaces AcpiInitialize) 9209114237SnjlAcpiEnableSubsystem Obsolete Interfaces: AcpiLoadNamespace 9210167802Sjkim 9211114237Snjl(Namespace is automatically loaded when a table is loaded) 9212102550Siwasaki 9213193267SjkimThe ACPI_OPERAND_OBJECT has been optimized to shrink its size from 9214126372Snjl52 bytes to 32 bytes. There is usually one of these for every 9215126372Snjlnamespace object, so the memory savings is significant. 9216102550Siwasaki 9217114237SnjlImplemented just-in-time evaluation of the CreateField operators. 9218102550Siwasaki 9219102550SiwasakiBug fixes for IA-64 support have been integrated. 9220102550Siwasaki 9221102550SiwasakiAdditional code review comments have been implemented 9222102550Siwasaki 9223193267SjkimThe so-called "third pass parse" has been replaced by a final walk 9224193267Sjkimthrough the namespace to initialize all operation regions (address 9225126372Snjlspaces) and fields that have not yet been initialized during the 9226126372Snjlexecution of the various _INI and REG methods. 9227102550Siwasaki 9228102550SiwasakiNew file - namespace/nsinit.c 9229102550Siwasaki 9230102550Siwasaki------------------------------------------- 9231102550SiwasakiSummary of changes for this label: 09_01_00 9232102550Siwasaki 9233193267SjkimNamespace manager data structures have been reworked to change the 9234126372Snjlprimary object from a table to a single object. This has 9235193267Sjkimresulted in dynamic memory savings of 3X within the namespace and 9236126372Snjl2X overall in the ACPI CA subsystem. 9237102550Siwasaki 9238102550SiwasakiFixed problem where the call to AcpiEvFindPciRootBuses was 9239102550Siwasakiinadvertently left commented out. 9240102550Siwasaki 9241114237SnjlReduced the warning count when generating the source with the GCC 9242114237Snjlcompiler. 9243102550Siwasaki 9244102550SiwasakiRevision numbers added to each module header showing the 9245104470SiwasakiSourceSafe version of the file. Please refer to this version 9246114237Snjlnumber when giving us feedback or comments on individual modules. 9247102550Siwasaki 9248114237SnjlThe main object types within the subsystem have been renamed to 9249114237Snjlclarify their purpose: 9250102550Siwasaki 9251102550SiwasakiACPI_INTERNAL_OBJECT -> ACPI_OPERAND_OBJECT 9252102550SiwasakiACPI_GENERIC_OP -> ACPI_PARSE_OBJECT 9253102550SiwasakiACPI_NAME_TABLE_ENTRY -> ACPI_NAMESPACE_NODE 9254102550Siwasaki 9255114237SnjlNOTE: no changes to the initialization sequence are included in 9256114237Snjlthis label. 9257102550Siwasaki 9258102550Siwasaki------------------------------------------- 9259102550SiwasakiSummary of changes for this label: 08_23_00 9260102550Siwasaki 9261102550SiwasakiFixed problem where TerminateControlMethod was being called 9262102550Siwasakimultiple times per method 9263102550Siwasaki 9264193267SjkimFixed debugger problem where single stepping caused a semaphore to 9265126372Snjlbe oversignalled 9266102550Siwasaki 9267104470SiwasakiImproved performance through additional parse object caching - 9268104470Siwasakiadded ACPI_EXTENDED_OP type 9269102550Siwasaki 9270102550Siwasaki------------------------------------------- 9271102550SiwasakiSummary of changes for this label: 08_10_00 9272102550Siwasaki 9273102550SiwasakiParser/Interpreter integration: Eliminated the creation of 9274102550Siwasakicomplete parse trees for ACPI tables and control methods. 9275114237SnjlInstead, parse subtrees are created and then deleted as soon as 9276193267Sjkimthey are processed (Either entered into the namespace or executed 9277126372Snjlby the interpreter). This reduces the use of dynamic kernel 9278126372Snjlmemory significantly. (about 10X) 9279102550Siwasaki 9280114237SnjlException codes broken into classes and renumbered. Be sure to 9281114237Snjlrecompile all code that includes acexcep.h. Hopefully we won't 9282114237Snjlhave to renumber the codes again now that they are split into 9283114237Snjlclasses (environment, programmer, AML code, ACPI table, and 9284114237Snjlinternal). 9285102550Siwasaki 9286104470SiwasakiFixed some additional alignment issues in the Resource Manager 9287104470Siwasakisubcomponent 9288102550Siwasaki 9289114237SnjlImplemented semaphore tracking in the AcpiExec utility, and fixed 9290114237Snjlseveral places where mutexes/semaphores were being unlocked 9291114237Snjlwithout a corresponding lock operation. There are no known 9292114237Snjlsemaphore or mutex "leaks" at this time. 9293102550Siwasaki 9294114237SnjlFixed the case where an ASL Return operator is used to return an 9295114237Snjlunnamed package. 9296102550Siwasaki 9297102550Siwasaki------------------------------------------- 9298102550SiwasakiSummary of changes for this label: 07_28_00 9299102550Siwasaki 9300102550SiwasakiFixed a problem with the way addresses were calculated in 9301114237SnjlAcpiAmlReadFieldData() and AcpiAmlWriteFieldData(). This problem 9302114237Snjlmanifested itself when a Field was created with WordAccess or 9303193267SjkimDwordAccess, but the field unit defined within the Field was less 9304167802Sjkim 9305126372Snjlthan a Word or Dword. 9306102550Siwasaki 9307102550SiwasakiFixed a problem in AmlDumpOperands() module's loop to pull 9308104470Siwasakioperands off of the operand stack to display information. The 9309114237Snjlproblem manifested itself as a TLB error on 64-bit systems when 9310114237Snjlaccessing an operand stack with two or more operands. 9311102550Siwasaki 9312114237SnjlFixed a problem with the PCI configuration space handlers where 9313114237Snjlcontext was getting confused between accesses. This required a 9314114237Snjlchange to the generic address space handler and address space 9315193267Sjkimsetup definitions. Handlers now get both a global handler context 9316126372Snjl(this is the one passed in by the user when executing 9317114237SnjlAcpiInstallAddressSpaceHandler() and a specific region context 9318114237Snjlthat is unique to each region (For example, the _ADR, _SEG and 9319114237Snjl_BBN values associated with a specific region). The generic 9320114237Snjlfunction definitions have changed to the following: 9321102550Siwasaki 9322114237Snjltypedef ACPI_STATUS (*ADDRESS_SPACE_HANDLER) ( UINT32 Function, 9323114237SnjlUINT32 Address, UINT32 BitWidth, UINT32 *Value, void 9324104470Siwasaki*HandlerContext, // This used to be void *Context void 9325102550Siwasaki*RegionContext); // This is an additional parameter 9326102550Siwasaki 9327102550Siwasakitypedef ACPI_STATUS (*ADDRESS_SPACE_SETUP) ( ACPI_HANDLE 9328102550SiwasakiRegionHandle, UINT32 Function, void *HandlerContext, void 9329102550Siwasaki**RegionContext); // This used to be **ReturnContext 9330102550Siwasaki 9331102550Siwasaki------------------------------------------- 9332102550SiwasakiSummary of changes for this label: 07_21_00 9333102550Siwasaki 9334102550SiwasakiMajor file consolidation and rename. All files within the 9335193267Sjkiminterpreter have been renamed as well as most header files. This 9336126372Snjlwas done to prevent collisions with existing files in the host 9337126372SnjlOSs -- filenames such as "config.h" and "global.h" seem to be 9338126372Snjlquite common. The VC project files have been updated. All 9339114237Snjlmakefiles will require modification. 9340102550Siwasaki 9341114237SnjlThe parser/interpreter integration continues in Phase 5 with the 9342114237Snjlimplementation of a complete 2-pass parse (the AML is parsed 9343114237Snjltwice) for each table; This avoids the construction of a huge 9344114237Snjlparse tree and therefore reduces the amount of dynamic memory 9345114237Snjlrequired by the subsystem. Greater use of the parse object cache 9346114237Snjlmeans that performance is unaffected. 9347102550Siwasaki 9348102550SiwasakiMany comments from the two code reviews have been rolled in. 9349102550Siwasaki 9350102550SiwasakiThe 64-bit alignment support is complete. 9351102550Siwasaki 9352102550Siwasaki------------------------------------------- 9353102550SiwasakiSummary of changes for this label: 06_30_00 9354102550Siwasaki 9355114237SnjlWith a nod and a tip of the hat to the technology of yesteryear, 9356114237Snjlwe've added support in the source code for 80 column output 9357114237Snjldevices. The code is now mostly constrained to 80 columns or 9358114237Snjlless to support environments and editors that 1) cannot display 9359114237Snjlor print more than 80 characters on a single line, and 2) cannot 9360114237Snjldisable line wrapping. 9361102550Siwasaki 9362104470SiwasakiA major restructuring of the namespace data structure has been 9363104470Siwasakicompleted. The result is 1) cleaner and more 9364114237Snjlunderstandable/maintainable code, and 2) a significant reduction 9365114237Snjlin the dynamic memory requirement for each named ACPI object 9366114237Snjl(almost half). 9367102550Siwasaki 9368102550Siwasaki------------------------------------------- 9369102550SiwasakiSummary of changes for this label: 06_23_00 9370102550Siwasaki 9371114237SnjlLinux support has been added. In order to obtain approval to get 9372114237Snjlthe ACPI CA subsystem into the Linux kernel, we've had to make 9373114237Snjlquite a few changes to the base subsystem that will affect all 9374114237Snjlusers (all the changes are generic and OS- independent). The 9375114237Snjleffects of these global changes have been somewhat far reaching. 9376114237SnjlFiles have been merged and/or renamed and interfaces have been 9377114237Snjlrenamed. The major changes are described below. 9378102550Siwasaki 9379102550SiwasakiOsd* interfaces renamed to AcpiOs* to eliminate namespace 9380102550Siwasakipollution/confusion within our target kernels. All OSD 9381114237Snjlinterfaces must be modified to match the new naming convention. 9382102550Siwasaki 9383193267SjkimFiles merged across the subsystem. A number of the smaller source 9384126372Snjland header files have been merged to reduce the file count and 9385126372Snjlincrease the density of the existing files. There are too many 9386126372Snjlto list here. In general, makefiles that call out individual 9387126372Snjlfiles will require rebuilding. 9388102550Siwasaki 9389104470SiwasakiInterpreter files renamed. All interpreter files now have the 9390104470Siwasakiprefix am* instead of ie* and is*. 9391102550Siwasaki 9392104470SiwasakiHeader files renamed: The acapi.h file is now acpixf.h. The 9393114237Snjlacpiosd.h file is now acpiosxf.h. We are removing references to 9394114237Snjlthe acronym "API" since it is somewhat windowsy. The new name is 9395114237Snjl"external interface" or xface or xf in the filenames.j 9396102550Siwasaki 9397102550Siwasaki 9398114237SnjlAll manifest constants have been forced to upper case (some were 9399193267Sjkimmixed case.) Also, the string "ACPI_" has been prepended to many 9400126372Snjl(not all) of the constants, typedefs, and structs. 9401102550Siwasaki 9402102550SiwasakiThe globals "DebugLevel" and "DebugLayer" have been renamed 9403102550Siwasaki"AcpiDbgLevel" and "AcpiDbgLayer" respectively. 9404102550Siwasaki 9405102550SiwasakiAll other globals within the subsystem are now prefixed with 9406102550Siwasaki"AcpiGbl_" Internal procedures within the subsystem are now 9407114237Snjlprefixed with "Acpi" (with only a few exceptions). The original 9408193267Sjkimtwo-letter abbreviation for the subcomponent remains after "Acpi" 9409126372Snjl- for example, CmCallocate became AcpiCmCallocate. 9410102550Siwasaki 9411102550SiwasakiAdded a source code translation/conversion utility. Used to 9412114237Snjlgenerate the Linux source code, it can be modified to generate 9413114237Snjlother types of source as well. Can also be used to cleanup 9414114237Snjlexisting source by removing extraneous spaces and blank lines. 9415114237SnjlFound in tools/acpisrc/* 9416102550Siwasaki 9417102550SiwasakiOsdUnMapMemory was renamed to OsdUnmapMemory and then 9418102550SiwasakiAcpiOsUnmapMemory. (UnMap became Unmap). 9419102550Siwasaki 9420114237SnjlA "MaxUnits" parameter has been added to AcpiOsCreateSemaphore. 9421114237SnjlWhen set to one, this indicates that the caller wants to use the 9422167802Sjkim 9423114237Snjlsemaphore as a mutex, not a counting semaphore. ACPI CA uses 9424114237Snjlboth types. However, implementers of this call may want to use 9425114237Snjldifferent OS primitives depending on the type of semaphore 9426114237Snjlrequested. For example, some operating systems provide separate 9427167802Sjkim 9428193267Sjkim"mutex" and "semaphore" interfaces - where the mutex interface is 9429126372Snjlmuch faster because it doesn't have all the overhead of a full 9430126372Snjlsemaphore implementation. 9431102550Siwasaki 9432104470SiwasakiFixed a deadlock problem where a method that accesses the PCI 9433114237Snjladdress space can block forever if it is the first access to the 9434114237Snjlspace. 9435102550Siwasaki 9436102550Siwasaki------------------------------------------- 9437102550SiwasakiSummary of changes for this label: 06_02_00 9438102550Siwasaki 9439102550SiwasakiSupport for environments that cannot handle unaligned data 9440114237Snjlaccesses (e.g. firmware and OS environments devoid of alignment 9441193267Sjkimhandler technology namely SAL/EFI and the IA-64 Linux kernel) has 9442126372Snjlbeen added (via configurable macros) in these three areas: - 9443114237SnjlTransfer of data from the raw AML byte stream is done via byte 9444193267Sjkimmoves instead of word/dword/qword moves. - External objects are 9445126372Snjlaligned within the user buffer, including package elements (sub- 9446193267Sjkimobjects). - Conversion of name strings to UINT32 Acpi Names is now 9447126372Snjldone byte-wise. 9448102550Siwasaki 9449102550SiwasakiThe Store operator was modified to mimic Microsoft's 9450102550Siwasakiimplementation when storing to a Buffer Field. 9451102550Siwasaki 9452102550SiwasakiAdded a check of the BM_STS bit before entering C3. 9453102550Siwasaki 9454114237SnjlThe methods subdirectory has been obsoleted and removed. A new 9455114237Snjlfile, cmeval.c subsumes the functionality. 9456102550Siwasaki 9457102550SiwasakiA 16-bit (DOS) version of AcpiExec has been developed. The 9458102550Siwasakimakefile is under the acpiexec directory. 9459